Hi All.
Perhaps I missed it, but I couldn't find any library to utilize free running internal timers of the K20 to do PWM generation to control servo motors, with no interrupts. So I wrote one myself. My goal was to make it as simple to use as possible, and to take up no RAM at all. An explanation of how to use it is in the .h file.
Testing hasn't been extensive yet, but the traces all look right on my scope, and my servo sweeps back and forth.
- Rich
<< To avoid confusion, deleted the attached files. See future post. >>
Perhaps I missed it, but I couldn't find any library to utilize free running internal timers of the K20 to do PWM generation to control servo motors, with no interrupts. So I wrote one myself. My goal was to make it as simple to use as possible, and to take up no RAM at all. An explanation of how to use it is in the .h file.
Testing hasn't been extensive yet, but the traces all look right on my scope, and my servo sweeps back and forth.
- Rich
<< To avoid confusion, deleted the attached files. See future post. >>
Last edited: