Timer_B Operation
16-5
Timer_B
16.2.2 Starting the Timer
The timer may be started or restarted in the following ways:
-
The timer counts when MCx > 0 and the clock source is active.
-
When the timer mode is either up or up/down, the timer may be stopped
by loading 0 to TBCL0. The timer may then be restarted by loading a
nonzero value to TBCL0. In this scenario, the timer starts incrementing in
the up direction from zero.
16.2.3 Timer Mode Control
The timer has four modes of operation as described in Table 16−1: stop, up,
continuous, and up/down. The operating mode is selected with the MCx bits.
Table 16−1.Timer Modes
MCx
Mode
Description
00
Stop
The timer is halted.
01
Up
The timer repeatedly counts from zero to the value of
compare register TBCL0.
10
Continuous
The timer repeatedly counts from zero to the value
selected by the CNTLx bits.
11
Up/down
The timer repeatedly counts from zero up to the value of
TBCL0 and then back down to zero.
Summary of Contents for MSP430x4xx Family
Page 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Page 2: ......
Page 6: ...vi ...
Page 114: ...3 76 RISC 16 Bit CPU ...
Page 304: ...5 20 FLL Clock Module ...
Page 340: ...7 8 Supply Voltage Supervisor ...
Page 348: ...8 8 16 Bit Hardware Multiplier ...
Page 372: ...9 24 32 Bit Hardware Multiplier ...
Page 400: ...10 28 DMA Controller ...
Page 428: ...13 10 Basic Timer1 ...
Page 466: ...15 24 Timer_A ...
Page 522: ...17 30 USART Peripheral Interface UART Mode ...
Page 544: ...18 22 USART Peripheral Interface SPI Mode ...
Page 672: ...23 12 Comparator_A ...
Page 692: ...24 20 LCD Controller ...
Page 746: ...26 28 ADC12 ...