English
Language : 

C509-L_97 Datasheet, PDF (230/290 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller
Power Saving Modes
C509-L
Table 9-1
Status of External Pins During Idle and Software Power Down Mode
Pins
ALE
PSEN
Port 0
Port 1
Port 2
Port 3
Port 4
Port 5
Port 6
Port 9
Idle Mode
High
High
Float
Data / alternate outputs
Address
Data / alternate outputs
Data / alternate outputs
Data / alternate outputs
Data / alternate outputs
Data / alternate outputs
Software Power Down Mode
Low
Low
Float
Data / last output
Data
Data / last output
Data / last output
Data / last output
Data / last output
Data / last output
The watchdog timer is the only peripheral which is automatically stopped during idle mode. The idle
mode makes it possible to “freeze” the processor’s status for a certain time or until an external event
causes the controller to go back into normal operating mode. Since the watchdog timer is stopped
during idle mode, this useful feature of the C509-L is provided even if the watchdog function is used
simultaneously.
lf the idle mode is to be used the pin PE/SWD must be held low. Entering the idle mode is to be done
by two consecutive instructions immediately following each other. The first instruction has to set the
flag bit IDLE (PCON.0) and must not set bit IDLS (PCON.5), the following instruction has to set the
start bit IDLS (PCON.5) and must not set bit IDLE (PCON.0). The hardware ensures that a
concurrent setting of both bits, IDLE and IDLS will not initiate the idle mode. Bits IDLE and IDLS will
automatically be cleared after having been set. lf one of these register bits is read the value shown
is zero (0). This double-instruction sequence is implemented to minimize the chance of
unintentionally entering the idle mode.
Note that PCON is not a bit-addressable register, so the above mentioned sequence for entering
the idle mode is to be done by byte handling instructions.
The following instruction sequence may serve as an example:
– ORLPCON,#00000001B;Set bit IDLE, bit IDLS must not be set
ORLPCON,#00100000B;Set bit IDLS, bit IDLE must not be set
The instruction that sets bit IDLS is the last instruction executed before going into idle mode.
Termination of the Idle Mode
– The idle mode can be terminated by activation of any enabled interrupt. The CPU operation
is resumed, the interrupt will be serviced and the next instruction to be executed after the RETI
instruction will be the one following the instruction that set the bit IDLS.
– The other possibility of terminating the idle mode is a hardware reset. Since the oscillator is
still running, the hardware reset is held active for only two machine cycles for a complete
reset.
Semiconductor Group
9-5
1997-10-01