that's interesting, how about if you just change to
Or having anoher Var likeCode:if compvalue > (vin + 1) then serout porta.5,6,[#vin,10,13] endif
Code:TestVar=vin+1 if compvalue > TestVar then serout porta.5,6,[#vin,10,13] endif
that's interesting, how about if you just change to
Or having anoher Var likeCode:if compvalue > (vin + 1) then serout porta.5,6,[#vin,10,13] endif
Code:TestVar=vin+1 if compvalue > TestVar then serout porta.5,6,[#vin,10,13] endif
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hmmn. Neither of these seem to work as I would expect.
I find it works better if I put a "pause 5" at the end. Not quite sure if it is down to a speed issue?
How about if you just monitor you reading on a LCD or Serial PC communication? Is there variation as it's suppose to have, or the results are just messy?
How about your ADC config?
How about the impedance of your POT? Must meet the maximum state in the datasheet...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks