PDA

View Full Version : analog read



swordman
- 12th August 2004, 19:37
Hi ,

How can use adread in all program for example:
When program working I need adread must everwhere(work in background nonstop-adread)

main:

high portb.3
pause 2000
low portc.2
pause 3000
high portb.5
pause 1000 ......etc.(13 steps)


***********
sub routưne
***********
adread:

adcin 0,read
if z <= read then high portd.0
return