I compile an app which just toggles GPIO "0" ON and OFF.
- Code: Select all
system("echo out > /sys/class/gpio/gpio0/dirrection");
while (1)
{
system("echo 1 > /sys/class/gpio/gpio0/value");
system("echo 0 > /sys/class/gpio/gpio0/value");
}
After that i connected my oscilloscope to the output and recorded the state change.
So from this experiment i can see the max speed that gpio can toggle.
I was expecting very high and fast state change results, but unfortunately I was surprised how slow the gpio is,
For me, after 8-bit AVR processors, this brakes everything. (
So my question is: is there a better way to work with GPIO to get better results?
Readings from my oscilloscope.
Thanx
-D