Is there a known method for achieving a smooth PWM acceleration on the using the verdin products? I was hoping to use the PWM output to drive a step/direction motor driver. The move profile requires a trapezoidal shape.
I am currently accessing the PWM interface through sysfs. I am writing the period and duty cycle files individually/sequentualy. The issue is that due to this method, there is a period of time where the period has been increased with the old duty cycle value. This remains true until the duty cycle file is updated.
My question is, has anyone come up with a method to create a smooth PWM acceleration, plateau, and deceleration profile?
Module: Verdin IMX8M Plus
Carrier: Verdin Dev Board V1.1E