R01UH0136EJ0210 Rev.2.10
Page 264 of 800
Jul 31, 2012
M16C/64A Group
17. Timer A
17.2.11 Trigger Select Register (TRGSR)
TA1TGH-TA1TGL (Timer A1 event/trigger select bit) (b1-b0)
TA2TGH-TA2TGL (Timer A2 event/trigger select bit) (b3-b2)
TA3TGH-TA3TGL (Timer A3 event/trigger select bit) (b5-b4)
TA4TGH-TA4TGL (Timer A4 event/trigger select bit) (b7-b6)
These bits are used to select an event or a trigger of the following modes:
•
An event in event counter mode (when not using two-phase pulse signal processing)
•
A trigger in one-shot timer mode, PWM mode, or programmable output mode
The above applies when the MR2 bit in the TAiMR register is 1 (trigger selected by setting bits
TAiTGH to TAiTGL).
When bits TAiTGH to TAiTGL are 00b, the active edge of input signals can be selected by setting the
MR1 bit in the TAiMR register.
When bits TAiTGH to TAiTGL are set to 01b, 10b, or 11b, an event or a trigger occurs when an interrupt
request of the selected timer is generated. An event or trigger can occur while interrupts are disabled
because an interrupt request signal is generated regardless of the I flag, IPL, or interrupt control
registers.
b7 b6 b5 b4
b1
b2
b3
Symbol
TRGSR
Address
0323h
Reset Value
00h
b0
Function
Bit Symbol
Bit Name
RW
Trigger Select Register
b1 b0
0 0 : Input on TA1IN selected
0 1 : TB2 selected
1 0 : TA0 selected
1 1 : TA2 selected
Timer A1 event/trigger
select bit
RW
RW
TA1TGH
TA1TGL
b3 b2
0 0 : Input on TA2IN selected
0 1 : TB2 selected
1 0 : TA1 selected
1 1 : TA3 selected
Timer A2 event/trigger
select bit
RW
RW
TA2TGH
TA2TGL
b5 b4
0 0 : Input on TA3IN selected
0 1 : TB2 selected
1 0 : TA2 selected
1 1 : TA4 selected
Timer A3 event/trigger
select bit
RW
RW
TA3TGH
TA3TGL
b7 b6
0 0 : Input on TA4IN selected
0 1 : TB2 selected
1 0 : TA3 selected
1 1 : TA0 selected
Timer A4 event/trigger
select bit
RW
RW
TA4TGH
TA4TGL
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...