C communications 1.1 What to Expect From the GLK12232-25-WBL The GLK12232-25-WBL 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.
Before setting up an application the user may want to try out their display. This is easily done with a PC. The following will be required; • The PC cable available from Matrix Orbital (this is the simplest way to make test connections without having to solder cables and connectors).
4. Connect the power connector, making sure that the +5V goes to V+ as shown in the diagram. 5. Turn on the power: the LCD backlight should come on. 1.6 Trying Out the GLK12232-25-WBL The unit should be connected to power and the PC and backlight should be on.
Once able to communicate with the display, the user may then change the default settings in the memory chip. 2 Connectionshttp://www.atmel.com/dyn/resources/prod_do 2.1 Connector Pinout Refer to the diagram below for this chapter. Matrix Orbital GLK12232-25-WBL...
Page 9
Keypad row 2 RS-232 receive data Keypad row 3 RS-232 transmit data Keypad row 4 +5V power input Keypad row 5 General purpose output 1 do not use General purpose output 2 Cont do not use ground for GPOs Matrix Orbital GLK12232-25-WBL...
A group of four connections (pins 7-10) provide for RS-232 communications and power. A 4 pin SIP connector soldered to these pins can be connected to a Matrix Orbital supplied PC cable. The RS-232 connector on the PC cable is wired so that a standard ’straight through’ 9 pin D-sub cable may be used to connect the modules to a standard serial port such as COM ports on PCs.
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.
Text is displayed on the display using fonts saved in its internal flash memory. The display is supplied with a 5x7 font installed. If this is suitable, there will be no need to install any other fonts. Matrix Orbital GLK12232-25-WBL...
When auto scrolling is on, it causes the display to shift the entire display’s contents up to make room for a new line of text when the text reaches the scroll position defined by the "Set font metrics" command in the display memory (normally the bottom right character position - default value for the GLK12232-25-WBL is 64).
Typically, this value should be set to the first pixel row immediately below the last row of text that will fit the display. 4 Displaying Graphics This chapter describes the various graphics-display commands in detail. Matrix Orbital GLK12232-25-WBL...
The coordinate origin (0,0) is at the top left corner of the display. X values go from 0 to 239 (increasing toward the right) and Y values go from 0 to 63 (increasing toward the bottom). Matrix Orbital GLK12232-25-WBL...
flow control, particularly if the command is to be repeated frequently. This procedure is common for monitoring applications where there is a ’field’ on the display that is constantly being updated from, say, a temperature sensor. Matrix Orbital GLK12232-25-WBL...
Flow control is enabled or disabled by two commands. If flow control is enabled, the display will return an "almost full" message (0xFE) to the micro-controller when its internal buffer fills to a defined level, and an "almost empty" message (0xFF) when the buffer contents drop to a defined level. Matrix Orbital GLK12232-25-WBL...
The display keypad interface processes the keypad row / column matrix into a serial (RS-232 or I data byte stream. Aside from this processing, the keypad has no effect on the display. If it is necessary to send keystrokes to the display, they must be routed through the micro-controller. Matrix Orbital GLK12232-25-WBL...
NOTE The keypad connector must be wired with columns on one side and rows on the other side of the center of the connector. In situations where the keypad isn’t wired this way an adapter will need to be made, or the user should rewire the connector to meet this requirement. Matrix Orbital GLK12232-25-WBL...
If the poll rate is slower than the simulated auto-repeat it is possible that polling for a key up code will be delayed long enough for an unwanted key repeat to be generated. Matrix Orbital GLK12232-25-WBL...
(MSB) of this returned keycode will be set (1). If this is the only buffered keypress, then the MSB will be reset (0). If there are no buffered keypresses, then the returned code will be 0x00. Please note to make use of this command the "Auto transmit keypress" mode should be off. Matrix Orbital GLK12232-25-WBL...
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, however, during file downloads, the modules may need to spend...
File size is a 2 byte value that must be calculated by the host before the transfer takes place. 6.4 Working with Font Files A font file consists of a header, a character list and character bitmaps. Matrix Orbital GLK12232-25-WBL...
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 GLK12232-25-WBL...
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. We’ll use the examples shown in the Figure below. Matrix Orbital GLK12232-25-WBL...
Page 26
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 GLK12232-25-WBL...
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 GLK12232-25-WBL...
7.1.6 General purpose output on (254 86 [gpo #]) This command turns ON either of the general purpose outputs. [gpo #] is 1 for G1 or 2 for G2. Note that ON means that the output is pulled low. Matrix Orbital GLK12232-25-WBL...
The operation of the display is controlled by a simple and consistent command set. Commands control; • Text display • Graphics display • Keypad interface the display file system • Miscellaneous operating parameters This chapter includes summary tables of all commands. Matrix Orbital GLK12232-25-WBL...
254 ’R’ wrap to top left overwrite existing text. Set text insertion point FE 47 [col] [row] 254 71 Sets text insertion [col] [row] 254 ’G’ [col] point using the [row] base size of the current font. Matrix Orbital GLK12232-25-WBL...
Continues line from last line end 254 101 [x][y] (x2,y2) to (x,y). Uses current draw- 254 ’e’ [x][y] ing color. Put pixel FE 70 [x][y] Puts pixel in position (x,y). Uses 254 112 [x][y] current drawing color. 254 ’p’ [x][y] Matrix Orbital GLK12232-25-WBL...
254 173 [type] [ref] memory. Type = 1 is font, type = 5 is bitmap. [ref] is reference number. Purge memory FE 21 59 21 Removes 254 33 89 33 fonts, font met- rics, bitmaps and settings from memory. Matrix Orbital GLK12232-25-WBL...
FE 91 [contrast] 254 145 Same as "Set con- [contrast] trast" but saves [contrast] as de- fault. Backlight on FE 42 [minutes] Backlight will 254 66 [minutes] 254 ’B’ stay on for [min- [minutes] utes]. If [minutes] backlight will stay permanently. Matrix Orbital GLK12232-25-WBL...
Page 36
254 ’4’ [byte 1] [byte 2] mand which works only on units without factory set serial numbers. Read Serial Number FE 35 Reads the two 254 53 byte serial num- 254 ’5’ ber of the module. Matrix Orbital GLK12232-25-WBL...
4Lines with 5x7 font) Display Area 69.50 x 20.76mm XxY Dot Size 0.52 x 0.62mm (XxY) Dot Pitch 0.53 x 0.53mm (XxY) LED / CCFL Backlight Life 20, 000 hours typical Color of Illumination Ice Blue Matrix Orbital GLK12232-25-WBL...
Need help?
Do you have a question about the GLK12232-25-WBL and is the answer not in the manual?
Questions and answers