English
Language : 

PIC16F87 Datasheet, PDF (137/214 Pages) Microchip Technology – 18/20/28-Pin Enhanced FLASH Microcontrollers with nanoWatt Technology
PIC16F87/88
TABLE 15-3: 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 15-4: INITIALIZATION CONDITIONS FOR ALL REGISTERS
Register
Power-on Reset,
Brown-out Reset
MCLR Reset,
WDT Reset
Wake-up via WDT or
Interrupt
W
xxxx xxxx
uuuu uuuu
uuuu uuuu
INDF
N/A
N/A
N/A
TMR0
PCL
STATUS
xxxx xxxx
0000h
0001 1xxx
uuuu uuuu
0000h
000q quuu(3)
uuuu uuuu
PC + 1(2)
uuuq quuu(3)
FSR
xxxx xxxx
uuuu uuuu
uuuu uuuu
PORTA (PIC16F87)
PORTA (PIC16F88)
xxxx 0000
xxx0 0000
uuuu 0000
uuu0 0000
uuuu uuuu
uuuu uuuu
PORTB (PIC16F87)
PORTB (PIC16F87)
xxxx xxxx
00xx xxxx
uuuu uuuu
00uu uuuu
uuuu uuuu
uuuu uuuu
PCLATH
INTCON
PIR1
PIR2
---0 0000
0000 000x
-000 0000
00-0 ----
---0 0000
0000 000u
-000 0000
00-0 ----
---u uuuu
uuuu uuuu(1)
-uuu uuuu(1)
uu-u ----(1)
TMR1L
xxxx xxxx
uuuu uuuu
uuuu uuuu
TMR1H
xxxx xxxx
uuuu uuuu
uuuu uuuu
T1CON
-000 0000
-uuu uuuu
-uuu uuuu
TMR2
0000 0000
0000 0000
uuuu uuuu
T2CON
-000 0000
-000 0000
-uuu uuuu
SSPBUF
xxxx xxxx
uuuu uuuu
uuuu uuuu
SSPCON
0000 0000
0000 0000
uuuu uuuu
CCPR1L
xxxx xxxx
uuuu uuuu
uuuu uuuu
CCPR1H
xxxx xxxx
uuuu uuuu
uuuu uuuu
CCP1CON
--00 0000
--00 0000
--uu uuuu
RCSTA
0000 000x
0000 000x
uuuu uuuu
Legend:
Note 1:
2:
3:
u = unchanged, x = unknown, - = unimplemented bit, read as ‘0’, q = value depends on condition,
r = reserved, maintain clear
One or more bits in INTCON, PIR1 and PR2 will be affected (to cause wake-up).
When the wake-up is due to an interrupt and the GIE bit is set, the PC is loaded with the interrupt vector
(0004h).
See Table 15-3 for RESET value for specific condition.
 2003 Microchip Technology Inc.
Preliminary
DS30487B-page 135