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.

problem with lcd

Status
Not open for further replies.

geboy

New Member
hi everyone. I got a lcd volt meter project from internet. my friend is doing that project. He has not
connected any inputs or anything but he is getting ouput at lcd as shown in pictureView attachment 62068
I do not under stand what is the problem
I have also attached the necessary files as below
 
It probably doesn't help having massively long leads to the display - however, it's the sort of 'wrong characters' you can get if two of the data lines are shorted together (or to ground), so it's worth checking carefully for shorts.
 
I told him to change the configuration of pic to RC oscillator and also changed the crystal to RC(R=3.3k and C=100pf) and now it displays correctly. Why is that?
 
Like I said... A timing issue.... A R/C configuration will be running considerably slower... The timings on the LCD are now WELL above the minimum settings..

I thought that you needed to specify a crystal frequency with that compiler (I may be wrong ).
 
The 44780 chipset needs a time delay inbetween writing characters, as the chip needs to update the display, if you try to write another character or certain instructions too soon after the last one then the display will corrupt, if you wait to long it will still work fine.

Your mates delay routine was probably not taking long enough as the xtal frequency wasnt setup correctly.

I assume that the software is using the minimum wiring communication protocol, if all the connections from the display were made available there is a busy flag that can be read before writing the next character.

Basically I've just expanded on the post above.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top