INTERRUPTS
6.10 External interrupts
6.10.2 Functions of INT
Figure 6.10.4 shows an INT
i
interrupt request bit
interrupt request.
i
(1) Functions when edge sense is selected
In this case, the interrupt request bit has the same function as that of an internal interrupt. That is,
when an interrupt request occurs, the interrupt request bit is set to “1” and retains this state until the
interrupt request is accepted. When this bit is cleared to “0” by software, the interrupt request is
cancelled; when this bit is set to “1” by software, the interrupt request can occur.
(2) Functions when level sense is selected
In this case, the interrupt request bit is ignored.
➀1
INT
i
interrupt requests continuously occur while the level at pin INT is the valid level ; when the level
i
➀2
at pin INT
i
changes from the valid level to the invalid level before the corresponding INT interrupt
i
request is accepted, this interrupt request is not retained. (See Figure 6.10.5.)
➀1
Valid level : This means the level selected by the polarity select bit (bit 4 at addresses 6E16, 6F16
,
FD16 to FF16
)
➀2
Invalid level : This means the reversed level of “valid level”
Data bus
Level sense/Edge sense
select bit
Edge detection
0
Pin INT
i
Interrupt request bit
circuit
Interrupt request
1
Fig. 6.10.4 INT
i
Interrupt request
When the level at pin INTi changes
to the invalid level before the INT
i
interrupt request is accepted, this
interrupt request is not retained.
Interrupt request is accepted.
Return to main routine.
Valid
Level at pin INT
i
Invalid
Main routine
Main routine
First interrupt routine
Second interrupt
routine
Third interrupt
routine
Fig. 6.10.5 Occurrence of INT
i
interrupt request when level sense is selected
7906 Group User’s Manual Rev.2.0
6-21