LK402-25Technical ManualRevision: 1.1
2.1.1 Power Through DB-9 JumperIn order to provide power through pin 9 of the DB-9 Connector you must place a solder jumper on thePower through DB-9 J
WARNINGS• Do not apply any power with reversed polarization.• Do not apply any voltage other than the specified voltage.2.3 Protocol Select JumpersThe
WARNING If connecting a relay, be sure that it is fully clamped usinga diode and capacitor in order to absorb any electro-motive force (EMF)which will
Table 1: Default ValuesContrast 128Brightness 255Baud Rate 19.2 kbpsI2C Slave Address 0x50Data Lock FalseRS232AutoTransmitData TrueNOTE The display mo
3 Troubleshooting3.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 conne
4 Communications4.1 IntroductionThe commands listed in this chapter describe how to configure data flow on the LK402-25.4.1.1 I2C Communication SummaryT
NOTE These delays are consrevative, and may be decreased based on performance4.1.2 I2C Transaction ExampleThe typical I2C transaction contains four pa
Description This command sets the I2C write address of the module between 0x00and 0xFF. The I2C write address must be an even number and the readaddre
4.4 Setting a Non-Standard Baud RateSyntaxHexadecimal 0xFE 0xA4 [speed]Decimal 254 164 [speed]ParametersParameter Length Descriptionspeed 2 Inputed LS
ExamplesCrystal Speed 16 MhzDesired BAUD 13,500speed =crystalspeed8∗ DesiredBaud− 1speed = 148.15− 1speed =16, 000, 0008∗ 13, 500− 1speed = 147.15• LS
ContentsContents ii1 Getting Started 11.1 Display Options Available . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Accesso
5.1.1 Character SetFigure 17: Character Set5.1.2 Control CharactersIn addition to a full text set, the LK402-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
Description The LK402-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 LK402-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 Horizontal BarSyntaxHexadecimal 0xFE 0x68Decimal 254 104ASCII 254 “h”Description This command will load the default horizontal bar char
5.8 Set Cursor Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185.9 Go Home . . . . . . . . . . . . . . . . .
Description This command will load the narrow vertical bar characters into thevolatile memory. If you have stored your own custom vertical bar data,us
Description This command will place a bar graph at the specified [Column] with thespecified [Length]. The [Length] is the size in pixels of the bar grap
Description This command turns ON general purpose output [num]. The standardGPO’s on the LK402-25 output 20mA of current at 5V.NOTE ON means the outpu
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
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 Display Functions 3510.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3510.2 Display On . . .
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 LK402-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
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”19Move Cursor ForwardHexadecimal 0xFE 0x4DDecimal 254 77ASCII 254
DescriptionSyntaxPageInitialize Narrow VerticalBarHexadecimal 0xFE 0x73Decimal 254 115ASCII 254 “s”25Initialize Wide VerticalBarHexadecimal 0xFE 0x76D
1 Getting StartedThe LK402-25 is an intelligent LCD display designed to decrease development time by providing aninstant solution to any project. With
DescriptionSyntaxPagePoll Key PressHexadecimal 0xFE 0x26Decimal 254 38ASCII 254 “&”32Clear Key BufferHexadecimal 0xFE 0x45Decimal 254 69ASCII 254
DescriptionSyntaxPageData LockHexadecimal 0xFE 0xCA 0xF5 0xA0 [level]Decimal 254 202 245 160 [level]39Set and Save Data LockHexadecimal 0xFE 0xCB 0xF5
Command DescriptionPageHex Dec ASCII0x4A 74 “J” Underline Cursor On 200x4B 75 “K” Underline Cursor Off 200x4C 76 “L” Move Cursor Back 190x4D 77 “M” Mo
14 Appendix14.1 Specifications14.1.1 EnvironmentalTable 67: Environmental SpecificationsStandard Temperature Extended TemperatureOperating Temperature 0
14.3 Physical LayoutFigure 18: Physical DiagramMatrix Orbital LK402-25 50
14.4 Ordering InformationL K 40 2 -251 2 3 4 5Table 70: Part Numbering Scheme# DescriptionOptions1 Screen TypeL: Liquid Crystal Display2 Input TypeK:
Table 72: Revision HistoryRevision Description Author1.0 Initial Manual Matrix Orbital1.1 Updated Backlight Life ClarkMatrix Orbital LK402-25 52
Figure 3: Breadboard CableFigure 4: Serial Cable 4FTFigure 5: Communication and 5V Power Cable1.3 Features• 40 column by 2 line alphanumeric liquid cr
1.4 Connecting to a PCThe LK402-25 connects seamlessly to a PC and it is an excellent means of testing the functionality. Toconnect your display to a
1.5 Installing the Software1.5.1 uProjectuProject was designed by Matrix Orbital to provide a simple and easy to use interface that will allow youto t
2 Hardware InformationRefer to the following diagram for this chapter:1 DB-9 Connector 5 Power / Data Connector2 Power Through DB9 Jumper 6 Manual Ove
Comentarios a estos manuales