Timer_A Operation
15-8
Timer_A
Use of the 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 TACCRx register in the
interrupt service routine. Figure 15−6 shows two separate time intervals t
0
and
t
1
being added to the capture/compare registers. In this usage, the time
interval is controlled by hardware, not software, without impact from interrupt
latency. Up to three (Timer_A3) or five (Timer_A5) independent time intervals
or output frequencies can be generated using capture/compare registers.
Figure 15−6. Continuous Mode Time Intervals
0FFFFh
TACCR0a
TACCR0b
TACCR0c
TACCR0d
t1
t0
t0
TACCR1a
TACCR1b
TACCR1c
TACCR1d
t1
t1
t0
Time intervals can be produced with other modes as well, where TACCR0 is
used as the period register. Their handling is more complex since the sum of
the old TACCRx data and the new period can be higher than the TACCR0
value. When the previous TACCRx value plus t
x
is greater than the TACCR0
data, the TACCR0 value must be subtracted to obtain the correct time interval.
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...