Timer_B Operation
12-12
Timer_B
Figure 12−11.Capture Cycle
Second
Capture
Taken
COV = 1
Capture
Taken
No
Capture
Taken
Read
Taken
Capture
Clear Bit COV
in Register TBCCTLx
Idle
Idle
Capture
Capture Read and No Capture
Capture
Capture Read
Capture
Capture Initiated by Software
Captures can be initiated by software. The CMx bits can be set for capture on
both edges. Software then sets bit CCIS1=1 and toggles bit CCIS0 to switch
the capture signal between V
CC
and GND, initiating a capture each time
CCIS0 changes state:
MOV
#CAP+SCS+CCIS1+CM_3,&TBCCTLx ; Setup TBCCTLx
XOR
#CCIS0,&TBCCTLx
; TBCCTLx = TBR
Compare Mode
The compare mode is selected when CAP = 0. Compare mode is used to
generate PWM output signals or interrupts at specific time intervals. When
TBR counts to the value in a TBCLx:
-
Interrupt flag CCIFG is set
-
Internal signal EQUx = 1
-
EQUx affects the output according to the output mode
Содержание 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 ...