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.
Solved! Go to Solution.
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.
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
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.
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