hello, can anybody help me in this code? i just wanna read a voltage from chennel one and turn on and off the led, but i can't do it! please help,i am an iranian,and here,in iran,nobody knows about it.. just tell what the problem is,and i simulated it in proteus,but it doesnt work on proteus
Code:trisio.2=0 trisio.0=1 ansel=%00000001 adcon0=%10000011 define osc 8 define adc_bits 10 w0 var word start: adcin 0,w0 pause 100 if w0=100 then gpio.2=1 else gpio.2=0 endif goto start end
Bookmarks