PIC16F684-I/SLG Microchip, PIC16F684-I/SLG Datasheet - Page 56

no-image

PIC16F684-I/SLG

Manufacturer Part Number
PIC16F684-I/SLG
Description
pic, flash, Microcontrollers, Microprocessors, Semiconductors and Actives, ic, mcu
Manufacturer
Microchip
Datasheet
PIC16F684
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:
DS41202C-page 54
0Bh/
8Bh
0Ch
11h
12h
8Ch
92h
Legend:
Addr
INTCON
PIR1
TMR2
T2CON
PIE1
PR2
Name
Timer2 Interrupt
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
EEIF
EEIE
Bit 7
GIE
REGISTERS ASSOCIATED WITH TIMER2
TIMER2 BLOCK DIAGRAM
TOUTPS3
PEIE
ADIF
ADIE
Bit 6
T2CKPS<1:0>
1:1, 1:4, 1:16
Prescaler
TOUTPS2
2
CCP1IE
CCP1IF
Bit 5
T0IE
TOUTPS1
Bit 4
INTE
C2IE
C2IF
Comparator
Preliminary
TMR2
PR2
TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
RAIE
Bit 3
C1IF
C1IE
EQ
Reset
TOUTPS<3:0>
OSFIF
OSFIE
Postscaler
1:1 to 1:16
Bit 2
T0IF
TMR2
Output
4
TMR2IF
TMR2IE
Bit 1
INTF
 2004 Microchip Technology Inc.
TMR1IF
TMR1IE
RAIF
Bit 0
Sets Flag
bit TMR2IF
0000 0000 0000 0000
0000 0000 0000 0000
0000 0000 0000 0000
0000 0000 0000 0000
1111 1111 1111 1111
POR, BOD
Value on
Value on
all other
Resets

Related parts for PIC16F684-I/SLG