PWM with multiple period using LPC546xx SCTimer/PWM

cancel
Showing results for 
Search instead for 
Did you mean: 

PWM with multiple period using LPC546xx SCTimer/PWM

633 Views
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

Labels (1)
0 Kudos
8 Replies

410 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Hemanth S ,

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

Regards,

Alice

410 Views
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 Kudos

410 Views
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

410 Views
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 Kudos

410 Views
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 Kudos

410 Views
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 Kudos

410 Views
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

410 Views
hemanthvasista
Contributor IV

Thanks for the info Alice.

regards,

Hemanth

0 Kudos