Thanks tasmod, with this statement "LCDOUT $ FE, $ 80, # A" now everything seems to work ok. But what has changed? I have always used "DEC A" and has always worked. What is the problem? Thank you again
Thanks tasmod, with this statement "LCDOUT $ FE, $ 80, # A" now everything seems to work ok. But what has changed? I have always used "DEC A" and has always worked. What is the problem? Thank you again
Nothing changed. You forgot $80 before your variable.
Ioannis
No, it is so, even this statement "LCDOUT $FE,$80,DEC A" does not work.
I always did this from early PicBasic days. Can't remember why.
#A Meaning the decimal representation of an ASCII value.
I always assumed that in a loop declared as a character, the loop iterated the character the number of times in the loop (i.e. first time round, A=1 in decimal but A was still a character representing that value)
Hope that makes sense.
Thank you for your interest, but I do not understand is that I have used this statement thousands of times with the 18F252 that I used before. Now I'm in trouble because I need to show the value of "A" sometimes using two digits (DEC2) and sometimes three digits (DEC3) and I do not know how.
I was missing something typical to the ' 2620 ... see attachment.
Your config section looked MUCH too light ...
ALWAYS ... "RTFM" moreover when using a new processor kind ...
Last edited by Acetronics2; - 25th January 2012 at 12:37.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks