Trying to modify PWM frequency in SDK on imxrt1170_evk board

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

Trying to modify PWM frequency in SDK on imxrt1170_evk board

462 Views
Devaharsha
Contributor III

The PWM example in SDK is generating 1KHz signal from PWM submodule_0 and submodule_1 in complementary mode. I want to run a servo motor using PWM. The servo uses 50Hz signal i.e. 20ms. So, anyone can help me where the modification is required for the same?

1) I have changed the code for independent mode because I have to run 2 servos with different dutycycle.

2) I have modified pwmclk but its not working.

3) I have modified pwmfreq (set to 1000UL in SDK) but I can't get 50Hz signal.

Can anyone help me where the modification is required?

0 Kudos
Reply
1 Reply

428 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

That's maybe an issue with the source clock because the frequency is minor than the example, Did you try to change the source clock? Try to change the Prescaler too.

0 Kudos
Reply