LK402-25 Including LK402-25-422 and LK402-25-USB Technical Manual Revision 1.3 PCB Revision: 3.0 or Higher Firmware Revision: 7.
Revision History Revision 1.3 1.2 1.1 1.0 0.1 0.
Contents Revision History ............................................................................................................................................ 2 Contents ........................................................................................................................................................ 3 Introduction ..................................................................................................................................................
General Purpose Outputs ................................................................................................................... 18 Dallas One-Wire Connector ................................................................................................................ 18 Keypad Header .................................................................................................................................... 19 Troubleshooting .............................................................
Introduction Figure 1: LK402-25 Display The LK402-25 is an intelligent alphanumeric liquid crystal display designed to decrease development time by providing an instant solution to any project. In addition to the RS232, TTL and I2C protocols available in the standard model, USB and RS422 communication models allow the LK402-25 to be connected to a wide variety of host controllers. Communication speeds of up to 115.2kbps for serial protocols and 100kbps for I2C ensure lightning fast data display.
Quick Connect Guide Standard Module Table 1: Standard Headers # 1 Figure 2: Standard Connections 2 3 4 5 Header Communication/ Power DB9 Keypad GPO Dallas One-Wire Mate SCCPC5V/ BBC CSS1FT/CSS4FT KPP4x4 None Offered Temperature Probe The standard version of the LK402-25 allows for user configuration of three common communication protocols. First, the unit can communicate using serial protocol at either RS232 or TTL voltage levels.
Serial Connections The serial interface provides a classic connection to the LK402-25. The Communication/Power Cable is most commonly used for this setup as it provides connections for DB9 serial and floppy power cables. To place your board in serial mode, adhere to the steps laid out below. 1. Set the Protocol Select Jumpers. RS232: Connect the three jumpers* in the 232 protocol box with the zero ohm jumper resistors provided or an alternate wire or solder solution.
I2C Connections A more advanced connection to the LK402-25 is provided by the I2C protocol setting. It requires a connection directly to your project. This is best accomplished using a breadboard and the Breadboard Cable. Power must be supplied from your breadboard or another external source. To dive right into your application and use the LK402-25 in I2C mode, get started with the guidelines below. 1. Set the Protocol Select Jumpers.
USB Module Table 2: Standard Headers Figure 5: USB Connections # Header 1 Mini USB 2 3 4 5 6 Alternate USB Alternate Power Keypad GPO Dallas One-Wire Mate EXTMUSB3FT/ INTMUSB3FT None Offered PCS KPP4x4 None Offered Temperature Probe The LK402-25-USB offers a single USB interface supplying an easy connection to a host computer. The simple and widely available protocol can be accessed using the on board mini B style USB connector as outlined in the USB Connections section.
USB Connections The USB connection is the quickest, easiest solution for PC development. After driver installation, the LK402-25-USB will be accessible through a virtual serial port, providing the same result as a serial setup without the cable hassle. To connect to your LK402-25-USB, please follow the steps below. 1. Set the Protocol Select Jumpers. USB: The LK402-25-USB offers USB protocol only.
RS422 Module Table 3: Standard Headers # Header 1 RS422 2 Figure 7: RS422 Connections 3 4 5 Alternate Power Keypad GPO Dallas One-Wire Mate 16-30 AWG Wire PCS KPP4x4 None Offered Temperature Probe The LK402-25-422 provides an industrial alternative to the standard RS232 communication protocol. Rather than single receive and transmit lines, the RS422 model uses a differential pair for each of the receive and transmit signals to reduce degradation and increase transmission lengths.
Software The multiple communication protocols available and simple command structure of the LK402-25 means that a variety of applications can be used to communicate with the display. Text is sent to the display as a character string, for example, sending the decimal value 41 will result in an 'A' appearing on the screen. A number of control characters are also activated. Commands are merely values prefixed with a special command byte, 254 in decimal.
uProject The Matrix Orbital alphanumeric display tuner, or uProject, is offered as a free download from the www.matrixorbital.ca support site. It allows the basic functionality of any display* to be tested using a simple graphical user interface system. While basic functionality can be tested using the GUI portion of the program, more advanced users will enjoy the scripting capability found in the uploader tab. Here commands can be stacked, run, and saved for later use.
Hardware Standard Model Communication/Power Header Table 6: Communication/Power Pinout Figure 10: Communication/Power Header Pin 1 2 3 4 Function Vcc Rx (SCL) Tx (SDA) Gnd The Communication/Power Header provides a standard connector for interfacing to the LK402-25. Voltage is applied through pins one and four of the four pin Communication/Power Header. Please ensure the correct voltage input for your display by referencing the electrical specifications in Table 42 before connecting power.
Power Through DB9 Jumper In order to provide power through pin 9 of the DB-9 Connector you must connect the Power Through DB-9 Jumper labelled R54, as illustrated below. This connection can be made using a zero ohm resistor, recommended size 0603, or a solder bridge. The LK402-25 allows all voltage models to use the power through DB-9 option, see the electrical specifications in Table 42 for voltage requirements.
USB Model Mini USB Connector Table 11: Mini USB Pinout Figure 12: Mini USB Connector Pin 1 2 3 5 Function Vcc DD+ Gnd The LK402-25-USB comes with a familiar Mini USB Connector to fulfill both communication and power needs. The standard MiniB style header can be connected to any other USB style using the appropriate cable. Most commonly used with a PC, this connection creates a virtual com port that offers a simple power solution with a familiar communication scheme.
RS422 Model RS422 Header Table 14: RS422 Pinout Figure 15: RS422 Header Pin 1 2 3 4 5 6 Function Gnd Rx (Y) Inv Rx (Z) Inv Tx (B) Tx (A) Vcc The six pin RS422 interface header of the LK402-25-422 offers power and ground connections as well as two differential pair communication lines. Regular and inverted lines are provided for both receive and transmit signals. Power is supplied locally to the regular or –V variants while the –VPT can receive power over a distance.
Common Features General Purpose Outputs Table 16: GPO Pinout Figure 17: GPO Header Pin 1 2 3 4 5 6 7 Function GPO 1 GPO 1 GPO 1 GPO 1 GPO 1 GPO 1 Vcc Pin 8 9 10 11 12 13 14 Function Gnd Gnd Gnd Gnd Gnd Gnd Gnd A unique feature of the LK402-25 is the ability to control relays* and other external devices using one of six General Purpose Outputs. Each can source up to 20mA of current at five volts when on or sink 10mA at zero volts when off.
Keypad Header Table 18: Keypad Pinout Figure 19: Keypad Header Pin 1 2 3 4 5 6 7 8 9 10 11 12 Function Gnd Row 1 Row 2 Row 3 Row 4 Row 5 Column 1 Column 2 Column 3 Column 4 Column 5 Gnd/Vcc* To facilitate user input, the LK402-25 provides a Keypad Interface Connector which allows a matrix style keypad of up to twenty-five keys to be directly connected to the display module. Key presses are generated when a short is detected between a row and a column.
Troubleshooting Power In order for your Matrix Orbital display to function correctly, it must be supplied with the appropriate power. If the D2 power LED near the top right corner of the board is not illuminated, power is not applied correctly. Try following the tips below. • • • • • First, make sure that you are using the correct power connector.
Communication When communication of either text or commands is interrupted, try the steps below. • • • • • • • • 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. Next, please ensure that the display module is set to communicate on the protocol that you are using, by checking the Protocol Select Jumpers.
Commands 1. Communications 1.1. Changing the I2C Slave Address Dec 254 51 Address Hex FE 33 Address ASCII ■ 3 Address Immediately changes the I2C write address. Only even values are permitted as the next odd address will become the read address. Default is 80. Address 1 byte, even value 1.2. Changing the Baud Rate Dec 254 57 Speed Hex FE 39 Speed ASCII ■ 9 Speed Immediately changes the baud rate. Not available in I2C. Baud rate can be temporarily forced to 19200 by a manual override. Default is 19200.
2. Text 2.1. Auto Scroll On Dec 254 81 Hex FE 51 ASCII ■Q The entire contents of screen are shifted up one line when the end of the screen is reached. Default is on. 2.2. Auto Scroll Off Dec 254 82 Hex FE 52 ASCII ■R New text is written over the top line when the end of the screen is reached. Default is Auto Scroll on. 2.3. Clear Screen Dec 254 88 Hex FE 58 ASCII ■X Clears the contents of the screen. 2.4.
2.7. Move Cursor Back Dec 254 76 Hex FE 4C ASCII ■L Moves cursor one position to the left. Cursor will obey wrap settings. 2.8. Move Cursor Forward Dec 254 77 Hex FE 4D ASCII ■M Moves cursor one position to the right. Cursor will obey wrap settings. 2.9. Underline Cursor On Dec 254 74 Hex FE 4A ASCII ■J Displays a line under the current cursor position. Can be used with block cursor. 2.10. Underline Cursor Off Dec 254 75 Hex FE 4B ASCII ■K Removes line under current cursor position.
3. Special Characters 3.1. Creating a Custom Character Dec 254 78 ID Data Hex FE 4E ID Data ASCII ■ N ID Data Creates a custom character. Each character is divided into 8 rows of 5 pixels; each data byte represents one row. Each byte is padded by three zero bits followed by five bits representing each pixel state. A one represents an on condition while a zero is off. Characters are lost when a new memory bank is loaded, unless they are saved.
3.4. Save Start Up Screen Dec 254 194 ID Data Custom Characters Hex FE C2 ID Data Saves a custom character to memory for the start up screen or repeated use. Start up characters are displayed by sending their ID to the screen. ID 1 byte, character ID, value between 0 and 7 Data 8 bytes, character pixel data, see custom character example 3.5. Initialize Medium Number Dec 254 109 Hex FE 6D ASCII ■m Loads the medium number custom character bank into memory. Medium numbers must be initialized before use. 3.
3.7. Initialize Horizontal Bar Dec 254 104 Hex FE 68 ASCII ■h Loads the horizontal bar graph custom character bank into memory. Horizontal bar characters must be initialized before a graph is displayed. 3.8. Place Horizontal Dec 254 124 Column Row Direction Length Bar Graph Hex FE 7C Column Row Direction Length Places a horizontal bar graph on the screen beginning at the column and row specified. The bar extends either right or left to the length indicated. New bars will overwrite old.
4. General Purpose Output 4.1. General Purpose Output Off Dec 254 86 Number Hex FE 56 Number ASCII ■ V Number Turns the specified GPO off, sinking current to an output of zero volts. Number 1 byte, GPO to be turned off, value between 1 and 6 4.2. General Purpose Output On Dec 254 87 Number Hex FE 57 Number ASCII ■ W Number Turns the specified GPO on, sourcing current from an output of five volts. Number 1 byte, GPO to be turned on, value between 1 and 6 4.3.
5. Dallas One-Wire 5.1. Search for a One-Wire Dec 254 200 2 Device Hex FE C8 02 Sends a search query to each of the up to 32 devices on the one wire bus. Any connected device will respond with an identification packet.
6. Keypad 6.1. Auto Transmit Key Presses On Dec 254 65 Hex FE 41 ASCII ■A Key presses are automatically sent to the host when received by the display. Default is Auto Transmit on. 6.2. Auto Transmit Key Presses Off Dec 254 79 Hex FE 4F ASCII ■O Key presses are held in the 10 key buffer to be polled by the host using the Poll Key Press command. Use this mode for I2C transactions. Default is Auto Transmit on. 6.3.
6.6. Set Auto Repeat Dec 254 126 Mode Mode Hex FE 7E Mode Sets key press repeat mode to typematic or hold. In typematic mode if a key press is held, the key value is transmitted immediately, then 5 times a second after a 1 second delay. In hold mode, the key down value is transmitted once when pressed, and then the key up value is sent when the key is released. Default is typematic. Mode 1 byte, 1 for hold mode or 0 for typematic 6.7. Auto Repeat Dec 254 96 Mode Off Hex FE 60 Turns auto repeat mode off.
7. Display Functions 7.1. Display On Dec 254 66 Minutes Hex FE 42 Minutes ASCII ■ B Minutes Turns the display backlight on for a specified length of time. If an inverse display color is used this command will essentially turn on the text. Minutes 1 byte, number of minutes to leave backlight on, a value of 0 leaves the display on indefinitely 7.2. Display Off Dec 254 70 Hex FE 46 ASCII ■F Turns the display backlight off. If an inverse display colour is used this command will turn off the text. 7.3.
8. Data Security 8.1. Set Remember Dec 254 147 Switch Hex FE 93 Switch Allows changes to specific settings to be saved to the display memory. Writing to non-volatile memory can be slow and each change consumes 1 write of approximately 100,000 available. The Command Summary outlines which commands are saved always, never, and when this command is on only. Remember is off by default. Switch 1 byte, 1 for on or 0 for off 8.2.
9. Miscellaneous 9.1. Write Dec 254 52 Data Customer Hex FE 34 Data Data ASCII ■ 4 Data Saves a user defined block of data to non-volatile memory. Useful for storing display information for later use. Data 16 bytes, user defined data 9.2. Read Dec 254 53 Customer Hex FE 35 Data ASCII ■5 Reads data previously written to non-volatile memory. Data is only changed when written, surviving power cycles. Response 16 bytes, previously saved user defined data 9.3.
Appendix Command Summary Available commands below include identifying number, required parameters, the returned response and an indication of whether the setting is remembered always, never, or with remember set to on.
Table 34: General Purpose Output Command Summary Name General Purpose Output Off General Purpose Output On Set Start Up GPO State Dec 86 87 195 Hex 56 57 C3 ASCII V W ├ Parameters Number Number Number, State Response None None None Remembered Never Never Always Table 35: Dallas One-Wire Command Summary Name Search for a One-Wire Device Dallas One-Wire Transaction Dec 200, 2 200, 1 Hex C8, 02 C8, 01 ASCII ╚, ☻ ╚, ☺ Parameters None Flags, Send, Receive, Data [] Response Data [14] Data [] Rememb
Character Set Figure 20: LK402-25 European Character Set 37
Environmental Specifications Table 40: Environmental Limits Operating Temperature Storage Temperature Operating Relative Humidity Standard Extended (-E) 0°C to +50°C -20°C to +70°C -10°C to +60°C -30°C to +80°C Maximum 90% non-condensing Electrical Tolerances Current Consumption Table 41: Current Consumption Board 40mA + Backlight 210mA + GPOs 20mA each maximum Input Voltage Specifications Table 42: Voltage Specifications Standard* 4.75-5.25V Wide Voltage (-V)* 9.0-15.
Dimensional Drawing Figure 21: Display Dimensional Drawing Figure 22: Standard Model Dimensional Drawing Figure 23: USB Model Dimensional Drawing Figure 24: RS422 Model Dimensional Drawing 39
Ordering Part Numbering Scheme Table 44: Part Numbering Scheme LK 1 -402 2 -25 3 -V 4 -422 5 -E 6 Options Table 45: Display Options # 1 2 3 4 Designator Product Type Display Size Keypad Size Voltage 5 Protocol 6 Temperature Options LK: Liquid Crystal Display with Keypad Input -402: 40 columns by 2 rows -25: 25 key maximum NP: Standard Voltage -V: Wide Voltage -VPT: Wide Voltage with Efficient Switching Power Supply NP: Standard Model -USB: USB Only Model -422: RS422 Only Model* NP: Standard -E
Accessories Power Table 46: Power Accessories PCS Standard Power Cable Communication Table 47: Communication Accessories 41 CSS4FT 4 ft.
Peripherals Table 48: Peripheral Accessories KPP4x4 16 Button Keypad Temperature Probe Dallas One-Wire Temperature Probe 42
Definitions ASCII: American standard code for information interchange used to give standardized numeric codes to alphanumeric characters. BPS: Bits per second, a measure of transmission speed. DOW: Dallas One-Wire protocol, similar to I2C, provides reduced data rates at a greater distance. One wire carries data, while two others supply power and ground. Matrix Orbital tests non-parasitic devices only, those that do not draw power from the data line; however, some parasitic devices may work.