Code Warrior
Full Member level 4
I have written program in PICBasicPro for temperature indicator project. I am using PIC16F84A, DS1621 and 16X2 LCD module.
My problem is it does not show temperature reading in LCD. But it shows the string "Temperature" on first line of LCD module. please tell me what mistake I did. please suggest me right code.
.
.
.
Temp var byte
Lcdout $fe, 1 ' Clear screen
Pause 500 ' Wait .5 second
Lcdout "Temperature" ' Display "Hello"
Pause 500 ' Wait .5 second
while(1)
i2cwrite PORTA.2, PORTA.3, $90, $EE
I2cwrite PORTA.2, PORTA.3, $90, $AA
i2cread PORTA.2, PORTA.3, $91, [Temp]
lcdout $fe, $c0, Temp
Wend
End
My problem is it does not show temperature reading in LCD. But it shows the string "Temperature" on first line of LCD module. please tell me what mistake I did. please suggest me right code.
.
.
.
Temp var byte
Lcdout $fe, 1 ' Clear screen
Pause 500 ' Wait .5 second
Lcdout "Temperature" ' Display "Hello"
Pause 500 ' Wait .5 second
while(1)
i2cwrite PORTA.2, PORTA.3, $90, $EE
I2cwrite PORTA.2, PORTA.3, $90, $AA
i2cread PORTA.2, PORTA.3, $91, [Temp]
lcdout $fe, $c0, Temp
Wend
End