
ML51/ML54/ML56
Sep. 01, 2020
Page
315
of 719
Rev 2.00
ML
51
/ML
54
/ML
5
6 S
E
RI
E
S
TECHNI
CA
L
RE
F
E
R
E
NC
E
M
A
NU
A
L
ML51/M
L54
/M
L56
Series
Tec
hnical Reference
Manual
Software Reset
6.2.3.5
The ML51/ML54/ML56 Series 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.