Download Print this page

Renesas M16C/50 Series User Manual page 279

Advertisement

M16C/5L Group, M16C/56 Group
15.2.11 One-Shot Start Flag (ONSF)
One-Shot Start Flag
b7 b6 b5 b4
b3
b2
b1
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
15.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.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
ONSF
Bit Name
Bit Symbol
TA0OS
Timer A0 one-shot start flag
TA1OS
Timer A1 one-shot start flag
TA2OS
Timer A2 one-shot start flag
TA3OS
Timer A3 one-shot start flag
TA4OS
Timer A4 one-shot start flag
Z-phase input enable bit
TAZIE
TA0TGL
Timer A0 event/trigger select
bit
TA0TGH
Address
0322h
Function
The timer starts counting by setting this bit
to 1. The read values are 0.
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
15. Timer A
Reset Value
00h
RW
RW
RW
RW
RW
RW
RW
RW
RW
Page 242 of 803

Advertisement

loading