PWM with multiple period using LPC546xx SCTimer/PWM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PWM with multiple period using LPC546xx SCTimer/PWM

3,302件の閲覧回数
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,079件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Hemanth S ,

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

Regards,

Alice

3,079件の閲覧回数
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,079件の閲覧回数
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,079件の閲覧回数
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,079件の閲覧回数
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,079件の閲覧回数
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,079件の閲覧回数
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,079件の閲覧回数
hemanthvasista
Contributor IV

Thanks for the info Alice.

regards,

Hemanth

0 件の賞賛
返信