Timer_B Operation
16-17
Timer_B
Output Example − Timer in Up/Down Mode
The OUTx signal changes when the timer equals TBCLx in either count
direction and when the timer equals TBCL0, depending on the output mode.
An example is shown in Figure 16−14 using TBCL0 and TBCL3.
Figure 16−14. Output Example—Timer in Up/Down Mode
0h
TBR(max)
TBIFG
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
TBCL0
TBCL3
EQU3
TBIFG
Interrupt Events
EQU3
EQU0
EQU3
EQU3
EQU0
Note:
Switching Between Output Modes
When switching between output modes, one of the OUTMODx 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,&TBCCTLx ; Set output mode=7
BIC
#OUTMODx,&TBCCTLx
; Clear unwanted bits
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 ...