LK204-25/VK204-25 Including LK204-25-422, LK204-25-USB, VK204-25-422, and VK204-25-USB Technical Manual Revision 1.5 PCB Revision: 3.0 or Higher Firmware Revision: 7.
Revision History Revision 1.5 1.4 1.3 1.2 1.1 1.0 0.3 0.2 0.
Contents Revision History ............................................................................................................................................ 2 Contents ........................................................................................................................................................ 3 Introduction ..................................................................................................................................................
General Purpose Outputs ................................................................................................................... 18 Dallas One-Wire Connector ................................................................................................................ 18 Keypad Header .................................................................................................................................... 19 Troubleshooting .............................................................
Introduction Figure 1: LK204-25 Display Figure 2: VK204-25 Display The LVK204-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 LVK204-25 to be connected to a wide variety of host controllers. Communication speeds of up to 115.
Quick Connect Guide Standard Module Table 1: Standard Headers # 1 2 3 4 Header Communication/Power DB9 Keypad GPO 5 Dallas One-Wire Mate SCCPC5V/BBC CSS1FT/CSS4FT KPP4x4 None Offered Temperature Probe Figure 3: Standard Connections The standard version of the LVK204-25 allows for user configuration of three common communication protocols. First, the unit can communicate using serial protocol at either RS323 or TTL voltage levels.
Serial Connections The serial interface provides a classic connection to the LVK204-25. The Communication/Power Cable is most commonly used for this set up 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 LVK204-25 is provided by the I2C protocol setting. 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 LVK204-25 in I2C mode, get started with the guidelines below. 1. Set the Protocol Select switches. I2C: Ensure that the two I2C jumpers in the corresponding protocol box are connected while all others are open. 2.
USB Module Table 2: Standard Headers Figure 6: 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 LVK204-25-USB offers a single USB protocol for 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 LVK204-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 LVK204-25-USB, please follow the steps below. 1. Set the Protocol Select Jumpers. USB: The LVK204-25-USB offers USB protocol only.
RS422 Module Table 3: Standard Headers # 1 2 3 4 5 Header RS422 Alternate Power Keypad GPO Dallas One-Wire Mate 16-30 AWG Wire PCS KPP4x4 None Offered Temperature Probe Figure 8: RS422 Connections The LVK204-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 LVK204-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 11: 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 LVK204-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 43 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 R17, as illustrated below. This connection can be made using a zero ohm resistor, recommended size 0603, or a solder bridge. The LVK204-25 allows all voltage models to use the power through DB-9 option, see the electrical specifications in Table 43 for voltage requirements.
USB Model Mini USB Connector Table 11: Mini USB Pinout Figure 13: Mini USB Connector Pin 1 2 3 5 Function Vcc DD+ Gnd The LVK204-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 16: 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 LVK204-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 18: 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 LVK204-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 20: 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 LVK204-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.
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. Set Cursor Position Dec 254 71 Column Row Hex FE 47 Column Row ASCII ■ G Column Row Sets the cursor to a specific position where the next transmitted character is printed. Column 1 byte, value between 1 and 20 Row 1 byte, value between 1 and 4 2.8. Go Home Dec 254 72 Hex FE 48 ASCII ■H Returns the cursor to the top left of the screen. 2.9. Move Cursor Back Dec 254 76 Hex FE 4C ASCII ■L Moves cursor one position to the left. Cursor will obey wrap settings. 2.10.
2.13. Blinking Block Cursor On Dec 254 83 Hex FE 53 ASCII ■S Displays a blinking block over the current cursor position. Can be used with underline. 2.14. Blinking Block Cursor Off Dec 254 84 Hex FE 54 ASCII ■T Removes blinking block over 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, 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.6.
3.9. 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.10. 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.
7.7. Set VFD Brightness** Dec 254 89 Brightness Hex FE 59 Brightness ASCII ■ Y Brightness Immediately sets the text brightness. Default is 0. Brightness 1 byte, brightness level from 3(Dim) to 0(Bright) 7.8. Set and Save VFD Dec 254 145 Brightness Brightness** Hex FE 91 Brightness Immediately sets and saves the text brightness. Although brightness can be changed using the set command, it is reset to the saved value on start up. Default is 0.
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 Sets Figure 21: LCD Model European Character Set 39
Figure 22: VFD Model Japanese Character Set 40
Environmental Specifications Table 40: Environmental Limits Operating Temperature Storage Temperature Operating Relative Humidity Thermal Shock LCD Standard LCD Extended (-E) VFD Standard VFD Extended (-E) 0°C to +50°C -20°C to +70°C -20°C to +70°C -40°C to +85°C -10°C to +60°C -30°C to +80°C -40°C to +85°C -50°C to +85°C Maximum 90% non-condensing Maximum 80% non-condensing Maximum 10°C/min Electrical Tolerances Current Consumption Table 41: Current Consumption Board 40mA + Backlight 70 to 150 mA +
Dimensional Drawings Figure 23: LCD Dimensional Drawing Figure 24: LVK204-25 Dimensional Drawing 42
Figure 25: LVK204-25-USB Dimensional Drawing Figure 26: LVK204-25-422 Dimensional Drawing 43
Ordering Part Numbering Scheme Table 45: Part Numbering Scheme LK 1 -204 2 -25 3 -R 4 -VPT 5 -422 6 -E 7 Options Table 46: Display Options # Designator 1 Product Type 2 3 Display Size Keypad Size 4 Colour 5 Voltage 6 Protocol 7 Temperature Options LK: Liquid Crystal Display with Keypad Input VK: Vacuum Florescent Display with Keypad Input -204: 20 columns by 4 rows -25: 25 key maximum NP: Standard (YG for LCD/ no filter for VFD) -GW: Grey Text with Grey-White Background -WB: White Tex
Accessories Power Table 47: Power Accessories PCS Standard Power Cable Communication Table 48: Communication Accessories 45 CSS4FT 4 ft.
Peripherals Table 49: Peripheral Accessories KPP4x4 16 Button Keypad KPP204A-XX* 15 Button Keypad Overlay Temperature Probe Dallas One-Wire Temperature Probe Mounting Table 50: Mounting Accessories B2041-XX** Mounting Bracket with Coloured Overlay B204A-XX* Mounting Bracket with Keyed Overlay MK2041-XX** Coloured Overlay with Drill Guide Note*: Keyed overlays are available in Black Vinyl (-BK) and Beige Vinyl (no part extension).
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.