ePWM
7 - 8 TMS320F2837xD Microcontroller Workshop - Control Peripherals
ePWM Time-Base Count Modes
TBCTR
TBCTR
TBCTR
TBPRD
TBPRD
TBPRD
Count Up Mode
Count Down Mode
Count Up and Down Mode
Asymmetrical
Waveform
Asymmetrical
Waveform
Symmetrical
Waveform
The time-base counter operates in three modes: up-count, down-count, and up-down-count. In
up-count mode the time-base counter starts counting from zero and increments until it reaches
the period register value, then the time-base counter resets to zero and the count sequence starts
again. Likewise, in down-count mode the time-base counter starts counting from the period
register value and decrements until it reaches zero, then the time-base counter is loaded with the
period value and the count sequence starts again. In up-down-count mode the time-base counter
starts counting from zero and increments until it reaches the period register value, then the time-
base counter decrements until it reaches zero and the count sequence repeats. The up-count
and down-count modes are used to generate asymmetrical waveforms, and the up-down-count
mode is used to generate symmetrical waveforms.