about FlexPWM

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

about FlexPWM

跳至解决方案
3,376 次查看
motman
Contributor II

Dear all.

 

Hi. I'm studying FlexPWM about MPC5643L.

I can't understand OUT23 and PWM23. In reference manual, I can select that using Deadtime Source Select Register(DTSRCSEL).

I understand that PWM23 is generated from comparing counter register(CNT) and value register(VAL2, VAL3).

But i can't find how OUT23 is generated.

And i don't understand deadtime logic.

 

Can you explain this?

 

Thanks.

Juhyung

标签 (1)
0 项奖励
回复
1 解答
3,132 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

The OUT23 and OUT45 are implemented to device so user can select the level of signal during deadtime.

OUT23 bit is only used when SEL23 for submodule 0 is set to 0b10.  It allows software control of which signal is supplied to the deadtime generator of that submodule.

1 = A logic 1 is supplied to the deadtime generator of submodule 0 instead of PWM23 or PWM45.

0 = A logic 0 is supplied to the deadtime generator of submodule 0 instead of PWM23 or PWM45.

The SEL23 and SEL45 fields each choose from one of four signals that can be supplied to the submodule outputs.

So if your SEL23 is configured for OUT23 then on the module output you will see the signal according to SWCOUT register configuration.

pastedImage_1.png

在原帖中查看解决方案

0 项奖励
回复
4 回复数
3,133 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

The OUT23 and OUT45 are implemented to device so user can select the level of signal during deadtime.

OUT23 bit is only used when SEL23 for submodule 0 is set to 0b10.  It allows software control of which signal is supplied to the deadtime generator of that submodule.

1 = A logic 1 is supplied to the deadtime generator of submodule 0 instead of PWM23 or PWM45.

0 = A logic 0 is supplied to the deadtime generator of submodule 0 instead of PWM23 or PWM45.

The SEL23 and SEL45 fields each choose from one of four signals that can be supplied to the submodule outputs.

So if your SEL23 is configured for OUT23 then on the module output you will see the signal according to SWCOUT register configuration.

pastedImage_1.png

0 项奖励
回复
3,132 次查看
motman
Contributor II

Dear Peter.

Thank you for your reply.

You mean that SWCOUT register select OUT23 or OUT45 value. Right?

SWCOUT register control output as Force out. I don't know what i think.

And, Can you have a PWM capture example? If you have, can you explain how can initialize, how can use.

Thanks.

Juhyung.

0 项奖励
回复
3,132 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

refer to the attached example. The Submodule0 is set to generate independent PWMA and PWMB signals. The PWMX is used as input for the Capture feature.

Capture logic is set to capture one rising and one falling edge in one shot mode. Thus you can check the edge placing and calculate a generated duty cycle.

BR, Petr

3,132 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

OUT23 -> PWMA of selected submodule - It allows software control of which signal is supplied to the deadtime generator of that submodule.

OUT45 -> PWMB of selected submodule - It allows software control of which signal is supplied to the deadtime generator of that submodule.

Peter

0 项奖励
回复