LK162B-7T Including LK162B-7T-USB varia nt Technical Manual Revision 1.1 PCB Revision: 1.0 or Higher Firmware Revision: 7.
Revision History Revision 1.1 1.0 0.
Contents 1 Introduction ............................................................................................................................................... 1 2 Quick Connect Guide.................................................................................................................................. 2 2.1 Available Headers ............................................................................................................................... 2 2.2 Standard Module ................
6 Commands ............................................................................................................................................... 13 6.1 Communication ................................................................................................................................. 13 6.2 Text.................................................................................................................................................... 14 6.3 Special Characters ....................
1 Introduction Figure 1: LK162B-7T Display The LK162B-7T 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 models allow the LK162B-7T 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 display updates.
2 Quick Connect Guide 2.
2.2 Standard Module The standard version of the LK162B-7T 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 LK162B-7T. 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 LK162B-7T-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 LK162B-7T-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 LK162B-7T 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 Communication/Power Header Table 4: Communication/Power Pinout Figure 7: 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 LK162B-7T. 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 D, as illustrated below. This connection can be made using a zero ohm resistor, recommended size 0603, or a solder bridge. The LK162B-7T allows all voltage models to use the power through DB-9 option, see the Voltage Specifications for power requirements.
Alternate USB Header Some advanced applications may prefer the straight four pin connection offered through the Optional Alternate USB Header. This header offers power and communication access in a simple interface package. The Optional Alternate USB Header may be added to the LK162B-7T-USB for an added charge as part of a custom order. Please use the Contact section to request more information from the friendly Matrix Orbital sales team. 4.
5 Troubleshooting 5.1 Power In order for your LK162B-7T to function correctly, it must be supplied with the appropriate power. If the 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. Standard floppy drive power cables from your PC power supply may fit on the Communication/Power Header; however they do not have the correct pin out to provide power.
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 9: 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 2 1.2 Change I C Slave Address Dec 254 51 Address v5.
1.5 Software Reset Dec 254 253 77 79 117 110 v8.4 Hex FE FD 4D 4F 75 6E ASCII ■²MOun Reset the display as if power had been cycled via a software command. No commands should be sent while the unit is in the process of resetting; a response will be returned to indicate the unit has successfully been reset. Response Short Successful reset response, 254 212. 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.7 Set Cursor Position Dec 254 71 Column Row Hex FE 47 Column Row ASCII ■ G Column Row Sets the cursor to a specific cursor position where the next transmitted character is printed. Column Byte Value between 1 and number of character columns. Row Byte Value between 1 and number of character rows. v5.0 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.
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.9 Initialize Narrow Vertical Bar Dec 254 115 Hex FE 73 ASCII ■s Loads the narrow horizontal bar graph custom character bank into memory. A narrow bar is 2 pixels wide. Horizontal bar characters must be initialized before a graph is displayed. v5.0 3.10 Initialize Wide Vertical Bar Dec 254 118 v5.0 Hex FE 76 ASCII ■v Loads the wide horizontal bar graph custom character bank into memory. A wide bar is 5 pixels wide. Horizontal bar characters must be initialized before a graph is displayed. 3.
LED Indicators The LK162B-7T has 6 General Purpose Outputs which control 3 bi-colour LEDs. Red, green, and orangeyellow colours can be created using these software controlled GPOs. Odd numbered GPOs control red while even numbers switch the green aspects of the LEDs, as shown in the table below. Table 12: LED Output Colour Yellow Green Red Off GPOO 0 0 1 1 GPOE 0 1 0 1 4.4 Set LED Indicators Dec 254 90 Number Colour v8.
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.
Brightness Byte Brightness level from 0(Dim) to 255(Bright). 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.
Address Setting Command Display 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. A new level overrides the old, and levels can be combined. Default is 0.
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 21: 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 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 Always Never 194 C2 ┬ Byte[9] None Alway
Table 25: 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 26: Data Security Command Summary Name Set Remember Set Data Lock Set
7.
7.3 Block Diagram Figure 15: Functional Diagram 7.4 Environmental Specifications Table 28: Environmental Limits LCD Standard LCD 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 Operating Temperature Storage Temperature Operating Relative Humidity Thermal Shock 7.
7.
Figure 16: Display Dimensional Drawing 7.7 Optical Characteristics Table 32: Display Optics Module Size Viewing Area Active Area Character Size Character Pitch Pixel Size Pixel Pitch Viewing Direction Viewing Angle Contrast Ratio Backlight Half-Life 125.00 x 35.00 x 35 61.0 x 15.8 56.2 x 11.5 2.95 x 5.55 3.55 x 5.95 0.55 x 0.65 0.65 x 0.70 12 -30 to +30 3 20,000* mm mm mm mm mm mm mm O’clock ° Hours *Note: Operation above 40°C and/or 50% RH will decrease half-life. 8 Ordering 8.
8.3 Accessories Communication Table 35: Communication Accessories CSS1FT 1 ft. Serial Cable CSS4FT 4 ft.
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. FFSTN: Double film super-twisted nematic in reference to an LCD. The addition of two layers of film between the STN display and polarizer improves contrast. GPO: General purpose output, used to control peripheral devices from a display. GUI: Graphical user interface.