GRAPHIC UNIT
Command table EA IC6963
Command
Remarks
Functions for outputting text
R
L
O
R/L/O/U: Write character string (R)ight, (L)eft, (O)ben (up), (U)nten (down);
n1: overlay combination mode for text output 1=set; 2=delete; 3=inverse;
4=replace; 5=inverse replace; ptn: use pattern no. 0..7;
T
F
n1 ptn
Text mode
Set font
U
Set font no. n1; n1=1:4x6 font; n1=2:6x8 font; n2=3:8x16 font n2+n3=zoom
factor (1..8); n2=X factor; n3=Y factor;
n1 n2 n3
A
Z
E
x1
x1
n1
y1 n1
The character n1 will be set at coordinate x1,y1. (Reference top left)
Output character string (...) to x1,y1; character ´NUL´ ($00)=end
n1=character no.; data =number of bytes dep. on current font
Set ASCII characters
Set character string
Define character
y1
... NUL
data ...
Graphics commands with overlay mode
V
P
n1
x1
x1
x1
x1
x1
x1
n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace;
Graphics mode
Set point
y1
Set one pixel at coordinates x1, y1
G
W
R
N
M
y1 x2
y1
y2
Draw straight line from x1,y1 to x2,y2
Draw straight line
Continue straight line
Draw rectangle
Draw round corner
Area with fill pattern
Draw a straight line from last end point to x1, y1
Draw a rectangle; x1,y1,x2,y2 = opposite corner points
Draw a rectangle with round corners; x1,y1,x2,y2 = corner points
y1 x2
y1 x2
y1 x2
y2
y2
y2 ptn Draw area with pattern ptn (0..7); x1,y1,x2,y2 = corner points
Other graphics commands
D
D
D
L
L
Delete entire contents of display (set to white);
Delete display
Invert display
Fill display
I
Invert entire contents of display;
S
Fill entire contents of display; (set to black);
x1
x1
x1
x1
x1
y1 x2
y1 x2
y1 x2
y1 x2
y1 x2
y2
y2
y2
Delete an area; x1,y1,x2,y2 = opposite corner points
Invert an area; x1,y1,x2,y2 = opposite corner points
Fill an area; x1,y1,x2,y2 = opposite corner points
Delete area
Invert area
I
S
O
J
Fill area
Draw box
y2 ptn Draw a rectangle with fill pattern ptn (0..7); (always replace)
y2 ptn Draw a round corner with fill pattern ptn (0..7); (always replace)
Set the bar graph with the ´nr´ (1..8) to the new user ´value'
Draw round box
Draw bar graph
Upload picture area
B
U
nr valu
x1
y1
data ...
Load a picture area to x1,y1; see picture structure for picture data
Control / definition commands
R
L
O
Define bar graph to L(eft), R(ight), O(up), U(down)
with the ´nr´ (1..8). x1,y1,x2,y2 form the rectangle
enclosing the bar graph. aw, ew are the values for
0% and 100%. ptn=pattern (0..7).
B
C
nr
x1
y1
x2
x2 y2 aw ew ptn
Define bar graph
U
B
S
R
K
H
L
The entire contents of the display will be copied to the clipboard
y2 Picture area extending from x1, y1 to x2, y2 will be copied to the clipboard
The picture area on the clipboard will be copied back to the display
The picture area on the clipboard will be copied to x1, y1 in the display
The picture area on the clipboard will be sent as hard copy via RS232
Load a picture area to the clipboard; see picture structure for picture data
y2 Defines a flashing area x1,y1 to x2,y2; activate flashing function
Set the flashing time n1= 1..15 in 1/10s; 0=deactivate flashing function
Inverse mode (flashing area will be inverted); activate flashing function
Clipboard mode*) ptn=pattern(0..7) of the block cursor; activate flashing
Activate display with address n1 (n1=0..3; n1=255: all)
x1 y1
x1 y1
Clipboard commands *)
(buffer for picture
areas)
data...
D
Z
x1 y1
x2
n1
I
Automatic flashing area
(cursor function)
Q
K
M
ptn
S
D
Select / deselect
graphics lcd
n1
Deactivate display with address n1 (n1=0..3; n1=255: all)
n1=0..7: reset I/O port n1 (n2=0); set (n2=1); invert (n2=2) n1=8: Set all 8
I/O ports in accordance with n2 (=8 bit binary value)
Another display can be set. n1=X resolution (64..240); n2=Yresolution
(16..128); LO, HI16-bit picture start address (normally $0000)
Y
!
n1 n2
n1 n2 LO HI
Write I/O port
Set display type
Send commands
An area is requested as a picture. The width and height are sent in pixels
first of all, followed by the actual picture data, via RS232.
n1=0..7: load I/O port <n1> (1=H level=5V, 0=L level=0V) n1=8: load all 8
I/O ports I/O0..I/O7 as 8-bit binary value
This command is used to query the display type. 3 bytes are sent back: X
resolution, Yresol., 'H' (e.g. 240, 64 (pixels), horizontal picture)
H
X
?
x1
n1
y1 x2
y2
Hard copy
Read I/O port
Query display type
4