Technical Reference Manual
002-29852 Rev. *B
Bits Name
SW
HW
Default or
Enum
Description
QUAD_RANGE1_CAPT
2
In QUAD mode this setting selects the
QUAD_RANGE1_CAPT mode with the following
behavior:
- COUNTER range is between 0x0000 and PERIOD
- on reload / index event:
- COUNTER is set to 0x0000
- tc event is generated
- when COUNTER is 0x0000 and decrementing:
- COUNTER is set to PERIOD
- tc event is generated
- when COUNTER equals PERIOD and is
incrementing:
- COUNTER is set to 0x0000
- tc event is generated
- 1 or 2 capture functions (depending on
CC1_PRESENT) available
- on capture0 / capture1 event:
- CC0 / CC1 is copied to CC0_BUFF / CC1_BUFF
- COUNTER value is copied to CC0
This mode is NOT backward compatible with previous
TCPWM quadrature behavior. It is to a certain extend
compatible with previous Traveo 1 QPRC behavior. It
allows that the COUNTER register reflects the current
angle position of the rotary encoder, i.e. no MOD or
SUB calculations need to be done in SW on the
COUNTER value to get the current angle position. This
allows a DMA copy of the angle position from the
COUNTER register. However, a disadvantage of this
mode is that fast sequences of tc interrupts can occur
(when encoder moves back and forth around start
position). It is recommended to not use the tc interrupt
in this mode.
QUAD_RANGE1_CMP
3
In QUAD mode this setting selects the
QUAD_RANGE1_CMP mode.
The behavior is the same as for
QUAD_RANGE1_CAPT mode described above with
the only difference that 1 or 2 compare functions
(depending on CC1_PRESENT) are available instead
of 1 or 2 capture functions.
18
ONE_SHOT
RW
R
0
When '0', counter runs continuous. When '1', counter is
turned off by hardware when a terminal count event is
generated.
20:21 QUAD_ENCODING
_MODE
RW
R
0
In QUAD mode this field selects the quadrature
encoding mode (X1/X2/X4) or the Up / Down rotary
counting mode.
In PWM, PWM_DT and PWM_PR modes, these two
bits can be used to invert 'dt_line_out' and
'dt_line_compl_out'. Inversion is the last step in
generation of 'dt_line_out' and 'dt_line_compl_out'; i.e.
a disabled output line 'dt_line_out' has the value
QUAD_ENCODING_MODE[0] and a disabled output
line 'dt_line_compl_out' has the value
QUAD_ENCODING_MODE[1].
X1
0
X1 encoding (QUAD mode)
This encoding is identical with an up / down counting
functionality of the following way: Rising edges of input
phiA increment or decrement the counter depending
on the state of input phiB (direction input).
X2
1
X2 encoding (QUAD mode)
X4
2
X4 encoding (QUAD mode)
1794
2022-04-18
TRAVEO™ T2G Automotive MCU: TVII-B-E-4M body controller entry registers