English
Language : 

4524_M Datasheet, PDF (190/310 Pages) Renesas Technology Corp – 4-BIT CISC SINGLE-CHIP MICROCOMPUTER 720 FAMILY / 4500 SERIES
4524 Group
APPLICATION
2.2 Interrupts
➀ Disable Interrupts
External 1 interrupt is temporarily disabled.
Interrupt enable flag INTE 0
Interrupt control register V1
b3
b0
✕✕ 0 ✕
↓
➁ Set Port
Port used for external 1 interrupt is set to input port.
b3
b0
Register Y 1 0 0 1
Port D9 output latch 1
➂ Set Valid Waveform
Valid waveform of INT1 pin is selected.
Interrupt control register I2
↓
b3
b0
1 0 0✕
➃ Execute NOP Instruction
↓
[NOP]
↓
➄ Clear Interrupt Request
External 1 interrupt activated condition is cleared.
All interrupts disabled [DI]
b1: External 1 interrupt occurrence disabled [TV1A]
Specify bit position of port D [TYA]
Set to input [SD]
[TI2A]
b3: INT1 pin input enabled
b2, b1: One-sided edge detection and
falling waveform selected
External 1 interrupt request flag EXF1 0
External 1 interrupt activated condition cleared [SNZ1]
↓
( ) Note when the interrupt request is cleared
When ➄ is executed, considering the skip of the next instruction
according to the interrupt request flag EXF1,
insert the NOP instruction after the SNZ1 instruction.
↓
➅ Enable Interrupts
The External 1 interrupt which is temporarily disabled is enabled.
Interrupt control register V1
b3
b0
✕ ✕ 1 ✕ b1: External 1 interrupt occurrence enabled [TV1A]
Interrupt enable flag INTE 1
All interrupts enabled [EI]
↓
External 1 interrupt enabled state
“✕”: it can be “0” or “1.”
“[ ]”: instruction
Fig. 2.2.4 External 1 interrupt setting example
Note: The valid waveforms causing the interrupt must be retained at their level for 4 cycles or more
of system clock.
Rev.2.00 Aug, 06 2004
REJ09B0107-0200Z
2-26