PIC16HV785 Microchip Technology Inc., PIC16HV785 Datasheet - Page 58

no-image

PIC16HV785

Manufacturer Part Number
PIC16HV785
Description
20-pin Flash-based 8-bit Cmos Microcontroller
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16HV785-E/ML
Manufacturer:
LEGERITY
Quantity:
100
Part Number:
PIC16HV785-E/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16HV785-E/SO
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16HV785-E/SS
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16HV785-I/ML
Manufacturer:
MICROCHIP
Quantity:
12 000
PIC16F785/HV785
7.2
The Timer2 module has an 8-bit period register, PR2.
Timer2 increments from 00h until it matches PR2 and
then resets to 00h on the next increment cycle. PR2 is
a readable and writable register. The PR2 register is
initialized to FFh upon Reset.
FIGURE 7-1:
TABLE 7-1:
DS41249D-page 56
0Bh,
8Bh
0Ch
11h
12h
8Ch
92h
Legend:
Addr
INTCON
PIR1
TMR2
T2CON
PIE1
PR2
Timer2 Interrupt
Name
F
x = unknown, u = unchanged, – = unimplemented, read as ‘0’. Shaded cells are not used by the Timer2 module.
OSC
/4
Holding Register for the 8-bit TMR2 Register
Timer2 Module Period register
REGISTERS ASSOCIATED WITH TIMER2
Bit 7
EEIF
EEIE
GIE
TIMER2 BLOCK DIAGRAM
TOUTPS3 TOUTPS2
T2CKPS<1:0>
PEIE
ADIF
ADIE
Bit 6
1:1, 1:4, 1:16
Prescaler
2
CCP1IF
CCP1IE
Bit 5
T0IE
TOUTPS1
INTE
Comparator
Bit 4
C2IF
C2IE
Preliminary
TMR2
PR2
TOUTPS0
RAIE
C1IE
Bit 3
C1IF
EQ
Reset
TMR2ON T2CKPS1 T2CKPS0
TOUTPS<3:0>
OSFIF
OSFIE
Bit 2
T0IF
Postscaler
1:1 to 1:16
Output
TMR2
4
TMR2IF
TMR2IE
INTF
Bit 1
TMR1IF
TMR1IE
© 2006 Microchip Technology Inc.
Bit 0
RAIF
bit TMR2IF
Sets Flag
0000 0000
0000 0000
0000 0000
-000 0000
0000 0000
1111 1111
POR, BOR
Value on:
0000 0000
0000 0000
0000 0000
-000 0000
0000 0000
1111 1111
Value on
all other
Resets

Related parts for PIC16HV785