0h
EQU0 Interrupt
TBxCL0a
TBxCL0b
TBxCL0c
TBxCL0d
t1
t0
t0
TBxCL1a
TBxCL1b
TBxCL1c
TBxCL1d
t1
t1
t0
EQU1 Interrupt
TBxR
(max)
TBR
– 1
(max)
TBR
(max)
0h
Timer Clock
Timer
Set TBxCTL TBIFG
1h
0h
TBR
– 1
(max)
TBR
(max)
0h
TBxR
(max)
Timer_B Operation
669
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
Timer_B
26.2.3.2 Continuous Mode
In continuous mode, the timer repeatedly counts up to TBxR
(max)
and restarts from zero (see
The compare latch TBxCL0 works the same way as the other capture/compare registers.
Figure 26-4. Continuous Mode
The TBIFG interrupt flag is set when the timer
counts
from TBxR
(max)
to zero.
shows the flag
set cycle.
Figure 26-5. Continuous Mode Flag Setting
26.2.3.3 Use of Continuous Mode
The continuous mode can be used to generate independent time intervals and output frequencies. Each
time an interval is completed, an interrupt is generated. The next time interval is added to the TBxCLn
latch in the interrupt service routine.
shows two separate time intervals, t
0
and t
1
, being added
to the capture/compare registers. The time interval is controlled by hardware, not software, without impact
from interrupt latency. Up to n (where n = 0 to 7), independent time intervals or output frequencies can be
generated using capture/compare registers.
Figure 26-6. Continuous Mode Time Intervals