Hello Gents,
I need to program a ADC for a PIC6f690
A variable resistor (0...5V) is my analog input and the ANSEL bits gives me the output result (0...255). I want to display the 4 leds. leds 1 is on when the output is lower the 32, led 2 is on when the output is between the 32 and 63, led 3 is on between the 64 and the 127 and led 4 is on higher then 127.
Can somebody help me with writting the C++ code.



LinkBack URL
About LinkBacks


