Appears to me like a timing issue.... I thought you had to specify Xtal speed.
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 pictureVOLT METER.jpg
I do not under stand what is the problem
I have also attached the necessary files as below
Appears to me like a timing issue.... I thought you had to specify Xtal speed.
I'd give my left arm to be ambidextrous
Nigel's tutorials in asm... http://www.winpicprog.co.uk/
Nigel's tutorials.. re-written in C. http://www.electro-tech-online.com/c...torials-c.html
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.
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
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 ).
I'd give my left arm to be ambidextrous
Nigel's tutorials in asm... http://www.winpicprog.co.uk/
Nigel's tutorials.. re-written in C. http://www.electro-tech-online.com/c...torials-c.html
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.
| Tags |
| Similar Threads | ||||
| Thread | Starter | Forum | Replies | Last Post |
| Problem with LCD code? | spondootre | Microcontrollers | 15 | 29th April 2008, 09:15 AM |
| Security Door Project.Problem With Lcd.Plese Help!! | muras | Electronic Projects Design/Ideas/Reviews | 8 | 18th July 2006, 07:12 AM |
| wierd problem with lcd | jijita | General Electronics Chat | 0 | 29th August 2004, 08:02 PM |
| problem with LCD module | samcheetah | General Electronics Chat | 14 | 24th August 2004, 06:31 AM |
| code problem with lcd wg128 64b | jijita | Microcontrollers | 0 | 23rd August 2004, 07:44 PM |