English
Language : 

4509 Datasheet, PDF (52/142 Pages) Renesas Technology Corp – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4509 Group
(4) Return signal
An external wakeup signal is used to return from the RAM back-up
mode because the oscillation is stopped. Table 20 shows the return
condition for each return source.
(5) Control registers
• Key-on wakeup control register K0
Register K0 controls the port P0 key-on wakeup function. Set the
contents of this register through register A with the TK0A instruc-
tion. In addition, the TAK0 instruction can be used to transfer the
contents of register K0 to register A.
• Key-on wakeup control register K1
Register K1 controls the port P1 key-on wakeup function. Set the
contents of this register through register A with the TK1A instruc-
tion. In addition, the TAK1 instruction can be used to transfer the
contents of register K1 to register A.
• Key-on wakeup control register K2
Register K2 controls the ports P2, D2 and D3 key-on wakeup func-
tion. Set the contents of this register through register A with the
TK2A instruction. In addition, the TAK2 instruction can be used to
transfer the contents of register K2 to register A.
• Key-on wakeup control register L1
Register L1 controls the selection of the return condition and valid
waveform/level of port P1, and the selection of the INT pin return
condition and INT pin key-on wakeup function. Set the contents of
this register through register A with the TL1A instruction. In addi-
tion, the TAL1 instruction can be used to transfer the contents of
register L1 to register A.
• Pull-up control register PU0
Register PU0 controls the ON/OFF of the port P0 pull-up transis-
tor. Set the contents of this register through register A with the
TPU0A instruction. In addition, the TAK1 instruction can be used to
transfer the contents of register K0 to register A.
• Pull-up control register PU1
Register PU1 controls the ON/OFF of the port P1 pull-up transis-
tor. Set the contents of this register through register A with the
TPU1A instruction. In addition, the TAPU1 instruction can be used
to transfer the contents of register PU1 to register A.
• Pull-up control register PU2
Register PU2 controls the ON/OFF of the ports P2, D2 and D3 pull-
up transistor. Set the contents of this register through register A
with the TPU2A instruction. In addition, the TAPU2 instruction can
be used to transfer the contents of register PU2 to register A.
• Interrupt control register I1
Register I1 controls the valid waveform/level of the external 0 inter-
rupt and the input control of INT pin. Set the contents of this
register through register A with the TI1A instruction. In addition, the
TAI1 instruction can be used to transfer the contents of register I1
to register A.
Table 20 Return source and return condition
Return source
Return condition
Port P00–P03
Port P20, P21
Port D2, D3
Return by an external “L” level in-
put.
Port P10–P13 Return by an external “H” level or
“L” level input, or falling edge
(“H”→“L”) or rising edge (“L”→“H”).
INT pin
Return by an external “H” level or
“L” level input, or falling edge
(“H”→“L”) or rising edge (“L”→“H”).
When the return level is input, the
EXF0 flag is not set.
Remarks
The key-on wakeup function can be selected by one port unit. Set the port
using the key-on wakeup function to “H” level before going into the RAM
back-up state.
The key-on wakeup function can be selected by one port unit. Select the
return level (“L” level or “H” level) and return condition (level or edge) with
the register L1 according to the external state before going into the RAM
back-up state.
Before going into the RAM backup state, set an opposite level of the
selected return level (edge) to the port using the key-on wakeup function.
The key-on wakeup function can be selected by one port unit. Select the
return level (“L” level or “H” level) with the register I1 and return condition
(level or edge) with the register L1 according to the external state before
going into the RAM back-up state.
Rev.1.02 2006.12.22 page 52 of 140
REJ03B0147-0102