PWM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
491 Views
D_D97
Contributor II

Hello,

I am using the iMXRT1176DVMAA for PWM output, I have noticed that the maximum period I can produce is approx 34ms (src clock 240MHz with prescalar : DIV_BY_128, fclk = 1.875 Mhz )
what if I want to generate a 50 ms period ?
note that I have used the driver SDK example and MCUXpresso IDE.

thank you.

Tags (2)
0 Kudos
Reply
1 Solution
461 Views
mayliu1
NXP Employee
NXP Employee

Hi @D_D97 ,

 

Thank you for your interest in the NXP MIMXRT product, I would  like to provide service for you.

I import a SDK demo"evkbmimxrt1170_pwm_cm7" , use MIMXRT1170-EVKB board.

1:  Modify PWM1 root clock(BUS_CLK_ROOT) as  24MHz;

2: Modify code " #define APP_DEFAULT_PWM_FREQUENCY (20UL)//(1000UL)" 

3: Used an oscilloscope to test J25-7 pin, and the PWM cycle of this pin is 50ms, 20Hz.

mayliu1_2-1728875447478.png

mayliu1_4-1728875736354.png

 

mayliu1_3-1728875522473.jpeg

I think you can refer to what I did above.

Wish it helps you.
If you still have question about it, please kindly let me know.

Best Regards

mayliu

View solution in original post

1 Reply
462 Views
mayliu1
NXP Employee
NXP Employee

Hi @D_D97 ,

 

Thank you for your interest in the NXP MIMXRT product, I would  like to provide service for you.

I import a SDK demo"evkbmimxrt1170_pwm_cm7" , use MIMXRT1170-EVKB board.

1:  Modify PWM1 root clock(BUS_CLK_ROOT) as  24MHz;

2: Modify code " #define APP_DEFAULT_PWM_FREQUENCY (20UL)//(1000UL)" 

3: Used an oscilloscope to test J25-7 pin, and the PWM cycle of this pin is 50ms, 20Hz.

mayliu1_2-1728875447478.png

mayliu1_4-1728875736354.png

 

mayliu1_3-1728875522473.jpeg

I think you can refer to what I did above.

Wish it helps you.
If you still have question about it, please kindly let me know.

Best Regards

mayliu