PWM period

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PWM period

1,493 Views
Ajul
Contributor I

Hi we are working on nxp s32k324. We need to update the PWM period during the run time.  we are using Pwm_SetPeriodAndDuty() API for updating the Period . The period is updating but we are not getting exactly the correct frequency as expected  . We are using clock of 10Mhz we are giving a tick of 50000 in the PWM period to get a frequency 0f 200Hz but we are getting a frequency 320Hz. we have checked the B register that value is updating as we expected . But the out frequency is not as expected.

We are configured the Davinci configuration for 500Hz PWM out put that we are getting  exactly same as expected, Issue is found when we are using the API to update the PWM could you please reply.

 

Regards

AK

 

0 Kudos
Reply
2 Replies

1,466 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you so much for your interest in our products and for using our community.

I noticed that you have another similar case, so I will follow up on this last one that I mention.

Have a nice day!

0 Kudos
Reply

1,411 Views
Ajul
Contributor I

Hi 

 

Thank you

0 Kudos
Reply