PIC16F871 Microchip Technology Inc., PIC16F871 Datasheet - Page 56

no-image

PIC16F871

Manufacturer Part Number
PIC16F871
Description
28/40-pin, 8-bit Cmos Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F871-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-I/P
Manufacturer:
Microchip Technology
Quantity:
1 984
Part Number:
PIC16F871-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871T-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16F870/871
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:
DS30569B-page 54
0Bh,8Bh,
10Bh,18Bh
0Ch
8Ch
11h
12h
92h
Legend:
Note 1:
Address
Reset, or BOR)
Timer2 Prescaler and Postscaler
INTCON
PIR1
PIE1
TMR2
T2CON
PR2
x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by the Timer2 module.
Bits PSPIE and PSPIF are reserved on the PIC16F870; always maintain these bits clear.
Name
REGISTERS ASSOCIATED WITH TIMER2 AS A TIMER/COUNTER
PSPIF
PSPIE
Timer2 Module’s Register
Timer2 Period Register
Bit 7
GIE
(1)
(1)
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
ADIE
Bit 6
PEIE
ADIF
RCIE
RCIF
Bit 5
T0IE
Bit 4
INTE
TXIF
TXIE
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.
CCP1IF
CCP1IE
Bit 2
T0IF
Output of TMR2
TMR2IE
TMR2IF
Bit 1
INTF
 2003 Microchip Technology Inc.
TMR1IE 0000 -000 0000 -000
TMR1IF 0000 -000 0000 -000
Bit 0
RBIF
0000 000x 0000 000u
0000 0000 0000 0000
1111 1111 1111 1111
POR, BOR
Value on:
Value on
RESETS
all other

Related parts for PIC16F871