
Timer_B Operation
12.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 12-3. Compare Latch Operating Modes
TBCLGRPx
Grouping
Update Control
00
None
Individual
TBxCL2
TBxCCR1
01
TBxCL4
TBxCCR3
TBxCL6
TBxCCR5
TBxCL3
TBxCCR1
10
TBxCL6
TBxCCR4
11
TBxCL6
TBxCCR1
12.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.
12.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 12-4. Output Modes
OUTMOD
Mode
Description
The output signal OUTn is defined by the OUT bit. The OUTn signal updates immediately
000
Output
when OUT is updated.
The output is set when the timer
counts
to the TBxCLn value. It remains set until a reset of
001
Set
the timer, or until another output mode is selected and affects the output.
The output is toggled when the timer
counts
to the TBxCLn value. It is reset when the timer
010
Toggle/Reset
counts
to the TBxCL0 value.
The output is set when the timer
counts
to the TBxCLn value. It is reset when the timer
011
Set/Reset
counts
to the TBxCL0 value.
The output is toggled when the timer
counts
to the TBxCLn value. The output period is
100
Toggle
double the timer period.
The output is reset when the timer
counts
to the TBxCLn value. It remains reset until
101
Reset
another output mode is selected and affects the output.
The output is toggled when the timer
counts
to the TBxCLn value. It is set when the timer
110
Toggle/Set
counts
to the TBxCL0 value.
The output is reset when the timer
counts
to the TBxCLn value. It is set when the timer
111
Reset/Set
counts
to the TBxCL0 value.
366
Timer_B
SLAU272C – May 2011 – Revised November 2013
Copyright © 2011–2013, Texas Instruments Incorporated