Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Need help interfacing LM35 - PIC16F877A - LCD16x2

Status
Not open for further replies.

bluesam

New Member
dear all,
i am a newcomer here. i'm a student in Physics, but i have an project that involves electronics project.
especially interfacing LM35 - PIC16F877A - LCD 16x2.
i've searched this forum but i only found the circuit diagram, minus the script. but i know that i must have both the circuit diagram and the script in assembly, hex, etc.
here is the thread i found: https://www.electro-tech-online.com/threads/lm35-to-pic16f877a.90494/

since i've concentrated in physics matter in this assignment, would you guys be kind to help me with the circuit diagram and the script?

it'll be a great help so i can concentrate in Physics subject in this assigment
you are very much appreciated and i'm looking forward for your respond
ps: did i post in right room?

best regards,
bluesam
 
thanks eric, i've just read the zip that you posted.
the readme.txt file tell me: Here is two different circuits for temperature sensing and display it in seven segment LED Displays from two different authors.
what do i suppose to do to change that interface to into LCD 16x2 interface?

regards,
bluesam

hi,
Look at this link, Nigel's tutorials explains how to drive LCD's/
 
@eric: thanks for the tutorial too, eric

by the way is any other opinion, tips, suggestion guys?
anything related is welcome bro and sis
 
Last edited:
Dear eric and all too,

I made the circuit based on the thermo.zip that you linked me the picture is below

But then when i try to simulate in Proteus, it's given an error "Memory violation" if i load the temp.hex file

Is my circuit in correct state?

thanks
bluesam
 

Attachments

  • toreview.jpg
    toreview.jpg
    294.7 KB · Views: 2,584
  • TEMP.HEX
    4.9 KB · Views: 347
  • Read_me_reference.txt
    2.1 KB · Views: 368
hi,
I have disassembled the hex file to asm, using Nigel's WinPic.
Now it works in Oshonsoft, the vid and asm are in this zip.
 

Attachments

  • tempvid2.zip
    455.2 KB · Views: 552
i used Nigel's WinPic to get asm and then i generated again to get new hex, didnt work.
i'll try once more eric.
however it's good news if it's run in your oshonsoft.
thanks
then i confident to try it in hardware circuit

bluesam
 
hello eric
i used the asm that you gave me in mpasmwin to get a hex file
but it didnt work either
did you modify the the hex in asm?
if you did, would you mind to post the hex file from your asm?

thanks
bluesam
 
hello eric
i used the asm that you gave me in mpasmwin to get a hex file
but it didnt work either
did you modify the the hex in asm?
if you did, would you mind to post the hex file from your asm?

thanks
bluesam

hi,
No mods.
I have assembled it again to give a hex file, attached..
 

Attachments

  • TEMP.hex
    4.9 KB · Views: 311
thanks i got it eric
i did go for another run in my proteus but it still've not worked
i think my proteus is at fault somehow
i think it's time to find another simulation software
okay i decide to run it in hardwire

thanks for your help eric
bluesam
 
thanks i got it eric
i did go for another run in my proteus but it still've not worked
i think my proteus is at fault somehow
i think it's time to find another simulation software
okay i decide to run it in hardwire

thanks for your help eric
bluesam

hi,
In your thread title, you have named it LCD, as you may know the program is for a dual LED.
 
hi eric
please look at my post number 4 in this thread
i posted some jpg image file of the circuit
did i do the right circuit?
bluesam
 
hi eric
please look at my post number 4 in this thread
i posted some jpg image file of the circuit
did i do the right circuit?
bluesam
hi,
I have used that diagram, it looks OK.

I have been looking at 'memory violation' errors, it is most likely your PC, not the Proteus, how much memory does your PC have.?

EDIT:
**broken link removed**
 
Last edited:
dear eric,

i posted the image of my simulation log below
my computer has 1024 mb of RAM

i did run pic hex at my Proteus (other program) but it was ok
but this time it didnt give its best

bluesam
 

Attachments

  • simullog.jpg
    simullog.jpg
    231.5 KB · Views: 682
Last edited:
wow thanks eric
it is working now in my Proteus
i'm still wondering why i didnt search google in first place

you help me till find the solution
bluesam
 
hello all
i get this warning pc=0x0507 'ADC conversion started before wait time has expired'.
this warning is influencing the 7 seg display in the hardwired/real circuit
then i've searched in asm to see pc=0x0507
but i've not found yet the address pc=0x0507
i wonder why
would anyone help?
 
temperature sensor

m doing project temp sensor using lm35,pic16f877A,and 16*2 lcd display..can some help me??
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top