1.2 What it Does Not Do ........................4 1.3 Keypad Interface..........................4 1.4 Setup for Testing ..........................4 1.5 Trying Out your VK202-25 ......................5 1.6 Trying out a Keypad ......................... 6 1.6.1 Here's what to do: ........................6 1.7 To Reset the module ................ Error! Bookmark not defined.
Page 3
7.5 Keypad Interface Commands......................28 7.6 Bar Graphs and Special Characters ....................29 7.7 Miscellaneous Commands ......................30 8. Appendix: Specifications and Options................32 8.1 Specifications..........................32 8.2 Options ............................33 9. Appendix: Glossary....................... 34 VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
C port to the associated controller. Note that the keypad is not used to directly control any aspect of the operation of the VK202-25, which acts simply as a matrix to serial converter. If you want to use the keypad to control the VK202-25 display you must program your controller accordingly.
3. Connect the VK202-25 to the PC using the serial cable and adapter if required. Make sure the RS-232 cable includes the required ground lead. There must be no voltage differential between the RS- 232 ground and the power supply ground.
If you want to exercise some of the other features of the VK202-25 you'll need to write a program (in any convenient language such as Basic or C) to issue the required command strings. Most terminal programs are unable to issue the 0xFE character needed as a command prefix.
Page 7
Remove the jumper and change the RS-232 port settings to the desired baud rate. Turn off the display. Power up the display. Refer to the “Set RS-232 Port Speed” command (section 6.1.10) for acceptable baud rates. VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
Do not apply any power with reversed polarization. Do not apply any voltage other than the specified voltage. Do not use any cables other than the cables supplied by Matrix Orbital, unless you are aware of the modifications required. Do not apply voltage to the DB-9 connector AND power connector Do not apply more than +5Vdc to pin #9 on the DB-9 connector.
Page 9
2.1.1.1 Five Volt Modules If the VK202-25 is used in a PC it is tempting to plug a spare power connector into the unit. Don't do this! Wiring for the PC power connector and that required for the VK202-25 are different as shown in Figure 2-3 below.
Figure 2-5 Wiring for 12 volt modules If you don't want to modify cable wiring yourself, Matrix Orbital can supply an adapter cable designed to use with the display module when it's installed in a PC. The cable is wired as shown in Figure 2-6 below.
Matrix Orbital module processes data. Basically the reason why a Matrix Orbital module might fail to receive a byte correctly is that it was unable to process the byte previous before the failed byte was transmitted. Because the module cannot possibly know that it would be unable to store the byte before the next byte was received it cannot know to not ACK.
Page 12
Note: The GPOs do not have any over current or over/under voltage protection so care must be taken when using them. For instance if the external device is a relay it must be fully clamped (using a diode and capacitor) to absorb any generated back electro-motive force (EMF). VK202-25 rev. 05 Downloaded from Elcodis.com...
This chapter describes the various text-display commands in detail. A quick reference summary of all text commands is found in section 7.4. 3.1 General Text is displayed on the VK202-25 using the built-in 5 x 7 dot matrix font (plus up to 8 user-defined characters. 3.2 The Built-In Character Font The VK202-25 includes a built-in 5 x 7 dot matrix font with the full range of ASCII characters plus a variety of extended characters, as shown in Figure 3-1.
3.4.3 Auto scroll on (254 81) When auto scrolling is on, it causes the VK202-25 to shift the entire display’s contents up to make room for a new line of text when the text reaches the scroll position (the bottom right character position).
Moves the cursor one position to the right but does not erase any character that may be in that position. Note that this command moves the text insertion point even if the cursor is turned off. VK202-25 rev. 05 Downloaded from Elcodis.com...
The VK202-25 keypad interface processes the keypad row/column matrix into a serial (RS-232 or I C) data byte stream. Aside from this processing, the keypad has no effect on the VK202-25 display. If you need to send keystrokes to the display, they must be routed through your controller.
This behavior can be modified using commands found in the next section. 4.5 Keypad Commands Before issuing commands to the VK202-25 please read sections 7.2 and 7.3. 4.5.1 Auto repeat mode on (254 126 [mode]) [mode] = 0x00 gives Resend Key Code mode [mode] = 0x01 gives Key down / Key up code mode Two Modes of auto repeat are available and are set via the same command.
This command returns any unbuffered keypresses via the RS - 232 interface. The host system must be set up to receive the key codes. When the VK202-25 receives this command it will immediately return any unbuffered keypresses which may have not been read already. If there is more than one keypress buffered, then the high order bit (MSB) of this returned keycode will be set (1).
[dir] specifies the direction: 0x00 goes from left to right, 0x01 goes from right to left. 5.1.6 Define custom character (254 78 [c] [8 bytes]) The VK202-25 allows up to 8 user defined (custom) characters. These characters occupy the first 8 (0x00 to 0x07) places in the character set (see Figure 3-1).
Page 21
Once defined, a character is displayed simply by issuing a value (0x00 to 0x07) corresponding to the character number. The character will be laid out as follows: Cursor Line Note: Custom characters will be erased if any of the "initialize bar graph" commands are issued. VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
This command turns the display of the VK202-25 off. 6.1.5 Load startup screen (254 64 [40 characters]) This command sets and memorizes the startup screen that will appear each time the VK202-25 is turned on. By default the screen shows:...
For example if the I²C write address is set to 0x50, then the read address is 0x51. The change in address is immediate. This address is 0x50 by default, and is reset temporarily back to that value when the "Manual Over-ride" jumper is used. VK202-25 rev. 05 Downloaded from Elcodis.com...
6.1.13 Read Version Number 254 54) This command will return the firmware version number of the VK202-25 as a 1 byte hex value over RS232 only. 6.2 Flow Control The VK202-25 has built-in flow control which may be useful when long strings of text are downloaded to the display.
7.2 Issuing Commands Commands are issued to the VK202-25 by the controller. In a test setup, commands can be issued to the VK202-25 by means of a BASIC program, using the chr$( ) function. In the tables below, we've shown commands in hex, ASCII and decimal form.
57 decimal or 39 hex This gives rise to the possibility of confusion when parameters are being set on the VK202-25 For example, the GPO ON and OFF commands use a number to indicate which GPO is being controlled. We're told that acceptable values are 0 to 6.
Set debounce time FE 55 [time] 52 ms Resolution: 1 = 0.6554 ms [time] is a numeric 254 85 [time] multiplier. 254 'U' [time] VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
[d] (0 is right, 1 is left) of length [length]. Length 254 '|' [c][r][d][length] is measured in pixels (0x00 to 0x64 if starting in column 1). User must first use the 'h' command to initialize characters. VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
This will return a 1 byte hex value. 254 '6' Enter flow control FE 3A [full] [empty] Sets "full" and "empty" marks for the 80 byte mode 254 58 [full] [empty] display buffer. When buffer reaches [full] VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
Page 31
254 ':' [full] [empty] display will return 0xFE to host. When buffer reaches [empty] display will return 0xFF. Exit flow control FE 3B Turns off flow control. mode 254 59 254 ';' VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
Character Pitch 3.6 mm Line pitch 6.1 mm Dot Size 0.4 x 0.5 mm (XxY) Dot Pitch 0.5 x 0.7 mm (XxY) Luminance 350cd/m² (100fL) min. Color of Illumination Bluish Green VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
Figure 8-1 Physical Layout 8.2 Options Options Available on VK202-25 Extended Temperature Wide Voltage VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
The ratio of luminance between the light state of the display to the dark state of Contrast the display. Controller The microcontroller or PC used to control the Matrix Orbital display unit. The designation of a connector used in the RS232 interface: 9 pin connector DB-9 Firmware Software (programs or data) that has been written onto read-only memory (ROM).
Page 35
Version This refers to the firmware revision number of the module. Number Volatile Temporary memory. Once the power supply is turned off volatile memory is Memory then erased. VK202-25 rev. 05 Downloaded from Elcodis.com electronic components distributor...
Need help?
Do you have a question about the VK202-25 and is the answer not in the manual?
Questions and answers