beautypg.com

3 notes on use, Application – Renesas 4514 User Manual

Page 165

background image

APPLICATION

2-62

4513/4514 Group User’s Manual

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 : 0000

2

at RAM back-up : state retained

R/W

This bit has no function, but read/write is enabled.

Falling waveform (“L” level of INT1 pin is recognized

with the SNZI1 instruction)/“L” level

Rising waveform (“H” level of INT1 pin is recognized

with the SNZI1 instruction)/“H” level

One-sided edge detected

Both edges detected

Disabled

Enabled

Not used

Interrupt valid waveform for INT1

pin/return level selection bit

(Note 2)

INT1 pin edge detection circuit

control bit

INT1 pin

timer 3 control enable bit

0

1

0

1

0

1

0

1

I2

3

I2

2

I2

1

I2

0

Notes 1: “R” represents read enabled, and “W” represents write enabled.

2: When the contents of I2

2

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).

This manual is related to the following products: