background image

Figure 20: Poll Timing

4.5.3 Auto Transmit Keypresses On (254 65) (R)

In this mode, all keypresses are sent immediately to the host system without the use of the poll keypad

command. This is the default mode on power up.

4.5.4 Auto Transmit Keypresses Off (254 79) (R)

In this mode, up to 10 keypresses are buffered until the unit is polled by the host system via the poll

keypad command. Issuing this command places the unit in polled mode.

4.5.5 Clear Key Buffer (254 69)

This command clears any unread keypresses. In a menuing application, if the user presses a key which

changes the menu context, any following key presses may be inaccurate and can be cleared out of the buffer

between menu changes to prevent jumping around the menu tree. It may also be used to, in effect, reset the

keypad in case the host application resets for whatever reason.

4.5.6 Poll Keypad (254 38)

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 display 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). If this is the only buffered keypress,

then the MSB will be reset (0). If there are no buffered keypresses, then the returned code will be 0x00.

Please note to make use of this command, the "Auto transmit keypress" mode should be off.

4.5.7 Set Debounce Time (254 85 [time]) (R)

[time] is in increments of 6.554 milliseconds.

Matrix Orbital

PK162-12

19

Содержание PK162-12

Страница 1: ...PK162 12 Technical Manual Revision 1 0...

Страница 2: ...te Serial Connection 9 2 1 8 TTL Communications 10 2 1 9 I2C Communications 10 2 1 10 ACK 10 2 2 General Purpose Outputs 11 3 Displaying Text 12 3 1 General 13 3 2 The built in Character Font 13 3 3 W...

Страница 3: ...lumn row dir length 21 5 1 6 Define Custom Character 254 78 c 8 bytes 21 5 1 7 Initialize Medium Digits 254 109 23 5 1 8 Draw Medium Digits 254 111 row column digit 23 6 Miscellaneous Commands 23 6 1...

Страница 4: ...28 7 3 1 ASCII Characters 29 7 4 Text Commands 30 7 5 Keypad Interface Commands 31 7 6 Bar Graphs and Special Characters 32 7 7 Miscellaneous Commands 33 8 Appendix Specifications and Options 35 8 1...

Страница 5: ...application This controller is responsible for what is displayed on the screen of the display The display provides a simple command structure to allow text and bar graphs to be displayed on the screen...

Страница 6: ...will be required Figure 1 Connections for Testing 1 Refer to the Figure above for the following steps 2 Wire the connector to the power supply On most connectors the RED lead will go to 5V and the BLA...

Страница 7: ...ious section 2 With the display connected to the PC plug the keypad in If the connector has fewer pins than the one on the display center it as well as possible NOTES The keypad connector must be wire...

Страница 8: ...lace jumper on the above pins 1 8 Memory Chip Lock Down The display uses a memory chip to store speed start up screen contrast I2C setting and other settings When everything has been changed to the de...

Страница 9: ...on 2 Connections 2 1 Connector Pinout Refer to the Figure below for this chapter Figure 4 Electrical Connections The display has four connectors Table 1 Connectors Functions Connector Function 14 Pin...

Страница 10: ...less aware of the modifications required Do not apply power to the DB 9 connector AND the power con nector Do not apply more than 5Vdc to pin 9 on the DB 9 con nector 2 1 2 Five Volt Modules If the di...

Страница 11: ...The 12 volt power cable is designed for use with wide voltage range display modules mounted in a PC Wiring required for the 12 volt power connector is shown in the Figure below Figure 7 Wiring for 12...

Страница 12: ...er 2 1 5 RS 232 Communications The RS 232 connector on the PC cable is wired so that a standard straight through 9 pin D sub cable may be used to connect the module to a standard serial port such as C...

Страница 13: ...2 1 7 Alternate Serial Connection An optional alternate connection header is provided to allow one cable for data and power Two jumpers will have to be soldered and two removed Figure 11 RS 232 SIPs C...

Страница 14: ...yte which was not received To fully understand the reasons for this one needs to understand how a Matrix Orbital module processes data Basically the reason why a Matrix Orbital module might fail to re...

Страница 15: ...by I2C two jumpers have to be set into the I2C position left of the power SIP connector The I2C setting is default on the display Figure 14 RS 232 SIPs Connector pinout is as follows Figure 15 Power C...

Страница 16: ...of 240ohms or more the corresponding resistor may be shorted 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 exter...

Страница 17: ...includes a built in 5x8 dot matrix font with the full range of ASCII characters plus a variety of extended characters Figure 18 Character Set In addition to the built in characters users may define u...

Страница 18: ...ied by their names and decimal values Some commands marked with an R may be remembered to set new defaults that will be in effect each time the unit is powered on 3 4 1 Auto Line Wrap On 254 67 R Enab...

Страница 19: ...s off the underline cursor Does not affect the blinking block cursor 3 4 9 Turn on Blinking Cursor 254 83 R Turns on the blinking block cursor The cursor shows the current text insertion point Both bl...

Страница 20: ...keypad has no effect on the display To send keystrokes to the display they must be routed through the controller Whenever a columns and a row pin are shorted together a keystroke will be generated an...

Страница 21: ...e of the center of the connector In situations where the keypad isn t wired this way an adapter will need to be made or the user should rewire the connector to meet this requirement 4 3 I2C Interface...

Страница 22: ...the I2 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 sy...

Страница 23: ...nges to prevent jumping around the menu tree It may also be used to in effect reset the keypad in case the host application resets for whatever reason 4 5 6 Poll Keypad 254 38 This command returns any...

Страница 24: ...nce the same 8 characters are used for each function the functions may not be used simultaneously The characters may be defined or redefined at any time by issuing the commands shown in this section O...

Страница 25: ...n may range from 0x01 to 0x14 and length may be from 0x00 to 0x64 0 to 100 if the graph can extend the full width of the screen Each column is 5 pixels wide spaces between the columns don t count dir...

Страница 26: ...11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Cursor Line NOTE Custom characters will be erased if any of the Initialize bar graph commands are issued Exam...

Страница 27: ...r don t readily fit in any of the other categories or are used in more than one category Some commands marked with an R may be remembered to set new defaults that will be in effect each time the unit...

Страница 28: ...lay 254 88 This command clears the display and resets the text insertion point to the top left of the screen 6 1 3 Display On 254 66 minutes R This command turns on the display on for a time of minute...

Страница 29: ...0x00 and 0xFF between 0 and 255 The higher the number is the brighter the display will appear 6 1 7 Set brightness and save 254 152 brightness R This command works in exactly the same way as the Set b...

Страница 30: ...1 0x06 LCD4041 0x07 LK202 25 0x08 LK204 25 0x09 LK404 55 0x0A VFD2021 0x0B VFD2041 0x0C VFD4021 0x0D VK202 25 0x0E VK204 25 0x0F GLC12232 0x10 GLC24064 0x13 GLK24064 25 0x15 GLK12232 25 0x22 PK162 12...

Страница 31: ...d an almost empty message 0xFF when the buffer contents drop to a defined level 6 2 1 Enter Flow Control Mode 254 58 full empty NOTE Flow control applies only to the RS 232 interface It is not availab...

Страница 32: ...ds can be issued to the display by means of a BASIC program using the chr function In the tables below we ve shown commands in hex ASCII and decimal form All commands begin with the prefix character 0...

Страница 33: ...veral schemes were developed to map written characters to numeric values One such scheme has become universal the American Standard Code for Information Interchange or ASCII ASCII tables are readily a...

Страница 34: ...ng Auto scroll on FE 51 254 81 254 Q On R Enables scroll at bottom of screen Text will push display up one line to make room for new line Auto scroll off FE 52 254 82 254 R Off R Disables auto scroll...

Страница 35: ...e beginning of a line it will move to the end of the other line Cursor right FE 4D 254 77 254 M Moves the cur sor one position to the right If the cursor is already at the end of a line it will move t...

Страница 36: ...press Set debounce time FE 55 time 254 85 time 254 U time 52 ms R Resolution 1 0 6554 ms time is a numeric mul tiplier 7 6 Bar Graphs and Special Characters The commands in this section are used to d...

Страница 37: ...h 254 124 c r d length 254 c r d length Draws a horizontal bar graph start ing at column c on row r with di rection d 0 is right 1 is left of length length Length is measured in pixels 0x00 to 0x64 if...

Страница 38: ...l Purpose Output Off FE 56 gpo 254 86 gpo 254 V gpo Off Turns a general purpose output OFF gpo may be from 1 to 6 General Purpose Output On FE 57 gpo 254 87 gpo 254 W gpo Off Turns a general purpose o...

Страница 39: ...yte display buffer When buffer reaches full display will return 0xFE to host When buffer reaches empty display will return 0xFF Exit Flow Control Mode FE 3B 254 59 254 Turns off flow control 8 Appendi...

Страница 40: ...s on 24 mA typical Table 26 Optical Characteristics Number of Characters 32 16 characters by 2 lines Matrix format 5 x 8 with underline Display Area 56 0 x 13 8 mm XxY Character Size 2 67 x 5 01 mm Xx...

Страница 41: ...Figure 21 Physical Layout 8 2 Options Table 27 Options Available on PK162 12 Extended Temperature E Wide Voltage V 9 Appendix Glossary Table 28 Appendix Glossary Matrix Orbital PK162 12 37...

Страница 42: ...ts CCFL Cold Cathode Fluorescent Lamp A high brightness backlighting source consists of a fluorescent tube pow ered by a high voltage A C source Configuration The way a system is set up or the assortm...

Страница 43: ...o or more molecules combine to form larger molecules PLEDs are thin film displays that are created by sand wiching an undoped conjugated polymer between two proper electrodes at a short distance The p...

Страница 44: ...Version Number This refers to the firmware revision number of the module Volatile Memory Temporary memory Once the power supply is turned off volatile memory is then erased Matrix Orbital PK162 12 40...

Отзывы: