
R8C/10 Group
Rev.1.20 Jan 27, 2006 page 47 of 180
REJ09B0019-0120
_______
10.2.2 INT0 Input Filter
_______
The INT0 input has a digital filter which can be sampled by one of three sampling clocks. The sampling
clock is selected using the INT0F1 to INT0F0 bits in the INT0F register. The IR bit in the INT0IC
register is set to “1” (interrupt requested) when the sampled input level matches three times. When the
INT0F1 to INT0F0 bits are set to “012”, “102”, or “112”, the P4_5 bit in the P4 register indicates the
filtered value.
_____
Figure 10.11 shows the INT0 input filter configuration. Figure 10.12 shows an operation example of
_____
INT0 input filter.
______
Figure 10.11 INT0 Input Filter
Digital filter
(input level
matches 3x)
Port P45
direction
register
f
1
f
8
f
32
INT0
INT0 interrupt
INT0EN
INT0F1 to INT0F0
=01
2
=10
2
=11
2
INT0F1 to INT0F0
=00
2
=00
2
P4_5 bit
Other than
Sampling clock
INT0F0, INT0F1: Bits in INT0F register
INT0EN: Bit in INTEN register
______
Figure 10.12 Operation Example of INT0 Input Filter
P45 input
Sampling
timing
P4_5 in
P4 register
IR bit in
INT0IC register
Set to “0” in program
This is an operation example when the INT0F1 to INT0F0 bits in the
INT0F register is set to “01
2
”, “10
2
”, or “11
2
” (passing digital filter).
10.2 INT Interrupt
Commentaires sur ces manuels