Interfacing - 16 1characters X 2 Lines LCD
Interfacing - 16 1characters X 2 Lines LCD
Description.
This is the first interfacing example for the Parallel Port. We will start with something simple. This example doesn't use the Bi-directional feature found on newer ports, thus it should work with most, if no all Parallel Ports. It howe er doesn't show the use of the !tatus Port as an input. !o what are we interfacing" # $% &haracter x ' (ine (&D )odule to the Parallel Port. These (&D )odules are er* common these da*s, and are +uite simple to work with, as all the logic re+uired to run them is on ,oard. LCD DISPLAY LCDs also are used as numerical indicators, especially in digital watches where their much smaller current needs than LED displays (microamperes compared with mill amperes prolong !attery li"e# Li$uid crystals are organic (car!on compounds, which e%hi!it !oth solid and li$uid properties# A &cell with transparent metallic conductors, called electrodes, on opposite daces, containing a li$uid crystal, and on which light "alls, goes &dar' when a (oltage is applied across the electrodes# )he e""ect is due to molecular rearrangement within the li$uid crystal# )he LCD display used in this pro*ect consists o" + rows# Each row consists o" ma%imum ,- characters# So using this display only ma%imum o" .+ characters can !e displayed#
!chematic
&ircuit Description
#,o e is the +uite simple schematic. The (&D panel's Enable and Register Select is connected to the &ontrol Port. The &ontrol Port is an open collector - open drain output. While most Parallel Ports ha e internal pull-up resistors, there are a few which don't. Therefore ,* incorporating the two $./ external pull up resistors, the circuit is more porta,le for a wider range of computers, some of which ma* ha e no internal pull up resistors. We make no effort to place the Data ,us into re erse direction. Therefore we hard wire the R/W line of the (&D panel, into write mode. This will cause no ,us conflicts on the data lines. #s a result we cannot read ,ack the (&D's internal Bus* 0lag which tells us if the (&D has accepted and finished processing the last instruction. This pro,lem is o ercome ,* inserting known dela*s into our program. The $.k Potentiometer controls the contrast of the (&D panel. 1othing fanc* here. #s with all the examples, I' e left the power suppl* out. 2ou can use a ,ench power suppl* set to 3 or use a on,oard 43 regulator. 5emem,er a few de-coupling capacitors, especiall* if *ou ha e trou,le with the circuit working properl*. #
Features
,- Characters % + Lines / % 0 Dots with Cursor 1uilt in Controllrer 2/( Power Supply (Also A(aila!le "or 2.3 ,4,- Duty Circle