I have a GPIO 16. I have written a small C program to read 7 ADC channels and all digital inputs. The program was working well. I was achieving about 45 Hertz. I was reading all inputs 45 times a second. I ran the code today after a start up and can not get 4 Hertz and the code didn't change. I was executing 8 read calls in about 23ms. Now an individual read is taking 30ms. Is there something on the board that would change the communication that dramatically? Thanks, Everett
Just an update. I determined that Kaspersky was somehow changing the speed at which the program was running. If you see a similar behavior it is one place to look. Thanks.
I'm able to get about 105Hz using a Perl script that I created. Take a look at the pull request I've created: https://github.com/numato/samplecode/pull/22. Attached is also some sample output.