📄 ppttrouble.docbook
字号:
<sect1 id="ppttrouble"><title>Parallel Port Troubleshooting</title><para>Unfortunately attaching an LCD module to a parallel port is nottrivial.</para><para>In most cases it requires soldering abilities and basic knowledgeof electronics.</para><para>The following hints might be helpful:</para><sect2 id="ppt-check-wiring"><title>Check The Wiring</title><para>Wiring errors can easily be made. If you are unexperiencedwith the soldering iron better have someone solder it foryou. Display modules are sensitive to electro staticdischarges, so touch an earthed surface (computer case,water pipes...) before you handle these.</para></sect2><sect2 id="ppt-power"><title>Power Source Unregulated / Noisy</title><para>Make sure your power supply delivers steady 5 Volts with-out noise or interruptions. The bare wall plug in trans-former is not suitable, though you can make it stabilizedby adding an 7805 and a few capacitors.Some noise induced in the supply lines my be tricky totrack, even if you have an oscilloscope.</para></sect2><sect2 id="ppt-GND-lift"><title>Ground Lift</title><para>The power supply wires and especially the GND wires shouldbe a little thicker than the other wires. If GND is notthick enough (or not existent, see 1) the resistance of thewire may cause differing GND potentials in the circuit.This may lead to strange display behaviour. It may also bewise to solder a 100nF capacitor directly to the GND andVDD pins of the display.</para></sect2><sect2 id="ppt-latchup"><title>Latchup</title><para>Never let the supply voltage get much below the io signalvoltage. It may lead to a latchup condition which willdestroy the controller chip on the display.</para></sect2><sect2 id="ppt-contrast"><title>Contrast</title><para>If you don't see anything on your display it may be thatyour contrast voltage is set wrong. Turn your contrastpotentiometer all the way to the end connected to GND.Contrast is highest then.</para><note><title>Beware</title><para>The module you got so ultra cheap may be anenhanced temperature model which needs a negativecontrast voltage for sufficient contrast - see chapter99 on how to make negative voltage.</para></note></sect2><sect2 id="ppt-voltage"><title>Parallel Port Voltage</title><para>Many modern mainboards and especially notebooks will notnearly output 5V for a logic H as the older parallel portsdid, because the operating voltage of computers is lower than5V these days. I have measured voltages between 2.5V and 4Vfor logic H, which is barely within specification of theHD44780. If you account RCL of your cable, this may not beenough and can cause unreliable operation.</para></sect2><sect2 id="ppt-signal-rise-timing"><title>Enable Signal Rise Time</title><para>If you ever read the HD44780 datasheet you will notice thatsomewhere in the 'signal timing' table is written: 'EnableSignal Rise Time max. 20nS'. That means the Voltage on theHD44780 pin called 'Enable' has to rise from 0 Volts to 5Volts within 20 Nanoseconds and the other way round. Theyshould better print that in big fat red letters, becausemost HD44780s are really picky about the enable signal risetime.</para><para>That is a Problem: If you count together the bad drivingcharacteristics of the parallel port combined with thecapacitance of flat ribbon cable you may easily get anorder of magnitude slower rise time.Therefore you should only use really short cable ( shorterthan 50cm) for connecting the display to the parallel port.It may also be useful to use pull-up resistors on the displaymodule or a schmitt-trigger.</para><note><para>The rise time of a digital output can (usually) not bealtered by Software.</para></note></sect2><sect2 id="ppt-emi"><title>EMI</title><para>The cable from the parallel port to the display maybe sensible to electromagnetic interference and may emitelectromagnetic radiation. If you place your cellphone nearthe cable, you may get unexpected display readings, onthe other hand your house neighbour may not be able to listento his/her favourite radio station any more - so better useshielded cable and put the display in a metallic case, perhapsa computer case.</para></sect2><sect2 id="ppt-black-lines"><title>One or Two Black Lines</title><para>If you see one or two black lines on the display it meansnothing more than that the display is powered and contrastvoltage is present. If one or two black lines appear thecontroller has not been reset properly by the on chip poweron reset generator. No need to worry - it will be reset bythe <application>LCDd</application> software. But if theblack line will not disappearalthough the wiring is working, the controller on the displaymay be defective.</para></sect2><sect2 id="ppt-too-fast"><title>Software Too Fast</title><para>If you have a super GHz computer it may happen that the signaltiming generated by <application>LCDd</application> is too fast.Adjust DELAYMULT in thesource file to a bigger value. Parallel port wirings usuallydon't permit to read back the busy flag of the controller chip,so timing must be adjust so that the controller never is busy.</para></sect2><sect2 id="ppt-backlight"><title>LED Backlight</title><para>Check whether you need a resistor for your LED Backlight andwhich value it should have. If you forget the required resistorthe backlighting LEDs might become hot and draw excessivecurrent.</para></sect2><sect2 id="ppt-hd44780-compatible"><title>HD44780 Compatible</title><para>The original HD44780 controller that we advertise to supporthas become the industry standard for alphanumeric characterdisplays. The original HD44780 is out of production. It hasmany successors from many manufactures, which sometimes won'ttell you that their chips are 'compatible'.</para><para>To name a few: KS 0066, KS 0070, KS 0076, LC 7985, NT 3881,SED 1278, ST 7066 ...</para></sect2><sect2 id="ppt-misc"><title>Miscellania</title><para>This text has originally been taken from a <ulink url="http://lists.omnipotent.net/pipermail/lcdproc/2002-May/005832.html">message</ulink> byRobin Adams <email>robin@adams-online.de</email></para><para>Converted to docbook and slightly modified May 2002, Rene Wagner <email>reenoo@gmx.de</email></para></sect2></sect1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -