
Originally Posted by
Ioannis
You should make it word. 30*10=300 > than a byte can hold.
Also better make the multiplication outside the comparison.
Use the LCD as a monitor to check your values.
About compilation, I guess it is a syntax error thing.
Ioannis
hi,
I have define Tcomp VAR WORD
and now i have :
Code:
tcomp=tmax*100
lcdout $FE, 2, "Temp. ",dec2 (temperature/100),".", dec1 (temperature//100),$DF,"C "
lcdout $FE, $C0, "Tmax ",#Tmax DIG 1,#Tmax Dig 0," Tco ",dec2 (Tcomp/100),".", dec1 (Tcomp//100)
On display i see :
Temp. 23.5°C
Tmax 30 Tco 30.0
And PORTA.6 go at 1 the same
Bookmarks