Datasheet

DocID8349 Rev 7 57/170
ST7LITE20F2 ST7LITE25F2 ST7LITE29F2 Power saving modes
169
Figure 25. HALT mode flowchart
1. WDGHALT is an option bit (see Section 15.1: Option bytes for more details).
2. Peripheral clocked with an external clock source can still be active.
3. Only some specific interrupts can exit the MCU from HALT mode (such as external interrupt). Refer to
Table 12: Interrupt mapping for more details.
4. Before servicing an interrupt, the CC register is pushed on the stack. The I bit of the CC register is set
during the interrupt routine and cleared when the CC register is popped.
5. If the PLL is enabled by option byte, it outputs the clock after a delay of t
STARTUP
(see Figure 12: PLL
output frequency timing diagram).
9.4.1 HALT mode recommendations
Make sure that an external event is available to wake up the microcontroller from Halt
mode.
When using an external interrupt to wake up the microcontroller, reinitialize the
corresponding I/O as “Input Pull-up with Interrupt” before executing the HALT
Reset
Interrupt
(3)
Y
N
N
Y
CPU
Oscillator
Peripherals
(2)
Ibit
OFF
OFF
0
OFF
Fetch reset vector
or service interrupt
CPU
Oscillator
Peripherals
Ibit
ON
OFF
X
4)
ON
CPU
Oscillator
Peripherals
Ibit
ON
ON
X
4)
ON
256 or 4096 CPU clock
delay
(5)
Watchdog
ENABLE
DISABLE
WDGHALT
(1)
0
Watchdog
reset
1
cycle
HALT instruction
(ACTIVE-HALT disabled)
(AWUCSR.AWUEN=0)