1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GPIO 16 Read TIme

Discussion in 'GPIO Modules' started by Everett, Aug 10, 2017.

  1. Everett

    Everett New Member

    Joined:
    Aug 10, 2017
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Illinois
    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
     
    Last edited: Aug 10, 2017
  2. Everett

    Everett New Member

    Joined:
    Aug 10, 2017
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Illinois
    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.
     

Share This Page