Glk12232-25rev3 1 PDF
Glk12232-25rev3 1 PDF
Including GLK12232-25-USB
Technical Manual
Revision 3.1
Command Summary 1
Revision History
Revision Date Description Author
3.1 November 23, 2015 Initial Release Divino
0.2 Updated Images Clark
0.1 Initial Concept Clark
2 Command Summary
Contents
1 Introduction ............................................................................................................................................... 5
2 Quick Connect Guide.................................................................................................................................. 6
2.1 Available Headers ............................................................................................................................... 6
2.2 Standard Module ................................................................................................................................ 7
Recommended Parts ............................................................................................................................. 7
Serial Connections................................................................................................................................. 7
I2C Connections ..................................................................................................................................... 8
2.3 USB Module ........................................................................................................................................ 9
Recommended Parts ............................................................................................................................. 9
USB Connections ................................................................................................................................... 9
3 Software ................................................................................................................................................... 10
3.1 MOGD# ............................................................................................................................................. 10
3.2 Application Notes.............................................................................................................................. 11
4 Hardware.................................................................................................................................................. 12
4.1 Standard Model ................................................................................................................................ 12
I2C Communication/Power Header ..................................................................................................... 12
4.2 USB Model......................................................................................................................................... 12
Mini USB Connector ............................................................................................................................ 12
Alternate USB Header ......................................................................................................................... 12
4.3 Common Features ............................................................................................................................. 13
General Purpose Outputs ................................................................................................................... 13
Keypad Header .................................................................................................................................... 13
Protocol Select Jumpers ...................................................................................................................... 14
Hardware Lock .................................................................................................................................... 14
5 Troubleshooting ....................................................................................................................................... 15
5.1 Power ................................................................................................................................................ 15
5.2 Display ............................................................................................................................................... 15
5.3 Communication ................................................................................................................................. 15
5.4 Manual Override ............................................................................................................................... 16
6 Commands ............................................................................................................................................... 17
Command Summary 3
6.1 Communication ................................................................................................................................. 17
6.2 Text.................................................................................................................................................... 18
6.3 Drawing ............................................................................................................................................. 19
6.4 Fonts.................................................................................................................................................. 21
Font File Creation ................................................................................................................................ 22
6.5 Bitmaps ............................................................................................................................................. 23
Bitmap File Creation............................................................................................................................ 24
6.6 General Purpose Output ................................................................................................................... 25
6.7 Keypad............................................................................................................................................... 25
6.8 Display Functions .............................................................................................................................. 27
6.9 Filesystem ......................................................................................................................................... 28
File Transfer Protocol .......................................................................................................................... 29
6.10 Data Security ................................................................................................................................... 30
6.11 Miscellaneous ................................................................................................................................. 31
7 Appendix .................................................................................................................................................. 33
7.1 Command Summary ......................................................................................................................... 33
7.2 Block Diagram ................................................................................................................................... 35
7.3 Environmental Specifications............................................................................................................ 36
7.4 Electrical Tolerances ......................................................................................................................... 36
7.5 Dimensional Drawings ...................................................................................................................... 37
7.6 Optical Characteristics ...................................................................................................................... 39
8 Ordering ................................................................................................................................................... 39
8.1 Part Numbering Scheme ................................................................................................................... 39
8.2 Options .............................................................................................................................................. 39
8.3 Accessories ........................................................................................................................................ 40
9 Definitions ................................................................................................................................................ 41
10 Contact ................................................................................................................................................... 41
4 Command Summary
1 Introduction
The GLK12232-25 is an intelligent graphic liquid crystal display engineered to quickly and easily add an
elegant creativity to any application. In addition to the RS232, TTL and I2C protocols available in the
standard model, a USB communication model allows the GLK12232-25 to be connected to a wide
variety of host controllers. Communication speeds of up to 115.2kbps for serial protocols and 100kbps
for I2C ensure lightning fast text and graphic display.
The simple command structure permits easy software control of many settings including backlight
brightness, screen contrast, and baud rate. On board memory provides 16KB of customizable fonts and
bitmaps to enhance the graphical user experience.
User input on the GLK12232-25 is available through a five by five matrix style keypad. Two general
purpose outputs provide simple switchable five volt sources on each model.
The versatile GLK12232-25, with all the features mentioned above, is available in a variety of colour and
temperature options to suit almost any application.
Command Summary 5
2 Quick Connect Guide
2.1 Available Headers
6 Command Summary
2.2 Standard Module
The standard version of the GLK12232-25 allows for user configuration of two common communication
protocols. First, the unit can communicate using serial protocol at either RS323 or TTL voltage levels.
Second, it can communicate using the Inter-Integrated Circuit connect, or I2C protocol. Connections for
each protocol can be accessed through the four pin Communication/Power Header as outlined in the
Serial Connections and I2C Connections sections below.
Recommended Parts
The most common cable choice for any standard Matrix Orbital
display, the Extended Communication/ Power Cable offers a simple
connection to the unit with familiar interfaces. DB9 and floppy power
headers provide all necessary input to drive your display.
Serial Connections
Serial protocol provides a classic connection to the GLK12232-25 . The Communication/Power Cable is
most commonly used for this set up as it provides connections for DB9 serial and floppy power cables.
To place your board in Serial mode, adhere to the steps laid out below.
*Note: Jumpers must be removed from all protocol boxes save for the one in use.
Command Summary 7
2. Make the connections.
a. Connect the six pin female header of the Communication/Power Cable to the
Communication/Power Header of your GLK12232-25 .
b. Insert the male end of your serial cable to the corresponding DB9 header of the
Communication/Power Cable and the mate the female connector with the desired
communication port of your computer.
c. Select an unmodified floppy cable from a PC power supply and connect it to the power header
of the Communication/Power Cable.
3. Create.
MOGD# or a terminal program will serve to get you started, and then you can move on with
your own development. Instructions for the former can be found below and a variety of
application notes are available for the latter at www.matrixorbital.ca/appnotes.
I2C Connections
A more advanced connection to the GLK12232-25 is provided by the I2C protocol setting. This is best
accomplished using a breadboard and the Breadboard Cable. Power must be supplied from your
breadboard or another external source. To dive right into your application and use the GLK12232-25 in
I2C mode, get started with the guidelines below.
8 Command Summary
2.3 USB Module
The GLK12232-25-USB offers a single USB protocol for easy connection to a host computer. The simple
and widely available protocol can be accessed using the on board mini B style USB connector as outlined
in the USB Connections section.
Recommended Parts
The External Mini USB cable is recommended for the GLK12232-25-USB
display. It will connect to the miniB style header on the unit and provide a
connection to a regular A style USB connector, commonly found on a PC.
USB Connections
The USB connection is the quickest, easiest solution for PC development. After driver installation, the
GLK12232-25-USB will be accessible through a virtual serial port, providing the same result as a serial
setup without the cable hassle. To connect to your GLK12232-25-USB please follow the steps below.
Command Summary 9
3 Software
The multiple communication protocols available and simple command structure of the GLK12232-25
means that a variety of applications can be used to communicate with the display. Text is sent to the
display as a character string, for example, sending the decimal value 41 will result in an 'A' appearing on
the screen. A single control character is also available. Commands are merely values prefixed with a
special command byte, 254 in decimal.
Control Characters
7 Bell / Sound Buzzer 10 Line feed / New line
Once the correct communication port is identified, the following communication settings can be applied
to communicate correctly with the GLK12232-25 .
Finally, with a communication port identified and correctly setup simple text strings or even command
bytes can easily be transmitted to control your display.
3.1 MOGD#
The Matrix Orbital Graphic Display interface, MOGD#, is offered as a free download from
www.matrixorbital.ca/software/software_graphic. It provides a simple graphical interface that allows
settings, fonts, and bitmaps to be easily customised for any application.
While monochromatic bitmaps can easily be created in virtually any image editing program, MOGD#
provides an extensive font generation suite to stylize your display to any project design. In addition to
standard font wide modifications, character ranges can be specified by start and end values to eliminate
unused symbols, and individual glyphs can be modified with a double click. Finally, text spacing can be
tailored and a complete font library built with your Matrix Orbital graphic display.
Like uProject, MOGD# offers a scripting capability that provides the ability to stack, run, and save a
series of commands. The most basic function is the Send Numeric tool which is used to transmit a string
of values to the display to write text or execute a command.
10 Command Summary
Figure 7: MOGD# Command Example
Again, the clear screen command is sent to a connected display, this time using the MOGD# Send
Numeric function command style. Scripts can be run as a whole using the Play button from the toolbar
or as single commands by selecting Step; once executed it must be Reset. Before issuing commands, it is
a good idea to ensure communication with a display is successful using the autodetect button.
This program provides both a staging areas for your graphics display and a proving ground that will
prepare it for any application environment.
Many additional applications are available in a number of different programming languages. These
programs are meant to showcase the capability of the display and are not intended to be integrated into
a final design. For additional information regarding code, please read the On Code document also found
on the support site.
Command Summary 11
4 Hardware
4.1 Standard Model
Pin Function
1 Vcc
2 Rx (SCL)
3 Tx (SDA)
Figure 8: I2C Communication/Power Header
4 Gnd
Voltage is applied through pins one and four of the header, please reference the electrical specifications
before applying power. Pins two and three are reserved for I2C clock and data signals respectively, both
of which should be pulled up to five volts using a resistance between one and ten kilohms. The Tyco
640456-4-LF style header used can be mated to a number of connectors, including Molex 22-01-3047.
Pin Function
1 Vcc
2 D-
3 D+
Figure 9: Mini USB Connector
5 Gnd
The GLK12232-25-USB -USB comes with a familiar Mini USB Connector to fulfill both communication and
power needs. The standard MiniB style header can be connected to any other USB style using the
appropriate cable. Most commonly used with a PC, this connection creates a virtual com port that
offers a simple power solution with a familiar communication scheme.
12 Command Summary
4.3 Common Features
Pin Function
1 GPO 1
2 GND
3 GPO 2
Figure 10: GPO Header 4 GND
A unique feature of the GLK12232-25 is the ability to control relays* and other external devices using
either one of two General Purpose Outputs. Each can source up to 20mA of current at five volts when
on or sink 20mA at zero volts when off. The straight, four pin header can be interfaced to a number of
female connectors to provide control to any peripheral devices required.
*Note: If connecting a relay, be sure that it is fully clamped using a diode and capacitor in order to absorb any
electro-motive force (EMF) which will be generated.
Keypad Header
To facilitate user input, the GLK12232-25 provides a Keypad Interface Connector which allows a matrix
style keypad of up to twenty-five keys to be directly connected to the display module. Key presses are
generated when a short is detected between a row and a column. When a key press is generated, a
character specific to that key press is automatically sent on the Tx communication line. If a synchronous
read method is desired in serial mode*, the “Auto Transmit Keypress” function can be turned off to
allow the key presses to remain in the buffer so that they may be polled. The character that is
associated with each key press may also be altered using the “Assign Key Codes” command. The straight
twelve pin header of the Keypad Interface Connector will interface to a variety of different devices
including the Matrix Orbital KPP4x4 keypad.
2
*Note: In I C mode, the “Auto Transmit Keypress” function should always be on, keypresses should not be polled.
**Note: The Ground / +5V pin is toggled by the jumper above the right of the keypad connector. Jump pads 1 & 2
for GND or 2 & 3 for +5V.
Command Summary 13
Protocol Select Jumpers
The Protocol Select Jumpers provide the means necessary to toggle the GLK12232-25 between RS-232,
TTL and I²C protocols. As a default, the jumpers are set to RS-232 mode with solder jumps on the RS232
jumpers. In order to place the display module in I²C mode you must first remove the solder jumps from
the RS232 jumpers and then place them on the I2C jumpers. The display will now be in I²C mode and
have a default slave address of 80, unless changed with the appropriate command. Similarly, in order to
change the display to TTL mode, simply remove the zero ohm resistors from the RS232 or I²C jumpers
and solder them to the TTL jumpers. Protocol resistors should be set to TTL for USB, and cannot be
moved.
Hardware Lock
The Hardware Lock allows fonts, bitmaps, and settings to be saved, unaltered by any commands. By
connecting the two pads near the memory chip with a zero ohm resistor, the display will be locked. This
supersedes the data lock command and cannot be circumvented by any software means. To unlock the
display and make changes simply remove the jumper.
14 Command Summary
5 Troubleshooting
5.1 Power
In order for your Matrix Orbital display to function correctly, it must be supplied with the appropriate
power. If the power LED near the top right corner of the board is not illuminated, power is not applied
correctly. Try following the tips below.
First, check the power cable which you are using for continuity. If you don't have an ohm meter,
try using a different power cable, if this does not help try using a different power supply.
If power is applied through the DB9 connector, ensure that the Power Through DB9 Jumper is
connected.
If changes have been made to the protocol select block, ensure all the appropriate protocol
select jumpers are connected and all unused protocol jumpers are disconnected.
The last step will be to check the interface connector in use on your display. If the power
connections have become loose, or you are unable to resolve the issue, please Contact Matrix
Orbital for more information.
5.2 Display
If your display is powered successfully, the Matrix Orbital logo, or user created screen should display on
start up. If this is not the case, check out these tips.
• Ensure the contrast is not too high or too low. This can result in a darkened or blank screen
respectively. See the Manual Override section to reset to default.
• Make sure that the start screen is not blank. It is possible to overwrite the Matrix Orbital logo
start screen, if this happens the screen may be blank. Try writing to the display to ensure it is
functional, after checking the contrast above.
5.3 Communication
When communication of either text or commands is interrupted, try the steps below.
• First, check the communication cable for continuity. If you don't have an ohm meter, try using a
different communication cable. If you are using a PC try using a different Com/USB Port.
• Next, please ensure that the display module is set to communicate on the protocol that you are
using, by checking the Protocol Select Jumpers.
• In serial and USB protocols, ensure that the host system and display module are both
communicating on the same baud rate. The default rate for the display module is 19200 bps.
• Match Rx from your display to the transmitting pin from your host and the Tx pin to the
receiving pin.
• If you are communicating to the display via I²C* please ensure that the data is being sent to the
correct address. The default slave address for the display module is 80.
Command Summary 15
• In I2C mode, connect Rx to the clock line of your controller and Tx to the data output.
• Unlock the display. See the Set and Save Data Lock command for more info.
• Finally, you may reset the display to its default settings using the Manual Override procedure
outlined below.
*Note: I²C communication will always require pull up resistors on SCL and SDA of one to ten kilohms.
Parameter Value
Backlight 255
Contrast 128
Baud Rate 19200
2
I C Address 80
Table 8: Manual Override Settings
**Note: The display module will revert back to the old settings once turned off, unless desired settings are saved.
16 Command Summary
6 Commands
6.1 Communication
1.1 Change Dec 254 57 Speed v5.8
Baud Rate Hex FE 39 Speed
ASCII ■ 9 Speed
Immediately changes the baud rate. Not available in I2C. Baud rate can be temporarily forced to 19200 by a
manual override.
Speed Byte Valid settings shown below.
𝐶𝑟𝑦𝑠𝑡𝑎𝑙𝑆𝑝𝑒𝑒𝑑 𝐶𝑟𝑦𝑠𝑡𝑎𝑙𝑆𝑝𝑒𝑒𝑑
𝑆𝑝𝑒𝑒𝑑 = −1 𝐴𝑐𝑡𝑢𝑎𝑙𝐵𝑎𝑢𝑑 =
(8 × 𝐷𝑒𝑠𝑖𝑟𝑒𝑑𝐵𝑎𝑢𝑑) (8 × (𝑆𝑝𝑒𝑒𝑑 + 1))
Equation 1: Speed Byte Calculation Equation 2: Actual Baud Rate Calculation
|𝐷𝑒𝑠𝑖𝑟𝑒𝑑𝐵𝑎𝑢𝑑 − 𝐴𝑐𝑡𝑢𝑎𝑙𝐵𝑎𝑢𝑑|
< 0.03
𝐷𝑒𝑠𝑖𝑟𝑒𝑑𝐵𝑎𝑢𝑑
Command Summary 17
1.5 Turn Dec 254 59 v5.8
Software Flow Hex FE 3B
Control Off ASCII ■;
Disables flow control. Bytes sent to the display may be permitted to overflow the buffer resulting in data loss.
6.2 Text
2.1 Clear Dec 254 88 v5.8
Screen Hex FE 58
ASCII ■X
Clears the contents of the screen.
18 Command Summary
6.3 Drawing
3.1 Set Drawing Dec 254 99 Colour v5.8
Colour Hex FE 63 Colour
ASCII ■ c Colour
Set the colour to be used for all future drawing commands that do not implicitly specify colour.
Colour Byte 0 for background or any other value for text colour.
Command Summary 19
3.6 Draw a Filled Dec 254 120 Colour X1 Y1 X2 Y2 v5.8
Rectangle Hex FE 78 Colour X1 Y1 X2 Y2
ASCII ■ x Colour X1 Y1 X2 Y2
Draw a filled rectangle using the colour specified; current drawing colour is ignored.
Colour Byte 0 for background or any other value for text colour.
X1 Byte Leftmost coordinate of the filled rectangle, zero indexed from left.
Y1 Byte Topmost coordinate of the filled rectangle, zero indexed from top.
X2 Byte Rightmost coordinate of the filled rectangle, zero indexed from left.
Y2 Byte Bottommost coordinate of the filled rectangle, zero indexed from top.
20 Command Summary
3.9 Initialize a Dec 254 110 ID X1 Y1 X2 Y2 V5.8
Strip Chart Hex FE 6E ID X1 Y1 X2 Y2
ASCII ■ n ID X1 Y1 X2 Y2
Designate a portion of the screen for a chart. Visual changes will occur when the update command is issued.
ID Byte Unique chart identification number, value between 0 and 7.
X1 Byte Leftmost coordinate of the strip chart, zero indexed from left.
Y1 Byte Topmost coordinate of the strip chart, zero indexed from top.
X2 Byte Rightmost coordinate of the strip chart, zero indexed from left.
Y2 Byte Bottommost coordinate of the strip chart, zero indexed from top.
Type Description
0 Bar
1 Line
2 Step
3 Box
6.4 Fonts
4.1 Upload a Dec 254 36 ID Size Data v5.8
Font File Hex FE 24 ID Size Data
ASCII ■ $ ID Size Data
Upload a font to a graphic display. To create a font see the Font File Creation section, for upload protocol see the
File Transfer Protocol entry. Default font is ID 1.
ID Byte Unique font identification number, value between 0 and 255.
Size Short Size of the entire font file.
Data Byte(s) Font file data, see the Font File Creation example.
Command Summary 21
4.3 Set Font Dec 254 50 LineMargin TopMargin CharSpace LineSpace Scroll v5.8
Metrics Hex FE 32 LineMargin TopMargin CharSpace LineSpace Scroll
ASCII ■ 2 LineMargin TopMargin CharSpace LineSpace Scroll
Set the font spacing, or metrics, used with the current font. Changes only appear in text sent after command.
LineMargin Byte Space between left of display and first column of text. Default 0.
TopMargin Byte Space between top of display area and first row of text. Default 0.
CharSpace Byte Space between characters. Default 0.
LineSpace Byte Space between character rows. Default 1.
Scroll Byte Point at which text scrolls up screen to display additional rows. Default 1.
By default, a Matrix Orbital graphic display is loaded with a small filled font in slot one and a future bk bt
16 style in slot two. Both are available at www.matrixorbital.ca/software/graphic_fonts.
The easiest way to create, add, or modify the fonts of any graphic display is through the MOGD# tool.
This provides a simple graphic interface that hides the more complex intricacies of the font file.
Maximum Width Character Height ASCII Start Value ASCII End Value
5 7 104 106
The font file header contains four bytes: First, the number of columns in the widest character; usually
‘w’, second, the pixel height of each character, and finally, the start and end values of the character
range. The range represents the values that must be sent to the display to trigger the characters to
appear on the screen. In the example, the decimal values corresponding to the lowercase letters ‘h’
through ‘j’ will be used resulting in the range shown.
22 Command Summary
The character table contains information that allows the display to locate each individual character in a
mass of character data. Each character has three bytes; two indicating it’s offset in the character data
and one indicating its width. The offset takes into account the header and table bytes to point to the
first byte of the character data it references. The first byte of the file, maximum width, has an offset of
zero. The width byte of each character can be identical as in a fixed width font, or in our case, variable.
The character table will become clearer after analyzing the final part of the font file, character data.
The character data is a binary graphical representation of each glyph in a font. Each character is drawn
on a grid containing as many rows as the height specified in the header and as many columns as the
width specified in the character table. Cells are drawn by writing a one in their location and cleared by
setting a value of zero. Starting at the top left, moving right, then down, eight of these cells form a
character data byte. When all cells are accounted for, zeroes may be added to the last byte to complete
it. A sample of an ‘h’ glyph is shown above. The data for the ‘i’ and ‘j’ characters will follow to complete
the custom font file displayed below.
6.5 Bitmaps
5.1 Upload a Dec 254 94 ID Size Data v5.8
Bitmap File Hex FE 5E ID Size Data
ASCII ■ ^ ID Size Data
Upload a bitmap to a graphic display. To create a bitmap see the Bitmap File Creation section, for upload protocol
see the File Transfer Protocol entry. Start screen is ID 1.
ID Byte Unique bitmap identification number, value between 0 and 255.
Size Short Size of the entire bitmap file.
Data Byte(s) Bitmap file data, see the Bitmap File Creation example.
Command Summary 23
5.2 Draw a Dec 254 98 ID X Y v5.8
Bitmap from Hex FE 62 ID X Y
Memory ASCII ■ b ID X Y
Draw a previously uploaded bitmap from memory. Top left corner must be specified for drawing.
ID Byte Unique bitmap identification number, value between 0 and 255.
X Byte Leftmost coordinate of bitmap.
Y Byte Topmost coordinate of bitmap.
The bitmap data block is similar to that of a font. However, as a bitmap is a single glyph, only a simple
two byte header is required. First, one byte representing the bitmap width is sent, then one byte for the
height. Each bitmap is merely encoded in binary fashion using a series of ones and zeroes. Again a grid
can be created using the width and height specified in the upload command, populated in the manner
above, and converted into byte values. A smiley face example is shown below to indicate the ultimate
effect of the Matrix Orbital graphic stylization ability.
Header 54
Bitmap Data 80 34 224
24 Command Summary
6.6 General Purpose Output
6.1 General Purpose Dec 254 87 Number v5.8
Output On Hex FE 57 Number
ASCII ■ W Number
Turns the specified GPO on, sourcing current from an output of five volts.
Number Byte GPO to be turned on.
6.7 Keypad
7.1 Auto Transmit Dec 254 65 v5.8
Key Presses On Hex FE 41
ASCII ■A
Key presses are automatically sent to the host when received by the display. Use this mode for I2C transactions.
Command Summary 25
7.4 Clear Key Dec 254 69 v5.8
Buffer Hex FE 45
ASCII ■E
Clears all key presses from the key buffer.
7.8 Assign Keypad Dec 254 213 Key Down Key Up V5.8
Codes Hex FE D5 Key Down Key Up
ASCII ■ ╒ Key Down Key Up
Assigns the key down and key up values sent to the host when a key press is detected. A key up and key down
value must be sent for every key, a value of 255 will leave the key unaltered. Defaults are shown below.
Key Down Bytes [25] Key down values, beginning at row one column one moving right then down.
Key Up Bytes [25] Key up values, beginning at row one column one moving right then down.
Table 20: Default Key Down Values Table 21: Default Key Up Values
26 Command Summary
6.8 Display Functions
8.1 Backlight Dec 254 66 Minutes v5.8
On Hex FE 42 Minutes
ASCII ■ B Minutes
Turns the display backlight on for a specified length of time. If an inverse display color is used this command will
essentially turn on the text.
Minutes Byte Number of minutes to leave backlight on, a value of 0 leaves the display on indefinitely.
Command Summary 27
6.9 Filesystem
9.1 Delete Dec 254 33 89 33 v5.8
Filesystem Hex FE 21 59 21
ASCII ■!Y!
Completely erase all fonts and bitmaps from a graphic display. Extended length of the command is intended to
prevent accidental execution. To ensure filesystem integrity, cycle power to the display after erasure.
Byte 7 6 5 4 3 2 1 0
Description Size(MSB) Size Size Size(LSB) Type(4)/ID(4) ID (LSB) Start Page (MSB) Start Page (LSB)
28 Command Summary
9.6 Filesystem Dec 254 48 v5.8
Download Hex FE 30
ASCII ■0
Downloads complete filesystem containing all fonts and bitmaps stored in the display using the File Transfer
Protocol. A veritable heap of data.
Response Integer Size of the filesystem to download.
Byte(s) Filesystem data to download.
9.8 File Dec 254 180 OldType OldID NewType NewID v5.8
Move Hex FE B4 OldType OldID NewType NewID
ASCII ■ ┤ OldType OldID NewType NewID
Used to move a single file and/or alter the type of an existing file. Old ID location must be valid and new ID empty.
OldType Byte Original file type, value between 0 and 1023, see File Types.
OldID Byte Original unique file identification number, value between 0 and 1023.
NewType Byte New file type, see File Types.
NewID Byte New unique file identification number.
Command Summary 29
Once a file is confirmed to fit within the display, the upload will begin. A protocol is used here to ensure
each byte is uploaded successfully. After each byte is sent, the module will echo it back to the host. It
should then be checked against the value originally sent before a confirmation byte of 1 is returned. If
the transmitted and echoed values do not match the upload should be aborted by sending a value of 8
instead. The upload will continue in this manner as indicated by the examples below which utilize
familiar font and bitmap files.
Table 26: Font Upload Protocol Table 27: Bitmap Upload Protocol
It should be noted that the display has a timeout setting of 2.1 seconds before it resets to prevent it
from hanging during the upload process. Upon reset, the values 254 and 212 will be returned to
indicate an error or lengthy delay has occurred in the upload process. If everything goes smoothly, the
protocol will end with the host transmitting a final confirmation byte and the font will be stored in the
display ready for any application.
30 Command Summary
10.2 Set Data Dec 254 202 245 160 Level v5.8
Lock Hex FE CA F5 A0 Level
ASCII ■ ╩ ⌡ á Level
Temporarily locks certain aspects of the display to ensure no inadvertent changes are made. The lock is released
after a power cycle. A new level overrides the old, and levels can be combined. Default is 0.
Level Byte Lock level, see Data Lock Bits table.
10.3 Set and Save Dec 254 203 245 160 Level v5.8
Data Lock Hex FE CB F5 A0 Level
ASCII ■ ╦ ⌡ á Level
Locks certain aspects of the display to ensure no inadvertent changes are made. The lock is not affected by a
power cycle. A new level overrides the old, and levels can be combined. Default is 0.
Level Byte See Data Lock Bits table.
6.11 Miscellaneous
11.1 Write Dec 254 52 Data v5.8
Customer Data Hex FE 34 Data
ASCII ■ 4 Data
Saves a user defined block of data to non-volatile memory. Useful for storing display information for later use.
Data Byte(s) User defined data, 16 bytes.
Command Summary 31
11.4 Read Dec 254 55 v8.0
Module Type Hex FE 37
ASCII ■7
Causes display to respond with its module number.
Response Byte Module number, see Sample Module Type Response for a partial list.
33 GLK12232-25-USB
34 GLK12232-25
32 Command Summary
7 Appendix
7.1 Command Summary
Available commands below include identifying number, required parameters, the returned response and
an indication of whether settings are remembered always, never, or with remember set to on.
Command Summary 33
Table 35: Bitmap Command Summary
34 Command Summary
Table 40: Data Security Command Summary
Command Summary 35
7.3 Environmental Specifications
Table 42: Environmental Limits
Current Consumption
Table 43: Current Consumption
Backlight
92mA
Input Voltage Specifications
Table 45: Voltage Specifications
Standard
4.75-5.25V
36 Command Summary
7.5 Dimensional Drawings
Command Summary 37
Figure 16: USB Model Dimensional Drawing
38 Command Summary
7.6 Optical Characteristics
Table 46: Display Optics
8 Ordering
8.1 Part Numbering Scheme
Table 47: Part Numbering Scheme
8.2 Options
Table 48: Display Options
# Designator Options
1 Product Type GLK: Graphic Liquid Crystal Display with Keypad Input
2 Display Size 12232: 122 pixel columns by 32 rows
3 Keypad Size 25: 25 key maximum
*NP: Standard Model
5 Protocol
-USB: USB Only Model
FGW: Grey Text with White Background
6 Colour
WB: White Text with Blue Background
*NP: Standard
7 Temperature
-E: Extended Temperature
*Note: NP means No Populate; skip this designator in the part number and move to the next option.
Command Summary 39
8.3 Accessories
Communication
Table 49: Communication Accessories
Peripherals
Table 50: Peripheral Accessories
40 Command Summary
9 Definitions
ASCII: American standard code for information interchange used to give standardized numeric codes
to alphanumeric characters.
GPO: General purpose output, used to control peripheral devices from a display.
Hexadecimal: A base 16 number system utilizing symbols 0 through F to represent the values 0-15.
I2C: Inter-integrated circuit protocol uses clock and data lines to communicate short distances at
slow speeds from a master to up to 128 addressable slave devices. A display is a slave device.
LSB: Least significant bit or byte in a transmission, the rightmost when read.
MSB: Most significant bit or byte in a transmission, the leftmost when read.
RS232: Recommended standard 232, a common serial protocol. A low level is -30V, a high is +30V.
SDA: Serial data line used to transfer data in I2C protocol. This open drain line should be pulled high
through a resistor. Nominal values are between 1K and 10K Ω.
SCL: Serial clock line used to designate data bits in I2C protocol. This open drain line should be pulled
high through a resistor. Nominal values are between 1K and 10K Ω.
Short: An unsigned data packet that is sixteen bits long, in little Endian format.
STN: Super-twisted nematic in reference to an LCD. In a relaxed or nematic state, crystals orientate
themselves in the same direction and allow light to pass. In an excited state these crystals align to block
light. Super-twisted crystals move from 180 to 270 degrees providing greater contrast than TN models.
TTL: Transistor-transistor logic applied to serial protocol. Low level is 0V while high logic is 5V.
10 Contact
Sales Support Online
Phone: 403.229.2737 Phone: 403.204.3750 Purchasing: www.matrixorbital.com
Email: [email protected] Email: [email protected] Support: www.matrixorbital.ca
Command Summary 41