about the pwm callback

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

about the pwm callback

Postby XXzzz » Mon Jan 08, 2018 4:57 am

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: 384
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 180 times
Been thanked: 130 times

Re: about the pwm callback

Postby FXCoder » Mon Jan 08, 2018 5:36 am

You need to use the PWM Period callback.
It happens at the rising edge of the PWM.

Code: Select all

pwmEnablePeriodicNotification(PWMDriver *pwmp)


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 12 guests