
Technical Reference Manual
002-29852 Rev. *B
Bits Name
SW
HW
Default or
Enum
Description
COUNT_UPDN2
3
Count up (to PERIOD), then count down (to '0'). An
overflow event is generated when the counter changes
from a state in which COUNTER equals PERIOD. An
underflow event is generated when the counter
changes from a state in which COUNTER equals '0'. A
terminal count event is generated when the counter
changes from a state in which COUNTER equals '0'
AND when the counter changes from a state in which
COUNTER equals PERIOD (this counter direction can
be used for PWM functionality with asymmetrical
updates).
QUAD_RANGE0
0
In QUAD mode this setting selects the
QUAD_RANGE0 mode with the following behavior:
- COUNTER range is between 0x0000 and 0xFFFF /
0xFFFFFFFF (for GRP_CNT_WIDTH = 16 / 32)
- on reload / index event:
- CC0 is copied to CC0_BUFF
- COUNTER is copied to CC0
- COUNTER is set to midpoint (0x8000 / 0x80000000)
- tc and cc0_match events are generated
- when COUNTER is 0x0000 or 0xFFFF /
0xFFFFFFFF:
- CC0 is copied to CC0_BUFF
- COUNTER (0x0000 or 0xFFFF / 0xFFFFFFFF) is
copied to CC0
- COUNTER is set to midpoint (0x8000 / 0x80000000)
- cc0_match event is generated
This mode is 100 percent backward compatible with
previous TCPWM quadrature behavior.
QUAD_RANGE0_CMP
1
In QUAD mode this setting selects the
QUAD_RANGE0_CMP mode with the following
behavior:
- COUNTER range is between 0x0000 and 0xFFFF /
0xFFFFFFFF (for GRP_CNT_WIDTH = 16 / 32)
- the capture0 event acts as 2nd reload / index event
- on reload / index event:
- COUNTER is set to midpoint (0x8000 / 0x80000000)
- when 'capture on index' is selected
(AUTO_RELOAD_PERIOD=0):
- tc event is generated
- PERIOD is copied to PERIOD_BUFF
- COUNTER is copied to PERIOD
- when COUNTER is 0x0000 or 0xFFFF /
0xFFFFFFFF:
- COUNTER is set to midpoint (0x8000 / 0x80000000)
- when 'capture on wrap-around' is selected
(AUTO_RELOAD_PERIOD=1):
- tc event is generated
- PERIOD is copied to PERIOD_BUFF
- COUNTER (0x0000 or 0xFFFF / 0xFFFFFFFF) is
copied to PERIOD
- 1 or 2 compare functions (depending on
CC1_PRESENT) available
This mode is to a certain extend backward compatible
with previous TCPWM quadrature behavior but allows
a compare function during quadrature decoding using
the CC0/CC_BUFF registers and the cc0_match
event. Because of that the PERIOD/PERIOD_BUFF
registers are used instead of CC0/CC_BUFF registers
to capture COUNTER at reload / index event or wrap-
around.
1793
2022-04-18
TRAVEO™ T2G Automotive MCU: TVII-B-E-4M body controller entry registers