Int1 Interrupt And Int2 Interrupt - Renesas M16C FAMILY Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY:
Table of Contents

Advertisement

Under development
Preliminary specification
Specifications in this manual are tentative and subject to change.
R8C/11 Group
______

10.2.3 INT1 Interrupt and INT2 Interrupt

______
INT1 interrupts are triggered by INT1 inputs. The edge polarity is selected with the R0EDG bit in the
TXMR register. The INT1 pin can be used only when the Timer X is in timer mode because the INT1
pin shares the same pin with the CNTR0 pin.
______
INT2 interrupts are triggered by INT2 inputs. The edge polarity is selected with the R1EDG bit in the
TYZMR register. The INT2 pin can be used only when the Timer Y is in timer mode because the INT2
pin shares the same pin 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
0 0
0
0
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 Source" 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
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 Source" in the Usage Notes Reference Book.
Figure 10.13 TXMR Register and TYZMR Register when INT1 and INT2 Interrupt Used
Rev.0.91
2003 Sep 08
______
______
______
______
______
Symbol
TXMR
0
0
Bit symbol
Bit name
Operation mode
TXMOD0
select bit 0, 1
TXMOD1
INT1/CNTR
R0EDG
switching bit
Timer X count
TXS
start flag
TXOCNT
Must set to "0" in timer mode
Operation mode
TXMOD2
select bit 2
TXEDG
Must set to "0" in timer mode
Must set to "0" in timer mode
TXUND
Symbol
TYZMR
0
Bit symbol
Bit name
Timer Y operation
TYMOD0
mode bit
INT2/CNTR1 polarity
R1EDG
switching bit
Timer Y write
TYWC
control bit
Timer Y count
TYS
start flag
Timer Z-related bit
TZMOD0
TZMOD1
TZWC
TZS
page 62 of 184
Address
After reset
008B
00
16
16
Function
b1 b0
0 0 : Timer mode or pulse period
measurement mode
polarity
0
0 : Rising edge
1, 2
1 : Falling edge
0 : Stops counting
1 : Starts counting
0 : Other than pulse period measurement
3
mode
Address
After reset
0080
00
16
16
Function
1
0 : Timer mode
0 : Rising edge
2
1 : Falling edge
0 : Write to reload register and counter
simultaneously
1 : Write to reload register
0 : Stops counting
1 : Starts counting
______
10.2 INT Interrupt
______
_____
RW
RW
3
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
______
______
______
______

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents