MS51
Nov. 28, 2019 Page 213 of 491 Rev 1.00
MS51 32K SERIES TECHNICAL REFERENCE MANUAL
6.2.3 Power Monitoring
Overview 6.2.3.1
To prevent incorrect execution during power up and power drop, The MS51 provide three power
monitor functions, power-on detection and brown-out detection.
Power-On Detection 6.2.3.2
The power-on detection function is designed for detecting power up after power voltage reaches to a
level where system can work. After power-on detected, the POF (PCON.4) will be set 1 to indicate a
cold reset, a power-on reset complete. The POF flag can be cleared via software.
PCON – Power Control
POR: 0001_0000b
Others: 000U _0000b
Power-on reset flag
This bit will be set as 1 after a power-on reset. It indicates a cold reset, a power-on reset complete.
This bit remains its value after any other resets. This flag is recommended to be cleared via
software.
Brown-Out Detection (BOD) 6.2.3.3
The other power monitoring function brown-out detection (BOD) circuit is used for monitoring the V
DD
level during execution. There are eight CONFIG selectable brown-out trigger levels available for wide
voltage applications. These eight nominal levels are 1.8V, 2.0V, 2.4V, 2.7V, 3.0V, 3.7V and 4.4V
selected via setting CBOV[2:0] (CONFIG2[6:4]). BOD level can also be changed by setting BOV[2:0]
(BODCON0[6:4]) after power-on. When V
DD
drops to the selected brown-out trigger level (V
BOD
), the
BOD logic will either reset the MCU or request a brown-out interrupt. User may decide to being reset
or generating a brown-out interrupt according to different applications. V
BOD
also can be set by
software after power-on. Note that BOD output is not available until 2~3 LIRC clocks after software
enabling.
The BOD will request the interrupt while V
DD
drops below V
BOD
while BORST (BODCON0.2) is 0. In
this case, BOF (BODCON0.3) will be set as 1. After user cleared this flag whereas V
DD
remains below
V
BOD
, BOF will not set again. BOF just acknowledge user a power drop occurs. The BOF will also be
set as 1 after V
DD
goes higher than V
BOD
to indicate a power resuming. The BOD circuit provides an
useful status indicator BOS (BODCON0.0), which is helpful to tell a brown-out event or power
resuming event occurrence. If the BORST bit is set as 1, this will enable brown-out reset function.
After a brown-out reset, BORF (BODCON0.1) will be set as 1 via hardware. It will not be altered by
reset other than power-on. This bit can be cleared by software. Note that all bits in BODCON0 is
writing protected by timed access (TA).
The MS51 provides low power BOD mode for saving current consumption and remaining BOD