Hi,
That depends on HOW you scale the values and what's actually stored in B0, B1 and B2. As written the LCDOUT statement will send whatever is stored in B0 to the LCD meaning that if the B0 holds the value 65 you'll get the letter 'A' on the screen because the ASCII code for 'A' is 65. So, if you have ALREADY converted the value to ASCII and stored the first digit in B0 and the second in B1 then what you have is correct.
What
I suspect you want is something like
Code:
Voltage VAR WORD
Voltage = ADResult */ 125 'Convert 0-1023 to 0-500 (roughly)
LCDOUT $FE, $80, DEC Voltage / 100, "." DEC Voltage // 100
/Henrik.
Bookmarks