PWM with multiple period using LPC546xx SCTimer/PWM

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

PWM with multiple period using LPC546xx SCTimer/PWM

3,295 次查看
hemanthvasista
Contributor IV

Hello ,

I am using LPC54628(OM13098) development board.

I intent to use PWM output with different period.

Is it possible to have different PWM period in SCT0?

e.g.

SCT0_OUT4      with 50KHz period (+ variable Duty %)

SCT0_OUT6      with 100KHz period (+ variable Duty %)

regards,

Hemanth

标签 (1)
标记 (4)
0 项奖励
回复
8 回复数

3,072 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Hemanth S ,

In generally No, we only can set different PWM duty cycle.

Regards,

Alice

3,072 次查看
hemanthvasista
Contributor IV

Hello Alice,

Thanks for your inputs.

Is possible to configure the SCTimer as complimentary pair?

e.g.

SCT0_OUT4  with 100KHz period (+ variable Duty %)

SCT0_OUT6  complimentary output of (SCT0_OUT4)

regards,

Hemanth

0 项奖励
回复

3,072 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Hemanth,

Yes, just config output3 and output4 with opposite level.

pastedImage_1.png

Recommend you use the MCUXpresso Config to config it:

pastedImage_2.png

There are PWM demo under SDK:

pastedImage_3.png

Regards,

Alice

3,072 次查看
hemanthvasista
Contributor IV

Hello Alice,

Thanks for the info.

How to set the dead time in SCTimer/PWM?

Is it possible to have complimentary PWM pair in CTimer?

I couldn't get any options.

regards,

Hemanth

0 项奖励
回复

3,072 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Hemanth,

You can have a look at the SCTimer cookbook, it includes these demos you mentioned.

https://www.nxp.com/docs/en/application-note/AN11538.zip   

Regards,

Alice

0 项奖励
回复

3,072 次查看
hemanthvasista
Contributor IV

Hello Alice,

Thanks for the info.

Is complementary PWM with dead time possible from C Timer? The above reference tells mostly about SC Timer.

regards,

Hemanth

0 项奖励
回复

3,072 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Hemanth,

No, because  "All single edge controlled PWM outputs go LOW at the beginning of each PWM cycle.

Each PWM output will go HIGH when its match value is reached."

pastedImage_1.png

Regards,

Alice

3,072 次查看
hemanthvasista
Contributor IV

Thanks for the info Alice.

regards,

Hemanth

0 项奖励
回复