What I've done with my projects when using a 16F884 is follow the general command of LCDOUT. I copied the code from my last project, I think it should work the same for you. So if I had a value previous stored in the variable V, and wanted to display that value, I would do. The dec4 will show 4 sig figs.
Code:
LCDOUT $FE, 1, dec4 V
Another forum member showed me this, but if you want to use decimal precision as well the code is as follows. So say you are reading voltage on a pin and want that displayed with a decimal. You first have to store each digit as a variable, then display it.
V = a number that was been previously stored during the program in a variable
Code:
A = V DIG 4
B = V DIG 3
C = V DIG 2
D = V DIG 1
LCDOUT $FE, 1, "Voltage ", dec1 A, dec1 B, ".", dec1 C, dec1 D
Hope this helps.
-Marcus
Bookmarks