background image

PK202-25

Technical Manual

Revision: 4.0

Summary of Contents for PK202-25

Page 1: ...PK202 25 Technical Manual Revision 4 0 ...

Page 2: ...when power is applied 14 3 2 The display module is not communicating 15 3 3 The display module is communicating however text cannot be displayed 15 4 Communications 15 4 1 Introduction 15 4 1 1 I2C Communication 16 4 1 2 Serial Communication 16 4 2 Changing the I2C Slave Address 16 4 3 Changing the Baud Rate 17 4 4 Setting a Non Standard Baud Rate 18 5 Text 19 5 1 Introduction 19 5 1 1 Character S...

Page 3: ... 6 11 Initialize Wide Vertical Bar 30 6 12 Place Verticle Bar 31 7 General Purpose Output 31 7 1 Introduction 31 7 2 General Purpose Output Off 32 7 3 General Purpose Output On 32 7 4 Set Startup GPO state 33 8 Dallas 1 Wire 33 8 1 Introduction 33 8 2 Search for a 1 Wire Device 33 8 3 Dallas 1 Wire Transaction 34 9 Keypad 35 9 1 Introduction 35 9 2 Auto Transmit Key Presses On 36 9 3 Auto Transmit...

Page 4: ...ary 46 13 1 Communications 46 13 2 Text 47 13 3 Special Characters 48 13 4 General Purpose Output 49 13 5 Dallas 1 Wire 50 13 6 Keypad 50 13 7 Display Functions 51 13 8 Data Security 51 13 9 Miscellaneous 51 13 10Command By Number 52 14 Appendix 53 14 1 Specifications 53 14 1 1 Environmental 53 14 1 2 Electrical 54 14 2 Optical Characteristics 54 14 3 Physical Layout 55 14 4 Definitions 56 14 5 Co...

Page 5: ...controlled Additionally up to thirty two custom characters such as character sets for bar graphs medium and large numbers may be stored in the non volatile memory to be easily recalled and displayed at any time The PK202 25 comes in extended voltage and temperature options to allow you to select the display which will best fit your project needs 1 1 Accessories NOTE Matrix Orbital provides all the...

Page 6: ...Figure 2 12V Power Cable Adapter V VPT Models Figure 3 Breadboard Cable Matrix Orbital PK202 25 2 ...

Page 7: ...Figure 4 Serial Cable 4FT Figure 5 Communication and 5V Power Cable Matrix Orbital PK202 25 3 ...

Page 8: ...Figure 6 Aluminum Mountings Figure 7 Keypad Mountings Matrix Orbital PK202 25 4 ...

Page 9: ...Figure 8 Mounting Kits Figure 9 4X4 Keypad Matrix Orbital PK202 25 5 ...

Page 10: ...vailable Built in font with provision for up to 8 user defined characters Use of up to 127 modules on the same 2 wire I2C interface 1 wire bus that is capable of communicating with up to 32 devices over a single bus Fully buffered so that no delays in transmission are ever necessary Ability to add a customized splash startup screen Software controlled contrast and brightness with configurable time...

Page 11: ... follow these easy instructions 1 Plug the serial cable into the com port you wish to use 2 Connect the modified 5V power adapter to a power lead from your PC power supply you will have to open your computer case 3 Connect the serial cable to the DB 9 connector on the back of the display 4 Connect the 5V power adapter to the 4 pin connector on the back of the display WARNING DO NOT use the standar...

Page 12: ...ct 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 Once this infor mation is entered correctly the program can be used to control all functions of the graphic display Comport The serial port the display is plugged in to Baudrate The communication speed the display module is set ...

Page 13: ...e the EIA232 standard signal levels of 12V to 12V It is also possible to communicate at TTL levels of 0 to 5V by setting the Protocol Select Jumpers to TTL As an added feature it is also possible to apply power through pin 9 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 Rx SCL I2C clock Pin 3 Tx SDA I2C d...

Page 14: ...ering the display module The PK202 25 requires five volts for the standard display module between nine to fifteen for the wide voltage V and between nine to thirty five volts for the wide voltage with efficient power supply module VPT The voltage is applied through pins one and four of the four pin Power Data connector Pins two and three are reserved for serial transmission using either the RS 232...

Page 15: ... 232 mode with solder jumps on the 232 jumpers In order to place the display module in I2C mode you must first remove the solder jumps from the 232 jumpers and then place them on the I2C jumpers The display will now be in I2C mode and have a default slave address of 0x50 unless it has been changed Similarly in order to change the display to TTL mode simply remove the zero ohm resistors from the 23...

Page 16: ... and replaced with a Jumper GND MAX 20 mA 5Vdc Figure 17 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 PK202 25 offers a Dallas 1 wire bridge to allow for an additional thirty two 1 wi...

Page 17: ... 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 Figure 19 Manual Override Jumper Table 2 Default Values Brightness 255 Baud Rate 19 2 kbps I2C Slave Address 0x50 Data Lock False RS232AutoTransmitData True NOTE The displa...

Page 18: ...more detailed information see the Keypad Section on page 35 Figure 20 Keypad Interface Connector NOTE The Ground 5V pin is toggled by the jumper to the right of the keypad connec tor Jump 1 2 for 5V or 2 3 for GND 3 Troubleshooting 3 1 The display does not turn on when power is applied First you will want to make sure that you are using the correct power connector Standard floppy drive power cable...

Page 19: ...00 bps If you are communicating to the display via I2C please ensure that the data is being sent to the correct address The default slave address for the display module is 0x50 NOTE I2C communication will always require pull up resistors Finally you may reset the display to it s default settings using the Manual Override Jumper see Section 2 6 on page 13 3 3 The display module is communicating how...

Page 20: ...ssfully been completed However if the buffer has been filled or the module is too busy processing data it will respond with a NAK When performing a multiple byte read within one I2C transaction each byte read from the slave should be followed by an ACK to indicate that the master still needs data and a NAK to indicate that the transmission is over 4 1 2 Serial Communication In addition to being ab...

Page 21: ... higher For example if the I2C write address is set to 0x50 then the read address is 0x51 NOTE The change in address is immediate Remembered Always Factory Default 0x50 4 3 Changing the Baud Rate Syntax Hexadecimal 0xFE 0x39 speed Decimal 254 57 speed ASCII 254 9 speed Parameters Parameter Length Description speed 1 Hex value corrisponding to a baud rate Matrix Orbital PK202 25 17 ...

Page 22: ...28800 19 38400 10 57600 Remembered Always Factory Default 0x50 4 4 Setting a Non Standard Baud Rate Syntax Hexadecimal 0xFE 0xA4 speed Decimal 254 164 speed Parameters Parameter Length Description speed 2 Inputed LSB MSB from baud rate formula 12 2047 Description This command sets the RS 232 port to a non standard baud rate The command accepts a two byte parameter that goes directly into the mod u...

Page 23: ...CrystalSpeed 8 speed 1 The actual baud rate must be within 3 of the intended baud rate for the device to communicate 5 Text 5 1 Introduction The 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 characters and strings that are sent to it which are defined in the current character set The display modul...

Page 24: ...t row Remembered Yes Factory Default On 5 3 Auto Scroll Off Syntax Hexadecimal 0xFE 0x52 Decimal 254 82 ASCII 254 R Description When auto scrolling is disabled the text will wrap to the top left corner of the display area when the text reaches the 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 ...

Page 25: ... wish to display starting from the top left This command will automatically line wrap the characters that are sent to it so to fill the entire display screen you will need to send eighty characters four lines multiplied by twenty rows Remembered Yes 5 6 Set Auto Line Wrap On Syntax Hexadecimal 0xFE 0x43 Decimal 254 67 ASCII 254 C Description Enabling Auto Line Wrap will allow the cursor to automat...

Page 26: ...to the display past the end of a line will be lost Remembered Yes 5 8 Set Cursor Position Syntax Hexadecimal 0xFE 0x47 col row Decimal 254 71 col row ASCII 254 G col row Parameters Parameter Length Description col 1 Column row 1 Row Description This command will allow you to manually set the cursor position which controls the text insertion point by specifying the col and row of the new proposed c...

Page 27: ...n Sending this command will not effect the text displayed on the module however any characters that are sent will over write the current characters that are being displayed Remembered No 5 11 Move Cursor Forward Syntax Hexadecimal 0xFE 0x4D Decimal 254 77 ASCII 254 M Description This command will move the cursor forward one space If this command is sent when the cursor is at the bottom right posit...

Page 28: ... 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 Description This command will cause the to display an underline cursor at the current text insertion point Remembered Yes Matrix Orbital PK202 25 24...

Page 29: ...rn the block cursor off Remembered Yes 6 Special Characters 6 1 Introduction 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 Character reference ID 0 7 data 8 Character data Matrix Orbital PK202 25 25 ...

Page 30: ...nd 78 Next you will have to select the memory location in which 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 ...

Page 31: ...a memory bank you must first create the characters see Creating Custom Characters Once you have created a set of eight custom characters you may then send the command bytes followed by the Bank you wish to store the characters in 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 ...

Page 32: ...s see Section 6 2 on page 25 Remembered Yes 6 6 Initialize Medium Number Syntax Hexadecimal 0xFE 0x6D Decimal 254 109 ASCII 254 m Description This command will load the default medium number characters into the volitile memory If you have stored your own custom medium numbers use the Load Custom Characters command to load your custom char acter data into the volitile memory This command will allow...

Page 33: ...nto the volitile memory If you have stored your own custom horizontal bar data use the Load Custom Characters command instead to load your custom bar data into the volitile memory This command will allow you to use the Place Horizontal Bar command Remembered No 6 9 Place Horizontal Bar Graph Syntax Hexadecimal 0xFE 0x7C Col Row Dir Length Decimal 254 124 Col Row Dir Length ASCII 254 Col Row Dir Le...

Page 34: ...rtical Bar Syntax Hexadecimal 0xFE 0x73 Decimal 254 115 ASCII 254 s Description This command will load the narrow vertical bar characters into the voli tile 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 volitile memory This command will allow you to use the Place Vertical Bar command NOTE Narrow bars...

Page 35: ...s Parameter Length Description Column 1 The column number Length 1 The length of the bar data Description This command will place a bar graph at the specified Column with the specified Length The Length is the size in pixels of the bar graph each row of the is seven pixels tall so to specify a length of two and a half rows use a length value of seventeen Remembered No 7 General Purpose Output 7 1 ...

Page 36: ...utput num NOTE OFF means that the output is ground Remembered Yes 7 3 General Purpose Output On Syntax Hexadecimal 0xFE 0x57 Num Decimal 254 87 Num ASCII 254 W Num Parameters Parameter Length Description Num 1 GPO number Description This command turns ON general purpose output num The standard GPO s on the output 20mA of current at 5V NOTE The output is pulled high Remembered Yes Matrix Orbital PK...

Page 37: ... the GPO Remembered Always 8 Dallas 1 Wire 8 1 Introduction Another convenient feature of the is that it provides a Dallas 1 wire interface in order to readily commu nicate with up to thirty two 1 wire devices on a single bus 1 wire communication is begun by descovering the address of the device that you wish to communicate with To do this you must send the Search for a 1 Wire Device command After...

Page 38: ...address 3 1 0x31 1 Wire Packet 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 Th...

Page 39: ...bility 4 3 Add a CRC8 to the end of the transmitted data 2 0 for future compatibility 1 Assume last received byte is a CRC8 and validate it 0 Reset bus before transaction 1 Wire Error Codes Code 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 supports up to a 25 key matrix style keypad and may be co...

Page 40: ...on power up Remembered Yes Factory Default On 9 3 Auto Transmit Key Presses Off Syntax Hexadecimal 0xFE 0x4F Decimal 254 79 ASCII 254 O Description In this mode up to 10 key presses are buffered until the unit is polled by the host system via the poll keypad command 254 38 Issuing this command places the unit in polled mode Remembered Yes 9 4 Poll Key Press Syntax Hexadecimal 0xFE 0x26 Decimal 254...

Page 41: ... command the Auto Transmit Key Presses mode should be off Remembered No 9 5 Clear Key Buffer Syntax Hexadecimal 0xFE 0x45 Decimal 254 69 ASCII 254 E Description This command clears any unread key presses In a menu 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 be tween menu changes to prevent jum...

Page 42: ...ode This mode is similar to the action of a keyboard on a PC In this mode when a key is held down the key code is transmitted immediately followed by a 1 2 second delay After this delay key codes will be sent via the RS 232 interface at a rate of about 5 codes per second This mode has no effect if polling or if using the I2C interface Key Up Down Mode This mode may be used when the typematic pa ra...

Page 43: ...at it is possible that polling for a key up code will be delayed long enough for an unwanted key repeat to be generated 9 8 Auto Repeat Mode Off Syntax Hexadecimal 0xFE 0x60 Decimal 254 96 ASCII 254 Description This command turns auto repeat mode off See Set Auto Repeat Mode Remembered No 9 9 Assign Keypad Codes Syntax Hexadecimal 0xFE 0xD5 KDown KUp Decimal 254 213 KDown KUp Parameters Parameter ...

Page 44: ... Introduction The employs software controlled display 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 Desc...

Page 45: ...ommand has been received Remembered Yes 10 4 Set Brightness Syntax Hexadecimal 0xFE 0x99 brightness Decimal 254 153 brightness Parameters Parameter Length Description brightness 1 Display brightness setting 0 to 255 Description This command sets the display brightness If the remember function is on this command acts the same as Set and Save Brightness Remembered Yes Factory Default 255 Matrix Orbi...

Page 46: ...o can be the difference between a projects success and failure This is why we incorporate features such as Data Lock into the With this new feature you now are in control over of how and when settings will be changed so there is no need to worry about the module acting exactly like you expected it to because all the settings may be locked and remembered for the next power up 11 2 Set Remember Synt...

Page 47: ...eck the display settings to ensure that all the settings have been saved If you wish to use remember again after cycling the power you must set it to on again NOTES Writing to non volatile memory is time consuming and slows down the operation of the display Non volatile memory has a write limit and may only be changed approximately 100 000 times Remembered No Factory Default Do not remember 11 3 D...

Page 48: ...erved 5 Setting Lock Locks the display settings such as backlight contrast and GPO settings 6 Reserved for graphical displays 7 Command Lock Locks all commands but the the data lock command NOTES Sending a new data lock level will override the previous data lock level Data lock levels may be combined Remembered Always Factory Default 0 Examples Hex Dec Binary Description 0x00 0 0 Unlock 0x50 80 01...

Page 49: ...useful to find out more information about the display module before contacting technical support 12 2 Read Version Number Syntax Hexadecimal 0xFE 0x36 Decimal 254 54 ASCII 254 6 Description This command will return a byte representing the version of the module see the following table as an example Hex Value Version Number 0x10 Version 1 0 0x20 Version 2 0 0x42 Version 4 2 Remembered No 12 3 Read M...

Page 50: ...MOS AL 162A C VFD2041 40 MOS AV 202A D VFD4021 41 MOS AP 202A E VK202 25 42 PK202 24 USB F VK204 25 43 MOS AL 082 10 GLC12232 44 MOS AL 204 13 GLC24064 45 MOS AV 204 15 GLK24064 25 46 MOS AL 402 22 GLK12232 25 WBL 47 MOS AV 402 24 GLK12232 25 SM 48 LK082 12 31 LK404 AT 49 VK402 12 32 MOS AV 162A 4A VK404 55 33 LK402 12 4B LK402 25 34 LK162 12 4C VK402 25 35 LK204 25PC Remembered No 13 Command Summ...

Page 51: ... 0xFE 0x52 Decimal 254 82 ASCII 254 R 20 Clear Screen Hexadecimal 0xFE 0x58 Decimal 254 88 ASCII 254 X 20 Changing the Startup Screen Hexadecimal 0xFE 0x40 chars Decimal 254 64 chars ASCII 254 chars 21 Set Auto Line Wrap On Hexadecimal 0xFE 0x43 Decimal 254 67 ASCII 254 C 21 Set Auto Line Wrap Off Hexadecimal 0xFE 0x44 Decimal 254 68 ASCII 254 D 22 Set Cursor Position Hexadecimal 0xFE 0x47 col row...

Page 52: ...0x53 Decimal 254 83 ASCII 254 S 24 Blinking Block Cursor Off Hexadecimal 0xFE 0x54 Decimal 254 84 ASCII 254 T 25 13 3 Special Characters Description Syntax Page Creating a Custom Character Hexadecimal 0xFE 0x4E refID data Decimal 254 78 refID data ASCII 254 N refID data 25 Saving Custom Characters Hexadecimal 0xFE 0xC1 Bank Decimal 254 193 Bank 26 Loading Custom Characters Hexadecimal 0xFE 0xC0 Ba...

Page 53: ...gth 29 Initialize Narrow Vertical Bar Hexadecimal 0xFE 0x73 Decimal 254 115 ASCII 254 s 30 Initialize Wide Vertical Bar Hexadecimal 0xFE 0x76 Decimal 254 118 ASCII 254 v 30 Place Verticle Bar Hexadecimal 0xFE 0x3D Column Length Decimal 254 61 Column Length ASCII 254 Column Length 31 13 4 General Purpose Output Description Syntax Page General Purpose Output Off Hexadecimal 0xFE 0x56 Num Decimal 254...

Page 54: ...xFE 0x41 Decimal 254 65 ASCII 254 A 36 Auto Transmit Key Presses Off Hexadecimal 0xFE 0x4F Decimal 254 79 ASCII 254 O 36 Poll Key Press Hexadecimal 0xFE 0x26 Decimal 254 38 ASCII 254 36 Clear Key Buffer Hexadecimal 0xFE 0x45 Decimal 254 69 ASCII 254 E 37 Set Debounce Time Hexadecimal 0xFE 0x55 time Decimal 254 85 time ASCII 254 U time 37 Set Auto Repeat Mode Hexadecimal 0xFE 0x7E mode Decimal 254 ...

Page 55: ... ASCII 254 F 41 Set Brightness Hexadecimal 0xFE 0x99 brightness Decimal 254 153 brightness 41 Set and Save Brightness Hexadecimal 0xFE 0x98 brightness Decimal 254 152 brightness 42 13 8 Data Security Description Syntax Page Set Remember Hexadecimal 0xFE 0x93 switch Decimal 254 147 switch 42 Data Lock Hexadecimal 0xFE 0xCA level Decimal 254 202 level 43 Set and Save Data Lock Hexadecimal 0xFE 0xCB ...

Page 56: ...Auto Line Wrap On 21 0x44 68 D Set Auto Line Wrap Off 22 0x45 69 E Clear Key Buffer 37 0x46 70 F Display Off 41 0x47 71 G Set Cursor Position 22 0x48 72 H Go Home 23 0x4A 74 J Underline Cursor On 24 0x4B 75 K Underline Cursor Off 24 0x4C 76 L Move Cursor Back 23 0x4D 77 M Move Cursor Forward 23 0x4E 78 N Creating a Custom Character 25 0x4F 79 O Auto Transmit Key Presses Off 36 0x51 81 Q Auto Scrol...

Page 57: ... Saving Custom Characters 26 0xC2 194 Save Startup Screen Custom Characters 28 0xC3 195 Set Startup GPO state 33 0xC8 200 Dallas 1 Wire Transaction 34 0xCA 202 Data Lock 43 14 Appendix 14 1 Specifications 14 1 1 Environmental Table 63 Environmental Specifications Standard Temperature Extended Temperature Operating Temperature 0 C to 50 C 20 C to 50 C Storage Temperature 30 C to 70 C 30 C to 70 C O...

Page 58: ...f 9 mA Supply all pixels on 18 mA 14 2 Optical Characteristics Table 65 Optical Characteristics Number of Characters 40 20 characters by 2 lines Matrix Format 5 x 8 Display Area 79 0 x 17 0 mm Character Size 3 15 x 5 55 mm XxY Character Pitch 3 7 x 5 55 mm Dot Size 0 4 x 0 5 mm XxY Dot Pitch 0 5 x 0 7 mm XxY Luminance 350cd m2 100fL min Color of Illumination Yellow Green Matrix Orbital PK202 25 54...

Page 59: ...14 3 Physical Layout Figure 21 Physical Diagram Matrix Orbital PK202 25 55 ...

Page 60: ...rey Text White Background WB White Text Blue Background R Inverse Red IY Inverse Yellow MSB Most Significant Byte LSB Least Significant Byte 14 5 Contacting Matrix Orbital Telephone Sales and Support 1 403 229 2737 On The Web Sales http www MatrixOrbital com Support http www MatrixOrbital ca Forums http www lcdforums com Matrix Orbital PK202 25 56 ...

Reviews: