Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top