Академический Документы
Профессиональный Документы
Культура Документы
Alphanumeric Display
Programmer’s Guide
This document describes the programming of the
alphanumeric displays with graphics capabilities.
The first commands discussed are the text
commands starting with simply writing text to the
display then progressing through scrolling the
display, setting the text and back ground colors,
finishing with writing display information to DA-244 DA-248 DA478A
memory and reading the information back to the Width 32 64 40
display. The second section of the document [Pixels]
covers the graphics commands used on the Height 8 8 7
display. [Pixels]
Text 20 64 20
Connection and Communication Display Characters Characters Characters
The displays are to be driven from an RS422 Buffer
source with both transmit (TX) and receive (RX) Text 15 Text 63 Text 15 Text
connections. An example is using the Alzatex Storage plus plus plus
PS422A1 to drive the display and an RS232 Buffer 1 Control 1 Control 1 Control
interface such as a hyperterminal to drive the Graphics
PS422A1. Power is provided to the display from Buffer 8 x 32 8 x 64 7 x 40
the RS422 connection. Do not connect power to [Pixels]
the power jack in the back of the display.
Displays can be daisy-chained together to form a
system of displays all controlled by the same Text Commands
serial port.
Commands are common to all three
configurations. Commands are in capital (upper
General Configurations. case) letters and are in many cases preceded by
There are three configurations of these displays; the quote character (“).
the DA-244, the DA-248, and the DA-478A.
The DA-244 Display is 8 pixels by 32 pixels. Command DSPxxxx
The DA-248 is 8 pixels by 64 pixels. The DA-
The command DSP will write characters to all
478A is 7 pixels by 40 pixels.
displays at one time. In a single display
configuration there is no difference between this
command and the command to direct characters
to a specific address to display (The “Ln
command). The exception is if the address in the
“Ln command is not the address of the display.
Command “Lnxxxx
Command “Lnxxxx will write up to 20 characters
to one of 32 display addresses n (n has potential
values of 0-9, A-O {note, capital letters only},
and the characters : ; < = > ? @). For example to
write “Hello” to address 2 use the command:
“L2Hello
In a single display system this is identical to the
DSP command, except that the DSP will force a
display even if the intended address s is not the
address of the display.
Version=1 1 www.alzatex.com
Display Programmer’s Guide 07 Feb 07
Version=1 2 www.alzatex.com
Display Programmer’s Guide 07 Feb 07
Version=1 3 www.alzatex.com
Display Programmer’s Guide 07 Feb 07
Command “G
This command is used to load in graphics display
into the memory. The “G command uses only
legal ASCII characters. These cannot be stored
into EEPROM.
The command format is:
“Gxxyyabcdabcdabcd
Where xx is the width across
(in multiples of 2 pixels only)
yy is the height down (up to 8 on
a single line display)
abcd is the Hex code for the colors
This would read as 2 Reds(F), 2 Yellows(A), 2
Each letter (a, b, c, or d) is
Greens(5), Yellow Red pair(E), Yellow Green
the code for two pixels.
pair(6), Green Red pair(D), Green Yellow
the settings of the individual pixels is set two at a
pair(9) then repeat (Arrow points to repeat start)
time or bytewise. The color coding is:
00 – blank
If the screen becomes garbled use the DSP
01 – Green
command with no text to clear the screen
10 – Yellow
followed by a “G0707000000000000000
11- Red
(lots of zeros) command executed twice to clear
For example, the easiest command to start with
the graphics buffers.
is:
“G02026D
This would match the above form as: Command “X
“Gxxyyab This command controls the position of the
This gives a two pixel wide and two pixel high graphics and is used in combination with the “G
pattern where the hexadecimal 6 decomposes and the “B commands.
into 01 and 10 in binary which is a Yellow pixel The format is
and a Green pixel. Below this the hex D which
decodes to a 11 and 01 which turns on a Green “Xxxyy
pixel and a Red Pixel. Where xx is the right offset from the upper left
corner and yy is the downward offset from the
upper left corner. These values are in
hexadecimal. For example, to put the display in
the third position down the command would be:
“X0002
The limit on xx is 32,40, 64, or 128 depending
on how many units are linked together.
The limit on yy is 8 for a single line display or 16
for a double line. In reality, the yy limit is 06
because a 08 would cause the display to wrap
around.
Version=1 4 www.alzatex.com
Display Programmer’s Guide 07 Feb 07
Version=1 5 www.alzatex.com
Display Programmer’s Guide 07 Feb 07
Version=1 6 www.alzatex.com