Slp - Epson S1C17 Series Manual

Cmos 16-bit single chip microcontroller
Hide thumbs Also See for S1C17 Series:
Table of Contents

Advertisement

slp

Function
SLEEP
Standard)
Extension 1) Unusable
Extension 2) Unusable
15 14 13 12 11 10
Code
0
0
0
|
|
IL
IE
C
Flag
|
|
Mode
CLK
Six cycles
Description
Places the processor in SLEEP mode for power saving.
Program execution is halted at the same time that the S1C17 Core executes the slp instruction, and
the processor enters SLEEP mode.
SLEEP mode commonly turns off the S1C17 Core and on-chip peripheral circuit operations,
thereby it significantly reduces the current consumption in comparison to HALT mode.
Initial reset is one cause that can bring the processor out of SLEEP mode. Other causes depend on
the implementation of the clock control circuit outside the S1C17 Core.
Initial reset, maskable external interrupts, NMI, and debug interrupts are commonly used for
canceling SLEEP mode.
The interrupt enable/disable status set in the processor does not affect the cancellation of SLEEP
mode even if an interrupt signal is used as the cancellation. In other words, interrupt signals are
able to cancel SLEEP mode even if the IE flag in PSR or the interrupt enable bits in the interrupt
controller (depending on the implementation) are set to disable interrupts.
When the processor is taken out of SLEEP mode using an interrupt that has been enabled (by the
interrupt controller and IE flag), the corresponding interrupt handler routine is executed. Therefore,
when the interrupt handler routine is terminated by the reti instruction, the processor returns to
the instruction next to slp.
When the interrupt has been disabled, the processor restarts the program from the instruction next
to slp after the processor is taken out of SLEEP mode.
Refer to the technical manual of each model for details of SLEEP mode.
Example
slp
S1C17 CORE MANUAL
(Rev. 1.2)
Place the processor in SLEEP mode
9
8
7
6
|
0
0
0
0
0
0
0
|
|
|
|
|
|
V
Z
N
|
|
|
; The processor is placed in SLEEP mode.
Seiko Epson Corporation
5
4
3
2
1
0
0
1
0
0
0
0
|
|
|
|
|
|
7 DETAILS OF INSTRUCTIONS
7-123

Advertisement

Table of Contents
loading

Table of Contents