Tuesday, May 5, 2015

PWM api for the GDevice

I am working on the PWM API for the GDevice library.
Internally the api pre compute a buffer and send the buffer to the FT232RL, which will modulate using its own clock. Therefore it can be called hardware PWM.

The method is blocking the C# execution, but does not use any CPU.


In this sample I setup the speed to 8k baud, my buffer size is 16k.
It is kind working, though when applied to an LED I see some unexpected flickering


I still have to work on these parameters, but here is a first Video.
 
Follow Up:
After looking into it with an oscilloscope, well the modulation is completely wrong.
I guess more research on the way.




No comments:

Post a Comment