How to set counter synchronization for the PWM in the NuMicro? M451 series?
Posted: 27 Mar 2017, 14:31
After completing the required PWM settings, add the following code:
/* Enable PWM0, PWM2, PWM4 Timer Synchronous */
PWM_ENABLE_TIMER_SYNC(PWM0, BIT0|BIT2|BIT4);
/* Enable PWM0, PWM2, PWM4 Timer Synchronous */
PWM_ENABLE_TIMER_SYNC(PWM0, BIT0|BIT2|BIT4);