R
EM6680
2. Operating modes
The EM6680 can operate in three different modes of which 2 are low-power dissipation modes (Stand-By and
Sleep). The modes and transitions between them are shown in Figure 5.
1.) Active mode
2.) Stand-By mode
3.) Sleep mode
Figure 5. EM6680 operating mode transitions
POWER-ON
START-UP
Power-On-Reset & Power Check Level
POR static level
Power-Check Active
RC oscilator
running
PORwPC
8 oscillator
periods
PORwPC
RESET
reset synchronizer
and
PORwPC
resetPortA
WDreset
PORwPC
Power-Check
8 CPU clock
periods
Reset-pad
WDreset
SleepResCnt
WakeUp on
Change
SLEEP
Everything stopped
Registers and
STAND-BY
or HALT
mode
Clocks active
ACTIVE
or running
mode
HALT instruction
interrupt/event
RAM keep their value
Sleep bit set
2.1 ACTIVE Mode
The active mode is the actual CPU running mode. Instructions are read from the internal ROM and executed by
the CPU. Leaving the active mode: via the halt instruction to go into standby mode, writing the SLEEP bit to go
into Sleep mode or detecting the reset to go into reset mode.
2.2 STANDBY (Halt) Mode
Executing a HALT instruction puts the EM6680 into standby mode. The voltage regulator, oscillator, watchdog
timer, interrupts, timers and counters are operating. However, the CPU stops since the clock related to
instruction execution stops. Registers, RAM and I/O pins retain their states prior to STANDBY mode.
STANDBY is cancelled by a RESET or an Interrupt request if enabled.
2.3 SLEEP Mode
Writing to the Sleep bit in the RegSysCntl1 register puts the EM6680 in sleep mode. The oscillator stops and
most functions of the EM6680 are inactive. To be able to write to the Sleep bit, the SleepEn bit in
RegSysCntl2 must first be set to "1". In SLEEP mode only the voltage regulator is active to maintain the RAM
data integrity, the peripheral functions are stopped and the CPU is reset. SLEEP mode may be cancelled by
Wake/Up on change, external reset or by Sleep Reset Counter if any of them is enabled.
Waking up from sleep mode may takes some time to guarantee stable oscillation. Coming back from sleep
mode puts the EM6681 in reset state and as such reinitializes all registers to their reset value. Waking up from
sleep mode clears the Sleep flag but not the SleepEn bit. Inspecting the SleepEn allows to determine if the
EM6680 was powered up (SleepEn = "0") or woken from sleep mode (SleepEn = "1").
5
www.emmicroelectronic.com
Copyright © 2005, EM Microelectronic-Marin SA