|
3804H_M Datasheet, PDF (275/387 Pages) Renesas Technology Corp – 8-BIT CISC SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 38000 SERIES | |||
|
◁ |
3804 Group (Spec.H)
APPLICATION
2.12 Standby function
sRestoration by interrupt request
The occurrence of an interrupt request in the stop mode releases the stop mode. As a result,
oscillation is resumed. The interrupts available for restoration are:
â¢INT0âINT4
â¢CNTR0, CNTR1, CNTR2
â¢Serial I/O (1, 2, 3) using an external clock
â¢Timer X, Y, Z using an external event count
â¢SCL/SDA
However, when using any of these interrupt requests for restoration from the stop mode, in order to
enable the selected interrupt, you must execute the STP instruction after setting the following conditions.
[Necessary register setting]
â Interrupt disable flag I = â0â (interrupt enabled)
â Timer 1 interrupt enable bit = â0â (interrupt disabled)
â Interrupt request bit of interrupt source to be used for restoration = â0â (no interrupt request
issued)
â Interrupt enable bit of interrupt source to be used for restoration = â1â (interrupts enabled)
For more details concerning interrupts, refer to â2.2 Interruptsâ.
Oscillation is unstable when restarted. For this reason, time for stabilizing of oscillation (oscillation
stabilizing time) is required. For restoration by an interrupt request, waiting time prior to supplying
internal clock Ï to the CPU is automatically generatedâ½2 by Prescaler 12 and Timer 1â½1. This waiting
time is reserved as the oscillation stabilizing time on the system clock side. The supply of internal
clock Ï to the CPU is started at the Timer 1 underflow.
Figure 2.12.2 shows an execution sequence example at restoration by the occurrence of an INT0
interrupt request.
â½1: If the STP instruction is executed when the oscillation stabilizing time set after STP instruction
released bit is â0â, âFF16â and â0116â are automatically set in the Prescaler 12 counter/latch and
Timer 1 counter/latch, respectively. When the oscillation stabilizing time set after STP instruction
released bit is â1â, nothing is automatically set to either Prescaler 12 or Timer 1. For this reason,
any suitable value can be set to Prescaler 12 and Timer 1 for the oscillation stabilizing time.
â½2: Immediately after the oscillation is started, the count source is supplied to the prescaler 12 so
that a count operation is started.
Rev.1.00 Jan 14, 2005
REJ09B0212-0100Z
2-151
|
▷ |