1.2 What it Does Not Do ..........................4 1.3 Keypad Interface............................. 4 1.4 Setup for Testing ............................ 4 1.5 Trying Out your LK202-25 ........................5 1.6 Trying out a Keypad..........................6 1.6.1 Here's what to do: ........................6 1.7 To Reset the module ..........................7 2.
Page 3
7.5 Keypad Interface Commands....................... 27 7.6 Bar Graphs and Special Characters ..................... 28 7.7 Miscellaneous Commands........................29 8. Appendix: Specifications and Options................31 8.1 Specifications ............................31 8.2 Options ..............................32 9. Appendix: Glossary....................... 33 List of Distributors....................35 LK202-25 rev 3...
LK202-25 display you must program your controller accordingly. 1.4 Setup for Testing Before setting up your application you may want to try out the LK202-25. This is easily done with a PC. Here's what you'll need:...
3. Connect the LK202-25 to the PC using the serial cable and adapter if required. Make sure the RS- 232 cable includes the required ground lead. There must be no voltage differential between the RS-232 ground and the power supply ground.
If you want your code to be portable, use the appropriate commands listed later in the manual instead. If you want to exercise some of the other features of the LK202-25 you'll need to write a program (in any convenient language such as Basic or C) to issue the required command strings. Most terminal programs are unable to issue the 0xFE character needed as a command prefix.
4. Remove the jumper and change the RS-232 port settings to the desired baud rate. 5. Turn off the display. 6. Power up the display. Refer to the “Set RS-232 Port Speed” command (section 6.1.12) for acceptable baud rates. LK202-25 rev 3...
Do not apply any power with reversed polarization. Do not apply any voltage other than the specified voltage. § Do not use any cables other than the cables supplied by Matrix Orbital, § unless you are aware of the modifications required.
Page 9
2.1.1.1 Five Volt Modules If the LK202-25 is used in a PC it is 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 LK202-25 are different as shown in Figure 2-3 below.
If you don't want to modify cable wiring yourself, 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 Figure 2-6 below. Figure 2-6 Twelve volt power cable 2.1.2 RS-232 Communications...
Page 11
Note: The GPOs do not have any over current or over/under voltage protection so care must be taken when using them. For instance if the external device is a relay it must be fully clamped (using a diode and capacitor) to absorb any generated back electro-motive force (EMF). LK202-25 rev 3...
Page 12
G PO 1N400 1 10 - 100 uF Relay coil Figure 2-10 Clamping a Relay LK202-25 rev 3...
This chapter describes the various text-display commands in detail. A quick reference summary of all text commands is found in section 7.4. 3.1 General Text is displayed on the LK202-25 using the built-in 5 x 7 dot matrix font (plus up to 8 user-defined characters. 3.2 The Built-In Character Font The LK202-25 includes a built-in 5 x 7 dot matrix font with the full range of ASCII characters plus a variety of extended characters, as shown in Figure 3-1.
3.4.3 Auto scroll on (254 81) (R) When auto scrolling is on, it causes the LK202-25 to shift the entire display’s contents up to make room for a new line of text when the text reaches the scroll position (the bottom right character position).
3.4.12 Cursor right (254 77) Moves the cursor one position to the right but does not erase any character that may be in that position. Note that this command moves the text insertion point even if the cursor is turned off. LK202-25 rev 3...
4.2 Connections Figure 4-1 Keypad Connector The connector is not "keyed" so your keypad will probably plug in either of two ways. The LK202-25 will not be damaged by reversing the connector, but your keypad will generate a different ASCII character mapping for each position.
This behavior can be modified using commands found in the next section. 4.5 Keypad Commands Before issuing commands to the LK202-25 please read sections 7.2 and 7.3. Some commands, marked with an (R), may be "remembered" to set new defaults that will be in effect each time the unit is powered on.
This command returns any unbuffered keypresses via the RS - 232 interface. The host system must be set up to receive the key codes. When the LK202-25 receives this command it will immediately return any unbuffered keypresses which may have not been read already. If there is more than one keypress buffered, then the high order bit (MSB) of this returned keycode will be set (1).
5. Bar Graphs and Special Characters The LK202-25 includes the ability to draw bar graphs (either horizontal or vertical) and allows users to define up to eight special characters. Before issuing commands to the LK202-25 please read sections 7.2 and 7.3.
Page 20
Once defined, a character is displayed simply by issuing a value (0x00 to 0x07) corresponding to the character number. The character will be laid out as follows: Cursor Line Note: Custom characters will be erased if any of the "initialize bar graph" commands are issued. LK202-25 rev 3...
The commands listed in this chapter don't readily fit in any of the other categories, or are used in more than one category. Before issuing commands to the LK202-25 please read sections 7.2 and 7.3. Some commands, marked with an (R), may be "remembered" to set new defaults that will be in effect each time the unit is powered on.
This command turns the backlight of the LK202-25 off. 6.1.7 Load startup screen (254 64 [40 characters]) This command sets and memorizes the startup screen that will appear each time the LK202-25 is turned on. By default the screen shows:...
This command will return the firmware version number of the LK202-25. 6.2 Flow Control The LK202-25 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 (see Table 7-4 and the next two sections).
7.2 Issuing Commands Commands are issued to the LK202-25 by the controller. In a test setup, commands can be issued to the LK202-25 by means of a BASIC program, using the chr$( ) function. In the tables below, we've shown commands in hex, ASCII and decimal form.
57 decimal or 39 hex This gives rise to the possibility of confusion when parameters are being set on the LK202-25 For example, the GPO ON and OFF commands use a number to indicate which GPO is being controlled. We're told that acceptable values are 0 to 6. All such parameters must use numeric values (i.e. the actual byte values).
[d] (0 is right, 1 is left) of length [length]. Length is 254 '|' [c][r][d][length] measured in pixels (0x00 to 0x64 if starting in column 1). User must first use the 'h' command to initialize characters. LK202-25 rev 3...
This is a one-time-use command which works 254 52 [byte1][byte2] only on units without factory set serial numbers. 254 '4' [byte1][byte2] Read Serial Number FE 35 Reads the two byte serial number of the 254 53 module. 254 '5' LK202-25 rev 3...
Page 30
When buffer reaches [full] display 254 ':' [full] [empty] will return 0xFE to host. When buffer reaches [empty] display will return 0xFF. Exit flow control mode FE 3B Turns off flow control. 254 59 254 ';' LK202-25 rev 3...
3.20 x 5.55 mm (XxY), not including Character Size underline Character Pitch 3.7 mm Line pitch 5.95 mm Dot Size 0.60 x 0.65 mm (XxY) Dot Pitch 0.65 x 0.70 mm (XxY) LED Backlight Life 100,000 hours typical Color of Illumination Yellow Green LK202-25 rev 3...
The ratio of luminance between the light state of the display to the dark state of the display. Controller The microcontroller or PC used to control the Matrix Orbital display unit. DB-9 The designation of a connector used in the RS232 interface: 9 pin connector Firmware Software (programs or data) that has been written onto read-only memory (ROM).
Page 34
A port, or interface, that can be used for serial communication, in which only 1 bit is transmitted at a time. Version This refers to the firmware revision number of the module. Number Volatile Temporary memory. Once the power supply is turned off volatile memory is then Memory erased. LK202-25 rev 3...
Need help?
Do you have a question about the LK202-25 and is the answer not in the manual?
Questions and answers