background image

LK202-24-USB rev 1 

13

GPO 4, GPO 5 and GPO 6 

The LK204-22-USB has three high current general purpose outputs. These are provided to control both 
electromechanical and electronic devices. This allows external devices to be turned on or off using your PC 
or controller and software commands. (See sections 5.1.10 and 5.1.11 for the command syntax.) 

Each output is wired as shown in Figure 2-3. MOSFET electronic switches can connect any of the 3 GPO 
header pins to ground. Displaying Text 

GPOs can control 12V or 5Vdevices depending on the jumper selection. Maximum allowable current is 750 
mA per GPO at 12V and 750mA a 5V (CAUTION, 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 power GPOs with +5V selection, note that the USB host can 
provide a maximum of 500mA on a high power host and 150mA on a low power host.  The +12V line will 
be taken from your systems power supply so there should not be any need to be concerned with using more 
current then the power supply can supply. But exercise caution with the +5V line. Damage may result to 
your motherboard or USB controller and will not be covered under any warranty from Matrix Orbital. 

 

+5V Low Power GPO 

+12V High Power GPO 

 

 

 

 

2.3 General 

Text is displayed on the LK202-24-USB using the built-in 5 x 7 dot matrix font (plus up to 8 user-defined 
characters. 

Содержание LK202-24-USB

Страница 1: ...LK202 24 USB rev 1 1 LK202 24 USB User Manual...

Страница 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...

Страница 3: ...LK202 24 USB rev 1 3 8 2 Options 33 9 Appendix Glossary 34 Revisions Version 1 0 November 10 2002...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 36: ...LK202 24 USB rev 1 36...

Отзывы: