about the pwm callback

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
XXzzz
Posts: 15
Joined: Wed Dec 20, 2017 8:14 am
Has thanked: 3 times
Been thanked: 1 time

about the pwm callback

Post 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?
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: about the pwm callback

Post 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)
Post Reply