Section 18 Power-Down States
Rev.2.00 Jun. 28, 2007 Page 582 of 666
REJ09B0311-0200
18.9
Sleep Instruction Exception Handling
Sleep instruction exception handling is exception handling initiated by the execution of a SLEEP
instruction. Sleep instruction exception handling is always accepted while the program is in
execution.
When the SLPIE bit is set to 0, the execution of a SLEEP instruction does not initiate sleep
instruction exception handling. Instead, the CPU enters the power-down state. After this,
generation of an exception handling request that cancels the power-down state causes the power-
down state to be canceled, after which the CPU starts to handle the exception. When the SLPIE bit
is set to 1, sleep instruction exception handling starts after the execution of a SLEEP instruction.
Transitions to the power-down state are inhibited when sleep instruction exception handling is
initiated, and the CPU immediately starts sleep instruction exception handling.
When a SLEEP instruction is executed while the SLPIE bit is cleared to 0, a transition is made to
the power-down state. The power-down state is canceled by a canceling factor interrupt (see figure
18.5).
When a canceling factor interrupt is generated immediately before the execution of a SLEEP
instruction, exception handling for the interrupt starts. When execution returns from the exception
service routine, the SLEEP instruction is executed to enter the power-down state. In this case, the
power-down state is not canceled until the next canceling factor interrupt is generated (see figure
18.6).
When the SLPIE bit is set to 1 in the service routine for a canceling factor interrupt so that the
execution of a SLEEP instruction will produce sleep instruction exception handling, the operation
of the system is as shown in figure 18.7. Even if a canceling factor interrupt is generated
immediately before the SLEEP instruction is executed, sleep instruction exception handling is
initiated by execution of the SLEEP instruction. Therefore, the CPU executes the instruction that
follows the SLEEP instruction after sleep instruction exception and exception service routine
without shifting to the power-down state.
When the SLPIE bit is set to 1 to start sleep exception handling, clear the SSBY bit in SBYCR
to 0.
Содержание H8SX/1650
Страница 2: ...Rev 2 00 Jun 28 2007 Page ii of xxii...
Страница 106: ...Section 4 Exception Handling Rev 2 00 Jun 28 2007 Page 84 of 666 REJ09B0311 0200...
Страница 142: ...Section 5 Interrupt Controller Rev 2 00 Jun 28 2007 Page 120 of 666 REJ09B0311 0200...
Страница 326: ...Section 8 I O Ports Rev 2 00 Jun 28 2007 Page 304 of 666 REJ09B0311 0200...
Страница 470: ...Section 12 Watchdog Timer WDT Rev 2 00 Jun 28 2007 Page 448 of 666 REJ09B0311 0200...
Страница 546: ...Section 13 Serial Communication Interface SCI Rev 2 00 Jun 28 2007 Page 524 of 666 REJ09B0311 0200...
Страница 566: ...Section 14 A D Converter Rev 2 00 Jun 28 2007 Page 544 of 666 REJ09B0311 0200...
Страница 574: ...Section 16 RAM Rev 2 00 Jun 28 2007 Page 552 of 666 REJ09B0311 0200...
Страница 584: ...Section 17 Clock Pulse Generator Rev 2 00 Jun 28 2007 Page 562 of 666 REJ09B0311 0200...
Страница 638: ...Section 19 List of Registers Rev 2 00 Jun 28 2007 Page 616 of 666 REJ09B0311 0200...
Страница 668: ...Section 20 Electrical Characteristics Rev 2 00 Jun 28 2007 Page 646 of 666 REJ09B0311 0200...
Страница 676: ...Appendix Rev 2 00 Jun 28 2007 Page 654 of 666 REJ09B0311 0200...
Страница 688: ...Rev 2 00 Jun 28 2007 Page 666 of 666 REJ09B0311 0200...
Страница 691: ......
Страница 692: ...H8SX 1650 Group Hardware Manual...