ADC sample code

When I tried to run the sample ADC code, the board seems to have problems. I connected RA0 with a proximity sensor which gives an output ~1.88V. RD0 the debugger LED) should blink with the speed corresponding the voltage as explained by the sample code. It seems to work fine sometimes, however, the debugger LED for RD0 is just off sometimes. Sometimes when I do random stuff such as touching somewhere along the wires, or resetting, or turning the power on and off, or restarting computer, the LED will or will not work. I have absolutely no idea what's going on but maybe one of you smarties would be super nice to give me a hint

Load Previous Replies
  • up

    Kenny Kim

    wait so the sample code needs to be modified in a sense?

    • up

      Kenny Kim

      yea....I think so

      • up

        Kenny Kim

        I didn't use it...