Please help in program

Status
Not open for further replies.

Code Warrior

Full Member level 4
Joined
Dec 30, 2004
Messages
230
Helped
10
Reputation
20
Reaction score
2
Trophy points
1,298
Activity points
1,831
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
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…