
DISPLAY PORT CHAPTER 8
Page 28 RPC-30
DISPLAY TYPES
CAM BASIC assumes there is a controller on the display.
Its software driver is based upon the characteristics of
the display family. Compatible VF and LCD displays
are shown below:
Manufact. Model Type
Optrex DMC 40457 LCD 4 x 40
Optrex DMC 40202 LCD 2 x 40
IEEE 3601-90-080 DF 4 x 20
Optrex DMF 5003N LCD 160 x 128
DISPLAY CONNECTOR PINOUT - J4
The display port uses an 82C5 5 for data and control.
The table below lists a pin number and its intended
function. A display may not use all lines even though
they are available.
J4 8255 Function
Pin Port/line
1 Logic + 5V
2 Digital ground
3 A/4 D4
4 Contrast
5 A/6 D6
6 A/5 D5
7 B/4 Reset
8 B/3 Write
9 B/2 Read
10 A/7 D7
11 A/1 D1
12 A/0 D0
13 A/3 D3
14 A/2 D2
15 B/7 CS
16 B/6 Command/ data
17 B/5 Halt
18 Ext. contrast
19 Alternate power
20 Power ground
The contrast adjustm ent (J4-4) provides a var iable
voltage from + 5 to -7 VDC. External contrast (J4-18)
is an external voltage required for gr aphics displays.
J4 is available for additional I/O if a display
is not used. Port A may be configured as an input or
output. Port B must be configured as an output if a 17
key or larger keypad is used.
The address for port A is 80; port B is 81. Use
CON FIG PIO to configure the port.
COMMANDS
The following CAM BASIC commands are used for the
display.
Command Function
CONFIG DISPLAY Specifies the display type
to use. Use &50 for the
address.
DISPLAY Prints the string at the
row and collum specified.
The following commands are applicable to the LCD-
5003 graphics display.
DISPLAY LINE Draws a line.
DISPLAY P Prints a dot to the screen.
DISPLAY [ON][OFF] Turns on graphics and
character displays.
CLEAR DISPLAY Clears graphics and/or
character display.
See the DISPLAY command for mor e variations.
Commenti su questo manuale