Fig. 2.2.4 Int1 Interrupt Setting Example - Renesas 4513 User Manual

4500 series 4-bit single-chip microcomputer
Table of Contents

Advertisement

APPLICATION
2.2 Interrupts
Disable Interrupts
INT1 interrupt is temporarily disabled.
Interrupt enable flag INTE
Interrupt control register V1
Set Port
Port used for INT1 interrupt is set to input port.
Set Valid Waveform
Valid waveform of INT pin is selected.
Both edges detection selected
Interrupt control register I2
Clear Interrupt Request
External interrupt activated condition is cleared.
INT1 interrupt request flag EXF1 "0"
Note when the interrupt request is cleared
When
interrupt request flag EXF1, insert the NOP instruction after the SNZ1 instruction.
Enable Interrupts
The INT1 interrupt which is temporarily disabled is enabled.
Interrupt control register V1
Interrupt enable flag INTE
" ": it can be "0" or "1."

Fig. 2.2.4 INT1 interrupt setting example

Note: The valid waveforms causing the interrupt must be retained at their level for 4 cycles or more
of system clock.
2-20
Port P3
output latch
1
is executed, considering the skip of the next instruction according to the
INT1 interrupt execution started
4513/4514 Group User's Manual
"0"
All interrupts disabled (DI instruction)
b3
b0
INT1 interrupt occurrence disabled
0
(TV1A instruction)
b3
b0
1
Set to input (OP3A instruction)
b3
b0
1
Both edges detection selected (TI2A instruction)
INT1 interrupt activated condition cleared
(SNZ1 instruction)
b3
b0
INT1 interrupt occurrence enabled
1
(TV1A instruction)
All interrupts enabled (EI instruction)
"1"

Advertisement

Table of Contents
loading

This manual is also suitable for:

4514

Table of Contents