Datasheet

PIC16F527
DS41652A-page 46 Preliminary 2012 Microchip Technology Inc.
8.4 Reset
The device differentiates between various kinds of
Reset:
Power-on Reset (POR)
Brown-out Reset (BOR)
•MCLR
Reset during normal operation
•MCLR Reset during Sleep
WDT Time-out Reset during normal operation
WDT Time-out Reset during Sleep
Wake-up from Sleep on pin change
Some registers are not reset in any way, they are
unknown on POR/BOR and unchanged in any other
Reset. Most other registers are reset to “Reset state
on Power-on Reset (POR)/Brown-out Reset (BOR),
MCLR
, WDT or Wake-up on pin change Reset during
normal operation. They are not affected by a WDT
Reset during Sleep or MCLR Reset during Sleep, since
these Resets are viewed as resumption of normal oper-
ation. The exceptions to this are the TO and PD bits.
They are set or cleared differently in different Reset sit-
uations. These bits are used in software to determine
the nature of Reset. See Table 4-1 for a full description
of Reset states of all registers.
TABLE 8-3: RESET CONDITION FOR SPECIAL REGISTERS
STATUS Addr: 03h
Power-on Reset (POR) or Brown-out Reset (BOR) 0001 1xxx
MCLR
Reset during normal operation 000u uuuu
MCLR
Reset during Sleep 0001 0uuu
WDT Reset during Sleep 0000 0uuu
WDT Reset normal operation 0000 uuuu
Wake-up from Sleep on pin change 1001 0uuu
Wake-up from Sleep on comparator change 0101 0uuu
Legend: u = unchanged, x = unknown, – = unimplemented bit, read as ‘0’.