PIC16F872-E/SP Microchip Technology, PIC16F872-E/SP Datasheet - Page 46

no-image

PIC16F872-E/SP

Manufacturer Part Number
PIC16F872-E/SP
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,DIP,28PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F872-E/SP

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PIC16F872
7.1
The prescaler and postscaler counters are cleared
when any of the following occurs:
• a write to the TMR2 register
• a write to the T2CON register
• any device RESET (POR, MCLR Reset, WDT
TMR2 is not cleared when T2CON is written.
TABLE 7-1:
DS30221C-page 44
0Bh,8Bh,
10Bh, 18Bh
0Ch
8Ch
11h
12h
92h
Legend:
Address
Reset or BOR)
Timer2 Prescaler and Postscaler
x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by the Timer2 module.
INTCON
PIR1
PIE1
TMR2
T2CON
PR2
Name
REGISTERS ASSOCIATED WITH TIMER2 AS A TIMER/COUNTER
Timer2 Module Register
Timer2 Period Register
Bit 7
GIE
(3)
(3)
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
PEIE
ADIF
ADIE
Bit 6
TMR0IE
Bit 5
(3)
(3)
Bit 4
INTE
(3)
(3)
SSPIE
SSPIF
RBIE
Bit 3
7.2
The output of TMR2 (before the postscaler) is fed to the
SSP module, which optionally uses it to generate shift
clock.
TMR0IF
CCP1IF
CCP1IE
Bit 2
Output of TMR2
TMR2IF
TMR2IE
Bit 1
INTF
© 2006 Microchip Technology Inc.
TMR1IF
TMR1IE
RBIF
Bit 0
0000 000x 0000 000u
0000 0000 0000 0000
1111 1111 1111 1111
r0rr 0000
r0rr 0000
Value on:
POR,
BOR
0000 0000
0000 0000
Value on
RESETS
all other

Related parts for PIC16F872-E/SP