max0412
Full Member level 5
I want to use the ADC of the 10F220 to set the length of a delay. Could I use equate to define specific ranges of the ADC input to a number that would be inserted into the delay subroutine. Or should I use constant or is this all wrong and should I do it some other way.
Pseudo code
Where K is the variable I want passed to my delay loop counter.
Thanks
Pseudo code
Code:
Sense ADC
IF ADC <=1 THEN K =10
IF ADC >1 <=2 THEN K=20
Thanks