Chapter 10
Motor Control PWM
Operation X - 25
■ Setting H/L Level Output
PWM output or H/L level output can be selected for each of the 6 PWM pins by the PSELNn2-0 flags and the
PSELn2-0 flags of the PWM output control register (PWMSELn). L level output or H level output can be selected
by the OUTVNn2-0 and OUTVn2- 0 when setting H/L level output. The following shows the output timing of H/
L level output.
Figure:10.3.5 H/L Level Output Timing
PWMxx
Setting loaded Setting loaded Setting loadedSetting loaded
NPWMxx
Period setting
Value to be
compared
PSELxx = 1
OTLVxx = 1
PSELxx = 1
OTLVxx = 0
NPSELxx = 1
OTLVNxx = 1
PSELxx = 0
OTLVxx = 0
NPSELxx = 0
OTLVNxx = 1
PSELxx = 0
OTLVxx = 1
NPSELxx = 0
OTLVNxx = 0
PWM output selected
PWM output selected
PWM output selected
PWM output selected
NPSELxx = 1
OTLVNxx = 0
PWMxx
NPWMxx
WAVEMDn = 0
PXDT(U,V,W)n = 0
PXDTN(U,V,W)n = 0
H/L level output
from here
H/L level output selected
H/L level "H"
output selected
H/L level "L"
output selected
H/L level output selected
H/L level "L"
output selected
H/L level "H"
output selected
PWM output from
here
PWM count value
PWM basic waveform
Output waveform