R01UH0092EJ0110 Rev.1.10
Page 264 of 807
Jul 31, 2012
M16C/64C Group
17. Timer A
17.2.11 One-Shot Start Flag (ONSF)
TAiOS (Timer Ai one-shot start flag) (b4-b0) (i = 0 to 4)
This bit is enabled in one-shot timer mode. When the MR2 bit in the TAi register is 0 (TAiOS bit
enabled), the timer Ai count starts by setting the TAiOS bit to 1 after setting the TAiS bit in the TABSR
register to 1 (start counting).
TAZIE (Z-phase input enable bit) (b5)
This bit is used in event counter mode (two-phase pulse signal processing) of timer A3. Refer to
17.3.4.3 “Counter Initialization Using Two-Phase Pulse Signal Processing” for details.
TA0TGH-TA0TGL (Timer A0 event/trigger select bit) (b7-b6)
These bits are used to select an event or a trigger in the following modes:
•
An event in event counter mode (when not using two-phase pulse signal processing)
•
A trigger in one-shot timer mode or PWM mode
The above applies when the MR2 bit in the TA0MR register is 1 (trigger selected by setting bits
TA0TGH to TA0TGL).
When bits TA0TGH to TA0TGL are 00b, the active edge of input signals can be selected by setting the
MR1 bit in the TA0MR register.
When bits TA0TGH to TA0TGL are set to 01b, 10b, or 11b, an event or a trigger occurs when an
interrupt request for 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
ONSF
Address
0322h
Reset Value
00h
b0
Function
Bit Symbol
Bit Name
RW
TAZIE
TA0TGH
RW
RW
RW
Z-phase input enable bit
Timer A0 event/trigger select
bit
TA0TGL
One-Shot Start Flag
0 : Z-phase input disabled
1 : Z-phase input enabled
b7 b6
0 0 : Input on TA0IN pin selected
0 1 : Timer B2 selected
1 0 : Timer A4 selected
1 1 : Timer A1 selected
Timer A3 one-shot start flag
RW
RW
TA4OS
TA3OS
Timer A4 one-shot start flag
Timer A1 one-shot start flag
TA1OS
RW
Timer A2 one-shot start flag
RW
TA2OS
The timer starts counting by setting this bit
to 1. The read values are 0.
Timer A0 one-shot start flag
TA0OS
RW
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...