Yeap, I forgot to say that the code above is for 16F877-20Mhz.
Also,
I know what you mean Steve! I will never forget.Originally Posted by mister_e
Yeap, I forgot to say that the code above is for 16F877-20Mhz.
Also,
I know what you mean Steve! I will never forget.Originally Posted by mister_e
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Thanks,
I will take this code home and chew on it a while . . . . I am not manipulating data in an lcd, rather I am using it to control hardware.something like so:
x var byte
main:
if porta.0 !=0 then
pause50
DoSomthing
else
endif
goto main
DoSomething:
for x = 50 to 0 step - 1
goto encoder
portB.5 low
next x
return
encoder:
Portb.5 high ' to power up encoder
some code here to count encoder subtracting code from var X
return
Originally Posted by Joe S.
I guess this was a quick example.
Check "goto" !
Last edited by sayzer; - 2nd October 2006 at 04:29.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks