my 10k pot has a range between 3 to 5 v to control a motor.. i want to compare the analogue values wif the a/d converted results and display it on leds. since i m doin 8 speed, i have divided accordingly and did the 10 bit digital conversion.so this are the expected digital outputs at which i want the respective LEDs to light up:
2.9v - 1001010001
3.2v - 1010001110
3.5v - 1011001100
3.8v - 1100001001
4.1v - 1101000110
4.4v - 1110000100
4.7v - 1111000001
5v - 1111111111
how do i go abt writing the program for this area..pls help! i m using
pic16F876a..
2.9v - 1001010001
3.2v - 1010001110
3.5v - 1011001100
3.8v - 1100001001
4.1v - 1101000110
4.4v - 1110000100
4.7v - 1111000001
5v - 1111111111
how do i go abt writing the program for this area..pls help! i m using
pic16F876a..