5 the output unit – Texas Instruments MSP430x1xx User Manual

Page 199

Advertising
background image

The Output Unit

11-23

Timer_B

11.5 The Output Unit

Each capture/compare block contains an output unit shown in Figure 11–22.
The output unit is used to generate output signals such as PWM signals. Each
output unit has 8 operating modes that can generate a variety of signals based
on the EQU0 and EQUx signals. The output mode is selected with the OMx
bits located in the CCTLx register.

Figure 11–22.Output Unit

D

Q

Reset

POR

OUTx

Set

Timer Clock

OUTx

OUTx Signal

EQU0

EQUx

OMx2

0
0
0
0
1
1
1
1

0
0
1
1
0
0
1
1

Output mode: OUTx signal reflects the value of the OUTx bit
Set mode: OUT x signal reflects the value of signal EQUx
PWM toggle/reset: EQUx toggles OUTx. EQU0 resets OUTx.
PWM set/reset: EQUx sets OUTx. EQU0 resets OUTx
Toggle: EQUx toggles OUTx signal.
Reset: EQUx resets OUTx.
PWM toggle/set: EQUx toggles OUTx. EQU0 sets OUTx.
PWM reset/set: EQUx resets OUTx. EQUx sets OUTx.

OMx1 OMx0

0
1
0
1
0
1
0
1

Output

Control

Block

Note:

OUTx signal updates with rising edge of timer clock for all modes except
mode 0.
Modes 2, 3, 6, 7 not useful for output unit 0.

Advertising