Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Garyhlucas on September 08, 2022, 01:47:02 PM
-
I see we have PWM OUT on the BRX but not in. We have some ClearPath servos that can output torque via PWM which I suspect they did that way because they made it bidirectional. We need this for a project. Suggestion on how to read this? I am thinking two high speed inputs used as timers and then compared to get percentage range.
Thanks,
-
Can you use a High Speed Edge Timer (or Counter) along with the attached Interval Scaling?
-
If the PWM period is known and fixed, you can do it with a single HS timer and a small bit of math. It If isn't, you can do it with two timers, one rising to falling and one rising to rising, and then use some math to convert to percentage.
That's actually how I tested the PWM function. ;)
-
Yes the period is known and fixed so I?ll try the single timer because I need them for other stuff too.
Thanks,
-
Single timer works!