______
R8C/13 Group
10.2 INT Interrupt
______
______
10.2.3 INT1 Interrupt and INT2 Interrupt
______
______
INT1 interrupts are triggered by INT1 inputs. The edge polarity can be selected with the R0EDG bit in
______
the TXMR register. The INT1 pin is shared with the CNTR0 pin.
______
______
INT2 interrupts are triggered by INT2 inputs. The edge polarity can be selected with the R1EDG bit in
______
the TYZMR register. The INT2 pin shared with the CNTR1 pin.
______
_____
Figure 10.13 shows the TXMR and TYZMR registers when using INT1 and INT2 interrupts.
Timer X mode register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TXMR
Address
008B16
After reset
0016
0
0
0
0
0
0
RW
RW
Bit symbol
TXMOD0
Function
Bit name
b1 b0
Operation mode
select bit 0, 1
0 0 : Timer mode or pulse period
measurement mode(3)
TXMOD1
R0EDG
RW
RW
RW
RW
RW
RW
RW
INT1/CNTR0 polarity
0 : Rising edge
1 : Falling edge
switching bit(1, 2)
Timer X count
start flag
0 : Stops counting
1 : Starts counting
TXS
TXOCNT
Set to "0" in timer mode
0 : Other than pulse period measurement
mode(3)
Operation mode
select bit 2
TXMOD2
TXEDG
TXUND
Set to "0" in timer mode
Set to "0" in timer mode
NOTES:
1. The IR bit in the INT1IC may be set to “1” (interrupt requested) when the R0EDG bit is rewritten. Refer to the
paragraph 19.2.5 “Changing Interrupt Factor” in the Usage Notes Reference Book.
2. This bit is used to select the polarity of INT1 interrupt in timer mode.
3. When using INT1 interrupts, should select timer mode.
Timer Y, Z mode register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TYZMR
Address
008016
After reset
0016
0
Bit symbol
TYMOD0
Function
RW
RW
Bit name
0 : Timer mode(1)
Timer Y operation
mode bit
0 : Rising edge
1 : Falling edge
INT2/CNTR1 polarity
switching bit(2)
R1EDG
TYWC
RW
Functions varies depending on
the operation mode
Timer Y write
control bit
RW
RW
Timer Y count
start flag
0 : Stops counting
1 : Starts counting
TYS
Timer Z-related bit
TZMOD0
TZMOD1
RW
RW
TZWC
TZS
RW
RW
NOTES:
1. When using INT2 interrupts, must set to timer mode.
2. The IR bit in the INT2IC may be set to “1” (interrupt requested) when the R1EDG bit is rewritten.
Refer to the paragraph 19.2.5 “Changing Interrupt Factor” in the Usage Notes Reference Book.
______
______
Figure 10.13 TXMR Register and TYZMR Register when INT1 and INT2 Interrupt Used
Rev.1.20 Jan 27, 2006 page 62 of 205
REJ09B0111-0120