GLK24064-25/GLT24064 Including GLK24064-25-422, GLK24064-25-USB, GLT24064-422, and GLT24064-USB Technical Manual Revision 1.3 PCB Revision: 1.0 or Higher Firmware Revision: 7.
Revision History Revision 1.3 1.2 1.1 1.0 0.2 0.1 Description Added Power Directions for the RS422 Model Added Command Summary Addition Added 1.7 Read Screen and 14.
Contents Revision History ............................................................................................................................................ 2 Contents ........................................................................................................................................................ 3 Introduction ..................................................................................................................................................
Keypad Header .................................................................................................................................... 19 GLT Model ............................................................................................................................................... 20 Touch Screen ....................................................................................................................................... 20 Coordinate Mode .....................................
Appendix ..................................................................................................................................................... 47 Command Summary ............................................................................................................................... 47 Environmental Specifications.................................................................................................................. 50 Electrical Tolerances ...................................
Introduction Figure 1: GLK24064-25/GLT24064 Display The GLK24064-25/GLT24064 is an intelligent graphic liquid crystal 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, USB and RS422 communication models allow the GLK24064-25/GLT24064 to be connected to a wide variety of host controllers. Communication speeds of up to 115.
Quick Connect Guide Standard Module Table 1: Standard Headers Figure 2: Standard Connections # 1 2 3 4 Header Communication/Power DB9 Keypad/ Touchpad GPO 5 Dallas One-Wire Mate SCCPC5V/BBC CSS1FT/CSS4FT KPP4x4 None Offered Temperature Probe The standard version of the GLK24064-25/GLT24064 allows for user configuration of three common communication protocols. First, the unit can communicate using serial protocol at either RS323 or TTL voltage levels.
Serial Connections Serial protocol provides a classic connection to the GLK24064-25/GLT24064. 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. 1. Set the Protocol Select jumpers. RS232: Connect the three jumpers* in the 232 protocol box with the zero ohm jumper resistors provided or an alternate wire or solder solution.
I2C Connections A more advanced connection to the GLK24064-25/GLT24064 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 GLK2406425/GLT24064 in I2C mode, get started with the guidelines below. 1. Set the Protocol Select switches.
USB Module Table 2: Standard Headers Figure 5: USB Connections # Header 1 Mini USB 3 4 5 6 Alternate Power Keypad GPO Dallas One-Wire Mate EXTMUSB3FT/ INTMUSB3FT PCS KPP4x4 None Offered Temperature Probe The USB version of the GLK24064-25/GLT24064 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.
USB Connections The USB connection is the quickest, easiest solution for PC development. After driver installation, the GLK24064-25-USB/GLT24064-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 GLK24064-25-USB/GLT24064-USB, please follow the steps below. 1. Set the Protocol Select jumpers. USB: The GLK24064-25-USB/GLT24064-USB offers USB protocol only.
RS422 Module Table 3: Standard Headers Figure 7: RS422 Connections # 1 2 3 4 5 Header RS422 Alternate Power Keypad GPO Dallas One-Wire Mate S422CCPC5V PCS KPP4x4 None Offered Temperature Probe The GLK24064-25-422/GLT24064-422 provides an industrial alternative to the standard RS232 communication protocol. Rather than single receive and transmit lines, the RS422 model uses a differential pair for each of the receive and transmit signals to reduce degradation and increase transmission lengths.
Software The multiple communication protocols available and simple command structure of the GLK2406425/GLT24064 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. Commands are merely values prefixed with a special command byte, 254 in decimal.
MOGD# The Matrix Orbital Graphic Display interface, MOGD#, is offered as a free download from the www.matrixorbital.ca support site. It provides a simple graphical interface that allows settings, fonts, and bitmaps to be easily customised for any application. While monotone bitmaps can easily be created in virtually any image editing program, MOGD# provides an extensive font generation quite to stylize your display to any project design.
Hardware Standard Model Communication/Power Header Table 6: Communication/Power Pinout Figure 10: Communication/Power Header Pin 1 2 3 4 Function Vcc Rx (SCL) Tx (SDA) Gnd The Communication/Power Header provides a standard connector for interfacing to the GLK2406425/GLT24064. Voltage is applied through pins one and four of the four pin Communication/Power Header. Please ensure the correct voltage input for your display by referencing the electrical specifications in Table 65 before connecting power.
Power Through DB9 Jumper In order to provide power through pin 9 of the DB-9 Connector you must connect the Power Through DB-9 Jumper labelled R30, as illustrated below. This connection can be made using a zero ohm resistor, recommended size 0603, or a solder bridge. The GLK24064-25/GLT24064 allows all voltage models to use the power through DB-9 option, see the specifications in Table 65 for voltage requirements.
USB Model Mini USB Connector Table 11: Mini USB Pinout Figure 12: Mini USB Connector Pin 1 2 3 5 Function Vcc DD+ Gnd The GLK24064-25-USB/GLT24064-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.
RS422 Model RS422 Header Table 14: RS422 Pinout Figure 15: RS422 Header Pin 1 2 3 4 5 6 Function Gnd Rx (Y) Inv Rx (Z) Inv Tx (B) Tx (A) Vcc The six pin RS422 interface header of the GLK24064-25-422/GLT24064-422 offers power and ground connections as well as two differential pair communication lines. Regular and inverted lines are provided for both receive and transmit signals. Power is supplied locally to the regular or –V variants while the –VPT can receive power over a distance.
GLK Model Keypad Header Table 16: Keypad Pinout Figure 17: Keypad Header Pin 1 2 3 4 5 6 7 8 9 10 11 12 Function Gnd Row 1 Row 2 Row 3 Row 4 Row 5 Column 1 Column 2 Column 3 Column 4 Column 5 Gnd/Vcc* To facilitate user input, the GLK24064-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.
GLT Model Touch Screen The GLT24064 facilitates user touch input in one of two distinct ways. Coordinate mode will report events by supplying their exact position on the screen. Region mode will report events within defined boundaries on the screen. Both modes are outlined below. Coordinate Mode In coordinate mode all touch events are reported using three single byte values. First, the type of event is transmitted, followed by the x and y coordinates of its position.
Common Features General Purpose Outputs Table 19: GPO Pinout Figure 18: GPO Header Pin 1 2 3 4 5 6 7 Function GPO 1 GPO 2 GPO 3 GPO 4 GPO 5 GPO 6 Vcc Pin 8 9 10 11 12 13 14 Function Gnd Gnd Gnd Gnd Gnd Gnd Gnd A unique feature of the GLK24064-25/GLT24064 is the ability to control relays* and other external devices using one of six General Purpose Outputs. Each can source up to 10mA of current at five volts when on or sink 20mA at zero volts when off.
Troubleshooting Power In order for your Matrix Orbital display to function correctly, it must be supplied with the appropriate power. If the D2 power LED near the top right corner of the board is not illuminated, power is not applied correctly. Try following the tips below. • • • • • First, make sure that you are using the correct power connector.
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 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.
Commands 1. Communications 1.1. Changing the I2C Slave Address Dec 254 51 Address Hex FE 33 Address ASCII ■ 3 Address Immediately changes the I2C write address. Only even values are permitted as the next odd address will become the read address. Default is 80. Address 1 byte, even value 1.2. Changing the Baud Rate Dec 254 57 Speed 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.
1.5. Turn Flow Control On Dec 254 58 Full Empty Hex FE 3A Full Empty ASCII ■ : Full Empty Enables simple flow control. The display will return a single, Xoff, byte to the host when the display buffer is almost full and a different, Xon, byte when the buffer is almost empty. Full value should provide enough room for the largest data packet to be received without buffer overflow. No data should be sent to the display between full 2 and empty responses to permit processing. Buffer size is 128 bytes.
2. Text 2.1. Auto Scroll On Dec 254 81 Hex FE 51 ASCII ■Q The entire contents of screen are shifted up one line when the end of the screen is reached. Display default is on. 2.2. Auto Scroll Off Dec 254 82 Hex FE 52 ASCII ■R New text is written over the top line when the end of the screen is reached. Display default is Auto Scroll on. 2.3. Clear Screen Dec 254 88 Hex FE 58 ASCII ■X Clears the contents of the screen. 2.4.
3. Fonts 3.1. Upload a Font File Dec 254 36 ID Size Data 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 Upload Protocol or XModem Upload Protocol entries. ID 1 byte, unique font identification number, must be less than 128 Size 2 bytes, LSB followed by MSB, size of the entire font file Data variable length, font file data, see Font File Creation for example 3.2.
Font File Creation Matrix Orbital graphic displays are capable of displaying text in a wide variety of styles customizable to suit any project design. Front files alter the style of text and appearance of the display. 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 in the software download section at www.matrixorbital.ca.
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.
4. Bitmaps 4.1. Upload a Bitmap File Dec 254 94 ID Size Data 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 Upload Protocol or XModem Upload Protocol entries. ID 1 byte, unique bitmap identification number, must be less than 128 Size 2 bytes, width and height of the bitmap Data variable length, bitmap file data, see Bitmap File Creation example 4.2.
Bitmap File Creation In addition to fonts, Matrix Orbital graphic displays can also hold a number of customizable bitmaps to provide further stylistic product integration. Like font files, bitmaps files are most easily uploaded to a display using MOGD#. However, the critical data component of the bitmap upload command is detailed below for reference. The bitmap data block is similar to that of a font. However, as a bitmap is only a single glyph, no header or table is required.
5. Drawing 5.1. Set Drawing Colour Dec 254 99 Colour Hex FE 63 Colour ASCII ■ c Colour Change the drawing colour used for all subsequent drawing commands that do not implicitly specify colour. Colour 1 byte, 0 for background or 1 to 255 for text colour 5.2. Draw Pixel Dec 254 112 X Position Y Position Hex FE 70 X Position Y Position ASCII ■ p X Position Y Position Draw a single pixel on the graphic display using the current drawing colour.
5.6. Draw a Solid Rectangle Dec 254 120 Colour X1 Position Y1 Position X2 Position Y2 Position Hex FE 78 Colour X1 Position Y1 Position X2 Position Y2 Position ASCII ■ x Colour X1 Position Y1 Position X2 Position Y2 Position Draw a filled rectangle using the colour specified; current drawing colour is ignored.
5.9. Initialize a Strip Chart Dec 254 106 ID X1 Position Y1 Position X2 Position Y2 Position Hex FE 6A ID X1 Position Y1 Position X2 Position Y2 Position ASCII ■ j ID X1 Position Y1 Position X2 Position Y2 Position Designate a portion of the screen for horizontal scrolling. Can be used to create scrolling graphs or marquee text.
7. Dallas One-Wire 7.1. Search for a One-Wire Dec 254 200 2 Device Hex FE C8 02 Sends a search query to each of the up to 32 devices on the one wire bus. Any connected device will respond with an identification packet.
9. Keypad 9.1. Auto Transmit Key Presses On Dec 254 65 Hex FE 41 ASCII ■A Key presses are automatically sent to the host when received by the display. Default is Auto Transmit on. 9.2. Auto Transmit Key Presses Off Dec 254 79 Hex FE 4F ASCII ■O Key presses are held in the 10 key buffer to be polled by the host using the Poll Key Press command. Use this mode for I2C transactions. Default is Auto Transmit on. 9.3.
9.6. Set Auto Repeat Dec 254 126 Mode Mode Hex FE 7E Mode Sets key press repeat mode to typematic or hold. In typematic mode if a key press is held, the key value is transmitted immediately, then 5 times a second after a 1 second delay. In hold mode, the key down value is transmitted once when pressed, and then the key up value is sent when the key is released. Default is typematic. Mode 1 byte, 1 for hold mode or 0 for typematic 9.7. Auto Repeat Dec 254 96 Mode Off Hex FE 60 Turns auto repeat mode off.
10. Touchpad 10.1. Set Touch Dec 254 132 ID X Position Y Position Width Height Key Down Key Up Region Hex FE 84 ID X Position Y Position Width Height Key Down Key Up Creates a region of the screen that responds when pressed and released with a defined single byte.
10.5. Set Region Dec 254 136 Mode Reporting Mode Hex FE 88 Mode Defines the events transmitted in region mode. Allows only events specified to return a value to the host. Key down values are transmitted for press and drag events, key up for release, and the value 255 for out of region. Mode 1 byte, region reporting mode, see table below. Default reporting returns all events. Table 37: Region Reporting Mode Byte Byte Event 7-4 Reserved 3 Out of Region 2 Drag 1 Release 0 Press 10.6.
11. Display Functions 11.1. Display On Dec 254 66 Minutes 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 1 byte, number of minutes to leave backlight on, a value of 0 leaves the display on indefinitely 11.2. Display Off Dec 254 70 Hex FE 46 ASCII ■F Turns the display backlight off. If an inverse display colour is used this command will turn off the text. 11.3.
12. Filesystem 12.1. Wipe Filesystem Dec 254 33 89 33 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. 12.2. Delete a File Dec 254 173 Type ID Hex FE AD Type ID Removes a single font or bitmap file given the type and unique identification number. Cycle power after deletion.
12.5. Download a Dec 254 178 Type ID File Hex FE B2 Type ID Downloads a single font or bitmap file from the display to the host. Type 1 byte, 0 for font or 1 for bitmap ID 1 byte, unique identification number of font or bitmap to download Response variable length, first 2(font) or 4(bitmap) bytes represent file size followed by file data 12.6.
File Upload Protocol Once a bitmap or font file has been created and paired to its command it must be sent using a file protocol developed specifically for Matrix Orbital displays. Once a file upload command has been sent requesting a unique reference number and specifying the file size required, the display will respond indicating whether it has enough room to save the file or not.
XModem Upload Protocol In addition to its original simple upload format, Matrix Orbital has added an XModem based protocol. This facilitates much faster download speeds by increasing the packet size from 1 byte to 128 bytes greatly increasing throughput. Though a protocol similar to the original upload scheme is used, a two byte CRC check is preformed at the end of each packet in place of the byte echo system.
13. Data Security 13.1. Set Dec 254 147 Switch Remember Hex FE 93 Switch Allows changes to specific settings to be saved to the display memory. Writing to non-volatile memory can be slow and each change consumes 1 write of approximately 100,000 available. The Command Summary outlines which commands are saved always, never, and when this command is on only. Remember is off by default. Switch 1 byte, 1 for on or 0 for off 13.2.
14. Miscellaneous 14.1. Write Dec 254 52 Data Customer Hex FE 34 Data Data ASCII ■ 4 Data Saves a user defined block of data to non-volatile memory. Useful for storing display information for later use. Data 16 bytes, user defined data 14.2. Read Dec 254 53 Customer Hex FE 35 Data ASCII ■5 Reads data previously written to non-volatile memory. Data is only changed when written, surviving power cycles. Response 16 bytes, previously saved user defined data 14.3.
Appendix 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.
Table 52: Drawing Command Summary Name Set Drawing Colour Draw Pixel Draw a Line Continue a Line Draw a Rectangle Draw a Solid Rectangle Initialize a Bar Graph Draw a Bar Graph Initialize a Strip Chart Shift a Strip Chart Dec 99 112 108 101 114 120 103 105 106 107 Hex 63 70 6C 65 72 78 67 69 6A 6B ASCII c p l e r x g i j k Parameters Colour X, Y X1, Y1, X2, Y2 X, Y Colour, X1, Y1, X2, Y2 Colour, X1, Y1, X2, Y2 ID, Type, X1, Y1, X2, Y2 ID, Value ID, X1, Y1, X2, Y2 DirectionID Response None None None No
Table 57: Touchpad Command Summary Name Dec Hex ASCII Set Touch Region 132 84 ä Delete a Touch Region Delete All Touch Regions Set Touch Mode Set Region Reporting Mode Set Dragging Threshold Set Pressure Threshold Run Touchpad Calibration 133 134 135 136 137 138 139 85 86 87 88 89 8A 8B à å ç ê ë è ï Parameters ID, X, Y, Width, Height, KeyUp, KeyDown ID None Mode Mode Threshold Threshold None Response Remembered None Remember On None None None None None None Outcome [2] Remember On Rememb
Environmental Specifications Table 62: Environmental Limits Operating Temperature Storage Temperature Operating Relative Humidity Standard Extended (-E) 0°C to +50°C -10°C to +60°C -10°C to +60°C -20°C to +70°C Maximum 90% non-condensing Electrical Tolerances Current Consumption Table 63: Current Consumption Board 45mA + Backlight 50 to 220 mA + GPOs 20mA each maximum Table 64: Backlight Current Draw YG 220mA GW & WB 50mA Input Voltage Specifications Table 65: Voltage Specifications Standard* 4
Dimensional Drawings Figure 20: Display Dimensional Drawing Figure 21: Standard Model Dimensional Drawing 51
Figure 22: USB Model Dimensional Drawing Figure 23: RS422 Model Dimensional Drawing 52
Ordering Part Numbering Scheme Table 67: Part Numbering Scheme GLT 1 -24064 2 3 -GW 4 -V 5 6 -E 7 Options Table 68: Display Options # Designator 1 Product Type 2 Display Size 3 Keypad Size 4 Colour 5 Voltage 6 Protocol 7 Temperature Options GLK: Graphic Liquid Crystal Display with Keypad Input GLT: Graphic Liquid Crystal Display with Touchpad Input 24064: 240 pixel columns by 64 rows NP: No keypad 25: 25 key maximum NP: Standard (Grey Text with Yellow-Green Background) GW: Grey Text
Accessories Power Table 69: Power Accessories PCS Standard Power Cable Communication Table 70: Communication Accessories CSS4FT 4 ft.
Peripherals Table 71: Peripheral Accessories 55 KPP4x4 16 Button Keypad Temperature Probe Dallas One-Wire Temperature Probe
Definitions ASCII: American standard code for information interchange used to give standardized numeric codes to alphanumeric characters. BPS: Bits per second, a measure of transmission speed. DOW: Dallas One-Wire protocol, similar to I2C, provides reduced data rates at a greater distance. One wire carries data, while two others supply power and ground. Matrix Orbital tests non-parasitic devices only, those that do not draw power from the data line; however, some parasitic devices may work.