Rev. 1.50, 10/04, page 320 of 448
10.1.69 SLEEP (Sleep): System Control Instruction (Privileged Instruction)
Format
Operation
Instruction Code
Cycle
T Bit
SLEEP
Sleep or standby
0000000000011011
Undefined —
Description:
This instruction places the CPU in the power-down state.
In power-down mode, the CPU retains its internal state, but immediately stops executing
instructions and waits for an interrupt request. When it receives an interrupt request, the CPU exits
the power-down state.
SLEEP is a privileged instruction, and can only be used in privileged mode. Use of this instruction
in user mode will cause an illegal instruction exception.
Notes:
SLEEP performance depends on the standby control register (STBCR). See Power-Down
Modes in the target product's hardware manual, for details.
Operation:
SLEEP( ) /* SLEEP */
{
Sleep_standby();
}
Example:
SLEEP
;
Transition to power-down mode
Possible Exceptions:
•
General illegal instruction exception
•
Slot illegal instruction exception
Summary of Contents for SuperH SH-4A
Page 2: ...Rev 1 50 10 04 page ii of xx ...
Page 8: ...Rev 1 50 10 04 page viii of xx ...
Page 116: ...Rev 1 50 10 04 page 96 of 448 ...
Page 178: ...Rev 1 50 10 04 page 158 of 448 ...
Page 206: ...Rev 1 50 10 04 page 186 of 448 ...
Page 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Page 446: ...Rev 1 50 10 04 page 426 of 448 ...
Page 468: ...Rev 1 50 10 04 page 448 of 448 ...
Page 471: ......
Page 472: ...SH 4A Software Manual ...