Home
Matrix Hairstyles GLK24064-25 User's Manual
Contents
1. MATRIX ORBITAL GLK24064 25 Technical Manual Revision 3 0 Contents Contents ii 1 Getting Started 1 1 1 Display Options Available 1 1 2 ACCESSOTIES mue nn BOR ek Ae Be BS mes cum CR 2 1 3 Features rh Ge Be ah Bee SE ee ew ded s 3 14 Connecting toa 7 Pam S E ee dr 6 1 5 Installing the Software 7 1 551 MOGD sager a 24 23 Bod be eb Ore EP qq 7 2 Hardware Information 8 21 DB 9 Connector OR X S Ee UR RON SU Y 3 8 2 1 1 Power Through DB 9 Jumper 9 2 2 Power Data Connector 9 2 2 1 Legacy Data Connector Jumpers 10 2 3 Protocol Select Jumpers a w a p w k w has 10 2 4 Keypad Interface Connector 11 2 0 Manual Override EUR NL une Ne Oe nm due e 12 2 6 Filesystem Lock Jumper 13 3 Troubleshooting 13 3 1 The display does not turn on when power is applied 13 3 2 The display module is not communicating 13 3 3 The display module 15 communicating however text cannot be displayed 14 3 4 There is a problem uploading fonts or bitmaps 14 4 C
2. ASCII 254 2 Im tm csp Isp srow Matrix Orbital GLK24064 25 22 Parameters Description Remembered Parameter Length Description Im 1 Left margin Location in pixels tm 1 Top margin Location in pixels csp 1 Character Spacing Amount of space in pixels between characters Isp 1 Line Spacing Amount of space between lines in pixels STOW 1 Scroll Row The location of the last row in pixels Font metrics define where the characters are positioned on the screen by setting where the rows and columns begin based on the Im tm csp Isp srow parameters Im defines the leftmost position and tm the topmost csp controls the amount of pixels that are placed in between characters and Isp controls the amount of pixels that are placed in between lines srow is the location of the top of the last row that will be displayed on the GLK24064 25 It defines the row that when filled will cause the display to auto scroll if auto scrolling is enabled The font metrics will have to be reconfigured after changing to a differ ent font Yes 5 5 Set Box Space Mode Syntax Parameters Description Remembered Factory Default Hexadecimal OxFE OxAC value Decimal 254 172 value Parameter Length Description value 1 Value 0 Off 1 On This command will toggle the box space mode Box space mode is when a box the size of the character to be written is printed to the displ
3. Ensuring that your GLK24064 25 display s exactly what you want it to can be the difference between a projects success and failure This is why we incorporate features such as Data Lock into the GLK24064 25 With this new feature you now are in control over of how and when settings will be changed so there is no need to worry about the module acting exactly like you expected it to because all the settings may be locked and remembered for the next power up Matrix Orbital GLK24064 25 12 2 Set Remember Syntax Hexadecimal OxFE 0x93 switch Decimal 254 147 switch Parameters Parameter Length Description switch 1 0 Do not remember 1 Remember Description This command allows you to switch the remember function on and off To use the remember function set remember to on then set all of the settings that you wish to save settings that are listed as Remember Yes support being saved into the non volatile memory After you have set all of the commands that you wish to save you may then cycle the power and check the display settings to ensure that all the settings have been saved If you wish to use remember again after cycling the power you must set it to on again NOTES e Writing to non volatile memory is time consuming and slows down the operation of the display e Non volatile memory has a write limit and may only be changed approximately 100 000 times Remembered No Factory Default Do not remember 12 3 Data L
4. 01 until the file has completed uploading Below is an example of uploading the font file which we created in Section 5 1 2 on page 19 Host Transmit OxFE Transmit 0x24 Transmit 0x03 Module Echo 0x03 Host ReceiveO Confirm 0x01 Transmit 0x19 Module Echo 0x19 File Size 0x19 Host Receive Confirm 0x01 Transmit 0x00 Module Echo 0x00 FileFits 0x01 Host ReceiveO Transmit 0x05 Module Echo 0x05 Host Receive Confirm 0x01 Transmit 0x07 etc NOTES Command Prefix Font file upload command Request file ID for font file Accept request for file ID by echoing the request Receive the echo Confirm File ID Transmit the file size LSB Echo the LSB Receive LSB echo Confirm the LSB Transmit MSB Echo MSB Send confirmation that the file fits Receive confirmation Begin transmit of file data Echo first byte from file Receive echo Confirm echo Transmit second byte of file data e The GLK24064 25 has watch dog timer set to 2 1 seconds in between transmissions in order prevent the display module from staying in a waiting state e Once the timeout has been reached the timer will reset the display and issue a 0xD4 response to the host to signal that this has happened Matrix Orbital GLK24064 25 44 11 2 Wipe Filesystem Syntax Hexadecimal OxFE 0x21 0x59 0x21 Decimal 254 33 89 33 ASCII 254 i ay Descripti
5. s o w hok E 7 2 Uploading a Bitmap File 7 3 Drawing Bitmap from 7 4 Drawing Bitmap Directly Bar Graphs and Drawing 8 1 Introduction E ee ee 8 2 Set Drawing Color 8 3 Draw Pixel ep E RR 84 DrawingaLine 85 Contimue Line s c sses 4 de sue ke se ah et 8 6 Draw a Rectangle 8 7 Drawing Solid Rectangle 8 8 Initializing Bar Graph 8 9 Drawing Bar Graph 8 10 Initializing a Strip Chart 8 11 Shifting a Strip Chart Keypad 9 1 Introduction 9 2 Auto Transmit Keypresses On 9 3 Auto Transmit Keypresses Off 9 4 Poll Key Press ceo eh 9 5 Clear Key Buffer 9 6 Set Debounce Time 9 7 Set Repeat Mode 9 8 Auto Repeat Mode Off 9 9 Assign Keypad Codes Display Functions 10 1 Introduction Be S w in SU Q un W ap up W 10 2 Clear Scre
6. value ASCII 254 i ref value Parameter Length Description ref 1 Initialized bar graph reference number value 1 The number of pixels to fill Matrix Orbital GLK24064 25 32 Description Remembered Once the bar graph has been initialized it can be filled in using this com mand This command sets the bar graph specified by the ref number to fill in value value is given in pixels and should not exceed the available height width of the graph If it does the graph will simply be written to its maximum size No 8 10 Initializing a Strip Chart Syntax Hexadecimal OxFE Ox6A refID x1 y1 x2 y2 Decimal 254 106 refID x1 y1 x2 y2 ASCII 254 y refID x1 y1 x2 y2 Parameters Parameter Length Description refID 1 Reference number 1 1 Left bounds yl 1 Top Bounds x2 1 Right Bounds y2 1 Bottom Bounds Matrix Orbital GLK24064 25 33 Description A strip chart is an area of the screen reserved for horizontal scrolling This is normally used as follows Initialize the strip chart which reserves the appropriate area of the screen Draw a line segment at the right or left side of the strip chart Shift the strip chart to the right or left Draw the next line segment Used this way the strip chart can produce a graph which scrolls smoothly horizontally in either direction With text the strip chart can produce a marquis effect NOTE If the strip chart is used wit
7. 7 Set Auto Repeat Mode Syntax Hexadecimal Ox7E mode Decimal 254 126 mode ASCII 254 mode Matrix Orbital GLK24064 25 37 Parameters Description Remembered Examples Syntax Description Parameter Length Description mode 1 Auto Repeat Mode 0 Resend Key l Key Up Down Two auto repeat modes are available and are set via the same command e Resend Key Mode 0x00 e Key Up Down Mode 0x01 Resend Key Mode This mode is similar to the action of a keyboard on a PC In this mode when a key is held down the key code is transmitted immediately followed by a 1 2 second delay After this delay key codes will be sent via the RS 232 interface at a rate of about 5 codes per second This mode has no effect if polling or if using the interface Key Up Down Mode This mode may be used when the typematic pa Yes rameters of the Resend Key Code mode are unacceptable or if the unit is being operated in polled mode The host system detects the press of a key and simulates an auto repeat inside the host sys tem until the key release is detected In this mode when a key is held down the key code is transmitted immediately and no other codes will be sent until the key is released On the release of the key the key release code transmitted will be a value equal to the key down code plus 20 hex When the key code associated with key P 0x50 is pressed the release code is
8. ASCII 254 amp Clear Key Buffer Hexadecimal OxFE 0x45 36 Decimal 254 69 ASCII 254 E Set Debounce Time Hexadecimal OxFE 0x55 time 37 Decimal 254 85 time ASCII 254 U time Set Auto Repeat Mode Hexadecimal OxFE Ox7E mode 37 Decimal 254 126 mode ASCII 254 mode Auto Repeat Mode Off Hexadecimal OxFE 0x60 38 Decimal 254 96 ASCII 254 Assign Keypad Codes Hexadecimal OxFE OxD5 KDown KUp 39 Decimal 254 213 KDown KUp Matrix Orbital GLK24064 25 55 14 7 Display Functions Description Syntax Page Clear Screen Hexadecimal OxFE 0x58 40 Decimal 254 88 ASCII 254 X Backlight On Hexadecimal OxFE 0x42 min 40 Decimal 254 66 min ASCII 254 B min Backlight Off Hexadecimal OxFE 0x46 41 Decimal 254 70 ASCII 254 F Set Backlight Brightness Hexadecimal OxFE 0x99 brightness 41 Decimal 254 153 brightness Set and Save Backlight Hexadecimal OxFE 0x98 brightness 41 Brightness Decimal 254 152 brightness Set Contrast Hexadecimal OxFE 0x50 contrast 42 Decimal 254 80 contrast ASCII 254 contrast Set and Save Contrast Hexadecimal OxFE 0x91 contrast 42 Decimal 254 145 contrast 14 8 Filesystem Description Syntax Page Wipe Filesystem Hexadecimal OxFE 0x21 0x59 0x21 45 Decimal 254 33 89 33 ASCII 254 a di Deleting a File Hexadecimal OxFE OxAD type refID 45 Decimal 254 173 type refID Get Filesystem Space Hexadecimal OxFE OxAF 45
9. Decimal 254 175 Matrix Orbital GLK24064 25 56 Description Syntax Page Get Filesystem Contents Hexadecimal OxFE 0xB3 46 Decimal 254 179 Downloading a File Hexadecimal OxFE OxB2 Type refID 46 Decimal 254 178 Type refID Moving a File Hexadecimal OxFE OxB4 oldT oldID newT newID 47 Decimal 254 180 oldT oldID newT newID 14 9 Data Security Description Syntax Page Set Remember Hexadecimal OxFE 0x93 switch 48 Decimal 254 147 switch Data Lock Hexadecimal OxFE OxCA level 48 Decimal 254 202 level Set and Save Data Lock Hexadecimal OxFE OxCB level 50 Decimal 254 203 level 14 10 Miscellaneous Description Syntax Page Read Version Number Hexadecimal OxFE 0x36 50 Decimal 254 54 ASCII 254 6 Read Module Type Hexadecimal OxFE 0x37 51 Decimal 254 55 ASCII 254 7 14 11 Command By Number Matrix Orbital GLK24064 25 57 Command Description Page Hex Dec ASCII Command Description Page Hex Dec ASCII 0 21 33 Wipe Filesystem 45 0x24 36 Uploading Font File 21 0x26 38 amp Poll Key Press 36 0x31 49 es Setting the Current Font 22 0x32 50 E Font Metrics 22 0x33 51 Changing the Slave Address 17 0x36 54 6 Read Version Number 50 0x37 55 Read Module 51 0x39 57 9 Changing Baud Rate 17 Ox3A 58 Turn Flow Control On 16 0x3B 59 A Turn Flow Control Off 16 0 41 65 Auto Transmit Key
10. End Val 0x05 0x07 0x49 0x4B Next we will have to find out how many bytes each character will use up in order to create the character table The bitmaps are encoded horizontally and may have variable widths h has a width of five i a width of three and j a width of four see the figure below for an example of encoding the first letter Bitmap Data Byte Hex Value 1101 0010 11000101 10000100 0 84 110111101 00101101 0x2D 1 10011000 Fonts 10001 11000110 0xC6 100011 00100000 0x20 10001 Figure 21 Bitmap Encoding As you can see the letter h will take up five bytes with the last three bits being zero padded to form a full byte So if you continue the process you will get the character data as seen in table 5 1 2 The second part of the font file is the character table The character table is comprised of three bytes for every glyph in the font file The first two bytes represents the position in bytes of the glyph stored MSB LSB referenced from the beginning of the file including the header The third byte is the width of the glyph in pixels So because there will be 0x09 bytes in the character table three bytes for each glyph and four bytes in the header section the first entry in the table will be 13 or 0x00 OxOD in hexadecimal and 0x05 for the width To calculate the second entry in the character table representing the position and width of the se
11. Set Backlight Brightness Syntax Parameters Description Remembered Factory Default Hexadecimal OxFE 0x99 brightness Decimal 254 153 brightness Parameter Length Description brightness 1 Backlight setting 0 to 255 This command sets the backlight settings according to backlight If the remember function is on this command acts the same as Set and Save Backlight Brightness Yes 255 10 6 Set and Save Backlight Brightness Syntax Hexadecimal OxFE 0x98 brightness Decimal 254 152 brightness Parameters Parameter Length Description brightness 1 Backlight setting 0 to 255 Matrix Orbital GLK24064 25 41 Description Remembered This command sets and saves the backlight brightness as default Always 10 7 Set Contrast Syntax Parameters Description Remembered Factory Default Hexadecimal OxFE 0x50 contrast Decimal 254 80 contrast ASCII 254 contrast Parameter Length Description contrast 1 Contrast value 0 to 255 This command sets the display s contrast to contrast where contrast is a value between 0x00 and OxFF between 0 to 255 Lower values cause on elements in the display area to appear lighter while higher values cause on elements to appear darker Lighting and temperature condi tions will affect the actual value used for optimal viewing Individual display modules will also differ slightly from each other in appear
12. of the returned key code will be set 1 If this is the only buffered key press then the MSB will be cleared 0 If there are no buffered key presses then the returned code will be 0x00 Please note that to make use of this command the Auto Transmit Key Presses mode should be off Remembered No 9 5 Clear Key Buffer Syntax Hexadecimal OxFE 0x45 Decimal 254 69 ASCII 254 E Matrix Orbital GLK24064 25 36 Description This command clears any unread key presses In menu application if the user presses a key which changes the menu context any following key presses may be inaccurate and can be cleared out of the buffer be tween menu changes to prevent jumping around the menu tree It may also be used in effect to reset the keypad in case the host application resets for whatever reason Remembered No 9 6 Set Debounce Time Syntax Hexadecimal OxFE 0x55 time Decimal 254 85 time ASCII 254 U time Parameters Parameter Length Description time 1 Debounce time in increments of 6 554ms 0 255 Description This command sets the time between key press and key read All key types with the exception of latched piezo switches will bounce for a varying time depending on their physical characteristics The time value is in increments of 6 554ms The default debounce time for the module is 8 about 52ms which is adequate for most membrane key pads Remembered Yes Factory Default 8 9
13. work in most environments is 128 NOTE Optimal contrast settings may vary according to factors such as temperature view ing angle and lighting conditions There is a problem uploading fonts or bitmaps First ensure that you can communicate to the display A good test is to use a PC with MOGD in stalled to connect to the display See Section 1 4 on page 6 for setting up a PC to test the GLK24064 25 Second unsure that the File System Lock Jumper has not been set See Section 2 6 on the previous page Third please ensure that the display module s memory is not full The GLK24064 25 has 16 Kb of memory for fonts and bitmaps NOTE If you are unable to resolve any issue please contact Matrix Orbital See 15 5 on page 61 for contact information Matrix Orbital GLK24064 25 14 4 Communications 4 1 Introduction The commands listed in this chapter describe how to configure data flow on the RS232 TTL port The display has built in flow control which may be useful when long strings of text are downloaded to the display Flow control is enabled or disabled by two commands If flow control is enabled the display will return an almost full message OxFE to the controller when its internal buffer fills to a defined level and an almost empty message OxFF when the buffer contents drop to a defined level 4 1 1 PC Communication The GLC25064 is capable of communicating at 400 Kbps in PC mode with 127 units addressa
14. 1 y1 x2 y2 29 Decimal 254 108 x1 y1 x2 y2 ASCII 254 T x1 y1 x2 y2 Continue a Line Hexadecimal OxFE 0x65 x y 30 Decimal 254 101 x y ASCII 254 e x y Draw a Rectangle Hexadecimal OxFE 0x72 color x1 y1 x2 y2 30 Decimal 254 114 color x1 y1 x2 y2 ASCII 254 r color x1 y1 x2 y2 Drawing a Solid Hexadecimal OxFE 0x78 color x1 y1 x2 y2 31 Rectangle Decimal 254 120 color x1 y1 x2 y2 ASCII 254 color x1 y1 x2 y2 Initializing a Bar Graph Hexadecimal OxFE 0x67 refID type x1 y1 x2 y2 31 Decimal 254 103 refID type x1 y1 x2 y2 ASCII 254 g refID type x1 y1 x2 y2 Drawing a Bar Graph Hexadecimal OxFE 0x69 ref value 32 Decimal 254 105 ref value ASCII 254 i ref value Matrix Orbital GLK24064 25 54 Description Syntax Page Initializing a Strip Chart Hexadecimal OxFE Ox6A refID x1 y1 x2 y2 33 Decimal 254 106 refID x1 y1 x2 y2 ASCII 254 refID x1 y1 x2 y2 Shifting a Strip Chart Hexadecimal OxFE Ox6B ref 34 Decimal 254 107 ref ASCII 254 ref 14 6 Keypad Description Syntax Page Auto Transmit Key Hexadecimal OxFE 0x41 35 Presses On Decimal 254 65 ASCII 254 Auto Transmit Key Hexadecimal OxFE Ox4F 36 Presses Off Decimal 254 79 ASCII 254 Poll Key Press Hexadecimal OxFE 0x26 36 Decimal 254 38
15. 2 Electrical 15 2 Optical Characteristics 15 3 Physical Layout 15 4 Definitions 15 5 Contacting Matrix Orbital 43 43 43 45 45 45 46 46 47 47 47 48 50 50 50 50 51 59 59 59 60 60 61 61 61 Matrix Orbital GLK24064 25 1 Getting Started MATRIX ORBITATS Figure 1 GLK24064 25 WB The GLK24064 25 is an intelligent graphic LCD display designed to decrease development time by providing an instant solution to any project With the ability to communicate via serial RS 232 TTL and C protocols the versatile GLK24064 25 can be used with virtually any controller The ease of use is further enhanced by an intuitive command structure to allow display settings such as backlight brightness contrast and baud rate to be software controlled Additionally text and fonts may be uploaded to the display and stored in the on board memory 1 1 Display Options Available The GLK24064 25 comes in a variety of colors including the standard yellow green the popular blue white and the crisp white grey Extended voltage and temperature options are also available to allow you to select the display which will best fit your project needs Burning CD 25 complete Figure 2 GLK24064 25 Options Matrix Orbital GLK24064 25 1 1 2 Accessories NOTE Matrix Orbital provides all the interface accessories needed to get your display up and running You will find these accessories and others
16. 4 you must then pass it a reference identification number which must be unique for every font on the display module You may then pass the display module the two byte file size which needs to be transfered LSB then MSB The last part of uploading a font is transmitting the font file data For detailed instructions on uploading a file to the GLK24064 25 see Section 11 1 on page 43 Always Setting the Current Font Syntax Parameters Description Remembered Hexadecimal OxFE 0x31 refID Decimal 254 49 refID ASCII 254 1 refID Parameter Length Description refID 1 A unique font identification number In order to set the font on the GLK24064 25 you must know the font identification number of the font that you wish to use The font ID is established when the font is saved to the display The default installed fonts are Small Filled and Futura Bk BT 16 and their font ID s are 0x01 and 0x02 respectfully Once you are aware of the font ID for the font that you wish you use simply send the command bytes OxFE 0x31 and then send the font ID corresponding to the font you wish to use A directory listing of the contents of the entire filesystem may be obtained by using the Get Filesystem Directory command see Section 11 5 on page 46 for more detailed information Always 5 4 Font Metrics Syntax Hexadecimal OxFE 0x32 Im tm csp Isp srow Decimal 254 50 Im tm csp Isp srow
17. GHA O 1 DB 9 Connector 2 Power Through DB9 Jumper 3 Manual Override 4 Keypad Interface Connector 5 Power Data Connector 2 1 DB 9 Connector Figure 11 GLK24064 25 6 Legacy Connector Jumper 7 Protocol Select Jumpers 8 File System Lock Jumper The GLK24064 25 provides a DB 9 Connector to readily interface with serial devices which use the 12V to 12V It is also possible to communicate at TTL levels of 0 to 5V by setting the Protocol Select Jumpers to TTL As an added feature it is also possible to apply power through pin 9 of the DB 9 Connector in order to reduce cable clutter However in order to accomplish this you must set the Power Through DB 9 Jumper EIA232 standard signal levels of Figure 12 RS 232 Pin out Pin 2 Pin 3 Pin 5 Pin 9 Rx SCL clock Tx SDA data GND PWR Must solder Power Through DB 9 Jumper See table 1 on page 10 for power requirements Matrix Orbital GLK24064 25 2 1 1 Power Through DB 9 Jumper In order to provide power through pin 9 of the DB 9 Connector you must place a solder jumper on the Power through DB 9 Jumper pictured in figure 13 below The GLK24064 25 allows all voltage models to use the power through DB 9 option see table 1 on the following page for display module voltage requirements Figure 13 Power Through DB 9 Jumper WARNING Do not apply voltage through pin 9 of the DB 9 connector AND through the Power Data Connector at t
18. LK24064 25 employs software controlled display settings which allow for control over clearing the screen changing the brightness and contrast or setting timers for turning it on or off The combination of these allow you complete software control over your display s appearance Matrix Orbital GLK24064 25 39 10 2 Clear Screen Syntax Description Remembered Hexadecimal Decimal ASCII OxFE 0 58 254 88 254 X This command clears the display and resets the text insertion position to the top left position of the screen defined in the font metrics No 10 3 Backlight On Syntax Parameters Description Remembered Factory Default Hexadecimal OxFE 0x42 min Decimal 254 66 min ASCII 254 B min Parameter Length Description min 1 Minutes before turning the backlight on 0 to 90 This command turns the backlight on after the minutes timer has ex pired with a ninety minute maximum timer A time of 0 specifies that the display should turn on immediately and stay on When this command is sent while the remember function is on the timer will reset and begin after power up Yes Matrix Orbital GLK24064 25 40 10 4 Backlight Off Syntax Description Remembered Hexadecimal OxFE 0x46 Decimal 254 70 ASCII 254 F This command turns the backlight off immediately The backlight will remain off until a Backlight On command has been received Yes 10 5
19. OxB3 179 Get Filesystem Contents 46 OxB4 180 Moving a File 47 OxCA 202 Data Lock 48 15 Appendix 15 1 Specifications 15 1 1 Environmental Table 70 Environmental Specifications Standard Temperature Extended Temperature Operating Temperature 0 to 50 C 20 C to 70 C Storage Temperature 20 C to 70 C 30 C to 80 C Operating Relative Humidity 90 max non condensing Vibration Operating 4 9 m s XYZ directions Vibration Non Operating 19 6 m s XYZ directions Shock Operating 29 4 m s XYZ directions Shock Non Operating 490 m s XYZ directions Matrix Orbital GLK24064 25 59 15 1 2 Electrical Table 71 Electrical Specifications Standard Wide Voltage V Wide Voltage with Efficient Switching Power Supply VPT Supply Voltage 5Vdc 0 25V 9V to 15V 9V to 35V Backlight On 110 mA typical Backlight Off Supply 40 mA Power Conservation 35 mA 15 2 Optical Characteristics Table 72 Optical Characteristics Pixel Layout 240 x 64 pixels XxY Number of Characters 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 Backlight Life 100 000 hours typical Backlight Yellow Green LED Blue LED White LED Matrix Orbital GLK24064 25 15 3 Physical Layout Fig
20. P 202A E VK202 25 42 PK202 24 USB F VK204 25 43 MOS AL 082 10 GLC12232 44 MOS AL 204 13 GLC24064 45 MOS AV 204 15 GLK24064 25 46 MOS AL 402 22 GLK12232 25 WBL 47 MOS AV 402 24 GLK12232 25 SM 48 LK082 12 31 LK404 AT 49 VK402 12 32 MOS AV 162A 4A VK404 55 33 LK402 12 4B LK402 25 34 LK162 12 4C VK402 25 35 LK204 25PC Matrix Orbital GLK24064 25 Remembered No 14 Command Summary 14 1 Communications Description Syntax Page Turn Flow Control On Hexadecimal OxFE 0x3A full empty 16 Decimal 254 58 full empty ASCII 254 full empty Turn Flow Control Off Hexadecimal OxFE 0x3B 16 Decimal 254 59 ASCII 254 3 Changing the Slave Hexadecimal OxFE 0x33 adr 17 Address Decimal 254 51 adr ASCII 254 3 adr Changing the Baud Rate Hexadecimal OxFE 0x39 speed 17 Decimal 254 57 speed ASCII 254 9 speed Setting a Non Standard Hexadecimal OxFE OxAA speed 18 Baud Rate Decimal 254 164 speed 14 2 Fonts Description Syntax Page Uploading a Font File Hexadecimal OxFE 0x24 refID size data 21 Decimal 254 36 refID size data ASCII 254 refID size data Setting the Current Font Hexadecimal OxFE 0x31 refID 22 Decimal 254 49 refID ASCII 254 1 refID Matrix Orbital GLK24064 25 52 Description Syntax Page Font Metrics Hexadecimal OxFE 0x32 Im tm csp Isp srow 22 Decimal 254 50 Im tm csp Isp sro
21. a row and a column When a key press is generated a character which is associated with the particular key press is automatically sent on the Tx communication line If the display module is running in mode the Auto Transmit Keypress function may 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 for more detailed information see the Keypad Section on page 35 Figure 17 Keypad Interface Connector Matrix Orbital GLK24064 25 11 2 5 Manual Override The Manual Override is provided to allow the GLK24064 25 to be reset to factory defaults This can be particularly helpful if the display module has been set to an unknown baud rate or Slave Address and you are no longer able to communicate with it If you wish to return the module to its default settings you must Power off the display module Place a Jumper on the Manual Override pins 1 and 2 as pictured below Power up the display module The display module is now set to its default values listed below in table 2 D Edit and save settings Figure 18 Manual Override Jumper Table 2 Default Values Contrast 128 Backlight 255 Baud Rate 19 2 kbps Slave Address 0x50 Data Lock False RS232AutoTransmitData True NOTE The display module will revert back t
22. al OxFE 0x39 speed Decimal 254 57 speed ASCII 254 9 speed Parameters Parameter Length Description speed 1 Hex value corresponding to a baud rate Description Data Security Matrix Orbital GLK24064 25 17 Remembered Factory Default Always 0 50 4 6 Setting a Non Standard Baud Rate Syntax Parameters Description Remembered Examples Hexadecimal OxFE 4 speed Decimal 254 164 speed Parameter Length Description speed 2 Inputed LSB MSB from baud rate formula 12 2047 This command sets the RS 232 port to a non standard baud rate The command accepts a two byte parameter that goes directly into the mod ules baud generator Use the formula speed 25000000 to cal culate the speed for any baud rate setting The speed can be anywhere from 12 to 2047 which corresponds to a baud range of 977 to 153 800 baud Setting the baud rate out of this range could cause the display to stop working properly and require the Manual Override jumper to be set Always speed 17 391 1 er ae 16 000 000 PERR 8 x DesiredBaud speed 16 391 1 speed LSB 16 8 115 000 MSB 0 NOTE Results from the formula are rounded to the nearest whole number Matrix Orbital GLK24064 25 18 5 Fonts 5 1 Introduction The GLK24064 25 comes loaded with the Small Filled and Futura Bk BT 16 fonts by default how ever it is capable of displaying any font that is upload
23. ance In addition values for optimal viewing while the display backlight is on may differ from values used when backlight is off This command does not save the contrast value and is lost after power down but this command has the option of remembering the settings when issued with the Remember function on When this is the case this command is the same as the Set and Save Contrast command Yes 128 10 8 Set and Save Contrast Syntax Hexadecimal OxFE 0x91 contrast Decimal 254 145 contrast Parameters Parameter Length Description contrast 1 Contrast value 0 to 255 Matrix Orbital GLK24064 25 42 Description This command sets the display s contrast to contrast where contrast is a value between 0x00 and OxFF between 0 to 255 Lower values cause on elements in the display area to appear lighter while higher values cause on elements to appear darker Lighting conditions will affect the actual value used for optimal viewing Individual display modules will also differ slightly from each other in appearance In addition values for optimal viewing while the display backlight is on may differ from values used when backlight is off NOTE This command saves the contrast value so that it is not lost after power down Remembered Yes Factory Default 128 11 Filesystem 11 1 Introduction 11 1 1 File Upload Protocol In order to allow fonts and bitmaps to be uploaded to the on board flash memor
24. and place them on the jumpers labeled with the X symbol This will allow you to transmit on pin two and receive data on pin three as pictured in figure 15 below X l oo NET ons Power Data Connector Pin 2 Rx SCL 2 clock ERIS j 1 Xl Pin 3 Tx SDA 2 data Pin 3 Rx SCL C clock LILI Jib x Pin2 Tx SDA 2 data ENIGHA 0 Figure 15 Legacy Data Connector Jumpers 2 3 Protocol Select Jumpers The Protocol Select Jumpers pictured below in figure 16 provide the means necessary to toggle the display module between RS 232 TTL and protocols As a default the jumpers are set to RS 232 mode with zero ohm resistors on the 232 jumpers In order to place the display module in mode you must first remove the zero ohm resistors from the 232 jumpers and then solder the resistors on to the I2C jumpers The display will now be in IC mode and have a default slave address of 0x50 unless it has been changed Matrix Orbital GLK24064 25 10 Similarly in order to change the display to TTL mode simply remove the zero ohm resistors from the 232 or PC jumpers and solder them to the TTL jumpers Figure 16 Protocol Select Jumpers 2 4 Keypad Interface Connector The GLK24064 25 provides a Keypad Interface Connector which allows for up to a five by five matrix style keypad to be directly connected to the display module Key presses are generated when a short is detected between
25. arameters Parameter Length Description level 1 Sets the data lock level Description This command will set and save the data lock level See the Data Lock section for more information Remembered Always Factory Default 0 13 Miscellaneous 13 1 Introduction This chapter covers the Report Version Number and Read Module Type commands These commands can be particularly useful to find out more information about the display module before contacting technical support 13 2 Read Version Number Syntax Hexadecimal OxFE 0x36 Decimal 254 54 ASCII 254 6 Description This command will return a byte representing the version of the module see the following table as an example Hex Value Version Number 0x10 Version 1 0 0x20 Version 2 0 0x42 Version 4 2 Matrix Orbital GLK24064 25 50 Remembered No 13 3 Read Module Type Syntax Hexadecimal OxFE 0x37 Decimal 254 55 ASCII 254 7 Description This command will return a hex value corresponding to the the model number of the module see the following table Hex Product ID Hex Product ID 1 LCD0821 36 LK202 24 USB 2 1 2021 37 VK202 24 USB 5 LCD2041 38 LK204 24 USB 6 LCD4021 39 VK204 24 USB 7 LCD4041 3A PK162 12 8 LK202 25 3B VK162 12 9 LK204 25 3C MOS AP 162A A LK404 55 3D PK202 25 B VFD2021 3E MOS AL 162A VFD2041 40 MOS AV 202A D VFD4021 41 MOS A
26. ay before a character is written Yes Off Matrix Orbital GLK24064 25 23 6 Text 6 1 Introduction The GLK24064 25 is an intelligent display module designed to reduce the amount of code necessary to begin displaying data This means that it is able to display all characters and strings that are sent to it which are defined in the current font without much if any configuration The display module will begin displaying text at the top left corner of the display area known as home and continue to print to the display as if it was a page on a typewriter When the text reaches the bottom right as defined in the font metrics it will automatically scroll all of the lines up and continue to display text 6 2 Move Cursor Home Syntax Description Remembered Hexadecimal OxFE 0x48 Decimal 254 72 ASCII 254 H This command moves the text insertion point to the top left of the display area based on the current font metrics see Section 5 4 on page 22 No 6 3 Setting the Cursor Position Syntax Hexadecimal OxFE 0x47 col row Decimal 254 71 col row ASCII 254 G col row Parameters Parameter Length Description col 1 Column TOW 1 Row Description This command sets the text insertion point to the col and row speci fied The insertion point is positioned using the base size of the current font this command does not position the insertion point at a specific pixel The pixel column used is de
27. ble on a single C communication line However in order to communicate via C you must first set the Protocol Select Jumpers as can be seen in Section 2 3 and ensure that pull up resistors with a nominal value of 1K to 10K are placed on the SCL SDA communication lines coming from pins two and three of the Data Power Connector respectively The GLK24064 25 uses 8 bit addressing with the 8th bit designated as the read write bit a O designates a write address and a 1 designates a read address The default read address of the display module will be 0x51 whereas the write address is 0x50 by default to change the address see section 8 2 1 When communicating in PC the GLK24064 25 will send an ACK on the 9th clock cycle when addressed When writing to the display module the display will respond with a ACK when the write has successfully been completed However if the buffer has been filled or the module is too busy processing data it will respond with a NAK When performing a multiple byte read within one transaction each byte read from the slave should be followed by an ACK to indicate that the master still needs data and a NAK to indicate that the transmission is over 4 1 2 Serial Communication In addition to being able to communicate via PC the GLK24064 25 communicates natively through the RS 232 protocol at a default baud rate of 19 200 bps and is capable of standard baud rates from 9600 to 115200 bps Furthermore the GLK24064 25 is a
28. cond glyph take the offset of the first entry and add the size of the first bitmap in bytes Since the first glyph occupies 0x05 bytes as seen in table 5 1 2 above and the offset is 0x00 OxOD the offset of the second entry will be 0x00 0x12 and the width of the glyph is 0x03 Calculate the third entry the same way as the second to get table 9 below Matrix Orbital GLK24064 25 20 Table 9 Character Table High Offset MSB Low Offset LSB Character Width h 0x00 0x0D 0x05 1 0x00 0x12 0x03 j 0x00 0x15 0x04 Once completed place the character table after the header and the character data at the end as seen in table 10 Table 10 Sample Font File 0x05 0x07 0x49 0x4B 0x00 OxOD 0x05 0x00 0x12 0x03 0x00 0x15 0x04 0x84 0x2D 0x98 OxC6 0x20 0x43 0x24 0x84 0x2D 0x98 0x19 0x60 Red Header Blue Character Table Purple Character Data 5 2 Uploading a Font File Syntax Hexadecimal OxFE 0x24 refID size data Decimal 254 36 refID size data ASCII 254 refID size data Parameters Parameter Length Description refID 1 A unique font identification number size 2 Font file size LSB to MSB data x Font file data Matrix Orbital GLK24064 25 21 5 3 Description Remembered In order to upload a font to the GLK24064 25 you must first initiate the upload font file command OxFE 0x2
29. creen as well as the width and the height of the bitmap After you have supplied this data you may then upload the bitmap data to the GLK24064 25 The bitmap data 18 encoded into bytes horizontally and is transfered the same as if you were uploading a file see Section 11 1 on page 43 for more information about transferring data to the display module NOTE Drawing a bitmap directly to the display supports flow control Remembered No 8 Bar Graphs and Drawing 8 1 Introduction Supplementary to the ability of the GLK24064 25 to display bitmaps and fonts the GLK24064 25 also allows for a robust 2D drawing environment With the ability to draw by pixel line or rectangle as well as the ability to continue a line to form a polygon we are certain that you will spend less time developing and creating better looking projects With the addition of custom bar and strip graphs you are sure to find the right tools to make any graphical layout a success 8 2 Set Drawing Color Syntax Hexadecimal OxFE 0x63 color Decimal 254 99 color ASCII 254 color Matrix Orbital GLK24064 25 28 Parameters Description Remembered 8 3 Draw Pixel Syntax Parameters Description Remembered Parameter Length Description color 1 Drawing color 0 White 1 255 Black This command sets the drawing color for subsequent graphic commands that do not have the drawing color passed as parameter The parameter color is the
30. ct Matrix Orbital see 15 5 on page 61 for contact information The display module is not communicating 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 Matrix Orbital GLK24064 25 13 3 3 3 4 Second please ensure that the display module is set to communicate on the protocol that you are using by checking the Protocol Select Jumpers To change the protocol used by the display module see Section 2 3 on page 10 Third ensure that the host system and display module are both communicating on the same baud rate The default baud rate for the display module is 19200 bps If you are communicating to the display via please ensure that the data is being sent to the correct address The default slave address for the display module is 0 50 NOTE communication will always require pull up resistors Finally you may reset the display to it s default settings using the Manual Override Jumper see Section 2 5 on page 12 The display module is communicating however text cannot be displayed The cause of this is often that no font has been loaded onto the display To load a font onto the display see Section 4 2 1 on page 16 Another common cause may be that the contrast settings have been set to low The solution to this problem is to adjust the contrast settings the default setting that will
31. e last line end x2 y2 to x y This command uses the global drawing color No 8 6 Draw a Rectangle Syntax Hexadecimal OxFE 0x72 color x1 y1 x2 y2 Decimal 254 114 color x1 y1 x2 y2 ASCII 254 color x1 y1 x2 y2 Parameters Parameter Length Description color 1 Drawing color 0 White 1 255 Black 1 1 Left bounds yl 1 Top Bounds x2 1 Right Bounds y2 1 Bottom Bounds Matrix Orbital GLK24064 25 30 8 7 8 8 Description Remembered This command draws a rectangular box in the specified color 0 White 1 Black The top left corner is specified by x1 y1 and the bottom right corner by x2 y2 No Drawing a Solid Rectangle Syntax Parameters Description Remembered Hexadecimal OxFE 0x78 color x1 y1 x2 y2 Decimal 254 120 color x1 y1 x2 y2 ASCII 254 x color x1 y1 x2 y2 Parameter Length Description color 1 Drawing color 0 White 1 255 Black 1 1 Left bounds yl 1 Top Bounds x2 1 Right Bounds y2 1 Bottom Bounds This command draws a solid rectangle in the specified color 0 White 1 Black The top left corner is specified by x1 y1 and the bottom right comer by x2 y2 Since this command involves considerable processing overhead we strongly recommend the use of flow control particularly if the command is to be repeated frequently No Initializing a Bar Graph Syntax Hexadecimal OxFE 0
32. ed to it in the correct format MOGD provides a simple method of generating font files from your installed fonts For instructions on how to install MOGD see Section 1 5 1 on page 7 5 1 1 Font File Format A font file consists of three parts a header a character table and bitmap data 1 Header 4 bytes a Nominal Width 1 byte b Height 1 byte c ASCII Start Value 1 byte d ASCII End Value 1 byte 2 Character Table 3 bytes for every character between the ASCII Start and End values inclusive a High Offset LSB 1 byte b Low Offset MSB 1 byte c Character Width 1 byte 3 Bitmap Data 5 1 2 Creating a Font The following is an example of how to create a font file for the letters h i and j First you must create the bitmaps containing the character data in bitmap form Figure 20 below illus trates the bit pattern for the i and j bitmap data Figure 20 Bitmaps for h i and j Second you may begin to create the font file starting with the header The header will contain the nominal width the height and the ASCII start and end values inclusive that you wish to create characters for Matrix Orbital GLK24064 25 19 Character Data Character Data Byte Size For Reference h 0x84 Ox2D 0x98 OxC6 0x20 0x05 i 0x43 0x24 0x84 0x03 j 0x2D 0x98 0x19 0x60 0x04 Table 8 Font File Header Nominal Width Height ASCII Start Val ASCII
33. en s seo Rum beau 9 dom RR 103 BacklightOn 10 4 Backlight Of 10 5 Set Backlight Brightness 10 6 Set and Save Backlight Brightness 107 S tContrast sg so bee Hee 2 e D tue eS 10 8 Set and Save Contrast 24 24 24 24 25 25 26 26 26 26 27 27 28 28 28 29 29 30 30 31 31 32 33 34 35 35 95 36 36 36 37 37 38 39 39 39 40 40 41 41 41 42 42 Matrix Orbital GLK24064 25 11 Filesystem 11 1 Introduction 11 1 1 File Upload Protocol 11 2 Wipe Filesystem 11 3 DeletingaFile 11 4 Get Filesystem Space 11 5 Get Filesystem Contents 11 6 Downloading a File 11 7 Moving a File 12 Data Security 12 1 Introduction 12 2 Set Remember 12 3 Data Lock 12 4 Set and Save Data Lock 13 Miscellaneous 13 1 Introduction 13 2 Read Version Number 13 3 Read Module 14 Command Summary 14 1 Communications 142 Fonts 14 3 TXT us Se meus 14 4 Bitmaps 14 5 Bar Graphs and Drawing 14 6 Keypad 14 7 Display Functions 14 8 Filesystem 14 9 Data Security 14 10Miscellaneous 14 11 Command By Number 15 Appendix 15 1 Specifications 15 1 1 Environmental 15 1
34. h as the one pictured in figure 6 on page 3 as well as a modified 5V power adapter such as the one pictured in figure 3 on page 2 In order to connect your display to a personal computer follow these easy instructions 1 Plug the serial cable into the com port you wish to use 2 Connect the modified 5V power adapter to a power lead from your PC power supply you will have to open your computer case 3 Connect the serial cable to the DB 9 connector on the back of the display 4 Connect the 5V power adapter to the 4 pin connector on the back of the display WARNING DO NOT use the standard floppy drive power connector as this will not provide you with the correct voltage and will damage the display module PC Wiring Standard Module Wiring V VPT Module Wiring ae Figure 9 PC vs Matrix Orbital Display Module Wiring Matrix Orbital GLK24064 25 6 1 5 Installing the Software 1 5 1 MOGD MOGD is the latest updated version of MOGD and can be used to manage font and graphics downloads as well as exercise all of the features of our graphical displays MOGD provides a new user friendly interface as well as many feature enhancements To install MOGD from the Matrix Orbital CD follow the following steps Insert the Matrix Orbital Cd ROM into the Cd drive Locate the file MogdSharp zip which should be in the cd drive Download directory Unzip MogdSharp zip to a temporary directory using a p
35. h text we recommend the use of a 6 or 7 pixel wide fixed width character set with each character placed 8 pixels from the start of the previous one Up to 7 strip charts ref 0 6 may be defined To initialize a strip chart the user must define an area on the display in which to place the strip chart x1 y1 is the top left corner of the area to be used where x1 is the placement of the column where the strip chart is to begin and y1 is the row The user must then define x2 as the bottom right column of the area to be utilized and y2 as the bottom right row The definition of x must lie on byte boundaries That is x must be defined as 0x00 0x08 0x10 etc This restriction does not apply to y values Remembered No 8 11 Shifting a Strip Chart Syntax Hexadecimal OxFE 0x6B ref Decimal 254 107 ref ASCII 254 ref Parameters Parameter Length Description ref 1 Reference number of a strip chart that has already been created Matrix Orbital GLK24064 25 34 Description Remembered 9 Keypad 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 e MSB 0 shifts left e MSB 1 shifts right For example if ref is 1 e 254 107 1 hex FE 6B 01 shifts left e 254 107 129 hex FE 6B 81 shifts right This command shifts the contents of the area defined in the I
36. he same time 2 2 Power Data Connector The Power Data Connector provides a standard connector for powering the display module The GLK24064 25 requires five volts for the standard display module between nine to fifteen for the wide voltage V and between nine to thirty five volts for the wide voltage with efficient power supply module VPT The volt age is applied through pins one and four of the four pin Power Data connector Pins two and three are reserved for serial transmission using either the RS 232 TTL or the IC protocol depending on what has been selected by the Protocol Select Jumpers Pins two and three may be reversed by changing the Legacy Connector Jumpers in order to be compatible with previous PCB revisions Pin1 Pin 2 Pin 3 Pin 4 Figure 14 Power Connector and Pin out PWR See table 1 on the next page SCL PC clock Tx SDA data GND Matrix Orbital GLK24064 25 Table 1 Power Requirements Standard V VPT Supply Voltage 5Vdc 0 25 49V to 15 9 to 35V Supply Current 31 mA typical Supply Backlight Current 160 mA typical WARNINGS AN e Do not apply any power with reversed polarization e Do not apply any voltage other than the specified voltage 2 2 1 Legacy Data Connector Jumpers To reverse pins two and three of the Power Data Connector remove the zero ohm resistors from the Legacy Data Connector Jumpers labeled with the symbol
37. lso capable of reproducing any non standard baud rate in between using values entered into our baud rate generation algorithm and set through command 164 0x A4 The display module communicates at standard voltage levels of at 12V to 12V or at TTL levels of 0 to 5 by setting the Protocol Select Jumpers to TTL Matrix Orbital GLK24064 25 15 4 2 Turn Flow Control Syntax Parameters Description Remembered Factory Default Hexadecimal OxFE 0x3A full empty Decimal 254 58 full empty ASCII 254 full empty Parameter Length Description full 1 The upper limit to issue an empty 1 The lower limit to issue an This command enables flow control When the buffer fills so that only full bytes are available the display will return an almost full mes sage OxFE to the host controller When the buffer empties so that only empty bytes remain the display will return an almost empty message OxFF to the host controller The display will return the almost full message for every byte sent to the display until the used buffer space once more drops below the full level Whether the user is in flow control mode or not the module will ignore display or command bytes which would overrun the buffer While in flow control mode the unit will return OxFE when buffer is almost full even though it may have already thrown rejected data away The buffer size for the dis
38. nitialize Strip Chart command 8 pixels at a time No 9 1 Introduction The GLK24064 25 supports up to a twenty five key matrix style keypad and may be configured to allow key presses to be automatically transmitted via RS 232 or polled through The GLK24064 25 also allows for auto repeating key presses and remapping of all keypad character codes 9 2 Auto Transmit Key Presses On Syntax Description Remembered Factory Default Hexadecimal OxFE 0x41 Decimal 254 65 ASCII 254 In this mode all key presses are sent immediately to the host system without the use of the poll keypad command This is the default mode on power up Yes On Matrix Orbital GLK24064 25 35 9 3 Auto Transmit Key Presses Off Syntax Hexadecimal OxFE Ox4F Decimal 254 79 ASCII 254 Description In this mode up to 10 key presses are buffered until the unit is polled by the host system via the poll keypad command 254 38 Issuing this command places the unit in polled mode Remembered Yes 9 4 Poll Key Press Syntax Hexadecimal OxFE 0x26 Decimal 254 38 ASCII 254 amp Description This command returns any buffered key presses via the RS 232 inter face The host system must be set up to receive key codes When the display receives this command it will immediately return any buffered key presses which may have not been read already If there is more than one key press buffered then the high order bit MSB
39. o the old settings once turned off unless the settings are saved Matrix Orbital GLK24064 25 12 2 6 Filesystem Lock Jumper The File System Lock Jumper allows you to lock the file system on the GLK24064 25 so that no fonts or bitmaps can be either written or deleted from the on board memory This feature is useful in order to protect data integrity of production units if protection of other settings is required see Section 12 1 To lock the file system solder a zero ohm resistor or use a solder jumper on the Filesystem Lock Jumper pictured in figure 19 below 3 1 3 2 Figure 19 File System Lock Jumper Troubleshooting The display does not turn on when power is applied First you will want to make sure that you are using the correct power connector Standard floppy drive power cables from your PC power supply may fit on the Power Data Connector however they do not have the correct pin out as can be seen in figure 9 on page 6 Matrix Orbital supplies power cable adapters for connecting to a PC which can be found in the Accessories Section on page 2 The next step is to 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 The last step will be to check the Power Data Connector on the GLK24064 25 If the Power Data Connector has become loose or you are unable to resolve the issue please conta
40. ock Syntax Hexadecimal OxCA level Decimal 254 202 level Parameters Parameter Length Description level 1 Sets the data lock level Matrix Orbital GLK24064 25 48 Description Data lock originally known as paranoia allows you to lock the module from displaying information as well as enables the protection of the filesystem and module settings Each bit corresponds corresponds to a different lock level while sending a zero will unlock your display as the following tables explains Bit Binary Data Lock Level Description 0 0 Unlock Sending a zero will cause the display to unlock 1 4 1 1111 Reserved 10000 Setting Lock Locks the display settings such as backlight contrast and GPO settings 6 100000 Filesystem Lock When locked no bitmap or font files may be added deleted or modified 7 1000000 Command Lock Locks all commands but the the data lock command 8 10000000 NOTES e Sending a new data lock level will override the previous data lock level e Data lock levels may be combined Remembered Always Factory Default 0 Examples Hex Dec Binary Description 0x00 0 0 Unlock OxFO 240 11110000 Setting Filesystem Command and Display Lock 0x50 80 01010000 Setting and Command Lock Matrix Orbital GLK24064 25 49 12 4 Set and Save Data Lock Syntax Hexadecimal OxFE OxCB level Decimal 254 203 level P
41. ommunications 15 41 Introduction u Rue RO om RR Be Oe Ee ea c eee 15 411 C Communication 5 Le Dh phe EROS ub ERG RA SH GR ACR 15 4 1 2 Serial Communication 15 42 Turn Flow Control On 16 4 3 Turn Flow Control Off 16 4 4 Changing the Slave Address 17 45 Changing the Baud Rate 17 4 6 Setting a Non Standard Baud Rate 18 5 Fonts 19 5 1 Introduction s eee eRe A E RUE uS ER Au ad Sew emma 19 5 1 1 Font File Format 19 5 1 2 Creating Font 4 4 44 ow dos rd ue 19 52 Uploading Font File lt 4 5 2864 4 ko bob as hab EGuev qe que test 21 53 Setting th Current Font pc sp Lau eme ons va RE ER ewe 22 5 4 Font MetriGs u s p y opo hat nement ba pe ge bi ire mob 22 9 2 Set BOX Space Mode ope p e kpaa a or ha peines 23 Matrix Orbital GLK24064 25 ii 6 10 Text 6 1 Introduction 6 2 Move Cursor Home 6 3 Setting the Cursor Position 6 4 Setting the Cursor Coordinate 65 Auto Scroll On 6 6 Auto Scroll Of Bitmaps 7 1 Introduction
42. on This command completely erases the display s non volatile memory It removes all fonts font metrics bitmaps and settings current font cursor position communication speed etc It is an command in that it is three bytes in length in order to prevent accidental execution Remembered Yes 11 3 Deleting a File Syntax Hexadecimal OxFE OxAD type refID Decimal 254 173 type refID Parameters Parameter Length Description type 1 Type of file 0 Font 1 Bitmap refID 1 Reference ID of the file to delete Description This command erases a single file at a time within the GLK24064 25 memory when given two parameters type and ref The file type and reference number are defined when the file is saved to the GLK24064 25 type 1 Bitmap type 0 Font e e Remembered Yes 11 4 Get Filesystem Space Syntax Hexadecimal OxFE OxAF Decimal 254 175 Matrix Orbital GLK24064 25 45 Description This command will return 4 bytes LSB to MSB for how many bytes are remaining in the 16 KB on board memory Remembered No 11 5 Get Filesystem Contents Syntax Hexadecimal OxFE 0xB3 Decimal 254 179 Description This command will return the contents of the file system directory The first byte returned will be a hex value representing the number of entries in the filesystem followed by four bytes for each entry See the following tables Filesystem Header Bytes Description 1 Hex val
43. on our e commerce website at http www matrixorbital com To speak with a sales associate see Section 15 5 on page 61 for contact information Figure 3 5V Power Cable Adapter Tile Figure 4 12V Power Cable Adapter V VPT Models Matrix Orbital GLK24064 25 Figure 5 Breadboard Cable Figure 6 Serial Cable 4FT Matrix Orbital GLK24064 25 f Y Figure 7 Communication and 5V Power Cable PICOFAB TEL 418 622 5298 Hoo Figure 8 4X4 Keypad Matrix Orbital GLK24064 25 1 3 Features 240 x 64 pixel graphics display Selectable communication protocol RS 232 or 128 byte buffered communication SV 20mA General Purpose Output 16 KB flash memory for fonts and bitmaps Lightning fast communication speeds up to 115 kbps for RS 232 and 400 kbps for PC Display text using built in or user supplied fonts Adjustable contrast Adjustable backlight brightness Default 19 2 kbps serial communication speed Extended temperature available for extreme environments of 20C to 70C Extended voltage and efficient power supply available Support for up to a twenty five key matrix style keypad Matrix Orbital GLK24064 25 1 4 Connecting to a PC The GLK24064 25 connects seamlessly to a PC and it is an excellent means of testing the functionality and uploading new fonts and bitmaps You will require a standard RS 232 9 pin serial cable suc
44. p 0x70 In RS 232 polled mode or via the the Key Down Key Up codes are used however the user should be careful of timing details 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 9 8 Auto Repeat Mode Off Hexadecimal OxFE 0x60 Decimal 254 96 ASCII 254 This command turns auto repeat mode off Set Auto Repeat Mode Matrix Orbital GLK24064 25 38 Remembered No 9 9 Assign Keypad Codes Syntax Parameters Description Remembered Hexadecimal OxFE OxD5 KDown KUp Decimal 254 213 KDown KUp Parameter Length Description KDown 25 Key down codes KUp 25 Key up codes This command will allow you to reassign the key codes that correspond to the key presses on the matrix style key pad The first twenty five bytes that are transmitted will be used for the key down codes and the next twenty five bytes that are transmitted will be used for the key up codes The default values of the key down codes are A Y in order and for the key up codes the values are a y in order Key Down Key Up 112131405 112131415 l alb c 2 F GIH I J LM 1 4 P QIR S T 4 piq r s t 510 V W X Y 5 y Always 10 Display Functions 10 1 Introduction The G
45. play is 80 bytes When using this command in an application selection of the value for the buffer full should be considered very carefully This is a critical aspect to be able to use this feature to it s full potential When using a host system or PC which contains a FIFO the user should set the value of full equal to or greater than the size of the FIFO The reason for this is that the FIFO may be full when the host system receives OxFE In the case of 16550 UART the size at its maximum is 16 therefore the value of full should be set to 16 or greater No Off 4 3 Turn Flow Control Off Syntax Hexadecimal OxFE Ox3B Decimal 254 59 ASCII 254 3 Matrix Orbital GLK24064 25 16 44 Description without warning Remembered No Changing the PC Slave Address This command turns off flow control Bytes may overflow the buffer Syntax Hexadecimal OxFE 0x33 adr Decimal 254 51 adr ASCII 254 3 adr Parameters Parameter Length Description adr 1 The new C write address 0x00 OxFF Description This command sets the write address of the module between 0x00 and OxFF The IC write address must be an even number and the read address is automatically set to one higher For example if the C write address is set to 0x50 then the read address is Ox51 NOTE The change in address is immediate Remembered Always Factory Default 0x50 4 5 Changing the Baud Rate Syntax Hexadecim
46. presses On 35 0 42 66 Backlight On 40 0 45 69 E Clear Key Buffer 36 0x46 70 F Backlight Off 41 0 47 71 G Setting the Cursor Position 24 0x48 72 Move Cursor 24 Ox4F 79 O Auto Transmit Keypresses Off 36 0x50 80 Set Contrast 42 0 51 81 Q Auto Scroll On 25 0x52 82 R Auto Scroll Off 26 0x55 85 U Set Debounce Time 37 0x58 88 x Clear Screen 40 0 5 94 SM Uploading a Bitmap File 26 0x60 96 Auto Repeat Mode Off 38 0x62 98 b Drawing a Bitmap from Memory 27 0x63 99 Set Drawing Color 28 0x64 100 Drawing a Bitmap Directly 27 0x65 101 Continue a Line 30 0x67 103 g Initializing a Bar Graph 31 0x69 105 Drawing Graph 32 0x6A 106 g Initializing a Strip Chart 33 0x6B 107 k Shifting a Strip Chart 34 0x6C 108 p Drawing a Line 29 0x70 112 p Draw Pixel 29 0x72 114 Draw Rectangle 30 0x78 120 p Drawing a Solid Rectangle 31 0x79 121 Setting the Cursor Coordinate 25 Ox7E 126 id Set Auto Repeat Mode 37 0x91 145 Set and Save Contrast 42 0x93 147 Set Remember 48 Matrix Orbital GLK24064 25 58 Command Description Page Hex Dec ASCII 0x98 152 Set and Save Backlight Brightness 41 0x99 153 Set Backlight Brightness 41 OxA4 164 Setting a Non Standard Baud Rate 18 OxAC 172 Set Box Space Mode 23 OxAD 173 Deleting a File 45 OxAF 175 Get Filesystem Space 45 OxB2 178 Downloading a File 46
47. rogram such as Winzip Pkzip etc Double click on setup exe Follow the instructions on the screen to complete the installation MOGD requires the NET framework 2 0 and will download and install it automatically ON A After the installation is complete there will be a Matrix Orbital entry under Start gt Programs gt Matrix Or bital in the start menu Click on the Mogd Sharp entry to run the program Be sure to check the information selected in the configuration panel the first time MOGD is run Once this information is entered correctly the program can be used to control all functions of the graphic display speed 17 391 1 speed 16 391 Configuration Port COM Port The serial port the display is plugged in to Speed Speed The communication speed the display 115200 module is set to Default 19 200 Display Type GLC24064 Pcb Revision PCB Revision The revision of the display you are using 2 0 Found on the back of the PCB Display Type The type of display GLK24064 25 Configure Display Defaults Figure 10 Mogd Sharp Settings NOTES e MOGD may also be downloaded from Matrix Orbital s support site at http www matrixorbital ca software software_graphic MogdSharp e Winzip is available as a free download from http www winzip com Matrix Orbital GLK24064 25 7 2 Hardware Information Refer to the following diagram for this chapter Matrix Orbital GLK24064 25 Rev 2 0 ENI
48. s 7 3 Drawing a Bitmap from Memory Syntax Parameters Description Remembered Hexadecimal OxFE 0x62 refID X Y Decimal 254 98 refID X Y ASCII 254 b refID X Y Parameter Length Description reflD 1 The bitmap identification number X 1 Left bounds Y 1 Top bounds This command will draw a bitmap that is located in the on board memory The bitmap is referenced by the bitmaps reference identification number which is established when the bitmap is uploaded to the display module The bitmap will be drawn beginning at the top left from the specified X Y coordinates A directory listing of the contents of the entire filesys tem may be obtained by using the Get Filesystem Directory command see Section 11 5 on page 46 for more detailed information No 7 4 Drawing a Bitmap Directly Syntax Hexadecimal OxFE 0x64 X Y W H D Decimal 254 100 X Y W H D ASCII 254 d X Y W H D Matrix Orbital GLK24064 25 27 Parameters Parameter Length Description 1 Left bounds Top bounds Width Height Data g z lt x Description Drawing a bitmap to the GLK24064 25 without first uploading the im age to the memory can be a very useful feature for drawing images that are not used very often In order to accomplish this you must supply the display module with the X Y coordinates representing the top left corner of where you would like to draw the bitmap on the s
49. sed before new text is placed A series of spaces followed by a Cursor Home command may be used to erase the top line of text Remembered Yes Factory Default On 7 Bitmaps 7 1 Introduction One of the main features of the GLK24064 25 is its ability to display bitmap images that are either loaded onto its on board memory or written directly to the screen This chapter will cover creating a bitmap uploading the bitmap as well as drawing the bitmap from memory and directly 7 2 Uploading a Bitmap File Syntax Hexadecimal OxFE Ox5E refID size data Decimal 254 94 refID size data ASCII 254 refID size data Parameters Parameter Length Description reflD 1 A unique bitmap identification number size 2 Bitmap file size LSB to MSB data x Bitmap data Matrix Orbital GLK24064 25 26 Description Remembered The GLK24064 25 is capable of storing up to sixty four font and bitmap files combined In order to upload bitmap to the GLK24064 25 you must first initiate the upload font file command OxFE Ox5E you must then pass it a reference identification number which must be unique for every font on the display module You may then pass the display module the two byte file size which needs to be transfered LSB then MSB The last part of uploading a bitmap is transmitting the bitmap file data For detailed instructions on uploading a file to the GLK24064 25 see Section 11 1 on page 43 Alway
50. termined by multiplying the width of the widest character in the font by the column The pixel row used is determined by multiplying the height of the font by row Metrics line spacing Matrix Orbital GLK24064 25 24 Remembered No 6 4 Setting the Cursor Coordinate Syntax Parameters Description Remembered Hexadecimal OxFE 0x79 col row Decimal 254 121 col row ASCII 254 y col row Parameter Length Description col 1 Column TOW 1 Row This command positions the insertion point at a specific pixel X Y which references the top left corner of the font insertion point No 6 5 Auto Scroll On Syntax Description Remembered Factory Default Hexadecimal OxFE 0x51 Decimal 254 81 ASCII 254 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 end of the scroll row defined in the font metrics the bottom right character position see Section 5 4 on page 22 Yes On Matrix Orbital GLK24064 25 25 6 6 Auto Scroll Off Syntax Hexadecimal OxFE 0x52 Decimal 254 82 ASCII 254 R Description When auto scrolling is disabled text will wrap to the top left corner of the display area when the text reaches the end of the scroll row defined in the font metrics the bottom right character position see Section 5 4 on page 22 Existing text in the display area is not era
51. ue representing the number of entries in the filesystem File Entry Bytes Description 1 Flag Hex value of 0x00 indicates that this file entry has not been used 1 FileID Type 1st bit is the file type 0 Font 1 Bitmap Next 7 bits are the file ID 1 File Size LSB 1 File Size MSB Remembered No 11 6 Downloading a File Syntax Hexadecimal OxFE OxB2 Type Decimal 254 178 Type refID Matrix Orbital GLK24064 25 46 Parameters Parameter Length Description Type 1 File type 0 Font File 1 Bitmap refID 1 Reference ID number Description Download a specified file from the filesystem The first 4 bytes will be the length of the file LSB to MSB followed by the data contained in the file Remembered No 11 7 Moving a File Syntax Hexadecimal OxFE OxB4 oldT oldID newT newID Decimal 254 180 oldT oldID newT newID Parameters Parameter Length Description oldT 1 Old file type oldID 1 Old file ID newT 1 New file type newID 1 New file ID Description This command can be used to move a file to a new file ID or correct the type of a file that was uploaded incorrectly The command first checks to see if there is a file identified by oldT and oldID If it does exist and there is no file already with the desired type and ID the ID and type of the old file will be changed to newT and newID respectively Remembered Always 12 Data Security 12 1 Introduction
52. ure 22 Physical Diagram 154 8 132 2 io s 187 16 LE 315 is nad h uj BE t 17 95 1158 81 97 6 56 8 see 33 88 UT fi 18 84 0 04 0 49 31 31 2 54 2 54 44 8 21 41 18 36 15 4 Definitions E Extended Temperature 20C to 70C VPT Wide Voltage with Efficient Switching Power Supply 9 to 35Vdc V Wide Voltage 9 to 15Vdc GW Grey Text White Background WB White Text Blue Background MSB Most Significant Byte LSB Least Significant Byte 15 5 Contacting Matrix Orbital Telephone Sales and Support 1 403 229 2737 Matrix Orbital GLK24064 25 61 On The Web Sales http www MatrixOrbital com Support http www MatrixOrbital ca Forums http www lcdforums com Matrix Orbital GLK24064 25 62
53. value of the color where white is 0 and black is 1 255 No Hexadecimal OxFE 0x70 x y Decimal 254 112 x y ASCII 254 p x Ly Parameter Length Description X 1 X screen location 1 screen location This command will draw pixel at using the current drawing color The unit processes these requests fast enough to keep up with a steady stream at 115 Kbps so flow control is not required No 8 4 Drawing a Line Syntax Hexadecimal OxFE 0x6C x1 y1 x2 y2 Decimal 254 108 x1 y1 x2 y2 ASCII 254 I x1 y1 x2 y2 Parameters Parameter Length Description 1 1 Left bounds yl 1 Top Bounds x2 1 Right Bounds y2 1 Bottom Bounds Matrix Orbital GLK24064 25 29 Description Remembered This command will draw a line from x1 y1 to x2 y2 using the current drawing color Lines may be drawn from any part of the display to any other part However it may be important to note that the line may in terpolate differently right to left or left to right This means that a line drawn in white from right to left may not fully erase the same line drawn in black from left to right No 8 5 Continue a Line Syntax Parameters Description Remembered Hexadecimal OxFE 0x65 x y Decimal 254 101 x y ASCII 254 x Parameter Length Description X 1 Left bounds y 1 Top Bounds This command will draw a line with the current drawing color from th
54. w ASCII 254 2 Im tm csp 15 srow Set Box Space Mode Hexadecimal OxFE OxAC value 23 Decimal 254 172 value 14 3 Text Description Syntax Page Move Cursor Home Hexadecimal OxFE 0x48 24 Decimal 254 72 ASCII 254 Setting the Cursor Hexadecimal OxFE 0x47 col row 24 Position Decimal 254 71 col row ASCII 254 col row Setting the Cursor Hexadecimal OxFE 0x79 col row 25 Coordinate Decimal 254 121 col row ASCII 254 col row Auto Scroll On Hexadecimal OxFE 0x51 25 Decimal 254 81 ASCII 254 Auto Scroll Off Hexadecimal OxFE 0x52 26 Decimal 254 82 ASCII 254 14 4 Bitmaps Description Syntax Page Uploading a Bitmap File Hexadecimal OxFE Ox5E refID size data 26 Decimal 254 94 refID size data ASCII 254 refID size data Matrix Orbital GLK24064 25 53 Description Syntax Page Drawing a Bitmap from Hexadecimal OxFE 0x62 refID X Y 27 Memory Decimal 254 98 refID X Y ASCII 254 b refID X Y Drawing a Bitmap Hexadecimal OxFE 0x64 X Y W H D 27 Directly Decimal 254 100 X Y W H D ASCII 254 d X Y W H D 14 5 Bar Graphs and Drawing Description Syntax Page Set Drawing Color Hexadecimal OxFE 0x63 color 28 Decimal 254 99 color ASCII 254 color Draw Pixel Hexadecimal OxFE 0x70 x y 29 Decimal 254 112 x y ASCII 254 p x y Drawing a Line Hexadecimal OxFE 0x6C x
55. x67 type x1 y1 x2 y2 Decimal 254 103 refID type x1 y1 x2 y2 ASCII 254 g refID type x1 y1 x2 y2 Matrix Orbital GLK24064 25 31 Parameters Description Remembered Parameter Length Description reflD 1 Reference number type 1 Type of bar graph 1 1 Left bounds yl 1 Top Bounds x2 1 Right Bounds y2 1 Bottom Bounds This command initializes a bar graph referred to by number reference number of type type with size from x1 y1 top left to x2 y2 bottom right A maximum of 16 bar graphs with reference numbers from 0 to 15 can be initialized as type Direction Bar Start Point 0 Vertical Bottom 1 Horizontal Left 2 Vertical Top 3 Horizontal Right The bar graphs may be located anywhere on the display but if they overlap they will not display properly It is important that x1 is less than x2 and y1 is less than y2 This command doesn t actually draw the graph it must be filled in using the Fill Bar Graph command The unit saves time by only drawing that part of the bar graph which has changed from the last write so the represen tation on the screen may not survive a screen clear or other corrupting action A write of value zero followed by new values will restore the proper look of the bar graph No 8 9 Drawing a Bar Graph Syntax Parameters Hexadecimal OxFE 0x69 ref value Decimal 254 105 ref
56. y Matrix Orbital has developed a simple protocol that supports RS 232 TTL or communications In order to upload a font file you must first provide a reference identification number ref ID then the file size and finally the data The reference identification number will allow you to identify the font for future use After transmitting the refID please wait for the display module to send an immediate confirmation that the reference ID has not been used yet The display module will do this in the form of echoing the byte back to you Once you receive the echo you must then confirm it by sending a 0x01 byte The next part of uploading a font file is to provide the display module with a two byte file size of the font file you are attempting to upload the font size must be formated LSB to MSB After the first byte is transmitted you will receive an echo of the byte and you must confirm the echo with a confirmation byte 0x01 However after the display module receives the second byte it will echo the byte and then send a 0x01 confirmation byte if the file fits if the file does not fit the module will notify you by sending 0x08 and then it will terminate the upload session If the font file does fit you must confirm the echo with a 0x01 byte Matrix Orbital GLK24064 25 43 The last part of uploading font file is to upload the file data After transmitting each byte of the file the module will echo the byte and wait for confirmation byte of 0
Download Pdf Manuals
Related Search
Related Contents
Ericsson MTL-SX User's Manual - Epson Europe 2-Catalogue en entier - Médiathèque Albert Camus Samsung 913B Vartotojo vadovas Vogel's PFS 3305 Interface display strips S30xx - SC30xx Reglamento de Seguridad e Higiene para los trabajadores del H Fr-minimax-00105908 `(+ 3 +`` Copyright © All rights reserved.
Failed to retrieve file