1.1 What it Does ..............................5 1.2 What it Does Not Do ............................5 1.3 Keypad Interface...............................5 1.4 Setup for Testing...............................5 1.5 Trying Out your LK162-12..........................6 1.6 Trying out a Keypad............................7 1.6.1 Here's what to do:............................7 1.7 Manual Override………............................8 1.8 Memory Chip Lockdown..........................7 2.
Page 4
1. Version 3.0, March 11, 2003 a. New PCB rev 2.2 b. Added RS232 and I C communication through 4 pin SIP header (power header) c. TTL option added d. Memory Chip lock down option added e. Variable Brightness backlight added LK162-12 rev 4...
C port to the associated controller. Note that the keypad is not used to directly control any aspect of the operation of the LK162-12, which acts simply as a matrix to serial converter. If you want to use the keypad to control the LK162-12 display you must program your controller accordingly.
3. Connect the LK162-12 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.
1.6 Trying out a Keypad Since a number of different keypad types can be connected to the LK162-12, the results you get may be a little unpredictable. At this point all we need to do is make sure that your keypad and interface work, and possibly generate an ASCII map for your programming needs.
1.8 Memory Chip Lock Down The LK162-12 uses a memory chip to store speed, startup screen contrast, I²C setting and other settings. When everything has been changed to the wanted settings and the unit will be in a finished product or in the field, locking down the memory chip so no settings can be changed might be desirable.
Page 9
To lock down the memory chip, solder the jumper as shown in the LOCKED picture above. This will lock down the memory chip, not allowing anything to be changed inside it until the jumpers are restored to their original position. LK162-12 rev 4...
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. Do not apply power to the DB-9 connector AND the power connector.
2.1.1.1 Five Volt Modules If the LK162-12 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 LK162-12 are different as shown in Figure 2-3 below.
2.1.2 Applying Power through the DB-9 Connector The LK162-12 can be powered by pin #9 on the DB-9 connector. If power is applied here, power cannot be applied to the other power connector. The input voltage for pin #9 can only be +5Vdc, even if the unit is wide voltage.
Data in (LCD) Ground 2.1.5 Alternate Serial Connection An optional alternate connection header is provided to allow one cable for data and power. Two jumpers will have to be soldered and two removed. Connector pinout is as follows: LK162-12 rev 4...
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.
Ground 2.2 General Purpose Outputs The LK162-12 has seven general purpose outputs. These are provided to control relays or other electronic devices. This allows external devices to be turned on or off using your PC or controller and software commands. (See sections 6.1.10 and 6.1.11 for the command syntax.) Each output is wired as shown in Figure 2-8.
Page 16
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). 1N400 1 10 - 100 uF Relay coil Figure 2-9 Clamping a Relay LK162-12 rev 4...
Text is displayed on the LK162-12 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 LK162-12 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. Figure 3-1 Character Set...
3.4.3 Auto scroll on (254 81) (R) When auto scrolling is on, it causes the LK162-12 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. LK162-12 rev 4...
(I C) or send over the serial line to the host (RS-232). The keypad shares the same pins as the seven GPOs on the LK162-12 and only one or the other can be used at one time.
This behavior can be modified using commands found in the next section. 4.5 Keypad Commands Before issuing commands to the LK162-12 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.
4.5.5 Clear key buffer (254 69) This command clears any unread keypresses. In a menuing 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 LK162-12 rev 4...
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 LK162-12 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 LK162-12 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 LK162-12 please read sections 7.2 and 7.3.
Page 25
Note: Custom characters will be erased if any of the "initialize bar graph" commands are issued. Example of a degree symbol: txUart.sendByte(0xFE); //command prefix txUart.sendByte('N'); //custom character command txUart.sendByte(0x00); //custom character value 0-7 txUart.sendByte(12); //8 bytes to create txUart.sendByte(18); //the custom character txUart.sendByte(18); txUart.sendByte(12); LK162-12 rev 4...
Page 26
//display custom character 0 LK162-12 rev 4...
Lighting conditions will affect the actual value used for optimal viewing. Individual LK162-12 modules will also differ slightly from each other in appearance. In addition, values for optimal viewing while the LK162-12 backlight is on may differ from values used when backlight is off.
This command turns the backlight of the LK162-12 off. 6.1.7 Load startup screen (254 64 [32 characters]) This command sets and memorizes the startup screen that will appear each time the LK162-12 is turned on. By default the screen shows:...
For example if the I²C write address is set to 0x50, then the read address is 0x51. The change in address is immediate. This address is 0x50 by default, and is reset temporarily back to that value when the "Manual Over-ride" jumper is used on power up. LK162-12 rev 4...
LK404-AT - 0x31 VFD1621 - 0x32 LK402-12 - 0x33 LK162-12 - 0x34 LK204-25PC - 0x35 6.1.14 Set RS232 port speed (254 57 [speed]) This command sets the RS232 port to the specified [speed]. The change takes place immediately. [speed] is a single byte specifying the desired port speed.
6.2.3 GPO or Keypad Mode (254 37 [mode]) The LK162-12 shares GPO and keypad pins, you can use one of the other but not both at the same time. To select either General Purpose Outputs or the Keypad Interface on the general purpose output/ keypad connector, send a command prefix followed by the character ‘%’...
7.2 Issuing Commands Commands are issued to the LK162-12 by the controller. In a test setup, commands can be issued to the LK162-12 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 LK162-12 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.
Auto repeat mode off FE 60 Applies to keypad only. 254 96 254 '`' Auto transmit key FE 41 Sets auto transmit mode for keypad. Key presses on 254 65 presses are transmitted to host without polling. 254 'A' LK162-12 rev 4...
[d] (0 is right, 1 is left) of length [length]. Length 254 '|' [c][r][d][length] is measured in pixels (0x00 to 0x64 if starting in column 1). User must first use the 'h' command to initialize characters. LK162-12 rev 4...
1 to 7. See section 2.2 for further 254 'W' [gpo #] details. Set I C address FE 33 [address] 0x50 Value is write address and must be even, 254 51 [address] read address is 1 higher. 254 '3' [address] LK162-12 rev 4...
Page 38
When buffer reaches [full] 254 ':' [full] [empty] display will return 0xFE to host. When buffer reaches [empty] display will return 0xFF. Exit flow control FE 3B Turns off flow control. mode 254 59 254 ';' LK162-12 rev 4...
Character Pitch 3.7 mm Line pitch 6.09 mm Dot Size 0.50 x 0.55 mm (XxY) Dot Pitch 0.57 x 0.62 mm (XxY) LED Backlight Life 100,000 hours typical Yellow Green Inverse Blue Color of Illumination Gray/White Inverse Yellow LK162-12 rev 4...
Figure 8-1 Physical Layout 8.2 Options Options Available on LK162-12 Extended Temperature Wide Voltage Inverse Yellow; Black backlight with yellow text Inverse Blue; Blue backlight with white text White backlight with gray glass (Ice blue look) LK162-12 rev 4...
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...
Page 42
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 Memory then erased. LK162-12 rev 4...
Need help?
Do you have a question about the LK162-12 and is the answer not in the manual?
Questions and answers