Double Switching PWMs

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Double Switching PWMs

1,091 次查看
boshimao
Contributor II

My chip is MPC5643L. In the "center-aligned and complementary PWM" mode, the IPOL bit of the register MCTRL is 0, the PWMB is from the complementary pair, and the VAL4 and VAL5 are unused. Can I use the "double switch" function in this mode?Double Switching PWMs_1.pngDouble Switching PWMs_2.png

0 项奖励
4 回复数

927 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, you can. If double switching is enabled (CTRL1[DBLEN]=1), then the DBLPWM signal is used for deadtime logic, regardless of setting the MCTRL[IPOLx] and complementary signals will be generated based on DBLPWM.

pastedImage_1.png

BR, Petr

0 项奖励

927 次查看
boshimao
Contributor II

hi,Please explain it to me, thank you.

0 项奖励

927 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

LDMOD bit specify when the buffered registers are loaded with new value.

For LDMOD=1 registers are loaded and take effect immediately after LDOK is set,

for LDMOD=0 reagisters are loaded and take effect at the next PWM reload if LDOK is set.

So the PWM will be generated depending on time when LDOK is set. With LDMOD=1 you can simply miss the edge.

BR. Petr

0 项奖励

927 次查看
boshimao
Contributor II

Thank you. Ask another question, I write 0x0C05 to register CTRL1. The PWM register INIT is -100, the register VAL0 is 0, the register VAL1 is 100. In the red circle 1, I calculate the duty cycle is 20%, and the PWM waveform should be a or b or something else, as shown in the following figure. The reference manual is a bit questionable. I mainly want to know how LDMOD affects PWM.PWM.png

0 项奖励