I downloaded the gpio demo example for VF61 to explore the functionOutputDemo() functionality under WinCE6.
Everything seems ok (on a large time scale) if I leave the instructions Sleep(500)
In this way a 1 second square wave is generated (500 ms high / 500 ms low).
If I change them to Sleep(1) I would expect a sqare wave 1 ms high/1 ms low but this is not waht happens.
First of all the IO pin toggles every 2.5 ms (more or less).
Moreover (and this is the biggest issue) after 100 ms of toggling, the IO pin stays freezed for more or less 50 ms.
I suspect the behavior is related to the WinCE OS, but I wonder if it would be possible to generate a “fast” square wave on GPIO pin under WinCE.
Which is the minimum value for the period of the square wave?
How can I implement it?
My target is to implement a communication protocol over a parallel bus and I need some speed.