background image

LK202-24-USB rev 1 

10

Warning:

 

 

When using the Alternate USB Header, verify all the cable pin outs before applying power. Incorrect 
power application may damage the display.  

 

Make sure the host is capable of supplying all the necessary power. Add the LCD power requirement 
and the GPO power if used for a total power requirement. 

 

The LK202-24-USB has a secondary power connector used for High Power GPOs. Only if you are planning 
on using GPO 4, GPO 5 and GPO 6 as 12V should you plug in a unmodified 3.5” floppy power cable. 

 

 
 

 

 

Figure 2-2 Power connector 

 

+12 GND GND +5

1     2     3     4

 

Pin 1 

+12.0 VDC (normally from PC 
power supply) 

Pin 2 

Ground 

Pin 3 

Ground 

Pin 4 

+ 5.0 VDC (normally from PC 
power supply) 

Make sure you have sufficient current capacity to handle the desired load. Each High Power GPO can 
source over 750mA.   

 

 

2.1.2 USB Communications 

A standard B type USB header is provided on the LK202-24-USB for USB communication. The USB cable 
provides power and data to the LCD. There is two ways of communicating to the LCD. Under Windows, 
you can have direct access to the LCD by drivers or create a Virtual COM Port (VCP). With the VCP, a 
new COM Port gets created in Windows. Under the control panel you can set all the options for the USB 
device, including speed. (By changing the speed, you will have to change the speed in the LCD also, so you 
have to change the speed settings in two places). Windows 98, Windows ME, Windows 2000 and Windows 
XP drivers have been tested and work. VCP drivers are also available for Apple OS-X, OS-8 and OS-9. 
Linux drivers are available as well, but have not been testing by us nor will we be able to provide any 
support for them. 

Summary of Contents for LK202-24-USB

Page 1: ...LK202 24 USB rev 1 1 LK202 24 USB User Manual...

Page 2: ...13 3 2 The Built In Character Font 14 3 3 Writing Text to the Display 14 3 4 Text Commands 15 4 Keypad Interface 17 4 1 General 17 4 2 Connections 17 4 4 USB Interface 18 4 5 Keypad Commands 18 5 Bar...

Page 3: ...LK202 24 USB rev 1 3 8 2 Options 33 9 Appendix Glossary 34 Revisions Version 1 0 November 10 2002...

Page 4: ...simple command structure to allow text and bar graphs to be displayed on the screen Text fonts are built in and use standard ASCII mapping Provision is made for up to 8 user defined characters The scr...

Page 5: ...the driver install to your directory 4 Test the LCD Now you re ready to try it out 1 5 Trying Out your LK202 24 USB The unit is connected to power and the PC and the backlight is on You re ready to ma...

Page 6: ...plug in your keypad If your connector has fewer pins than the one on the LK202 24 USB center it as well as possible Note 1 The keypad connector must be wired with columns on one side and rows on the...

Page 7: ...n off the display 3 Put a jumper on pins 6 and 7 of the keypad connector 4 Power up the display The baud rate is now set to 19 200 5 Remove the jumper and change the RS 232 port settings to the desire...

Page 8: ...o no settings can be changed might be desirable This is only to be done by knowledgeable people Any damage to the display by this procedure resulting from user error will no be covered under warrantee...

Page 9: ...Power USB High power ports can supply 500mA of power and low power devices such as un powered hubs can only supply 150mA of power Please make sure you observe the total power usage on the LCD when co...

Page 10: ...ent capacity to handle the desired load Each High Power GPO can source over 750mA 2 1 2 USB Communications A standard B type USB header is provided on the LK202 24 USB for USB communication The USB ca...

Page 11: ...ng your PC or controller and software commands See sections 5 1 10 and 5 1 11 for the command syntax The LK202 24 USB has 2 types of GPOs low and high power GPO 1 2 and 3 are refered to as Low Power G...

Page 12: ...orted Solder a small jumper wire wirewrap wire is good from the feed through hole to the corresponding negative pin for the GPO in question Note The GPOs do not have any over current or over under vol...

Page 13: ...TION only if your USB host can supply enough current which allows the GPOs to be used for controlling fans stepper motors etc directly without the need for a relay in many cases When using the high po...

Page 14: ...ions 0x00 to 0x07 in the above chart The LK202 24 USB does not have provision to download other fonts 2 5 Writing Text to the Display When the display receives a character it displays that character a...

Page 15: ...n the text reaches the scroll position the bottom right character position 2 6 4 Auto scroll off 254 82 R When auto scrolling is disabled text will wrap to the top left corner of the display area Exis...

Page 16: ...ote that this command moves the text insertion point even if the cursor is turned off Note A destructive backspace which erases the character to the left of the original position may be done by issuin...

Page 17: ...r The returned key codes are as follows but note that your keypad may be laid out in a different pattern If this is the case you will need to interpret the key codes differently The diagram 1 shows th...

Page 18: ...sing the I C interface 2 Key down Key up codes This mode may be used when the typematic parameters of the Resend Key code mode are unacceptable or if the unit is being operated in polled mode The host...

Page 19: ...rns any unbuffered keypresses via the RS 232 interface The host system must be set up to receive the key codes When the LK202 24 USB receives this command it will immediately return any unbuffered key...

Page 20: ...be lost Once this command has been issued any number of vertical bar graphs may be drawn unless the characters are redefined by another command 4 1 3 Draw vertical bar graph 254 61 column height Draws...

Page 21: ...LSB 1 2 3 4 5 Data Byte 1 6 7 8 9 10 Data Byte 2 11 12 13 14 15 Data Byte 3 16 17 18 19 20 Data Byte 4 21 22 23 24 25 Data Byte 5 26 27 28 29 30 Data Byte 6 31 32 33 34 35 Data Byte 7 36 37 38 39 40 D...

Page 22: ...cimal Hex Function 254 147 1 FE 93 01 Turn on remember function 254 81 FE 51 Turn on auto scroll Since remember is ON this setting will be saved in non volatile memory 254 147 0 FE 93 00 Turn off reme...

Page 23: ...ight Brightness command The only difference is that it saves the brightness value in the non volatile memory of the module whereas the previous command only changes the value until the next power down...

Page 24: ...d speeds are shown in the table below The speed 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...

Page 25: ...LK202 24 USB rev 1 25 5 1 16 Read Version Number 254 54 This command will return the firmware version number of the LK202 24 USB It will be a one byte hex value...

Page 26: ...fined baud rate For example using BASIC in a test setup you could issue the command to clear the screen on the LK202 24 USB by including the line PRINT 1 chr 254 chr 88 Or with C you could using Zcomm...

Page 27: ...acceptable values are 0 to 6 All such parameters must use numeric values i e the actual byte values If we send the ASCII number 0 by mistake it will actually give the value 48 decimal 30 hex to the p...

Page 28: ...ht FE 4D 254 77 254 M Moves the cursor one position to the right If the cursor is already at the end of a line it will move to the beginning of the other line 6 5 Keypad Interface Commands Note The le...

Page 29: ...ser character set to make narrow vertical bar graphs Initialize horizontal bar graph FE 68 254 104 254 h Initializes the user character set to make horizontal bar graphs Define custom character FE 4E...

Page 30: ...FF 255 Same as set brightness but saves brightness into memory Backlight on FE 42 minutes 254 66 minutes 254 B minutes on R Backlight will stay on for minutes If minutes 0 backlight will stay on perma...

Page 31: ...LK202 24 USB rev 1 31 Read Serial Number FE 35 254 53 254 5 Reads the two byte serial number of the module Read Version Number FE 36 254 54 254 6 Reads the firmware version number of the module...

Page 32: ...rent 35 mA typical Supply Backlight Current 115 mA typical Optical Characteristics Number of Characters 40 20 characters by 2 lines Matrix format 5 x 7 with underline Display Area 82 2 x 18 20 mm XxY...

Page 33: ...202 24 USB rev 1 33 Figure 7 1 Physical Layout 7 2 Options Options Available on LK202 24 USB Inverse Blue with White Backlight WB Inverse Yellow IY Inver Red R Gray Glass and White backlight ice blue...

Page 34: ...e or software or the combination of both Contrast The ratio of luminance between the light state of the display to the dark state of the display Controller The microcontroller or PC used to control th...

Page 35: ...S 232 Short for recommended standard 232C a standard interface approved by the Electronic Industries Association EIA for connecting serial devices Scroll To view consecutive lines of data on the displ...

Page 36: ...LK202 24 USB rev 1 36...

Reviews: