PFS122
8bit MTP MCU with 12-bit R-Type ADC
5.10.2 Power-Down mode (“stopsys”)
Power-Down mode is the state of deeply power-saving with turning off all the oscillator modules. By
using the “stopsys” instruction, this chip will be put on Power-Down mode directly. It is recommend to set
GPCC.7=0 to disable the comparator before the command “stopsys”.The following shows the internal
status of PFS122 detail when “stopsys” command is issued:
All the oscillator modules are turned off.
MTP memory is turned off.
The contents of SRAM and registers remain unchanged.
Wake-up sources: IO toggle in digital mode. (PxDIER bit is 1)
Wake-up from input pins can be considered as a continuation of normal execution. To minimize power
consumption, all the I/O pins should be carefully manipulated before entering power-down mode. The
reference sample program for power down is shown as below:
CLKMD
CLKMD.4
…
=
=
0xF4;
0;
//
//
Change clock from IHRC to ILRC
disable IHRC
while (1)
{
STOPSYS;
//
//
//
enter power-down
if (…) break;
if wakeup happen and check OK, then return to high speed,
else stay in power-down mode again.
}
CLKMD
=
0x34;
//
Change clock from ILRC to IHRC/2
©Copyright 2020, PADAUK Technology Co. Ltd
Page 54 of 93
PDK-DS-PFS122-EN_V000-May 28, 2020