|
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
|
▷ |