LK204-25Technical ManualRevision: 2.1
WARNING DO NOT use the standard floppy drive power connector,as this will not provide you with the correct voltage and will damage thedisplay module.Fi
Comport The serial port the displayis plugged in to.Baudrate The communication speedthe displaymodule is set to. (Default19,200)Figure 12: uProject Se
1 DB-9 Connector 5 Power / Data Connector2 Power Through DB9 Jumper 6 Keypad Interface3 GPOs 7 Protocol Select Jumpers4 Manual Override 8 Optional Dal
Pin 2 Tx \ SDA (I2C data)Pin3 Rx \ SCL (I2C clock)Pin5 GNDPin 9 PWR (Must solder Power Through DB-9 Jumper. See table 70 on page 54 forpower requireme
2.2 Power/Data ConnectorThe Power/Data Connector providesa standard connectorfor poweringthe displaymodule. The LK204-25 requires five volts for the st
Figure 17: Protocol Select Jumpers2.4 General Purpose OutputsA unique feature of the LK204-25 is the ability to control relays and other external devi
2.5 Dallas 1-Wire BridgeIn addition to the six general purpose outputs the LK204-25 offers an optional Dallas 1-wire bridge, toallow for an aditional
Figure 20: Manual Override JumperTable 1: Default ValuesBrightness 255Baud Rate 19.2 kbpsI2C Slave Address 0x50Data Lock FalseRS232AutoTransmitData Tr
Figure 21: Keypad Interface ConnectorNOTE The Ground / +5V pin is toggled by the jumper to the right of the keypad connec-tor. Jump 1 & 2 for +5V
NOTE I2C communication will always require pull up resistors.• Finally, you may reset the display to it’s default settings using the Manual Override J
ContentsContents ii1 Getting Started 11.1 Display Options Available . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Accesso
The unit does not respond to general call address ($00).When communicating in I2C the LK204-25 will send an ACK on the 9th clock cycle when addressed.
4.1.3 Serial CommunicationIn addition to being able to communicate via I2C the LK204-25 communicates natively through theRS-232 protocol at at a defau
Description This command sets the RS-232 port to the specified [speed]. The changetakes place immediately. [speed] is a single byte specifying the desi
ExamplesCrystal Speed 16 MhzDesired BAUD 13,500speed =crystalspeed8∗ DesiredBaud− 1speed = 148.15− 1speed =16, 000, 0008∗ 13, 500− 1speed = 147.15• LS
5.1.1 Character SetFigure 22: Character Set5.1.2 Control CharactersIn addition to a full text set, the LK204-25 display supports the following ASCII C
SyntaxHexadecimal 0xFE 0x51Decimal 254 81ASCII 254 “Q”Description When auto scrolling is on, it causes the display to shift the entiredisplay’s conten
5.6 Set Auto Line Wrap OnSyntaxHexadecimal 0xFE 0x43Decimal 254 67ASCII 254 “C”Description Enabling Auto Line Wrap will allow the cursor to automatica
Description This command will allow you to manually set the cursor position, whichcontrols the text insertion point, by specifying the [col] and [row]
Description This command will move the cursor forward one space. If thiscommand is sent when the cursor is at the bottom right position thecursor will
SyntaxHexadecimal 0xFE 0x54Decimal 254 84ASCII 254 “T”Description This command will turn the block cursor off.Remembered Yes6 Special Characters6.1 In
5.8 Set Cursor Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225.9 Go Home . . . . . . . . . . . . . . . . .
Description The LK204-25 allows for upta to eight custom defined characters to beadded onto the the character set. A custom character is a five by eight
Description New to the LK204-25 has added five non-volatile memory banks forcustom character storage. This is intended to allow you to create yourown c
Description Using this command you may create the custom characters. that will bestored in memory bank zero, which will be used in the startup screen.
6.8 Initialize Large NumbersSyntaxHexadecimal 0xFE 0x6EDecimal 254 110ASCII 254 “n”Description This command will load the default large number charact
6.11 Place Horizontal Bar GraphSyntaxHexadecimal 0xFE 0x7C [Col] [Row] [Dir] [Length]Decimal 254 124 [Col] [Row] [Dir] [Length]ASCII 254 “|” [Col] [Ro
SyntaxHexadecimal 0xFE 0x76Decimal 254 118ASCII 254 “v”Description This command will load the wide vertical bar characters into the volatilememory. If
7.2 General Purpose Output OffSyntaxHexadecimal 0xFE 0x56 [Num]Decimal 254 86 [Num]ASCII 254 “V” [Num]ParametersParameter Length DescriptionNum 1 GPO
Description This command will set the startup state for the GPO on the next powerup. A value of one will cause the GPO to be off on the next startupwh
Description This command will allow you to begin communicating with the deviceson the 1-wire bus by returning a packet containing device informationfo
Description This command will perform a single transaction on the 1-wire bus inthis order:1. Bus Reset.2. Transmit data onto the bus.3. Receive data f
9.9 Assign Keypad Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3910 Display Functions 4010.1 Introduction . . . .
connector. The keypad is scanned whenever a key is pressed;there is no continuous key scan. This meansthat key presses are dealt with immediately with
Description In this mode, up to 10 key presses are buffered until the unit is polled bythe host system, via the poll keypad command 254 38. Issuing th
Remembered No9.6 Set Debounce TimeSyntaxHexadecimal 0xFE 0x55 [time]Decimal 254 85 [time]ASCII 254 “U” [time]ParametersParameter Length Descriptiontim
Description Two auto repeat modes are available and are set via the same command:• Resend Key Mode: 0x00• Key Up/Down Mode: 0x01Resend Key Mode This m
ParametersParameter Length DescriptionKDown 25 Key down codesKUp 25 Key up codesDescription This command will allow you to reassign the key codes that
10.3 Display OffSyntaxHexadecimal 0xFE 0x46Decimal 254 70ASCII 254 “F”Description This command turns the backlight off immediately. The backlight will
Description This command sets the display’s contrast to [contrast], where [contrast]is a value between 0x00 and 0xFF (between 0 to 255). Lower valuesc
11 Data Security11.1 IntroductionEnsuring that your LK204-25 display’s exactly what you want it to can be the difference between aprojects success and
11.3 Data LockSyntaxHexadecimal 0xFE 0xCA 0xF5 0xA0 [level]Decimal 254 202 245 160 [level]ParametersParameter Length Descriptionlevel 1 Sets the data
11.4 Set and Save Data LockSyntaxHexadecimal 0xFE 0xCB 0xF5 0xA0 [level]Decimal 254 203 245 160 [level]ParametersParameter Length Descriptionlevel 1 S
1 Getting StartedThe LK204-25 is an intelligent LCD display designed to decrease development time by providing aninstant solution to any project. With
12.2 Read Version NumberSyntaxHexadecimal 0xFE 0x36Decimal 254 54ASCII 254 “6”Description This command will return a byte representing the version of
Description This command will return a hex value corresponding to the the modelnumber of the module see the following table:Hex Product ID Hex Product
13 Command Summary13.1 CommunicationsDescriptionSyntaxPageChanging the I2C SlaveAddressHexadecimal 0xFE 0x33 [adr]Decimal 254 51 [adr]ASCII 254 “3” [a
DescriptionSyntaxPageMove Cursor BackHexadecimal 0xFE 0x4CDecimal 254 76ASCII 254 “L”23Move Cursor ForwardHexadecimal 0xFE 0x4DDecimal 254 77ASCII 254
DescriptionSyntaxPageInitialize Horizontal BarHexadecimal 0xFE 0x68Decimal 254 104ASCII 254 “h”29Place Horizontal BarGraphHexadecimal 0xFE 0x7C [Col]
DescriptionSyntaxPageAuto Transmit KeyPresses OnHexadecimal 0xFE 0x41Decimal 254 65ASCII 254 “A”36Auto Transmit KeyPresses OffHexadecimal 0xFE 0x4FDec
13.8 Data SecurityDescriptionSyntaxPageSet RememberHexadecimal 0xFE 0x93 [switch]Decimal 254 147 [switch]43Data LockHexadecimal 0xFE 0xCA 0xF5 0xA0 [l
Command DescriptionPageHex Dec ASCII0x43 67 “C” Set Auto Line Wrap On 220x44 68 “D” Set Auto Line Wrap Off 220x45 69 “E” Clear Key Buffer 370x46 70 “F
14 Appendix14.1 Specifications14.1.1 EnvironmentalTable 69: Environmental SpecificationsStandard Temperature Extended TemperatureOperating Temperature 0
NOTE To prolong life, it is recommended that the backlight be turned off when thedisplay is not in use.Matrix Orbital LK204-25 55
Figure 1: LK204-25 Options1.2 AccessoriesNOTE Matrix Orbital provides all the interface accessories needed to get your displayup and running. You will
14.3 Physical LayoutFigure 23: Physical DiagramMatrix Orbital LK204-25 56
14.4 Ordering InformationL K 20 4 -25 -GW -VPT -E1 2 3 4 5 6 7 8Table 72: Part Numbering Scheme# DescriptionOptions1 Screen TypeL: Liquid Crystal Disp
MSB Most Significant ByteLSB Least Significant Byte14.6 Contacting Matrix OrbitalTelephoneSales: 1(403)229-2737Support: 1(403)204-3750On The WebSales: h
Figure 4: Breadboard CableFigure 5: Serial Cable 4FTFigure 6: Communication and 5V Power CableFigure 7: Aluminum MountingsMatrix Orbital LK204-25 3
Figure 8: Keypad MountingsFigure 9: Mounting KitsFigure 10: 4X4 KeypadMatrix Orbital LK204-25 4
1.3 Features• 20 column by 4 line alphanumeric liquid crystal display• Selectable communication protocol, serial at RS-232 or TTL levels or I2C• Six,
Comentarios a estos manuales