Very stuepied queastation ,but (((.
for pic16F84A
for example if we have :
dc var word
dc=1/5
how to display on lcd
i have tried
lcdout $FE,1 , dec4 dc....
the result is "0"
P.S I am in the beginning of pic basic pro...
Printable View
Very stuepied queastation ,but (((.
for pic16F84A
for example if we have :
dc var word
dc=1/5
how to display on lcd
i have tried
lcdout $FE,1 , dec4 dc....
the result is "0"
P.S I am in the beginning of pic basic pro...
Since PBP cannot deal with decimal you have to overcome the limitation in this way:
dc = 100/5 (dc=20)
LCDOUT $FE,1 ,"0.0",#dc
display 0.020
Al.
Must be that "new math" ;) , .20, you can display that as a string by putting it in quotes, LCDOUT $FE, 2, "1/5" , or as Al pointed out LCDOUT $FE,1 ,"0.",#dc , where the STRING "0." are just symbols for you humans to get your mind around and the real data follows from #dc