I donīt know if this is a common problem with LCD-displays, but mine is dead . On startup It only shows one line with black squares and then nothing happens. Iīve tried my code on a LAB-X1 dev-board (http://student.msi.vxu.se:3458/users/dbadt03/labx1sch.pdf) and there it works perfectly. But right now Iīm using a homemade card with the same LCD as on the dev-board and nothing works. Hereīs a picture of my own card with three PIC16F877A and the LCD connected to the 14-pin bridge in the upper-left corner. The upper PIC is the only one connected to the LCD, so donīt worry about the other two.
http://student.msi.vxu.se:3458/users/dbadt03/lcd_problem.bmp
On the right side of the layout you can see how the LCD is connected on the LAB-X1. Iīve tried to connect my display the same way.
I think my program freezes when it tries to check the busy-flag on the LCD. Why I donīt know.... If you look at the schematic for the dev-board thereīs a LED-bridge with resistors that shares PORT-D with the LCD. The resistors are connected to Vdd, so I tried connecting the data-wires on my card to Vdd using eight 470-resistors. But that didnīt work either...
Hereīs some bits and pieces from my code concerning the LCD:
Can someone please tell me whats wrong? And donīt tell me to use the CCS-provided LCD-drivers, because I really donīt think thatīs the problem here....
/David
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Tue Jun 06, 2006 4:21 pm
The display is most likely not getting initialized properly. Either the code is not correct or the connections are wrong. A line of black squares is common for a display that has not been initialized. Check and re-check your connections and then make sure the code is sending the initialization strings properly. You might want to make a kind of break-out box and hook up LED's to each pin. Then, step through each command that sends data to the display. This might help you see if the correct strings are getting to the display.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum