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...
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.
Last edited by aratti; - 2nd August 2009 at 15:30.
All progress began with an idea
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks