English
Language : 

4583 Datasheet, PDF (56/153 Pages) Renesas Technology Corp – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4583 Group
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
RAM BACK-UP MODE
The 4583 Group has the RAM back-up mode.
When the EPOF and POF instructions are executed continuously,
system enters the RAM back-up state. The POF instruction is
equal to the NOP instruction when the EPOF instruction is not ex-
ecuted before the POF instruction.
As oscillation stops retaining RAM, the function of reset circuit and
states at RAM back-up mode, current dissipation can be reduced
without losing the contents of RAM. Table 16 shows the function
and states retained at RAM back-up. Figure 47 shows the state
transition.
(1) Identification of the start condition
Warm start (return from the RAM back-up state) or cold start (re-
turn from the normal reset state) can be identified by examining the
state of the powerdown flag (P) with the SNZP instruction.
(2) Warm start condition
When the external wakeup signal is input after the system enters
the RAM back-up state by executing the EPOF and POF instruc-
tions continuously, the CPU starts executing the program from
address 0 in page 0. In this case, the P flag is “1.”
(3) Cold start condition
The CPU starts executing the program from address 0 in page 0
when;
• reset pulse is input to RESET pin, or
• reset by watchdog timer is performed, or
• voltage drop detection circuit detects the voltage drop, or
• SRST instruction is executed.
In this case, the P flag is “0.”
Table 16 Functions and states retained at RAM back-up
Function
RAM back-up
Program counter (PC), registers A, B,
✕
carry flag (CY), stack pointer (SP) (Note 2)
Contents of RAM
O
Interrupt control registers V1, V2
✕
Interrupt control registers I1, I2
O
Selection of oscillation circuit
O
Clock control register MR
✕
Timer 1 function
(Note 3)
Timer 2 function
(Note 3)
Timer 3 function
(Note 3)
Timer 4 function
Watchdog timer function
Timer control register PA, W4
(Note 3)
✕ (Note 4)
✕
Timer control registers W1 to W3, W5, W6
O
A/D conversion function
✕
A/D control registers Q1 to Q3
O
Voltage drop detection circuit
(Note 5)
Port level
(Note 6)
Key-on wakeup control register K0 to K2
O
Pull-up control registers PU0, PU1
O
Port output direction registers FR0 to FR2
O
External 0 interrupt request flag (EXF0)
✕
External 1 interrupt request flag (EXF1)
✕
Timer 1 interrupt request flag (T1F)
(Note 3)
Timer 2 interrupt request flag (T2F)
(Note 3)
Timer 3 interrupt request flag (T3F)
(Note 3)
Timer 4 interrupt request flag (T4F)
A/D conversion completion flag (ADF)
Interrupt enable flag (INTE)
Watchdog timer flags (WDF1, WDF2)
Watchdog timer enable flag (WEF)
(Note 3)
✕
✕
✕ (Note 4)
✕ (Note 4)
Notes 1:“O” represents that the function can be retained, and “✕” repre-
sents that the function is initialized.
Registers and flags other than the above are undefined at RAM
back-up, and set an initial value after returning.
2: The stack pointer (SP) points the level of the stack register and is
initialized to “7” at RAM back-up.
3: The state of the timer is undefined.
4: Initialize the watchdog timer with the WRST instruction, and then
execute the POF instruction.
5: The voltage drop detection circuit is valid at RAM back-up when
the SVDE instruction is executed while VDCE pin is “H”.
6: In the RAM back-up mode, C/CNTR1 pin outputs “L” level.
However, when the CNTR input is selected (W11, W10=“11”), C/
CNTR1 pin is in an input enabled state (output=high-impedance).
Other ports retain their respective output levels.
Rev.3.00 Aug 06, 2004 page 56 of 151
REJ03B0009-0300Z