R
EM6580
2. Operating modes
The EM6580 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 4. EM6580 operating mode transitions
POWER-ON
START-UP
Power-On-Reset & Power Check Level, ~2.0V
POR static level
Power-Check Active
RC oscilator
running
PORwPC
8 oscillator
periods
PORwPC
RESET
PORwPC
resetPortA
WDreset
PORwPC
reset synchronizer
clocks active
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 EM6580 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 EM6580 in sleep mode. The oscillator stops and
most functions of the EM6580 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.all other functions are in reset state.
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. During sleep
mode and the following start up the EM6580 is in reset state. Waking up from sleep mode clears the Sleep flag
but not the SleepEn bit. Inspecting the SleepEn allows to determine if the EM6580 was powered up (SleepEn
= "0") or woken from sleep mode (SleepEn = "1").
Copyright © 2007, EM Microelectronic-Marin SA
03/07, rev. J
5
www.emmicroelectronic.com