English
Language : 

M16C30P_07 Datasheet, PDF (91/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
11. Interrupt
11.6 INT Interrupt
INTi interrupt (i=0 to 4) 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).
After modifying the IFSR6 bit, clear the corresponding IR bit to “0” (= interrupt not requested) before enabling the
interrupt.
Figure 11.11 shows the IFSR and IFSR2A Registers.
Interrupt Factor Select Register
b7 b6 b5 b4 b3 b2 b1 b0
00
Symbol
IFSR
Address
035Fh
After Reset
00h
Bit Symbol
Bit Name
Function
RW
INT0 Interrupt Polarity Sw itching Bit
0 : One edge
IFSR0
1 : Both edges (1)
RW
INT1 Interrupt Polarity Sw itching Bit
0 : One edge
IFSR1
1 : Both edges (1)
RW
INT2 Interrupt Polarity Sw itching Bit
0 : One edge
IFSR2
1 : Both edges (1)
RW
INT3 Interrupt Polarity Sw itching Bit
0 : One edge
IFSR3
1 : Both edges (1)
RW
INT4 Interrupt Polarity Sw itching Bit
0 : One edge
IFSR4
1 : Both edges (1)
RW
—
Reserved Bit
Set to “0”.
(b5)
RW
Interrupt Request Factor Select Bit
0 : Do not set
IFSR6
_____
RW
1 : INT4
—
Reserved Bit
Set to “0”.
(b7)
RW
NOTES :
1. When setting this bit to “1” (= both edges), make sure the POL bit in the INT0IC to INT4IC register are set to “0” (=
falling edge).
Interrupt Factor Select Register 2
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
IFSR2A
Address
035Eh
After Reset
00XXXXXXb
Bit Symbol
Bit Name
Function
RW
—
Nothing is assigned. When w rite, set to “0”.
(b5-b0) When read, their contents are indeterminate.
—
Interrupt Request Factor Select Bit (1) 0 : Do not set
IFSR26
1 : UART0 bus collision detection
RW
Interrupt Request Factor Select Bit (2) 0 : Do not set
IFSR27
1 : UART1 bus collision detection
RW
NOTES :
1. When using UART0 bus collision detection, set the IFSR26 bit to “1”.
2. When using UART1 bus collision detection, set the IFSR27 bit to “1”.
Figure 11.11 IFSR and IFSR2A Registers
Rev.1.22 Mar 29, 2007 Page 75 of 291
REJ09B0179-0122