
R8C/14 Group, R8C/15 Group 11. Interrupt
Rev.2.10 Jan 19, 2006 Page 71 of 253
REJ09B0164-0210
11.2.3 INT1 Interrupt
The INT1 interrupt is generated by INT1 inputs. The edge polarity is selected by the R0EDG bit in the
TXMR register.
When the CNTRSEL bit in the UCON register is set to “0”, the INT10
pin becomes the INT1 input pin.
When the CNTRSEL bit is set to “1”, the INT11
pin becomes the INT1 input pin.
The INT10
pin is shared with the CNTR00 pin and the INT11 pin is shared with the CNTR01 pin.
Figure 11.14 shows the TXMR Register when INT1
Interrupt is Used.
Figure 11.14 TXMR Register when INT1
Interrupt is Used
Timer X Mode Register
Symbol Address After Reset
TXMR
008Bh 00h
Bit Symbol Bit Name Function RW
INT1
____
/CNTR0 Polarity Sw itch
Bit
(2)
P3_7/CNTR0
_______
Select Bit
NOTES :
1.
2.
3.
RW
TXOCNT
Function varies depending on operating mode
TXS
Timer X Count Start Flag
(3)
0 : Stops counting
1 : Starts counting
Operating Mode Select Bit 0,
1
(1)
b1 b0
0 0 : Timer mode or pulse period measurement
mode
0 1 : Do not set
1 0 : Event count mode
1 1 : Pulse width measurement mode
b3 b2 b1 b0b7 b6 b5 b4
TXMOD0
TXEDG RW
RW
TXMOD1 RW
R0EDG RW
0 : Rising edge
1 : Falling edge
Function varies depending on operating modeActive Edge Reception Flag
RW
TXMOD2
Operating Mode Select
Bit 2
0 : Other than pulse period measurement mode
1 : Pulse period measurement mode
RW
Refer to
20.4.2 Timer X
for precautions on the TXS bit.
TXUND RW
When using INT1
____
interrupt, select modes other than pulse output mode.
The IR bit in the INT1IC register may be set to “1” (requests interrupt) w hen the R0EDG bit is rewritten. Refer to
20.2.5 Changing Interrupt Factor.
Timer X Underflow Flag Function varies depending on operating mode
Comentarios a estos manuales