AnsweredAssumed Answered

PWM problem

Question asked by Thuan Pham on Apr 9, 2013
Latest reply on Apr 9, 2013 by Thuan Pham


I am trying to use PWM block of iMX286. I read the datasheet carefully and also read another thread at  but it does not work yet.

My code did the following steps:

1. Setup HW_PINCTRL_MUXSELx register to enable PWM pin

2. Soft reset PWM block by clearing the two bits SFTRST and CLKGATE of HW_PW_CTRL register

3. Update value for the two registers HW_PWM_ACTIVEx and HW_PWM_PERIODx to set the period and duty cycle of output pulses

4. Enable PWM channel by setting bit in HW_PW_CTRL register

Could you let me know is there any wrong step?