Datasheet

PIC10(L)F320/322
DS41585A-page 38 Preliminary 2011 Microchip Technology Inc.
5.9 Determining the Cause of a Reset
Upon any Reset, multiple bits in the STATUS and
PCON register are updated to indicate the cause of the
Reset. Ta bl e 5 -3 and Tab le 5 -4 show the Reset condi-
tions of these registers.
TABLE 5-3: RESET STATUS BITS AND THEIR SIGNIFICANCE
TABLE 5-4: RESET CONDITION FOR SPECIAL REGISTERS
POR BOR TO PD Condition
0x11Power-on Reset
u011Brown-out Reset
uu0uWDT Reset
uu00WDT Wake-up from Sleep
uuuuMCLR
Reset during normal operation
uu10MCLR
Reset during Sleep
Condition
Program
Counter
STATUS
Register
PCON
Register
Power-on Reset 0000h 0001 1000 ---- --0x
MCLR
Reset during normal operation 0000h 000u uuuu ---- --uu
MCLR Reset during Sleep 0000h 0001 0uuu ---- --uu
WDT Reset 0000h 0000 uuuu ---- --uu
WDT Wake-up from Sleep PC + 1 0000 0uuu ---- --uu
Brown-out Reset 0000h 0001 1uuu ---- --u0
Interrupt Wake-up from Sleep PC + 1
(1)
0001 0uuu
---- --uu
Legend: u = unchanged, x = unknown, - = unimplemented bit, reads as ‘0’.
Note 1: When the wake-up is due to an interrupt and Global Enable bit (GIE) is set, the return address is pushed on
the stack and PC is loaded with the interrupt vector (0004h) after execution of PC + 1.