Texas Instruments MSP430x1xx User Manual page 246

Texas instruments modules and peripherals user's guide
Table of Contents

Advertisement

Timer_B Operation
Figure 12−11.Capture Cycle
Clear Bit COV
in Register TBCCTLx
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
CCIS0 changes state:
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:
-
-
-
12-12
Timer_B
Capture
No
Capture
Taken
MOV
#CAP+SCS+CCIS1+CM_3,&TBCCTLx ; Setup TBCCTLx
XOR
#CCIS0,&TBCCTLx
Interrupt flag CCIFG is set
Internal signal EQUx = 1
EQUx affects the output according to the output mode
Idle
Capture Read
Capture
Taken
Capture
Capture Read and No Capture
Capture
Second
Capture
Idle
Taken
COV = 1
and GND, initiating a capture each time
CC
; TBCCTLx = TBR
Read
Taken
Capture

Advertisement

Table of Contents
loading

Table of Contents