C communications 1.1 What to Expect From the GLK24064-25 The GLK24064-25 is designed as the display unit for an associated controller. The controller may be anything from a single board, special purpose micro-controller to a PC, depending on the application. This...
4. Double click on "setup.exe". 5. Follow the instructions on the screen to complete the installation. After installation is complete there will be a Matrix Orbital entry under “Programs” in the “Start Menu”. Click on this entry to run mogd.exe.
2. Wire the connector to the power supply. On most connectors the RED lead will go to +5V and the BLACK lead to GND. Do not connect the GLK24064-25 to a spare floppy drive power lead in the PC; the wiring is not correct and the unit will be damaged.
This is only to be done by knowledgeable people. Any damage to the display by this procedure resulting from user error will not be covered under the Manufacturer’s Warranty. Figure 2: Lockdown Matrix Orbital GLK24064-25...
Table 1: Connectors and Functions Connector Function 10 pin header Keypad header, 5x5 matrix 4 pin Power (Vdc) and I C communica- tions or RS-232 DB-9F RS-232/power 2 pin header GPO header 3x2 header C and RS-232 select Matrix Orbital GLK24064-25...
If a display module is used in a PC it becomes tempting to plug a spare power connector into the unit. Don’t do this! Wiring for the PC power connector and that required for the module are different as shown in the Figure below. Figure 5: Wiring for Five Volt Modules Matrix Orbital GLK24064-25...
Matrix Orbital can supply an adapter cable designed to use with the display module when it’s installed in a PC. The cable is wired as shown in the Figure below. Figure 6: Five Volt Cable Simply insert the splitter cable in series with a ’large’ power connector (i.e., one going to a hard drive) and plug the small connector into the display module.
A standard DB-9F is provided for RS-232 communications. Power may also be supplied via this con- nector if desired. As well, the two middle pins of the power connector may also be used for serial commu- nications. Matrix Orbital GLK24064-25...
Data Out (LCD) Data to LCD Data In (LCD) Ground 2.2.2 TTL Communication Figure 11: Standard and TTL Configuration Standard: (+/-12V to +/- 12V) Jumper 1 and 3 soldered TTL: (0 to +5V) Jumper 2 and 4 soldered Matrix Orbital GLK24064-25...
C communication lines are the two middle pins of the power connector. They are shared with RS-232 and have to be turned on. The I C data line operates on 5 volt CMOS levels. The default I C address is 0x50. Matrix Orbital GLK24064-25...
Matrix Orbital module processes data. Basically the reason why a Matrix Orbital module might fail to receive a byte correctly is that it was unable to process the byte previous before the failed byte was transmitted. Because the module cannot possibly know that it would be unable to store the byte before the next byte was received it cannot know to not ACK.
The display uses a standard Phillips 7bit address as defined by Phillips. However, Matrix Orbital specifies C address in 8bits. The 8th bit, least significant bit (LSB or Low Order Bit) of the 8bit address is a read / write bit.
"Set font metrics" command in the display memory (normally the bottom right character position - default value for the GLK24064-25 is 64). 3.3.2 Auto scroll off (254 82) When auto scrolling is disabled, text will wrap to the top left corner of the display area.
• [scroll row] specifies the pixel row where scrolling should start (or, if auto scrolling is off, where wrapping should occur). Typically, this value should be set to the first pixel row immediately below the last row of text which will fit the display. Matrix Orbital GLK24064-25...
(bytes are sent LSB first). Figure 17: Graphic Bitmaps Each pixel in a bitmap is described by a single bit, and may only have the values ON or OFF. For example, shades of grey are not supported. Matrix Orbital GLK24064-25...
4.2.5 Draw outline rectangle (254 114 [color][x1][y1][x2][y2]) This command draws a rectangular box in the specified color (0 = white, non-zero = black). The top left corner is specified by (x1,y1) and the bottom right corner by (x2,y2). Matrix Orbital GLK24064-25...
The reference number is established when the bitmap is saved, normally using mogd.exe. Bitmaps and fonts may use the same reference numbers. For example, it is possible to have both a bitmap 1 and a font 1. Matrix Orbital GLK24064-25...
This command shifts the strip chart left or right. [ref] determines both which strip chart is used and which direction it will shift. The direction is selected by the most significant bit (MSB); MSB = 0 shifts left Matrix Orbital GLK24064-25...
WARNING This mode must not be used during loading of fonts and bitmaps. It is highly recommended for use with direct screen write and multiple pixel placements. 4.3.2 Exit Flow Control Mode (254 59) This command turns off flow control. Bytes may overflow the buffer without warning. Matrix Orbital GLK24064-25...
This also prevents electrical noise which is often caused by continuous key scans. NOTE Please note that keypads may be laid out in a different pattern. If this is the case, the user will need to interpret the key codes differently. Matrix Orbital GLK24064-25...
5.5.1 Auto repeat mode on (254 126 [mode]) [mode] = 0x00 gives Resend Key Code mode [mode] = 0x01 gives Key Down / Key Up code mode Two Modes of auto repeat are available and are set via the same command. Matrix Orbital GLK24064-25...
5.5.4 Auto transmit keypresses off (254 79) In this mode, up to 10 keypresses are buffered until the unit is polled by the host system via the poll keypad command. Issuing this command places the unit in polled mode. Matrix Orbital GLK24064-25...
Operationally, there is one important difference between the Matrix Orbital file system and that of a PC. While a PC will allow fragmentation of its files across the available file space, the Matrix Orbital file system takes great care to ensure that all parts of a file are stored together. This system works well to maximize storage space and operational efficiency.
6.2 Using mogd.exe The Matrix Orbital interface program "mogd.exe", which is provided on the disk and the website, gen- erates and saves fonts larger than 14 pixels in height. It is also used to save graphic images (bitmaps) to the display.
The character list consists of groups of 3 bytes per character; • Offset to character bitmap (2 bytes) • Actual width of this character (1 byte) 6.4.1 Font File in Table Form The Table below shows the layout of a font file in table form. Matrix Orbital GLK24064-25...
0xFE 0x24 [ref] [file size] [file data] In this example the file size is 94 bytes (0x5E) and the reference number is 2. The communications exchange between the host and the module looks like this; Matrix Orbital GLK24064-25...
Let’s look at a short sample font file containing only the letters "h", "i" and "j". First we need to define the font size. For this example we’ll use a 5x7 pixel font. Next, we have to draw the bitmaps for each of the characters. Matrix Orbital GLK24064-25...
Page 32
0x07 0x68 0x6A 0x00 0x0F 0x05 0x00 0x14 0x03 0x00 0x17 0x04 0x7F 0x04 0x81 0x80 0x07 0xC4 0x3E 0x10 0x02 0x20 0xB1 0x07 The colours refer to: Font information header, character ’h’, character ’i’, character ’j’. Matrix Orbital GLK24064-25...
Bitmap data follows with the bits organized vertically from the top left. The last byte may be padded with zeros. 7 Miscellaneous Commands 7.1 General The commands listed in this chapter don’t readily fit in any of the other categories, or are used in more than one category. Matrix Orbital GLK24064-25...
This command turns ON the general purpose output. In the ’on’ state the GPO provides 5 volts at a maximum current of 20 mA to operate external devices. 7.1.7 General purpose output off (254 87) This command turns OFF the general purpose output. Matrix Orbital GLK24064-25...
’map’ written characters to numeric values. One such scheme has become universal, the American Standard Code for Information Interchange, or ASCII. ASCII tables are readily available from a number of sources. A few examples will do here; Matrix Orbital GLK24064-25...
254 ’R’ wrap to top left overwrite existing text. Set text insertion point FE 47 [col] [row] Sets text insertion 254 71 [col] [row] point using the 254 ’G’ [col] [row] base size of the current font. Matrix Orbital GLK24064-25...
0 - 63 (decimal) and 254 ’l’ [x1][y1][x2][y2] y values from 0 - 239 (decimal). Continue line FE 65 [x][y] Continues line from last line end 254 101 [x][y] (x2,y2) to (x,y). Uses current draw- 254 ’e’ [x][y] ing color. Matrix Orbital GLK24064-25...
Page 40
[ref] selects the strip chart and the 254 107 [ref] direction in which it moves. Move- 254 ’k’ [ref] ment is always 8 pixels at a time. MSB = 0 shifts left MSB = 1 shifts right. Matrix Orbital GLK24064-25...
Resolution: 1 = 254 85 [time] 0.6554 ms 254 ’U’ [time] 8.7 File System Commands In addition to these commands, the mogd.exe program is used to download fonts and graphics to the display. Table 21: File System Commands Matrix Orbital GLK24064-25...
Contrast is a value between 0 and 255 (hex 0 to FF). Larger = darker. Set contrast and save FE 91 [contrast] Same as "set con- 254 145 [contrast] trast" but saves [contrast] as de- fault. Matrix Orbital GLK24064-25...
Page 43
96 byte display buffer. When buffer reaches [full] display will return 0xFE to host. When buffer reaches [empty] display will return 0xFF. Exit flow control mode FE 3B Turns off flow 254 59 control (buffer 254 ’;’ handshaking). Matrix Orbital GLK24064-25...
Shock (Operating) 29.4 m/s XYZ directions Shock (Non-Operating) 490 m/s XYZ directions Table 26: Electrical Specifications Supply Voltage 4.75 - 5.25 Vdc (Optional 7 - 30 Vdc) Supply Current 31 mA typical Supply Backlight Current 160 mA typical Matrix Orbital GLK24064-25...
Page 45
320 (maximum 40 characters x 8 Lines with 5x7 font) Display Area 127.16 x 33.88mm XxY Dot Size 0.49 x 0.49mm (XxY) Dot Pitch 0.53 x 0.53mm (XxY) LED/CCFL Backlight Life 100, 000 hours typical Color of Illumination Yellow Green (LED), Light Blue (CCFL) Matrix Orbital GLK24064-25...
Page 46
Figure 22: Physical Layout Table 28: Display Options and Availability Model LCD0821 LCD2041 LCD4021 LCD4041 LK162-12 Matrix Orbital GLK24064-25...
Page 47
Model LK202-25 LK204-25 LK402-12 LK404-55 LK404-AT BLC2041 VFD2041 VK202-25 VK204-25 BVF2041 GLC24064 GLK12232-25 GLK12232-25-SM GLK24064-25 Matrix Orbital GLK24064-25...
Need help?
Do you have a question about the GLK24064-25 and is the answer not in the manual?
Questions and answers