Page 1 of 1

about the pwm callback

Posted: Mon Jan 08, 2018 4:57 am
by XXzzz
i have some question about the pwm driver...i draw a picture to describe this question ,but i don't know how to post it to this ..... :oops:
https://drive.google.com/file/d/1r3nk97 ... sp=sharing
i use the stm32f103,maybe i need to change the pwm config to deal this problem?

Re: about the pwm callback

Posted: Mon Jan 08, 2018 5:36 am
by FXCoder
You need to use the PWM Period callback.
It happens at the rising edge of the PWM.

Code: Select all

pwmEnablePeriodicNotification(PWMDriver *pwmp)