i am using the readadc10 feature to read a voltage from 0v to 2.5v
At 0.375V say adc10 77 i require the pic to turn on o/p 0 and stay on unless the level falls below 0.3v adc10 61 the output should flash, also at 2.5v adc10 512 i require output 1 high., at the low end it all works fine but once i get over one volt pin 0 goes out or starts to flash, because of this i cannot get output 1 to work correctly, however if i change back to below 1 volt for all the commands it works fine...any tips?
Â
At 0.375V say adc10 77 i require the pic to turn on o/p 0 and stay on unless the level falls below 0.3v adc10 61 the output should flash, also at 2.5v adc10 512 i require output 1 high., at the low end it all works fine but once i get over one volt pin 0 goes out or starts to flash, because of this i cannot get output 1 to work correctly, however if i change back to below 1 volt for all the commands it works fine...any tips?
Â