English
Language : 

PIC24F16KA102_11 Datasheet, PDF (62/278 Pages) Microchip Technology – 20/28-Pin General Purpose, 16-Bit Flash Microcontrollers with nanoWatt XLP Technology
PIC24F16KA102 FAMILY
7.5.2 DETECTING BOR
When BOR is enabled, the BOR bit (RCON<1>) is
always reset to ‘1’ on any BOR or POR event. This
makes it difficult to determine if a BOR event has
occurred just by reading the state of BOR alone. A
more reliable method is to simultaneously check the
state of both POR and BOR. This assumes that the
POR and BOR bits are reset to ‘0’ in the software
immediately after any POR event. If the BOR bit is ‘1’
while the POR bit is ‘0’, it can be reliably assumed that
a BOR event has occurred.
Note:
Even when the device exits from Deep
Sleep mode, both the POR and BOR are
set.
7.5.3 DISABLING BOR IN SLEEP MODE
When BOREN<1:0> = 10, BOR remains under hard-
ware control and operates as previously described.
However, whenever the device enters Sleep mode,
BOR is automatically disabled. When the device
returns to any other operating mode, BOR is
automatically re-enabled.
This mode allows for applications to recover from
brown-out situations, while actively executing code,
when the device requires BOR protection the most. At
the same time, it saves additional power in Sleep mode
by eliminating the small incremental BOR current.
DS39927C-page 62
 2008-2011 Microchip Technology Inc.