0h
0FFFFh
TAIFG
Output Mode 1: Set
Output Mode 2: Toggle/Reset
Output Mode 3: Set/Reset
Output Mode 4: Toggle
Output Mode 5: Reset
Output Mode 6: Toggle/Set
Output Mode 7: Reset/Set
TAxCCR0
TAxCCR2
EQU2
TAIFG
Interrupt Events
EQU2
EQU0
EQU2
EQU2
EQU0
Timer_A Operation
654
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
Timer_A
25.2.5.1.3 Output Example – Timer in Up/Down Mode
The OUTn signal changes when the timer equals TAxCCRn in either count direction and when the timer
equals
, depending on the output mode. An example is shown in
using TAxCCR0
and
Figure 25-14. Output Example – Timer in Up/Down Mode
NOTE:
Switching between output modes
When switching between output modes, one of the OUTMOD bits should remain set during
the transition, unless switching to mode 0. Otherwise, output glitching can occur, because a
NOR gate decodes output mode 0. A safe method for switching between output modes is to
use output mode 7 as a transition state:
BIS
#OUTMOD_7,&TA0CCTL1
; Set output mode=7
BIC
#OUTMOD,&TA0CCTL1
; Clear unwanted bits