APPLICATION
2.8 Standby function
3825 GROUP USER’S MANUAL
2–188
sRestoration by an interrupt request
In the wait mode, the occurrence of an interrupt request releases the wait mode and the supplying the
internal clock
φ to the CPU is started. At the same time, the interrupt request used for restoration is
accepted, so the interrupt processing routine is executed.
However, to use an interrupt for restoration from the wait mode, after setting the following, execute
the WIT instruction in order to enable the interrupt to be used.
[Necessary register setting]
Interrupt disable flag I = “0” (interrupts enabled)
Interrupt request bit of the interrupt source to be used for restoration = “0” (no interrupt request
issued)
Interrupt enable bit of the interrupt source to be used for restoration = “1” (interrupts enabled)
For interrupts, refer to “2.2 Interrupts.”
(3) Notes on the wait mode
sRestoration by INT0 to INT3 interrupt requests
Each INT pin (INT0, INT1, INT2, INT3) is also used as ports P42, P43, P50 or P51 and each key input
pin is also used as port P2. To use INT0 to INT3 interrupts, set the corresponding bits of the following
direction registers to “0” for setting the input mode. And then, execute the WIT instruction.
Port P4 direction register (address 000916)
Port P5 direction register (address 000B16)
sRestoration by key input interrupt request
The pins for a key input interrupt is also used as port P2. To use a key input interrupt, set the
corresponding bits of the port P2 direction register (address 000516) to “0” for setting the input mode.
And then, execute the WIT instruction.
sRegister setting
To use the above interrupt requests for restoration from the stop mode, after setting the following,
execute the WIT instruction in order to enable the interrupt request to be used.
[Necessary register setting]
Interrupt disable flag I = “0” (interrupts enabled)
Interrupt request bit of the interrupt source to be used for restoration = “0” (no interrupts request
issued)
Interrupt enable bit of the interrupt source to be used for restoration = “1” (interrupts enabled)