Home
LCD Module User`s Manual
Contents
1. 3 0x50 Where 0x4D The Prefix Code 0x0C Display Character on LCD 0x00 Characters displayed on line0 first line on LCD 0x03 3 characters will be displayed 0x49 0x43 0x50 ASCII codes for ICP The LCD first clear the screen and then the text ICP is display on the upper left corner of LCD like How to Turn Off the Back Light of LCD Sometime if you find the back light of LCD is too bright or not necessary you can turn off it by this way Send to 125 0x4D 0 5 0x00 Where 0x4D the same and 0 5 is the command to turn on off the LCD back light and 0x00 instruct to turn off Also similarly Send to A125 0x4D Ox5E 0x01 Will turn on the back light of LCD Other commands The ICP Peripheral Communication Protocol in Appendix comprises 12 commands and can be separated in 2 groups Group from system to A125 Get ID 0x00 Get Switches Status 0x06 Get Protocol Version 0x07 Display Character On LCD 0x0C Clear LCD 0x0D Reset OxFF Group B From System to A125 Report ID 0x01 Report Switches Status 0x05 Report Protocol Version 0x08 Ack OxFA Nack Reset OK 0xAA For more details please refer to examples in ICP Electronics Inc Page 3 10 Appendix The ICP Peripheral Communication Protocol Version 0 3 2001 10 29 Get ID 0x00 Fr mphasis xample Report Button Status 0x05 Direction A125 GetButtonStatus Command Em
2. 4125 Demo program x Editor Davis Wang in Electronic x Compi Lier 1020 05 DOS 6 22 Above x Execute C 4125 StringO String x where String0 will display on LCD line 0 Stringl will display LCD line I e g 4129 ICP Electronic x x include lt dos h gt include lt stdio h gt include lt conio h gt define COM O0x38f8 define 0x2f8 define IOBASE void In1tuART void outport IOBASE S8 outport IOBASE 0 outport IOBASE I outport IOBASE S8 0x80 Line Control Register 0 60 Divisor Latch Low x 0x00 Divisor Latch High X 0 03 void SendByte char while GinportCIOBASE 5 amp 0 20 outport IOBASE ch char GetByte void le Gnpor t 1OBASE 5 amp 0x01 return inport IOBASE void Clear LCD void SendByte 0x4D SendByte 0x0D ICP Electronics Inc Page 9 10 SE void SendString int line char s int 1 J I strlen s SendByte 0x4D SendByte 0x0C SendByte line SendByte 1 for j 0 J H SendByte XGS J 7 void main int argc char 17 InitUARTO Clear LODO swi tch argc case 2 SendString 0 1 break case 3 SendString 0 argv 1 SendString l argv 2 break ICP Electronics Inc Page 10 10 Appendix Function Block
3. ICP Electronics Inc Page 1 10 LCD Module User s Manual A125 Ver 0 3 Author Davis Wang ICP Electronics Inc INTRODUCTION A125 is an LCD Module designed for system message display The maximum text allowed is 16x2 characters which are separated in 2 lines The device is easy to install because it uses only a2 wire RS232 interface to communicate with users system and 2 wires for 5V power supply and ground connectivity Based on ICP Peripheral Communication Protocol in Appendix A A125 also provide two readable buttons for system to access external information Implementation The device comprises two major components One A125 board b One UART Cable ICP Electronics Inc Page 2 10 Pin Definition 2 Rx In RS232 Data Input 3 Tx 85232 Data Out 41 GND Power Ground The RS232 uses fixed 1200 Baud Rate 8 bit 1 stop bit no parity check default 12V Signal Note If A125 want to be installed on 5V signal transaction UART please refer to Appendix B for modification 5V Transmit from PC to A125 Transmit from A125 to PC A125 How to Displaying Messages on LCD A125 is able to display most of the characters you can find on the ASCII code Here is an example to display text messages on the LCD Send to 4125 0x4D 0x0D Where 0x4D is prefix code 0x0D is Clear LCD Send to A125 0x4D 0 0 0x00 0x03 0x49 0x4
4. is 0x53 Prefix Code OXFB Negative XXX Command PC Ack Not Support Command sample 0x53 OxFB OxFO NAK OxF0 Command m EEE 5 5 285 L a Reset OxFF PC gt A125 0x4D OxFF mphasis 0x4D Prefix Code OxFF Reset Direction ICP Electronics Inc Page 5 10 Example Ox4D OxFF Reset OK 0xAA Direction A125 gt PC 0x53 Emphasis 0x53 Prefix Code OxAA Reset OK Example 0x530xAA ICP Electronics Inc Page 6 10 Appendix B Modifying A125 to UART 5V Signal or RS232 12V Signal The internal signal from the micro processor of A125 is UART SV To switch between UART 5V and RS232 12V signal interfaces please refer to the table below Components CL oom RS232 RS232 Transceiver like 7 m LT1381CS ICP Electronics Inc Page 7 10 Appendix C LCD Module supported ASCII codes amp SES ETE SEIRE IE SEES EE ER SE Se 0x30 0x31 0x32 0 33 0x34 0x35 0x36 0x37 0x38 0x39 0x3A 0x3B 0 3 0 3 0 0x3F D E F G H I J K L M N R 5 T U x Y Z es bee EN EN a aa PARR ES ESE EES AERA SES ASCII codes over the 0x80 are reserved for special symbols please contact your sales representatives for details ICP Electronics Inc Page 8 10 Appendix D x x T tle
5. phasis 0x53 Prefix Code 0x05 Report Button status 0xXXY Y Buttons on off ee ET 1 Pressed 0 Release Get Button Status 0x06 Content mphasis Get Protocol Version 0x07 Direction pecas Direction Example 0x4D0x07 ICP Electronics Inc Page 4 10 Report Protocol Version 0x08 1 A125 gt Report Protocol Version Command 0x53 0x08 OxXX OxYY Emphasis 0x53 Prefix Code 0x08 Report Protocol Version 0xXX Class 0x Y Y version 00 FF Response To xample Display Character on LCD 0x0C i 125 Display Character on LCD 0 4 0x0C Ox0L OxON OxCC OXCC 5 0x4D Prefix Code 0x0C Display Character On LCD 0x0L 0x00 Line 0 Ox0L 0x01 Line 1 OxON N Character 1 15 no more than 15 characters 0xCCn ASCII Code of Characters xample Clear LCD 0x0D 1 PC 125 Clear LCD 0x4D 0x0D mphasis 0x4D Prefix Code 0x0D Clear LCD None xample 0x4D 0x0D Q SE Slo es 215 5 i m Pep a 5 6 3 8jeje 5 BIS 815 ES n 10 ala 5 5 m m BEER 5 5 51215 a 5 Set Back Light On Off 0 5 0x4D Prefix Code 0 5 8 Back Light On Off 0xDD 0x00 Back Light off OxDD 0x01 Back Light On 0 4 0 5 0x01 Back Light On m m RE O sll FEE z 518 Jala o O ala Gi S O J Negative Ack 0xFB Negative Acknowledge minn mphas
Download Pdf Manuals
Related Search
Related Contents
Xerox WorkCentre M15I User's Manual リリース詳細 S100 Quick Start.fm ICC IC107DI4WH Double Auto Reverse Cassette Deck CIFnet User Manual - Climate Investment Funds GREE NEO09HP115V1A Use and Care Manual Samsung 19.5" Monitor LED contraste Mega Dinâmico manual do usuário Samsung 960BG Lietotāja rokasgrāmata Copyright © All rights reserved.
Failed to retrieve file