background image

LK202-25

Technical Manual

Revision: 3.1

Downloaded from 

Elcodis.com

 

electronic components distributor

 

Содержание LK202-25

Страница 1: ...LK202 25 Technical Manual Revision 3 1 Downloaded from Elcodis com electronic components distributor ...

Страница 2: ...lied 16 3 2 The display module is not communicating 16 3 3 The display module is communicating however text cannot be displayed 16 4 Communications 17 4 1 Introduction 17 4 1 1 I2C Communication Summary 17 4 1 2 I2C Transaction Example 18 4 1 3 Serial Communication 18 4 2 Changing the I2C Slave Address 18 4 3 Changing the Baud Rate 19 4 4 Setting a Non Standard Baud Rate 20 5 Text 21 5 1 Introduct...

Страница 3: ...nitialize Narrow Vertical Bar 31 6 11 Initialize Wide Vertical Bar 32 6 12 Place Vertical Bar 32 7 General Purpose Output 33 7 1 Introduction 33 7 2 General Purpose Output Off 33 7 3 General Purpose Output On 33 7 4 Set Startup GPO state 34 8 Dallas 1 Wire 34 8 1 Introduction 34 8 2 Search for a 1 Wire Device 34 8 3 Dallas 1 Wire Transaction 35 9 Keypad 36 9 1 Introduction 36 9 1 1 I2C Interface 3...

Страница 4: ...umber 47 12 3 Read Module Type 47 13 Command Summary 49 13 1 Communications 49 13 2 Text 49 13 3 Special Characters 50 13 4 General Purpose Output 51 13 5 Dallas 1 Wire 51 13 6 Keypad 51 13 7 Display Functions 52 13 8 Data Security 52 13 9 Miscellaneous 53 13 10Command By Number 53 14 Appendix 55 14 1 Specifications 55 14 1 1 Environmental 55 14 1 2 Electrical 55 14 2 Optical Characteristics 55 14...

Страница 5: ...p to thirty two custom charaters such as character sets for bar graphs medium and large numbers may be stored in the non volitile memory to be easily recalled and displayed at any time 1 1 Display Options Available The LK202 25 comes in a wide variety of colors including the standard yellow green or inverse yellow the popular blue white and the crisp white grey as well as inverse red which is exce...

Страница 6: ...ers on our e commerce website at http www matrixorbital com To contact a sales associate see Section 14 6 on page 59 for contact information Figure 2 5V Power Cable Adapter Figure 3 12V Power Cable Adapter V VPT Models Figure 4 Breadboard Cable Figure 5 Serial Cable 4FT Matrix Orbital LK202 25 2 Downloaded from Elcodis com electronic components distributor ...

Страница 7: ...Figure 6 Communication and 5V Power Cable Figure 7 Aluminum Mountings Matrix Orbital LK202 25 3 Downloaded from Elcodis com electronic components distributor ...

Страница 8: ...Figure 8 Keypad Mountings Figure 9 Mounting Kits Matrix Orbital LK202 25 4 Downloaded from Elcodis com electronic components distributor ...

Страница 9: ... setting up to 90 minutes Use of up to a 25 key keypad with a 10 key buffer Horizontal or vertical bar graphs Fits Matrix Orbital s mountings without any modifications 1 4 Connecting to a PC The LK202 25 connects seamlessly to a PC and it is an 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...

Страница 10: ...splays 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 4 Double click on uProject exe Be sure to check the information selected in the COM Setup the first time uProject is run...

Страница 11: ...12 uProject Settings NOTES uProject and other alphanumeric software may also be downloaded from 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 LK202 25 7 Downloaded from Elcodis com electronic components distributor ...

Страница 12: ...of the DB 9 Connector in order to reduce cable clutter However in order to accomplish this you must set the Power Through DB 9 Jumper Pin 2 Tx SDA I2 C data Pin 3 Rx SCL I2C clock Pin 5 GND Pin 9 PWR Must solder Power Through DB 9 Jumper See table 1 on page 10 for power requirements Figure 14 RS 232 Pin out 2 1 1 Power Through DB 9 Jumper In order to provide power through pin 9 of the DB 9 Connect...

Страница 13: ...ugh DB 9 Jumper WARNING Do not apply voltage through pin 9 of the DB 9 connector AND through the Power Data Connector at the same time Matrix Orbital LK202 25 9 Downloaded from Elcodis com electronic components distributor ...

Страница 14: ...d Pin out Table 1 Power Requirements Standard V VPT Supply Voltage 5Vdc 0 25V 9V to 15V 9V to 35V Supply Current 148 mA typical Inrush 148 mA WARNINGS Do not apply any power with reversed polarization Do not apply any voltage other than the specified voltage 2 3 Protocol Select Jumpers The Protocol Select Jumpers pictured below in figure 17 provide the means necessary to toggle the display module ...

Страница 15: ...Figure 17 Protocol Select Jumpers Matrix Orbital LK202 25 11 Downloaded from Elcodis com electronic components distributor ...

Страница 16: ... and replaced with a Jumper GND MAX 20 mA 5Vdc Figure 18 General Purpose Output WARNING If connecting a relay be sure that it is fully clamped using a diode and capacitor in order to absorb any electro motive force EMF which will be generated 2 5 Dallas 1 Wire Bridge In addition to the six general purpose outputs the LK202 25 offers an optional Dallas 1 wire bridge to allow for an aditional thirty...

Страница 17: ... I2C Slave Address and you are no longer able to communicate with it If you wish to return the module to its default settings you must 1 Power off the display module 2 Place a Jumper on the Manual Override pins 3 Power up the display module 4 The display module is now set to its default values listed below in table 2 5 Edit and save settings Matrix Orbital LK202 25 13 Downloaded from Elcodis com e...

Страница 18: ...Matrix Orbital LK202 25 14 Downloaded from Elcodis com electronic components distributor ...

Страница 19: ...is generated a character which is associated with the particular key press is automatically sent on the Tx communication line If the display module is running in I2C mode the Auto Transmit Keypress function may be turned off to allow the key presses to remain in the buffer so that they may be polled The character that is associated with each key press may also be altered using the Assign Key Codes...

Страница 20: ...nd please ensure that the display module is set to communicate on the protocol that you are using by checking the Protocol Select Jumpers To change the protocol used by the display module see Section 2 3 on page 10 Third ensure that the host system and display module are both communicating on the same baud rate The default baud rate for the display module is 19200 bps If you are communicating to t...

Страница 21: ...an I2C master write When the I2C master wishes to read the LK202 25 the effective address is 51 0101 0001 since the LSB has to be 1 for an I2C master read If we take a standard Phillips 7 bit address of 45 100 0101 Matrix Orbital s LK202 25 would describe this Phillips I2C address as 8A 1000 1010 The read address would be 8B 1000 1011 The unit does not respond to general call address 00 When commu...

Страница 22: ...s algorithm to write a simple HELLO message can be seen in 3 Table 3 I2C Transaction Algorithm START Toggle SDA high to low Address 0x50 Information 0x48 0x45 0x4C 0x4C 0x4F STOP Toggle SDA low to high 4 1 3 Serial Communication In addition to being able to communicate via I2C the LK202 25 communicates natively through the RS 232 protocol at at a default baud rate of 19 200 bps and is capable of s...

Страница 23: ...ts the RS 232 port to the specified speed The change takes place immediately speed is a single byte specifying the desired port speed Valid speeds are shown in the table below The display module can be manually reset to 19 200 baud in the event of an error during transmission including transmitting a value not listed below by setting the manual override jumper during power up However it should be ...

Страница 24: ...meter that goes directly into the modules baud generator Use the formula speed CrystalSpeed 8 DesiredBaud 1 to calculate the speed for any baud rate setting The speed can be anywhere from 12 to 2047 which corresponds to a baud range of 977 to 153 800 baud Setting the baud rate out of this range could cause the display to stop working properly and require the Manual Override jumper to be set Rememb...

Страница 25: ...e for the device to communicate NOTES This command is not available in I2C mode 5 Text 5 1 Introduction The LK202 25 is an 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 ...

Страница 26: ...to a full text set the LK202 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 LK202 25 22 Downloaded from Elcodis com electronic components distributor ...

Страница 27: ...end of last row Remembered Yes 5 4 Clear Screen Syntax Hexadecimal 0xFE 0x58 Decimal 254 88 ASCII 254 X Description This command will immediately clear all of the contents of the display Remembered No 5 5 Changing the Startup Screen Syntax Hexadecimal 0xFE 0x40 Decimal 254 64 ASCII 254 Description In order to change the text that is displayed by the LK202 25 when it starts up simply send the comma...

Страница 28: ...ally sequentional progression becomes an alternating pattern Rather than moving from line 1 to 2 to 3 the display will write from line 1 to 3 to 2 For a two line display this means that a row s worth of characters written between the first and second lines or after the second will not be displayed on the screen or wrapped The four line models will see only an alteration in line flow Remembered Yes...

Страница 29: ...ied as row one column one Remembered No 5 10 Move Cursor Back Syntax Hexadecimal 0xFE 0x4C Decimal 254 76 ASCII 254 L Description This command will move the cursor back one space If this command is sent when the cursor is at the home position the cursor will wrap to the last row column position if line wrap is on Sending this command will not effect the text displayed on the module however any cha...

Страница 30: ...mal 254 74 ASCII 254 J Description This command will cause the LK202 25 to display an underline cursor at the current text insertion point Remembered Yes 5 13 Underline Cursor Off Syntax Hexadecimal 0xFE 0x4B Decimal 254 75 ASCII 254 K Description This command will turn the the underline cursor off Remembered Yes 5 14 Blinking Block Cursor On Syntax Hexadecimal 0xFE 0x53 Decimal 254 83 ASCII 254 S...

Страница 31: ...mory 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 6 2 Creating a Custom Character Syntax Hexadecimal 0xFE 0x4E refID data Decimal 254 78 refID data ASCII 254 N refID data Parameters Parameter Length Description refID 1 Ch...

Страница 32: ...hich you wish to save the character in The available mem ory locations for this command are zero through to seven After sending the memory location or refID you may then send the eight byte custom character data in sequence from the top to the bottom Once you have defined a custom character you may display it by sending the display module the refID For example if a custom character was saved in po...

Страница 33: ...4 193 Bank Number before sending the ID and character Data Remembered Yes 6 4 Loading Custom Characters Syntax Hexadecimal 0xFE 0xC0 Bank Decimal 254 192 Bank Parameters Parameter Length Description Bank 1 Memory bank to save to 0 4 Description This command is used to load the custom characters into the volatile memory so that they may be used If custom bar graph or number characters are stored in...

Страница 34: ... If you have stored your own custom medium numbers use the Load Custom Characters command to load your custom character data into the volatile memory This command will allow you to use the Place Medium Numbers command Remembered No 6 7 Place Medium Numbers Syntax Hexadecimal 0xFE 0x6F Row Col Digit Decimal 254 111 Row Col Digit ASCII 254 o Row Col Digit Parameters Parameter Length Description Row ...

Страница 35: ...ol Row Dir Length ASCII 254 Col Row Dir Length Parameters Parameter Length Description Col 1 The column number Row 1 The row number Dir 1 The direction of the bar data 0 or 1 Length 1 The length of the bar data Description This command will place a bar graph at row column A Dir value of zero will cause the bar to go right and one will cause the bar to go left The Length is the size in pixels of th...

Страница 36: ...ion This command will load the wide vertical bar characters into the volatile memory If you have stored your own custom vertical bar data use the Load Custom Characters command instead to load your custom bar data into the volatile memory This command will allow you to use the Place Vertical Bar command NOTE Wide bars have a width of five pixels Remembered No 6 12 Place Vertical Bar Syntax Hexadec...

Страница 37: ...The LK202 25 has 6 GPOs which are software controlled with functions to turn them on off and set the power state for the next startup 7 2 General Purpose Output Off Syntax Hexadecimal 0xFE 0x56 Num Decimal 254 86 Num ASCII 254 V Num Parameters Parameter Length Description Num 1 GPO number Description This command turns OFF general purpose output num NOTE OFF means that the output is pulled LOW Rem...

Страница 38: ... NOTE This command does not affect the current state of the GPO Remembered Always 8 Dallas 1 Wire 8 1 Introduction Another convenient feature of the LK202 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 To do ...

Страница 39: ...Type 4 1 Error Code 0x00 for success 5 8 1 Wire Address 13 1 CRC8 0x00 means the last address was valid Remembered No 8 3 Dallas 1 Wire Transaction Syntax Hexadecimal 0xFE 0xC8 0x1 flags SndBits RcvBits Data Decimal 254 200 1 flags SndBits RcvBits Data Parameters Parameter Length Description flags 1 Flags to control optional components of the transaction SndBits 1 The number of bits you will be tr...

Страница 40: ...de Description 0x00 Success 0x01 Unknown 1 Wire Command 0x02 No devices on the bus 0x03 Fatal search error Remembered No 9 Keypad 9 1 Introduction The LK202 25 supports up to a 25 key matrix style keypad and may be configured to allow key presses to be automatically transmitted via RS 232 or polled through I2C The LK202 25 also allows for auto repeating key presses and remapping of all keypad char...

Страница 41: ... on this basic I2 C function can be found in the I2 C specification by Phillips 9 1 2 RS232 Interface By default on any press of a key the module will immediately send out the key code at the selected baud rate This behavior can be modified using commands found in the next section 9 2 Auto Transmit Key Presses On Syntax Hexadecimal 0xFE 0x41 Decimal 254 65 ASCII 254 A Description In this mode all ...

Страница 42: ... cleared 0 If there are no buffered key presses then the returned code will be 0x00 Please note that to make use of this command the Auto Transmit Key Presses mode should be off NOTE This command is not available in I2C To read keys in I2C mode one just needs to address the module and read a byte No preceding commands are necessary If there are no keys pressed the read will result in a 0x00 Rememb...

Страница 43: ...tches will bounce for a varying time depending on their physical characteristics The time value is in increments of 6 554ms The default debounce time for the module is 8 about 52ms which is adequate for most membrane keypads Remembered Yes Default 8 9 7 Set Auto Repeat Mode Syntax Hexadecimal 0xFE 0x7E mode Decimal 254 126 mode ASCII 254 mode Parameters Parameter Length Description mode 1 Auto Rep...

Страница 44: ... key is held down the key code is transmitted immediately and no other codes will be sent until the key is released On the release of the key the key release code transmitted will be a value equal to the key down code plus 20 hex Remembered Yes Examples When the key code associated with key P 0x50 is pressed the release code is p 0x70 In RS 232 polled mode or via the I2C the Key Down Key Up codes ...

Страница 45: ...ay settings which allow for control over clearing the screen changing the brightness and contrast or setting timers for turning it on or off The combination of these allow you complete software control over your display s appearance 10 2 Display On Syntax Hexadecimal 0xFE 0x42 min Decimal 254 66 min ASCII 254 B min Parameters Parameter Length Description min 1 Minutes before turning the display on...

Страница 46: ...ness If the remember function is on this command acts the same as Set and Save Brightness Remembered Yes Default 255 10 5 Set and Save Brightness Syntax Hexadecimal 0xFE 0x98 brightness Decimal 254 152 brightness Parameters Parameter Length Description brightness 1 Backlight setting 0 to 255 Description This command sets and saves the display brightness as default Remembered Always 10 6 Set Contra...

Страница 47: ... meaning eight contrast settings will have the same single effect Efectively values 0 through 7 8 through 15 and so on will result in the same setting Remembered Yes Default 128 10 7 Set and Save Contrast Syntax Hexadecimal 0xFE 0x91 contrast Decimal 254 145 contrast Parameters Parameter Length Description contrast 1 Contrast value 0 to 255 Description This command sets the display s contrast to c...

Страница 48: ...r Description This command allows you to switch the remember function on and off To use the remember function set remember to on then set all of the settings that you wish to save settings that are listed as Remember Yes support being saved into the non volatile memory After you have set all of the commands that you wish to save you may then cycle the power and check the display settings to ensure...

Страница 49: ...n this bit is set 1 the Baud Rate and I2C Slave address are locked 4 Setting Lock When this bit is set 1 the display settings such as backlight contrast and GPO settings are locked Internal EEPROM 5 Reserved Should be left 0 6 Command Lock When this bit is set 1 all commands but commands 202 203 are locked cmd lock 7 Display Lock When this bit is set 1 the module is locked from dis playing any new...

Страница 50: ...h Description data 16 Writes the customer data Description Writes the customer Data 16 Bytes of data can be saved in non volatile memory Remembered No 11 6 Read Customer Data Syntax Hexadecimal 0xFE 0x35 Decimal 254 53 ASCII 254 5 Description Reads whatever was written by Write Customer Data Remembered No 12 Miscellaneous 12 1 Introduction This chapter covers the Report Version Number and Read Mod...

Страница 51: ...byte representing the version of the module see the following table as an example Hex Value Version Number 0x19 Version 1 9 0x57 Version 5 7 Remembered No 12 3 Read Module Type Syntax Hexadecimal 0xFE 0x37 Decimal 254 55 ASCII 254 7 Matrix Orbital LK202 25 47 Downloaded from Elcodis com electronic components distributor ...

Страница 52: ... LK404 AT 32 MOS AV 162A 33 LK402 12 34 LK162 12 35 LK204 25PC 36 LK202 24 USB 37 VK202 24 USB 38 LK204 24 USB 39 VK204 24 USB 3A PK162 12 3B VK162 12 3C MOS AP 162A 3D PK202 25 3E MOS AL 162A 3F MOS AL 202A 40 MOS AV 202A 41 MOS AP 202A 42 PK202 24 USB 43 MOS AL 082 44 MOS AL 204 45 MOS AV 204 46 MOS AL 402 47 MOS AV 402 48 LK082 12 49 VK402 12 4A VK404 55 4B LK402 25 4C VK402 25 4D PK204 25 4E U...

Страница 53: ...81 ASCII 254 Q 22 Auto Scroll Off Hexadecimal 0xFE 0x52 Decimal 254 82 ASCII 254 R 23 Clear Screen Hexadecimal 0xFE 0x58 Decimal 254 88 ASCII 254 X 23 Changing the Startup Screen Hexadecimal 0xFE 0x40 Decimal 254 64 ASCII 254 23 Set Auto Line Wrap On Hexadecimal 0xFE 0x43 Decimal 254 67 ASCII 254 C 24 Set Auto Line Wrap Off Hexadecimal 0xFE 0x44 Decimal 254 68 ASCII 254 D 24 Set Cursor Position He...

Страница 54: ...data ASCII 254 N refID data 27 Saving Custom Characters Hexadecimal 0xFE 0xC1 Bank ID Data Decimal 254 193 Bank ID Data 28 Loading Custom Characters Hexadecimal 0xFE 0xC0 Bank Decimal 254 192 Bank 29 Save Startup Screen Custom Characters Hexadecimal 0xFE 0xC2 refID data Decimal 254 194 refID data 29 Initialize Medium Number Hexadecimal 0xFE 0x6D Decimal 254 109 ASCII 254 m 30 Place Medium Numbers ...

Страница 55: ...adecimal 0xFE 0x57 Num Decimal 254 87 Num ASCII 254 W Num 33 Set Startup GPO state Hexadecimal 0xFE 0xC3 Num state Decimal 254 195 Num state 34 13 5 Dallas 1 Wire Description Syntax Page Search for a 1 Wire Device Hexadecimal 0xFE 0xC8 0x2 Decimal 254 200 2 34 Dallas 1 Wire Transaction Hexadecimal 0xFE 0xC8 0x1 flags SndBits RcvBits Data Decimal 254 200 1 flags SndBits RcvBits Data 35 13 6 Keypad ...

Страница 56: ...ns Description Syntax Page Display On Hexadecimal 0xFE 0x42 min Decimal 254 66 min ASCII 254 B min 41 Display Off Hexadecimal 0xFE 0x46 Decimal 254 70 ASCII 254 F 42 Set Brightness Hexadecimal 0xFE 0x99 brightness Decimal 254 153 brightness 42 Set and Save Brightness Hexadecimal 0xFE 0x98 brightness Decimal 254 152 brightness 42 Set Contrast Hexadecimal 0xFE 0x50 contrast Decimal 254 80 contrast A...

Страница 57: ...254 55 ASCII 254 7 47 13 10 Command By Number Command DescriptionPage Hex Dec ASCII 0x26 38 Poll Key Press 38 0x33 51 3 Changing the I2C Slave Address 18 0x34 52 4 Write Customer Data 46 0x35 53 5 Read Customer Data 46 0x36 54 6 Read Version Number 47 0x37 55 7 Read Module Type 47 0x39 57 9 Changing the Baud Rate 19 0x3D 61 Place Vertical Bar 32 0x40 64 Changing the Startup Screen 23 0x41 65 A Aut...

Страница 58: ...peat Mode Off 40 0x68 104 h Initialize Horizontal Bar 31 0x6D 109 m Initialize Medium Number 30 0x6F 111 o Place Medium Numbers 30 0x73 115 s Initialize Narrow Vertical Bar 31 0x76 118 v Initialize Wide Vertical Bar 32 0x7C 124 Place Horizontal Bar Graph 31 0x7E 126 Set Auto Repeat Mode 39 0x91 145 Set and Save Contrast 43 0x93 147 Set Remember 44 0x98 152 Set and Save Brightness 42 0x99 153 Set B...

Страница 59: ...ide Voltage with Efficient Switching Power Supply VPT Supply Voltage 5Vdc 0 25V 9V to 15V 9V to 35V Minimum Current 40mA typical Backlight On YG IY FY add 130mA 170 mA typical Backlight On R FG FA add 150mA 190 mA typical Backlight On GW WB FW FB add 60mA 100 mA typical 14 2 Optical Characteristics Table 70 Optical Characteristics Character x Lines 20 columns x 2 rows Module Size 116 00 mm x 37 00...

Страница 60: ...NOTE To prolong life it is recommended that the backlight be turned off when the display is not in use Matrix Orbital LK202 25 56 Downloaded from Elcodis com electronic components distributor ...

Страница 61: ...14 3 Physical Layout Figure 23 Physical Diagram Matrix Orbital LK202 25 57 Downloaded from Elcodis com electronic components distributor ...

Страница 62: ... FA Amber Black FB Blue Black FG Green Black FW White Black FY Yellow Black FFSTN 7 Input Voltage NP Standard 4 75 5 25V V Extended Votlage 9 00 15 0V 8 Temperature NP Standard 0 C to 50 C E Extended Temperature 20 C to 70 C Table 72 Part Options NOTE Also available with a Vaccum Florescent Display in the VK202 25 model 14 5 Definitions E Extended Temperature 20C to 70C VPT Wide Voltage with Effic...

Страница 63: ...ting Matrix Orbital Telephone Sales 1 403 229 2737 Support 1 403 207 3750 On The Web Sales http www MatrixOrbital com Support http www MatrixOrbital ca Forums http www lcdforums com 14 7 Revision History Table 73 Revision History Revision Description Author 3 0 Initial Manual Matrix Orbital 3 1 Updated Backlight Life Clark Matrix Orbital LK202 25 59 Downloaded from Elcodis com electronic component...

Отзывы: