
DISPLAY & KEYPAD PORTS BASIC SECTION 11
Page 11-2
Next, display type is set using the CONFIG DISPLAY
command. Functional display types are 0 for the 4 x 40
character display and 1 for the 4 x 20.
CONFIG DISPLAY 0
initializes the display and software for a 4 x 40 character
display.
CONFIG LIN E must be executed before CO NFIG
DISPLAY.
The DISPL AY comm and is used to position and print
information.
DISPLAY (0,2),”Hello”
Starts writing at the first line, 3rd column.
Row and colum n positions begin with number 0. T hus,
(0,0) is the upper left corner. (1, 3) is the second line,
4th column position.
DISPLAY may be used without row and column
positioning information. In that case, printing picks up
where the cursor is at.
CLEAR DISPLAY is used to clear the entire display.
CLE AR D ISPL AY L INE clears the line the cursor is
currently at and positions the cursor at the beginning of
that line.
Hiding the cursor
The cursor cannot be hidden. It can be placed out of the
way, usually in the lower right corner For the 4 x 40
display, execute
DISPLAY(3,39)
and for the 4 x 20 display, execute
DISPLAY(3,19)
USING “UNSUPPORTED” DISPLAYS
Other LC display sizes, such as 1 x 16 or 2 x 20, will
work. Display pin outs, described below, are different
for differ ent displays. However, you should be able to
use the DISPLA Y CO NNECT OR P IN OU T table to
make a custom cable.
Displays with one “E” line should be initialized for the 4
x 20 display. The next real issue becomes positioning
the cursor. Position (0,0) and the top row is universal
and you can use the positioning part of the DISPLAY
statement without problem (usually). Accessing other
lines may be tricky. This will depend upon the size of
the display used. The fastest way to determine cursor
position is to try using different DISPLAY (X,Y)
commands.
DISPLAY PIN OUTS
Pin outs for a size and type of LC D are generally
standard. However, pin outs for different display sizes
are not. The mechanical pin out for a 4 x 40 display is
different from a 4 x 20, which is different from a 2 x 20.
Some are dual 16 pin, others are dual 14 pin, and some
are single line 14 pin. To further complicate matters,
the numbering scheme changes whether you take the
signals from the top or bottom of the display.
Electrically, all of these displays are the same or very
similar.
The following tables are pin outs for J4 on the RPC-210
and the two most popu lar display types. Table 13- 2 is
for a 4 line by 40 character display. Table 13-3 is for
most other displays. This table is usually valid for 14
pin displays.
J4 pin out was optimized for a Optrex 4 x 40 display. A
simple 16 pin IDC connector from J4 to the display is all
that is needed. T he connector fr om this display must
mount on the bottom o f it.
Other 14 pin, dual in line displays m ay also directly
connect using a simple IDC connector. The display
connector mounts on the top side and the ribbon cable is
reversed (display pin 1 goes to pin 14 on J5 side).
Connector Orientation
J4 is an open header connector. Pins 1 and 2 are marked
on the board. As a further aid, a " key" outline is also on
J5.
CONTRAST/ANGLE ADJUSTMENT
Pot R7 is used to adjust display contrast and viewing
angle. The pot is ad justed to 0V at the factory. Its
range is approximately + 5V to -2V, depending upon
display current draw. Adjust R7 for best contrast after
initialization.
Kommentare zu diesen Handbüchern