English
Language : 

4513_03 Datasheet, PDF (165/210 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.9 RAM back-up
(4) Interrupt control register I2
The interrupt valid waveform for INT1 pin/return level selection bit is assigned to bit 2, the INT1 pin
edge detection circuit control bit is assigned to bit 1, and the INT1 pin timer 1 control enable bit is
assigned to bit 1.
Set the contents of this register through register A with the TI2A instruction.
In addition, the TAI2 instruction can be used to transfer the contents of register I2 to register A.
Table 2.9.7 shows the interrupt control register I2.
Table 2.9.7 Interrupt control register I2
Interrupt control register I2
at reset : 00002 at RAM back-up : state retained R/W
I23 Not used
0
This bit has no function, but read/write is enabled.
1
Falling waveform (“L” level of INT1 pin is recognized
Interrupt valid waveform for INT1 0
with the SNZI1 instruction)/“L” level
I22 pin/return level selection bit
Rising waveform (“H” level of INT1 pin is recognized
(Note 2)
1
with the SNZI1 instruction)/“H” level
INT1 pin edge detection circuit 0 One-sided edge detected
I21
control bit
1 Both edges detected
INT1 pin
I20
timer 3 control enable bit
0 Disabled
1 Enabled
Notes 1: “R” represents read enabled, and “W” represents write enabled.
2: When the contents of I22 is changed, the external interrupt request flag EXF1 may be set.
Accordingly, clear EXF1 flag with the SNZ1 instruction.
2.9.3 Notes on use
(1) Key-on wakeup function
After setting ports (P1 specified with register PU0 and P0) which key-on wakeup function is valid to
“H,” execute the POF instruction.
“L” level is input to the falling edge detection circuit even if one of ports which key-on wakeup
function is valid is in the “L” level state, and the edge is not detected.
(2) POF instruction
Execute the POF instruction immediately after executing the EPOF instruction to enter the RAM
back-up state.
Note that system cannot enter the RAM back-up state when executing only the POF instruction.
Be sure to disable interrupts by executing the DI instruction before executing the EPOF instruction.
(3) Return from RAM back-up
After system returns from RAM back-up, set the undefined registers and flags.
Especially, be sure to set data pointer (registers Z, X, Y).
2-62
4513/4514 Group User’s Manual