You never return to Main: . Is this on purpose? The only way your going to increment w1 in this manner is on program start from initial power on or a reset, in which case it's only going to go to 1.
Aside from that, I'm confused as to what your doing. It seems as if your making a binary counter of sorts with a small delay based on the reading of the ADC?
Edit: Misread stuff, edited out the stuff I said wrong!
--Andy P
Edited by - andypro on 11/27/2005 5:27:48 PM
Edited by - andypro on 11/27/2005 5:31:14 PM