
ST72321xx-Auto Power saving modes
Doc ID 13829 Rev 1 65/243
8.4 Active Halt and Halt modes
Active Halt and Halt modes are the two lowest power consumption modes of the MCU. They
are both entered by executing the ‘HALT’ instruction. The decision to enter either in Active
Halt or Halt mode is given by the MCC/RTC interrupt enable flag (OIE bit in MCCSR
register) as shown in Ta bl e 2 7 .
8.4.1 Active Halt mode
Active Halt mode is the lowest power consumption mode of the MCU with a real-time clock
available. It is entered by executing the ‘HALT’ instruction when the OIE bit of the Main Clock
Controller Status register (MCCSR) is set (see Section 12.3: ART registers on page 93 for
more details on the MCCSR register).
The MCU can exit Active Halt mode on reception of an MCC/RTC interrupt or a RESET.
When exiting Active Halt mode by means of an interrupt, no 256 or 4096 CPU cycle delay
occurs. The CPU resumes operation by servicing the interrupt or by fetching the reset vector
which woke it up (see Figure 26).
When entering Active Halt mode, the I[1:0] bits in the CC register are forced to ‘10b’ to
enable interrupts. Therefore, if an interrupt is pending, the MCU wakes up immediately.
In Active Halt mode, only the main oscillator and its associated counter (MCC/RTC) are
running to keep a wake-up time base. All other peripherals are not clocked except those
which get their clock supply from another clock generator (such as external or auxiliary
oscillator).
The safeguard against staying locked in Active Halt mode is provided by the oscillator
interrupt.
Note: As soon as the interrupt capability of one of the oscillators is selected (MCCSR.OIE bit set),
entering Active Halt mode while the Watchdog is active does not generate a RESET.
This means that the device cannot spend more than a defined delay in this power saving
mode.
Caution: When exiting Active Halt mode following an MCC/RTC interrupt, OIE bit of MCCSR register
must not be cleared before t
DELAY
after the interrupt occurs (t
DELAY
= 256 or 4096 t
CPU
delay depending on option byte). Otherwise, the ST7 enters Halt mode for the remaining
t
DELAY
period.
Table 27. MCC/RTC low power mode selection
MCCSR OIE bit Power saving mode entered when HALT instruction is executed
0Halt
1 Active Halt
Komentáře k této Příručce