LK204-7T-1U Including the LK204-7T-1U-USB va riant Technical Manual Revision 2.5 PCB Revision: 1.0 or Higher Firmware Revision: 5.
Revision History Revision 2.5 2.4 2.3 2.2 2.1 2.0 0.
Contents 1 Introduction ............................................................................................................................................... 5 2 Quick Connect Guide.................................................................................................................................. 6 2.1 Available Headers ............................................................................................................................... 6 2.2 Standard Module ................
5.4 Manual Override ............................................................................................................................... 17 6 Commands ............................................................................................................................................... 18 6.1 Communication ................................................................................................................................. 18 6.2 Text............................................
1 Introduction Figure 1: LK204-7T-1U Display The LK204-7T-1U 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, the USB communication model allow the LK204-7T-1U to be connected to a wide variety of host controllers. Communication speeds of up to 115.
2 Quick Connect Guide 2.
2.2 Standard Module The standard version of the LK204-7T-1U allows for user configuration of three common communication protocols. First, the unit can communicate using serial protocol at either RS323 or TTL voltage levels. Second, it can communicate using the Inter-Integrated Circuit connect, or I2C protocol. Connections for each protocol can be accessed through the four pin Communication/Power Header as outlined in the Serial Connections and I2C Connections sections below.
2. Make the connections. a. Connect the four pin female header of the Communication/Power Cable to the Communication/Power Header of your LK204-7T-1U. b. Insert the male end of your serial cable to the corresponding DB9 header of the Communication/Power Cable and the mate the female connector with the desired communication port of your computer. c. Select an unmodified floppy cable from a PC power supply and connect it to the power header of the Communication/Power Cable. 3. Create.
2.3 USB Module The LK204-7T-1U-USB offers a single USB protocol for an easy connection to a host computer. This simple and widely available protocol can be accessed using the on board mini B style USB connector as outlined in the USB Connections section. Recommended Parts The External Mini USB cable is recommended for the LK204-7T-1U-USB display. It will connect to the miniB style header on the unit and provide a connection to a regular A style USB connector, commonly found on a PC.
3 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.
This command allows raw bytes to be sent to the display, permitting many different formats for entry and displaying in decimal notation. Any command from this manual may be entered in decimal notation separated by slashes. /254/ /88/ Figure 6: uProject Command Again, the clear screen command is sent to a connected display, this time using uProject raw data command style. Scripts can be run as a whole using the execute command from the script menu, or as single commands by selecting execute once.
4 Hardware 4.1 Standard Model Extended Communication/Power Header Table 4: Communication/Power Pinout Figure 7: Extended Communication/Power Header Pin 1 2 3 4 Function Vcc Rx (SCL) Tx (SDA) Gnd The Extended Communication/Power Header provides a standard connector for interfacing to the LK2047T-1U. 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 Voltage Specifications 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 with white brackets, as illustrated below. This connection can be made using a zero ohm resistor, recommended size 0603, or a solder bridge. The LK204-7T-1U allows all voltage models to use the power through DB-9 option, see the Voltage Specifications for power requirements.
4.2 USB Model Mini USB Connector Table 6: Mini USB Pinout Figure 10: Mini USB Connector Pin 1 2 3 5 Function Vcc DD+ Gnd The LK204-7T-1U-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.
4.3 Common Features General Purpose Outputs Table 8: GPO Pinout Figure 12: GPO Header Pin 1 2 3 4 5 Function GPO 1 GPO 2 GPO 3 NC Gnd Pin 6 7 8 9 10 Function Vcc Vcc Vcc Vcc Vcc A unique feature of the LK204-7T-1U is the ability to control relays* and other external devices using either one or six General Purpose Outputs. Each can source up to 10mA of current at five volts when on or sink 20mA at zero volts when off.
5 Troubleshooting 5.1 Power In order for your Matrix Orbital Display to function correctly, it must be supplied with the appropriate power. If the backlight is not illuminated, power may not be applied correctly. Try the tips below. First, 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.
5.3 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/USB 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.
6 Commands 6.1 Communication 1.1 Change 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. Speed Byte Valid settings shown below. v5.0 Table 11: Accepted Baud Rate Values Rate Speed 1200 83 2400 41 4800 207 9600 103 19200 51 28800 34 38400 25 57600 16 *76800 12 *115200 8 *Note: Baud rates 76800 and 115200 added after firmware revision 5.
6.2 Text 2.1 Clear Screen Dec 254 88 Hex FE 58 ASCII ■X Clears the contents of the screen. v5.0 2.2 Change the Start Up Screen Dec 254 64 Characters v5.0 Hex FE 40 Characters ASCII ■ @ Characters Changes the message displayed on start up. Custom characters can be included by adding their decimal value (07). Characters will automatically wrap on the display. Characters 80 bytes, space characters can be added as needed 2.3 Auto Scroll On Dec 254 81 v5.
2.8 Go Home Dec 254 72 Hex FE 48 ASCII ■H Returns the cursor to the top left of the screen. v5.0 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. v5.0 2.10 Move Cursor Forward Dec 254 77 Hex FE 4D ASCII ■M Moves cursor one position to the right. Cursor will obey wrap settings. v5.0 2.11 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. v5.0 2.
6.3 Special Characters 3.1 Create a Custom Character Dec 254 78 ID Data v5.0 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. ID Byte Character ID, value between 0 and 7.
3.4 Save Start Up Dec 254 194 ID Data v5.0 Screen Custom Hex FE C2 ID Data ■ ┬ ID Data Characters ASCII 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 Byte Value between 0 and 7. Data Byte[8] Character pixel data, see Custom Degree Character example. 3.5 Initialize Medium Numbers Dec 254 109 v5.0 Hex FE 6D ASCII ■m Loads the medium number custom character bank into memory.
3.10 Place Horizontal Bar Graph Dec 254 124 Column Row Direction Length v5.0 Hex FE 7C Column Row Direction Length ■ | Column Row Direction Length ASCII 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.
6.4 General Purpose Output 4.1 General Purpose Output On Dec 254 87 Number Hex FE 57 Number ASCII ■ W Number Turns the specified GPO on, sinking current to an output of zero volts. Number Byte GPO to be turned on. v5.0 4.2 General Purpose Output Off v5.0 Dec 254 86 Number Hex FE 56 Number ASCII ■ V Number Turns the specified GPO off, sourcing current from an output of five volts. Number Byte GPO to be turned off. 4.3 Set Start Up GPO State Dec 254 195 Number State v5.
6.5 Dallas One-Wire 5.1 Search for a One-Wire Device Dec 254 200 2 v5.0 Hex FE C8 02 ■ ╚ SOT ASCII 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. Response Bytes [14] Dallas One-Wire identification packet as shown below.
6.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. v5.0 6.2 Auto Transmit Key Presses Off Dec 254 79 v5.0 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 Poll Key Press Dec 254 38 v5.
6.7 Auto Repeat Mode Off Dec 254 96 Hex FE 60 ■` ASCII Turns auto repeat mode off. Default is on (typematic). v5.0 6.8 Assign Keypad Codes Dec 254 213 Key Down Key Up v5.0 Hex FE D5 Key Down Key Up ■ ╒ Key Down Key Up ASCII Assigns the key down and key up values sent to the host when a key press is detected. A key up and key down value must be sent for every key, a value of 255 will leave the key unaltered. Defaults are shown below.
6.11 Set Auto Backlight Dec 254 157 Setting v5.0 Hex FE 9D Setting ■ ¥ Setting ASCII Set the way the display and keypad backlights respond when a key is pressed. The options in the tables below allow a keypress to turn on the display and/or keypad backlights after they have timed out or been turned off. Setting Byte What portions of the unit light on a keypress, if any, and if that press is returned.
7.5 Set Backlight Colour Dec 254 130 Red Green Blue Hex FE 82 Red Green Blue ■ é Red Green Blue ASCII Set the colour of a tri-colour backlight. Only for tri-colour displays. Default is white (255, 255, 255). Red Byte Brightness level of Red from 0(Dim) to 255(Bright). Green Byte Brightness level of Green from 0(Dim) to 255(Bright). Blue Byte Brightness level of Blue from 0(Dim) to 255(Bright). v5.0 7.6 Set Contrast Dec 254 80 Contrast v5.
Table 20: Lock Parameters Reserved Address Setting Command Display Place holders only, should be 0 Locks the Baud Rate and I2C address Locks all settings from being saved Locks all commands, text can still be written Locks entire display, no new text can be displayed 8.3 Set and Save Data Lock Dec 254 203 245 160 Level v5.0 Hex FE CB F5 A0 Level ASCII ■ ╦ ⌡ á Level Locks certain aspects of the display to ensure no inadvertent changes are made. The lock is not affected by a power cycle.
7 Appendix 7.1 Command Summary Available commands below include identifying number, required parameters, the returned response and an indication of whether settings are remembered always, never, or with remember set to on.
Table 24: Special Character Command Summary Name Create a Custom Character Save Custom Characters Load Custom Characters Save Start Up Screen Custom Characters Initialize Medium Numbers Place Medium Numbers Initialize Large Numbers Place Large Numbers Initialize Horizontal Bar Place Horizontal Bar Graph Initialize Narrow Vertical Bar Initialize Wide Vertical Bar Place Vertical Bar Dec 78 193 192 Hex 4E C1 C0 ASCII N ñ └ Parameters Byte[9] Byte[10] Byte Response None None None Remembered Remember On A
Table 28: Display Functions Command Summary Name Backlight On Backlight Off Set Brightness Set and Save Brightness Set Backlight Colour Set Contrast Set and Save Contrast Dec 66 70 153 152 130 80 145 Hex 42 46 99 98 82 50 91 ASCII B F Ö ÿ é P æ Parameters Byte None Byte Byte Byte[3] Byte Byte Response None None None None None None None Remembered Remember On Remember On Remember On Always Remember On Remember On Always Table 29: Data Security Command Summary Name Set Remember Set Data Lock Set and
7.
7.3 Environmental Specifications Table 31: Environmental Limits Operating Temperature Storage Temperature Operating Relative Humidity Thermal Shock 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 Maximum 10°C /min 7.
7.
8 Ordering 8.1 Part Numbering Scheme Table 36: Part Numbering Scheme LK 1 -204 2 -7T 3 -1U 4 -USB 5 -TCI 6 7 -E 8 8.
8.3 Accessories Power Table 38: Power Accessories PCS Standard Power Cable Communication Table 39: Communication Accessories CSS4FT 4 ft.
Peripherals Table 40: Peripheral Accessories Temperature Probe Dallas One-Wire Temperature Probe Mounting Table 41: Mounting Accessories B19264-BK 39 Black 7T-1U Mounting Bracket
9 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.