Renesas M16C/26A Series Hardware Manual page 95

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6
______
9.6 INT Interrupt
_______
INTi interrupt (i=0 to 5) is triggered by the edges of external inputs. The edge polarity is selected using the
IFSRi bit in the IFSR register.
________
To use the INT4 interrupt, set the IFSR6 bit in the IFSR register to "1" (=INT4). To use the INT5 interrupt, set
the IFSR7 bit in the IFSR register to "1" (=INT5).
After modifiying the IFSR6 or IFSR7 bit, clear the corresponding IR bit to "0" (=interrupt not requested)
before enabling the interrupt.
________
The INT5 input has an effective digital debounce function for a noize rejection. Refer to 16.6 Digital
Debounce function for this detail. When using INT5 interrupt to exit stop mode, set the P17DDR register
to "FF
" before entering stop mode.
16
Figure 9.6.1 shows the IFSR register.
Interrupt request cause select register
b7
b6
b5
b4
NOTE:
1. When setting this bit to "1" (= both edges), make sure the POL bit in the INT0IC to INT5IC register is set to
"0" (= falling edge).
Figure 9.6.1. IFSR Register
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
6
b3
b2
b1
b0
Symbol
IFSR
Bit symbol
IFSR0
INT0 interrupt polarity
switching bit
IFSR1
INT1 interrupt polarity
switching bit
IFSR2
INT2 interrupt polarity
switching bit
IFSR3
INT3 interrupt polarity
switching bit
IFSR4
INT4 interrupt polarity
switching bit
IFSR5
INT5 interrupt polarity
switching bit
IFSR6
Interrupt request cause
select bit
IFSR7
Interrupt request cause
select bit
page 76
f o
3
2
9
C
2 /
6
) T
________
________
Address
035F
16
Bit name
________
________
After reset
00
16
Function
0 : One edge
1 : Both edges
(1)
0 : One edge
1 : Both edges
(1)
0 : One edge
1 : Both edges
(1)
0 : One edge
(1)
1 : Both edges
0 : One edge
1 : Both edges
(1)
0 : One edge
(1)
1 : Both edges
0 : Reserved
1 : INT4
0 : Reserved
1 : INT5
9. Interrupt
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents