I have a 126x64 graphic LCD using HD61202/HD61203 controller chips. I have the datasheet for the LCD, and have wired it up to the parallel port using guides on the forums.
http://www.reloded.com/images/interface.gif
I followed the diagram below to wire my LCD up to the parallel port:
http://www.skippari.net/lcd/displaytech12864a.gif
Seeing as the model I have does not have a negative voltage generator on-board, I built one using the ICL7660S "Super Voltage Converter" chip:
http://www.reloded.com/images/negvolt.gif
I built the voltage inverter exactly as required based upon the above diagram, and feed the -5v to the VEE of the LCD. All other wiring on the LCD is correct (DB0-DB7, CS1, CS2, etc).
The only thing that I am unsure about is the LCD contrast wiring. Given that my LCD does not have a Vout (its not producing a negative voltage, it requires one), how should I wire up the contrast potentiometer? One leg should still go to Vdd I presume, and another to the contrast adjustment Vo, but I am unsure as to where the third leg should go? Maybe to Vdd? (Currently I have legs going to Vdd, Vee, and Vo, should it be Ground rather than Vee?)
I've tried 2 arrangments of the potentiometer, but neither one displays anything on the LCD. In fact, I have yet to get the LCD to even function at all. (Also, I cannot even tell which legs of the potentiometer are which, cant find any info on my particular model. Two of the legs are set back slightly from the third however? Would this generally make the third leg the output leg?
The +5v and Ground lines for the LCD are supplied via a modded 4-pin molex from my PC's PSU. Is there anything wrong in doing this?
Cable being used to attach to parallel port is 26-pin ribbon cable.
To me it seems that the contrasts should not really alter whether the LCD actually works or not, yet I have been unable to get it to do so. I've tried the KS0108 test program; clicking StartDriver, then Initialize LCD is fine (LCD doesnt actually do anything visibly though, should it?) but when I then click Test or Show BMP, the program hangs/crashes.
The only other thing that I can think is that the LCD itself is broken. When wiring it I had to take off the metal cover over the screen itself, and the screen did come off after this (the screen and rubber contact bits along the top and bottom) could this have damaged the screen in some way? I did put it back on carefully and reattached metal cover, and it should be lined up correctly with the contacts on the LCD's PCB.
I'm totally at a loss, other than the contrast not being wired correctly and causing the LCD not to be detected or function at all (shouldn't it display *something* just when it recieves power?) I cannot think what would be causing my problems.
Any ideas would be appreciated
[EDIT] The datasheet for the LCD says the Logic supply voltage (VDD) is Min 0v, Max 7v and the LC driver supply voltage (Vo) is Min 0v, max 24v
Should I be supplying more than 5v to the LCD?