In Stop Mode, all system clocks, including the crystal oscillator (if used), are typically halted to minimize power consumption. Because of this, external circuitry is often required to:
• Control the duration of Stop Mode.
• Issue a wake-up signal to the MCU when it's time to resume processing.
Example Setup
• MCU: S08PB16
• Development Kit: S08PB16-EVK
• IDE: CodeWarrior 11.1
Enabling Stop Mode
To enter Stop Mode correctly:
1. Enable Stop Mode in the System Options Register 1 (SYS_SOPT1).
2. If Stop Mode is disabled and a STOP instruction is executed, the MCU will trigger an illegal opcode reset.
STOP Instruction
The STOP assembly instruction:
• Enables interrupts.
• Halts processing and enters Stop Mode.
Watchdog Behavior in Stop Mode
The watchdog timer's behavior depends on the selected clock source:
Bus Clock Counter does not increment
LP, IRCLK, EXTCLK Counter is reinitialized to zero and starts counting again upon exiting Stop Mode