EasyManua.ls Logo

Nuvoton NuMicro MS51PC0AE - Page 222

Default Icon
491 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MS51
Nov. 28, 2019 Page 222 of 491 Rev 1.00
MS51 32K SERIES TECHNICAL REFERENCE MANUAL
Bit
Name
Description
3
WDTRF
WDT reset flag
When the CPU is reset by WDT time-out event, this bit will be set via hardware. This flag is
recommended to be cleared via software after reset.
Software Reset 6.2.4.6
The MS51 provides a software reset, which allows the software to reset the whole system just similar
to an external reset, initializing the MCU as it reset state. The software reset is quite useful in the end
of an ISP progress. For example, if an ISP of Boot Code updating User Code finishes, a software
reset can be asserted to re-boot CPU to execute new User Code immediately. Writing 1 to SWRST
(CHPCON.7) will trigger a software reset. Note that this bit is writing TA protection. The instruction that
sets the SWRST bit is the last instruction that will be executed before the device reset. See demo
code below.
If a software reset occurs, SWRF (AUXR0.7) will be automatically set by hardware. User can check it
as the reset source indicator. SWRF keeps unchanged after any reset other than a power-on reset or
software reset itself. SWRF can be cleared via software.

Table of Contents

Related product manuals