Chapter 10
Motor Control PWM
Operation X - 21
■ Output Waveform Polarity
The PWM output polarity control register (OUTMDn) can be used to control polarity of PWM output waveform.
Table:10.3.3 shows the flags and set values. When the PXDTn0 flag is set to “1”, PWMn0 and NPWMn0 outputs
are switched.
Table:10.3.3 Flags and Settings
Figure:10.3.2 shows the flag value and the output waveform.
Figure:10.3.2 Flag Value and Output Waveform
Flag
Setting value
"0" "1"
PWMn0 PXDTUn Positive phase Negative phase
NPWMn0 PXDTNUn Negative phase Positive phase
PWMn1 PXDTVn Positive phase Negative phase
NPWMn1 PXDTNVn Negative phase Positive phase
PWMn2 PXDTWn Positive phase Negative phase
NPWMn2 PXDTNWn Negative phase Positive phase
PWMxx
PXDT(U, V, W)n=0
PXDTN(U, V, W)n=0
NPWMxx
PXDT(U, V, W)n=1
PXDTN(U, V, W)n=1
Period setting
Value to be
compared
PWM count value
PWM output waveform
PWM count value
PWM output waveform