Timer_A Operation
11-5
Timer_A
11.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 writing 0 to TACCR0. The timer may then be restarted by writing a
nonzero value to TACCR0. In this scenario, the timer starts incrementing
in the up direction from zero.
11.2.3 Timer Mode Control
The timer has four modes of operation as described in Table 11−1: stop, up,
continuous, and up/down. The operating mode is selected with the MCx bits.
Table 11−1. Timer Modes
MCx
Mode
Description
00
Stop
The timer is halted.
01
Up
The timer repeatedly counts from zero to the value of
TACCR0
10
Continuous
The timer repeatedly counts from zero to 0FFFFh.
11
Up/down
The timer repeatedly counts from zero up to the value of
TACCR0 and back down to zero.
Содержание MSP430x1xx
Страница 1: ... 2005 Mixed Signal Products User s Guide SLAU049E ...
Страница 6: ...vi ...
Страница 18: ...1 6 Introduction ...
Страница 36: ...2 18 System Resets Interrupts and Operating Modes ...
Страница 112: ...3 76 ...
Страница 130: ...4 18 Basic Clock Module ...
Страница 152: ...5 22 Flash Memory Controller ...
Страница 160: ...6 8 Supply Voltage Supervisor ...
Страница 168: ...7 8 Hardware Multiplier ...
Страница 192: ...8 24 ...
Страница 200: ...9 8 Digital I O ...
Страница 234: ...11 24 Timer_A ...
Страница 260: ...12 26 Timer_B ...
Страница 291: ...13 31 USART Peripheral Interface UART Mode ...
Страница 314: ...14 23 USART Peripheral Interface SPI Mode ...
Страница 346: ...15 32 USART Peripheral Interface I2C Mode ...
Страница 358: ...16 12 Comparator_A ...
Страница 386: ...17 28 ADC12 ...
Страница 418: ...18 32 ADC10 ...
Страница 432: ...19 14 DAC12 ...