PIC16F818/819
12.9
Power Control/Status Register
(PCON)
bit BOR cleared, indicating a Brown-out Reset
occurred. When the Brown-out Reset is disabled, the
state of the BOR bit is unpredictable.
Bit 1 is Power-on Reset Status bit, POR. It is cleared on
a Power-on Reset and unaffected otherwise. The user
must set this bit following a Power-on Reset.
The Power Control/Status register, PCON, has two bits
to indicate the type of Reset that last occurred.
Bit 0 is Brown-out Reset Status bit, BOR. Bit BOR is
unknown on a Power-on Reset. It must then be set by
the user and checked on subsequent Resets to see if
TABLE 12-1:
TIME-OUT IN VARIOUS SITUATIONS
Power-up
PWRTE =
0
T
PWRT
PWRTE =
1
5-10
碌s
(1)
Brown-out Reset
PWRTE =
0
T
PWRT
PWRTE =
1
5-10
碌s
(1)
Wake-up
from Sleep
1024 鈥?T
OSC
5-10
碌s
(1)
Oscillator
Configuration
XT, HS, LP
EXTRC, EXTCLK, INTRC
Note 1:
T
PWRT
+ 1024 鈥?T
OSC
1024 鈥?T
OSC
T
PWRT
+ 1024 鈥?T
OSC
1024 鈥?T
OSC
CPU start-up is always invoked on POR, BOR and wake-up from Sleep.
TABLE 12-2:
POR
0
0
0
1
1
1
1
1
STATUS BITS AND THEIR SIGNIFICANCE
BOR
x
x
x
0
1
1
1
1
TO
1
0
x
1
0
0
u
1
PD
1
x
0
1
1
0
u
0
Power-on Reset
Illegal, TO is set on POR
Illegal, PD is set on POR
Brown-out Reset
WDT Reset
WDT Wake-up
MCLR Reset during normal operation
MCLR Reset during Sleep or interrupt wake-up from Sleep
Legend:
u
= unchanged,
x
= unknown
TABLE 12-3:
RESET CONDITION FOR SPECIAL REGISTERS
Condition
Program
Counter
000h
000h
000h
000h
PC + 1
000h
PC + 1
(1)
Status
Register
0001 1xxx
000u uuuu
0001 0uuu
0000 1uuu
uuu0 0uuu
0001 1uuu
uuu1 0uuu
PCON
Register
---- --0x
---- --uu
---- --uu
---- --uu
---- --uu
---- --u0
---- --uu
Power-on Reset
MCLR Reset during normal operation
MCLR Reset during Sleep
WDT Reset
WDT Wake-up
Brown-out Reset
Interrupt Wake-up from Sleep
Legend:
u
= unchanged,
x
= unknown,
-
= unimplemented bit, read as 鈥?鈥?/div>
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).
铮?/div>
2003 Microchip Technology Inc.
Preliminary
DS39598D-page 93
prev
next