English
Language : 

PIC16F872_06 Datasheet, PDF (95/168 Pages) Microchip Technology – 28-Pin, 8-Bit CMOS Flash Microcontroller with 10-Bit A/D
PIC16F872
TABLE 11-4: STATUS BITS AND THEIR SIGNIFICANCE
POR
0
0
0
1
1
1
1
1
BOR
x
x
x
0
1
1
1
1
TO PD
1 1 Power-on Reset
0 x Illegal, TO is set on POR
x 0 Illegal, PD is set on POR
1 1 Brown-out Reset
0 1 WDT Reset
0 0 WDT Wake-up
u u MCLR Reset during normal operation
1 0 MCLR Reset during SLEEP or interrupt wake-up from SLEEP
TABLE 11-5: RESET CONDITION FOR SPECIAL REGISTERS
Condition
Program
Counter
STATUS
Register
PCON
Register
Power-on Reset
000h
0001 1xxx
---- --0x
MCLR Reset during normal operation
000h
000u uuuu
---- --uu
MCLR Reset during SLEEP
000h
0001 0uuu
---- --uu
WDT Reset
000h
0000 1uuu
---- --uu
WDT Wake-up
PC + 1
uuu0 0uuu
---- --uu
Brown-out Reset
Interrupt wake-up from SLEEP
000h
PC + 1(1)
0001 1uuu
uuu1 0uuu
---- --u0
---- --uu
Legend: u = unchanged, x = unknown, - = unimplemented bit, read as '0'
Note 1: When the wake-up is due to an interrupt and the GIE bit is set, the PC is loaded with the interrupt vector
(0004h).
TABLE 11-6: INITIALIZATION CONDITIONS FOR ALL REGISTERS
Register
Power-on Reset,
Brown-out Reset
MCLR Resets
WDT Reset
Wake-up via WDT or
Interrupt
W
xxxx xxxx
uuuu uuuu
uuuu uuuu
INDF
N/A
N/A
N/A
TMR0
xxxx xxxx
uuuu uuuu
uuuu uuuu
PCL
0000h
0000h
PC + 1(2)
STATUS
0001 1xxx
000q quuu(3)
uuuq quuu(3)
FSR
xxxx xxxx
uuuu uuuu
uuuu uuuu
PORTA
--0x 0000
--0u 0000
--uu uuuu
PORTB
xxxx xxxx
uuuu uuuu
uuuu uuuu
PORTC
xxxx xxxx
uuuu uuuu
uuuu uuuu
PCLATH
---0 0000
---0 0000
---u uuuu
INTCON
PIR1
0000 000x
r0rr 0000
0000 000u
r0rr 0000
uuuu uuuu(1)
rurr uuuu(1)
PIR2
-r-0 0--r
-r-0 0--r
-r-u u--r(1)
Legend: u = unchanged, x = unknown, - = unimplemented bit, read as '0', q = value depends on condition,
r = reserved, maintain clear
Note 1: One or more bits in INTCON, PIR1 and/or PIR2 will be affected (to cause wake-up).
2: When the wake-up is due to an interrupt and the GIE bit is set, the PC is loaded with the interrupt vector
(0004h).
3: See Table 11-5 for RESET value for specific condition.
© 2006 Microchip Technology Inc.
DS30221C-page 93