![Renesas M16C/62P Group Скачать руководство пользователя страница 135](http://html1.mh-extra.com/html/renesas/m16c-62p-group/m16c-62p-group_hardware-manual_1440174135.webp)
M16C/62P Group (M16C/62P, M16C/62PT)
12. Interrupt
Rev.2.41
Jan 10, 2006
Page 120 of 390
REJ09B0185-0241
12.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.
INT4 and INT5 share the interrupt vector and interrupt control register with SI/O3 and SI/O4, respectively. 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 modifying the IFSR6 or IFSR7 bit, clear the corresponding IR bit to “0” (= interrupt not requested) before
enabling the interrupt.
Figure 12.11 shows the IFSR and IFSR2A Registers.
Figure 12.11
IFSR and IFSR2A Registers
Interrupt Factor Select Register
Symbol
Address
After Reset
IFSR
035Fh
00h
Bit Symbol
Bit Name
Function
RW
0 : SI/O3
(3)
1 : INT4
_____
0 : SI/O4
(3)
1 : INT5
_____
NOTES :
1.
2.
3. When setting this bit to “0” (= SI/O3, SI/O4), make sure the POL bit in the S3IC and S4IC registers are set to “0”
(= f alling edge).
INT2 Interrupt Polarity Sw itching Bit
0 : One edge
1 : Both edges
(1)
RW
0 : One edge
1 : Both edges
(1)
During memory expansion and microprocessor modes, w hen the data bus is 16 bits w ide (BYTE pin is "L"), set
this bit to “0” (= SI/O3, SI/O4).
0 : One edge
1 : Both edges
(1)
INT4 Interrupt Polarity Sw itching Bit
IFSR6
When setting this bit to “1” (= both edges), make sure the POL bit in the INT0IC to INT5IC register are set to “0”
(= f alling edge).
IFSR7
RW
RW
IFSR0
Interrupt Request Factor Select Bit
(2)
IFSR3
INT3 Interrupt Polarity Sw itching Bit
IFSR5
INT5 Interrupt Polarity Sw itching Bit
IFSR4
b3 b2 b1 b0
b7 b6 b5 b4
RW
IFSR1
RW
IFSR2
RW
0 : One edge
1 : Both edges
(1)
INT0 Interrupt Polarity Sw itching Bit
0 : One edge
1 : Both edges
(1)
INT1 Interrupt Polarity Sw itching Bit
0 : One edge
1 : Both edges
(1)
RW
Interrupt Request Factor Select Bit
(2)
RW
Interrupt Factor Select Register 2
Symbol
Address
After Reset
IFSR2A
035Eh
00XXXXXXb
Bit Symbol
Bit Name
Function
RW
NOTES :
1.
2.
Timer B3 and UART0 bus collision detection share the vector and interrupt control register. When using Timer B3
interrupt, clear the IFSR26 bit to “0” (Timer B3). When using UART0 bus collision detection, set the IFSR26 bit to “1”.
Timer B4 and UART1 bus collision detection share the vector and interrupt control register. When using Timer B4
interrupt, clear the IFSR27 bit to “0” (Timer B4). When using UART1 bus collision detection, set the IFSR27 bit to “1”.
b1
Nothing is assigned. When w rite, set to “0”.
When read, their contents are indeterminate.
b3 b2
b0
b7 b6 b5 b4
IFSR27
0 : Timer B3
1 : UART0 bus collision detection
RW
—
(b5-b0)
—
IFSR26
RW
0 : Timer B4
1 : UART1 bus collision detection
Interrupt Request Factor Select Bit
(2)
Interrupt Request Factor Select Bit
(1)
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655