Timer_B Operation
674
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
Timer_B
26.2.4.2.2 Grouping Compare Latches
Multiple compare latches may be grouped together for simultaneous updates with the TBCLGRPx bits.
When using groups, the CLLD bits of the lowest numbered TBxCCRn in the group determine the load
event for each compare latch of the group, except when TBCLGRP = 3 (see
). The CLLD bits
of the controlling TBxCCRn must not be set to zero. When the CLLD bits of the controlling TBxCCRn are
set to zero, all compare latches update immediately when their corresponding TBxCCRn is written; no
compare latches are grouped.
Two conditions must exist for the compare latches to be loaded when grouped. First, all TBxCCRn
registers of the group must be updated, even when new TBxCCRn data = old TBxCCRn data. Second,
the load event must occur.
Table 26-3. Compare Latch Operating Modes
TBCLGRPx
Grouping
Update Control
00
None
Individual
01
TBxCL2
TBxCL4
TBxCL6
TBxCCR1
TBxCCR3
TBxCCR5
10
TBxCL3
TBxCL6
TBxCCR1
TBxCCR4
11
TBxCL6
TBxCCR1
26.2.5 Output Unit
Each capture/compare block contains an output unit. The output unit is used to generate output signals,
such as PWM signals. Each output unit has eight operating modes that generate signals based on the
EQU0 and EQUn signals. The TBOUTH pin function can be used to put all Timer_B outputs into a high-
impedance state. When the TBOUTH pin function is selected for the pin (corresponding PSEL bit is set,
and port configured as input) and when the pin is pulled high, all Timer_B outputs are in a high-impedance
state.
26.2.5.1 Output Modes
The output modes are defined by the OUTMOD bits and are described in
. The OUTn signal is
changed with the rising edge of the timer clock for all modes except mode 0. Output modes 2, 3, 6, and 7
are not useful for output unit 0 because EQUn = EQU0.
Table 26-4. Output Modes
OUTMOD
Mode
Description
000
Output
The output signal OUTn is defined by the OUT bit. The OUTn signal updates immediately
when OUT is updated.
001
Set
The output is set when the timer
counts
to the TBxCLn value. It remains set until a reset of
the timer, or until another output mode is selected and affects the output.
010
Toggle/Reset
The output is toggled when the timer
counts
to the TBxCLn value. It is reset when the timer
counts
to the TBxCL0 value.
011
Set/Reset
The output is set when the timer
counts
to the TBxCLn value. It is reset when the timer
counts
to the TBxCL0 value.
100
Toggle
The output is toggled when the timer
counts
to the TBxCLn value. The output period is
double the timer period.
101
Reset
The output is reset when the timer
counts
to the TBxCLn value. It remains reset until
another output mode is selected and affects the output.
110
Toggle/Set
The output is toggled when the timer
counts
to the TBxCLn value. It is set when the timer
counts
to the TBxCL0 value.
111
Reset/Set
The output is reset when the timer
counts
to the TBxCLn value. It is set when the timer
counts
to the TBxCL0 value.