in this case, using the simulator should give the same results as with hardware. since this is not the case, it is likely that there is a problem with the hardware.
when you use initlcd in your code, that will be the place when the lcd will be initialized.
So you could do ;
initlcd
waitms 1000 ' let wait for a sec
'now your code
then some other things to consider :
- use a string and show that on the lcd and then see what you get
- use serial port to show the value.
what you need to know : what is the actual value : is it really the value that bin() produces, or does the lcd show it wrong?
with ISIS you can simulate hardware reasonable accurate. so it might pay off to test the same in ISIS.
↧