LK404-25-E Matrix Orbital, LK404-25-E Datasheet

no-image

LK404-25-E

Manufacturer Part Number
LK404-25-E
Description
LCD Character Display Modules 40x4 Grn/Yel Ext Temp
Manufacturer
Matrix Orbital
Datasheet

Specifications of LK404-25-E

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
LK404-25
Technical Manual
Revision: 1.2

Related parts for LK404-25-E

LK404-25-E Summary of contents

Page 1

... LK404-25 Technical Manual Revision: 1.2 ...

Page 2

... Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.1.1 Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.1.2 Control Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.2 Auto Scroll 5.3 Auto Scroll Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.4 Clear Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.5 Changing the Startup Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.6 Set Auto Line Wrap 5.7 Set Auto Line Wrap Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.8 Set Cursor Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Matrix Orbital LK404- ...

Page 3

... Auto Transmit Key Presses 9.3 Auto Transmit Key Presses Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 9.4 Poll Key Press . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 9.5 Clear Key Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 9.6 Set Debounce Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.7 Set Auto Repeat Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.8 Auto Repeat Mode Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 9.9 Assign Keypad Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Matrix Orbital LK404- iii ...

Page 4

... Keypad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 13.7 Display Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 13.8 Data Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 13.9 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 13.10Command By Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 14 Appendix 14.1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 14.1.1 Environmental . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 14.1.2 Electrical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 14.2 Optical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 14.3 Physical Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 14.4 Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 14.5 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 14.6 Contacting Matrix Orbital . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 14.7 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Matrix Orbital LK404- ...

Page 5

... The LK404- intelligent LCD display designed to decrease development time by providing an instant solution to any project. With the ability to communicate via serial RS-232/TTL and I the versatile LK404-25 can be used with virtually any controller. The ease of use is further enhanced by an intuitive command structure to allow display settings such as backlight brightness, contrast and baud rate to be software controlled ...

Page 6

... Figure 4: Breadboard Cable Figure 6: Communication and 5V Power Cable Matrix Orbital Figure 5: Serial Cable 4FT LK404-25 2 ...

Page 7

... Use key keypad with a 10 key buffer • Horizontal or vertical bar graphs 1.3 Connecting The LK404-25 connects seamlessly and excellent means of testing the functionality. To connect your display to a PC, you will require a standard RS-232 9-pin serial cable such as the one pictured well as a modifi ...

Page 8

... To install uProject from the Matrix Orbital CD, follow the following steps: 1. Insert the Matrix Orbital CD-ROM into the CD drive 2. Locate the file, uProject.exe, which should be in the “CD-drive:\Download” directory. 3. Copy uProject.exe to a directory that you wish to run it from. Matrix Orbital LK404-25 4 ...

Page 9

... Matrix Or- bital’s support site at http://www.matrixorbital.ca/software/software_alpha/ 2 Hardware Information Refer to the following diagram for this chapter: Matrix Orbital Comport Baudrate Figure 9: uProject Settings LK404-25 The serial port the display is plugged in to. The communication speed the display module is set to. (Default 19,200) 5 ...

Page 10

... Manual Override 2.1 DB-9 Connector The LK404-25 provides a DB-9 Connector to readily interface with serial devices which use the EIA232 standard signal levels of ±12V to ±12V also possible to communicate at TTL levels +5V by setting the Protocol Select Jumpers to TTL added feature it is also possible to apply power through pin 9 of the DB-9 Connector in order to reduce cable clutter ...

Page 11

... AND through the Power/Data Connector at the same time. 2.2 Power/Data Connector The Power/Data Connector provides a standard connector for powering the display module. The LK404- 25 requires five volts for the standard display module, between nine to fifteen for the wide voltage (V) and between nine to thirty-five volts for the wide voltage with efficient power supply module (VPT). The voltage is applied through pins one and four of the four pin Power/Data connector ...

Page 12

... TTL jumpers. 2.4 General Purpose Outputs A unique feature of the LK404-25 is the ability to control relays and other external devices using a General Purpose Output, which can provide current and +5Vdc from the positive side of the GPO. This is limited by a 240 ohm resistor which is located to the above right of the GPOs as pictured below in ...

Page 13

... Dallas 1-Wire Bridge In addition to the six general purpose outputs the LK404-25 offers a Dallas 1-wire bridge, to allow for an aditional thirty two 1-wire devices to be connected to the display. See Section 8 on page 30. 2.6 Manual Override The Manual Override is provided to allow the LK404- reset to factory defaults ...

Page 14

... Keypad Interface Connector The LK404-25 provides a Keypad Interface Connector which allows for five by five matrix style keypad to be directly connected to the display module. Key presses are generated when a short is detected between a row and a column. When a key press is generated a character, which is associated with the particular key press, is automatically sent on the Tx communication line ...

Page 15

... The last step will be to check the Power / Data Connector on the LK404-25. If the Power / Data Connector has become loose, or you are unable to resolve the issue, please contact Matrix Orbital, see 14 ...

Page 16

... The default read address of the display module will be 0x51, whereas the write address is 0x50 by default. This address may be changed by using cmd 254 / 51 / <address>. The LK404-25 should only be sent addresses that are even (LSB is 0). When the Matrix Orbital ...

Page 17

... I C master write. When the I (0101 0001), since the LSB has for take a standard Phillips 7 bit address of $45 (100 0101), Matrix Orbital’s LK404-25 would describe 2 this Phillips I C address as $8A (1000 1010). The read address would be $8B (1000 1011). ...

Page 18

... RS-232 protocol default baud rate of 19,200 bps and is capable of standard baud rates from 9600 to 115,200 bps. Furthermore the LK404-25 is also capable of reproducing any non-standard baud rate in between using values entered into our baud rate generation algorithm and set through command 164 (0xA4). ...

Page 19

... Manual Override jumper to be set. Remembered Always Matrix Orbital Baud Rate 1200 2400 4800 9600 19200 28800 38400 57600 115200 2 C mode. 0xFE 0xA4 [speed] 254 164 [speed] Length Description 2 Inputed LSB MSB from baud rate formula (12-2047). LK404-25 CrystalSpeed 1 to 8×DesiredBaud 15 ...

Page 20

... Text 5.1 Introduction The LK404- intelligent display module, designed to reduce the amount of code necessary to begin displaying data. This means that it is able to display all ASCII formated characters and strings that are sent to it, which are defined in the current character set. The display module will begin displaying text at the top left corner of the display area, known as home, and continue to print to the display was a page on a typewriter ...

Page 21

... Character Set 5.1.2 Control Characters In addition to a full text set, the LK404-25 display supports the following ASCII Control characters: 0x08 Backspace 0x0C Clear screen / New page 0x0D Carriage return 0x0A Line feed / New line 5.2 Auto Scroll On Matrix Orbital Figure 19: Character Set ...

Page 22

... Decimal ASCII Description In order to change the text that is displayed by the LK404-25 when it starts up simply send the command bytes 254 64 followed by the characters that you wish to display, starting from the top left. This command will automatically line wrap the characters that are sent to it. ...

Page 23

... Set Cursor Position Hexadecimal Syntax Decimal ASCII Parameters Parameter col row Matrix Orbital 0xFE 0x43 254 67 254 “C” 0xFE 0x44 254 68 254 “D” 0xFE 0x47 [col] [row] 254 71 [col] [row] 254 “G” [col] [row] Length Description 1 Column 1 Row LK404-25 19 ...

Page 24

... Remembered No 5.11 Move Cursor Forward Hexadecimal Syntax Decimal ASCII Matrix Orbital 0xFE 0x48 254 72 254 “H” 0xFE 0x4C 254 76 254 “L” 0xFE 0x4D 254 77 254 “M” LK404-25 20 ...

Page 25

... This command will turn the the underline cursor off. Remembered Yes 5.14 Blinking Block Cursor On Hexadecimal Syntax Decimal ASCII Description This command will cause the LK404-25 to display a block cursor at the current text insertion point. Remembered Yes 5.15 Blinking Block Cursor Off Matrix Orbital 0xFE 0x4A 254 74 254 “J” ...

Page 26

... Special Characters 6.1 Introduction The LK404-25 has the ability to create four different sets of eight custom characters and save them to internal banks of memory. Each set of eight can be recalled from memory at any time, and selected characters can be written to the display screen. Characters and sets can be created at any time, saved for later use, and displayed to the screen through the intuitive command structure described below ...

Page 27

... Description The LK404-25 allows for upta to eight custom defined characters to be added onto the the character set. A custom character is a five by eight pixel matrix with each row represented by a byte value. For example: Each bit value of one, in the table, represents an on pixel, whereas a value of zero represents a pixel that is turned off. Therefore in order to defi ...

Page 28

... Description New to the LK404-25 has added five non-volatile memory banks for custom character storage. This is intended to allow you to create your own custom bar graphs, medium/large numbers and startup screen. However, each memory bank may be used to store a set of any eight custom characters; with the only provision being that memory bank zero contains the characters that will be used in the startup screen ...

Page 29

... NOTE Medium Numbers must be initialized before this command is executed. Remembered No Matrix Orbital 0xFE 0x6D 254 109 254 “m” 0xFE 0x6F [Row] [Col] [Digit] 254 111 [Row] [Col] [Digit] 254 “o” [Row] [Col] [Digit] Length Description 1 The row number. 1 The column number. 1 Medium number to place (0-9). LK404-25 25 ...

Page 30

... Horizontal Bar’ command. Remembered No Matrix Orbital 0xFE 0x6E 254 110 254 “n” 0xFE 0x23 [Col] [Digit] 254 35 [Col] [Digit] 254 “#” [Col] [Digit] Length Description 1 The column number. 1 Large number to place (0-9). 0xFE 0x68 254 104 254 “h” LK404-25 26 ...

Page 31

... Length Description 1 The column number. 1 The row number. 1 The direction of the bar data (0 or 1). 1 The length of the bar data. 0xFE 0x73 254 115 254 “s” LK404-25 27 ...

Page 32

... General purpose outputs allow you to connect devices, such as LEDs, to the LK404-25 and supply them with up to 20mA of current at 5V. The LK404-25 has 6 GPOs which are software controlled, with functions to turn them on/off and set the power state for the next startup. ...

Page 33

... Syntax Decimal ASCII Parameter Parameters Num Description This command turns ON general purpose output [num]. The standard GPO’s on the LK404-25 output 20mA of current at 5V. NOTE ON means the output is pulled HIGH. Remembered Yes 7.4 Set Startup GPO state Hexadecimal Syntax Decimal Parameter ...

Page 34

... Dallas 1-Wire 8.1 Introduction Another convenient feature of the LK404-25 is that it provides a Dallas 1-wire interface in order to readily communicate with up to thirty two 1-wire devices on a single bus. 1-wire communication is begun by discovering the address of the device that you wish to communicate with this you must send the “ ...

Page 35

... Length Description 1 Flags to control optional components of the transaction. 1 The number of bits you will be transmitting on the bus. 1 The number of bits you will be reading on the bus. variable Data to be transmitted, LSB to MSB. LK404-25 31 ...

Page 36

... No 9 Keypad 9.1 Introduction The LK404-25 supports key, matrix style, keypad and may be configured to allow key presses to be automatically transmitted via RS-232 or polled through I repeating key presses, and remapping of all keypad character codes. The connector is not keyed so the keypad will probably plug in either of two ways. The display will not be damaged by reversing the connector ...

Page 37

... This is the default mode on power up. NOTE This command is not available in I Remembered Yes Default On 9.3 Auto Transmit Key Presses Off Hexadecimal Syntax Decimal ASCII Matrix Orbital C specification by Phillips. 0xFE 0x41 254 65 254 “A” 0xFE 0x4F 254 79 254 “O” LK404- ...

Page 38

... It may also be used, in effect, to reset the keypad in case the host application resets for whatever reason. Matrix Orbital 2 C. 0xFE 0x26 254 38 254 “&” read keys in I 0xFE 0x45 254 69 254 “E” LK404- mode, one just needs 34 ...

Page 39

... Parameters Parameter mode Matrix Orbital 0xFE 0x55 [time] 254 85 [time] 254 “U” [time] Length Description 1 Debounce time in increments of 6.554ms (0 - 255). 0xFE 0x7E [mode] 254 126 [mode] 254 “~” [mode] Length Description 1 Auto Repeat Mode (0: Resend Key , 1: Key Up/Down) LK404-25 35 ...

Page 40

... On the release of the key, the key release code transmitted will be a value equal to the key down code plus 20 hex. 0xFE 0x60 254 96 254 “‘” 0xFE 0xD5 [KDown] [KUp] 254 213 [KDown] [KUp] LK404- the “Key 36 ...

Page 41

... Display Functions 10.1 Introduction The LK404-25 employs software controlled display settings, which allow for control over, clearing the screen, changing the brightness and contrast or setting timers for turning off. The combination of these allow you complete software control over your display’s appearance. ...

Page 42

... Length Description 1 Display brightness setting (0 to 255). 0xFE 0x98 [brightness] 254 152 [brightness] Length Description 1 Backlight setting (0 to 255). 0xFE 0x50 [contrast] 254 80 [contrast] 254 “P” [contrast] Length Description 1 Contrast value (0 to 255). LK404-25 38 ...

Page 43

... NOTE This command saves the [contrast] value so that it is not lost after power down. Remembered Yes Default 128 Matrix Orbital This command has only 32 levels for X-Board based displays, meaning eight 0xFE 0x91 [contrast] 254 145 [contrast] Length Description 1 Contrast value (0 to 255). LK404-25 39 ...

Page 44

... Ensuring that your LK404-25 display’s exactly what you want it to can be the difference between a projects success and failure. This is why we incorporate features such as Data Lock into the LK404-25 With this new feature you now are in control over of how and when settings will be changed so there is no need to worry about the module acting exactly like you expected it to because all the settings may be locked and remembered for the next power up ...

Page 45

... Display Lock When this bit is set (1) the module is locked from dis- playing any new informa- tion. (text lock) Hex Dec Binary 0x00 0 0 0x50 80 01010000 Setting and Command Lock LK404- Slave Description Unlock 41 ...

Page 46

... Matrix Orbital 0xFE 0xCB 0xF5 0xA0 [level] 254 203 245 160 [level] Length Description 1 Sets the data lock level 0xFE 0x34 [data] 254 52 [data] 254 “4” [data] Length Description 16 Writes the customer data 0xFE 0x35 254 53 254 “5” LK404-25 42 ...

Page 47

... This command will return a byte representing the version of the module, see the following table as an example: Remembered No 12.3 Read Module Type Hexadecimal Syntax Decimal ASCII Matrix Orbital 0xFE 0x36 254 54 254 “6” Hex Value Version Number 0x19 Version 1.9 0x57 Version 5.7 0xFE 0x37 254 55 254 “7” LK404-25 43 ...

Page 48

... MOS 50 XBoard-S 52 MOU 54 LK202-25-USB 56 LK204-25-USB 58 LK162-12-TC 5C Unused 72 LK404-25 74 Unused 78 GLT480282 7A LK404-25 Product ID LCD2021 LCD4021 LK202-25 LK404-55 VFD2041 VK202-25 GLC12232 Unused Unused GLK12232-25 GLK12232-25-SM GLK24064-16-1U GLK12232-16 GLK19264-7T-1U LK204-7T-1U-USB MOS-AV-162A LK162-12 LK202-24-USB LK204-24-USB PK162-12 MOS-AP-162A MOS-AL-162A MOS-AV-202A PK202-24-USB MOS-AL-204 MOS-AL-402 LK082-12 VK404-55 VK402-25 ...

Page 49

... ASCII 254 “C” Hexadecimal 0xFE 0x44 Decimal 254 68 ASCII 254 “D” Hexadecimal 0xFE 0x47 [col] [row] Decimal 254 71 [col] [row] ASCII 254 “G” [col] [row] Hexadecimal 0xFE 0x48 Decimal 254 72 ASCII 254 “H” LK404-25 Page Page ...

Page 50

... Decimal 254 111 [Row] [Col] [Digit] ASCII 254 “o” [Row] [Col] [Digit] Hexadecimal 0xFE 0x6E Decimal 254 110 ASCII 254 “n” Hexadecimal 0xFE 0x23 [Col] [Digit] Decimal 254 35 [Col] [Digit] ASCII 254 “#” [Col] [Digit] LK404-25 Page Page ...

Page 51

... Hexadecimal 0xFE 0xC3 [Num] [state] Decimal 254 195 [Num] [state] Syntax Hexadecimal 0xFE 0xC8 0x2 Decimal 254 200 2 Hexadecimal 0xFE 0xC8 0x1 [flags] [SndBits] [RcvBits] [Data] Decimal 254 200 1 [flags] [SndBits] [RcvBits] [Data] LK404-25 Page Page Page 30 31 ...

Page 52

... Hexadecimal 0xFE 0x99 [brightness] Decimal 254 153 [brightness] Hexadecimal 0xFE 0x98 [brightness] Decimal 254 152 [brightness] Hexadecimal 0xFE 0x50 [contrast] Decimal 254 80 [contrast] ASCII 254 “P” [contrast] Hexadecimal 0xFE 0x91 [contrast] Decimal 254 145 [contrast] LK404-25 Page Page ...

Page 53

... Read Customer Data “6” Read Version Number “7” Read Module Type “9” Changing the Baud Rate “=” Place Vertical Bar “@” Changing the Startup Screen “A” Auto Transmit Key Presses On “B” Display On LK404-25 Page Page ...

Page 54

... Set Auto Repeat Mode Set and Save Contrast Set Remember Set and Save Brightness Set Brightness Setting a Non-Standard Baud Rate Loading Custom Characters Saving Custom Characters Save Startup Screen Custom Characters Set Startup GPO state Dallas 1-Wire Transaction Data Lock LK404- ...

Page 55

... Wide Switching Power Supply (VPT) +9V to +15V 40mA typical add 190mA (230mA) typical Table 72: Optical Characteristics 40 columns x 4 rows 190. 54. 27 5.55 mm 147. 29.50 mm 50, 000 hours typical LK404-25 ◦ ◦ +70 C ◦ ◦ +80 C Voltage with Efficient +9V to +35V ...

Page 56

... Physical Layout Matrix Orbital Figure 20: Physical Diagram LK404-25 52 ...

Page 57

... Contacting Matrix Orbital Telephone Sales: 1(403)229-2737 Support: 1(403)204-3750 On The Web Sales: http://www.MatrixOrbital.com Support: http://www.MatrixOrbital.ca Forums: http://www.lcdforums.com Matrix Orbital Table 73: Part Numbering Scheme Options L: Liquid Crystal Display K: External Keypad 40: Forty Character Columns 4: Four Character Rows Table 74: Part Options LK404-25 53 ...

Page 58

... Revision History Revision Number 1.0 1.1 1.2 Matrix Orbital Table 75: Revision History Description Initial Release Matrix Orbital CAD Drawing Update Updated Backlight Life LK404-25 Author Clark Clark 54 ...

Related keywords