Home

SC1602 Serial LCD User`s Manual

image

Contents

1. Turn On OxFE Ox06 Turn Off OxFE Ox07 Backlight will turn off automatically after some time By default 255 seconds You can adjust this interval by command OXFE Ox29 interval Where interval is max 255 seconds and min 1 second Note Setting the interval to O will disabled the auto backlight off feature Backlight brightness can be adjusted by command OxFE Ox28 brightness level Where brightness level is max 250 and min 50 Startup Screen Start up screen is the screen that the LCD will display every time you power up the device It will be displayed for 3s During this interval the backlight will be turned on www siliconcraft net SILICON CRAFT ee SC1602 16x2 Characters Serial LCD Module Rev 1 2 By default start up screen is not defined and nothing displayed on power up User can defined the startup screen by command OxFE OxC8 row O text OxOD row 1 text OxFF User s Defined Screens User can define up to 10 screens by easy retrieval For example it you need to display LINE 1 Custom Screen Demo Instead of sending LINE 1 Custom OxOC Screen Demo every time you can predefine the screen and store it onto the SC1602 memory for easy retrieval To define the screen OxFF PAGE row O text OxOD row 1 text OxFF PAGE 0xC9 Page 1 PAGE 0OxCA Page 2 PAGE OxCB Page 3 PAGE OxCC Page 4 PAGE O0xCD Page 5 PAGE OxCE Page 6 PAGE OxCF Page
2. OROM hoi Byte 1 E 0x04 Byte 2 E 0x04 Byte 3 E iF Byte 4 Mm 0x04 Byte 5 Tm 0x04 Byte 6 L OxOA Byte 7 0x11 Byte amp BUS Fig 11 User s Defined Character Bitmap To load user s define characters use command OxFE 0x64 64 Bytes of Character Bitmap Followed by OXFE 0x08 After which user can display the defined characters by sending OxOO for User s Defined Character O OxO1 for User s Defined Character 1 OxO2 for User s Defined Character 2 Ox03 for User s Defined Character 3 0x04 for User s Defined Character 4 OxO5 for User s Defined Character 5 OxO6 for User s Defined Character 6 OxO7 for User s Defined Character 7 Cursor Control There are two types of cursor the underline cursor and the block blinking cursor Show underline cursor OxFE 0x01 Show block blinking cursor OxFE 0x02 Hide Cursor www siliconcraft net SILICON CRAFT u b 9 SC1602 16x2 Characters Serial LCD Module Rev 1 2 OxFE Ox03 Cursor Position Control COLUMN Co Sas ee ee ee Oe a eS nw TT pOp0ppppppgppptnt Fig 12 row and column position definition You can move the cursor to any position by command OXFE 0x32 row number column number Delete selected row OXFE Ox2D row After this command cursor points to the beginning of the next line Delete selected column OxFE Ox2E column After this command cursor points to the next column LCD Backlight Control
3. OxFE Ox2B length Or Draw right to left graph OxFE Ox2C length Fig 13 Horizontal Bar Graph Bar graph on Fig 13 is drawn with command OXFE 0x04 Initialize Bar Graph Utility OXFE 0x32 0x00 0x03 Move cursor to row O column 3 OxFE Ox2B Ox1B Draw left to right bar graph of length 27 Note Maximum length is 80 User s Defined Characters is unavailable when bar graph is in use www siliconcraft net SILICON CRAFT u b 3 SC1602 16x2 Characters Serial LCD Module Rev 1 2 Setting The General Purpose Outputs Command OxFE Ox2F OUTPUT a Tow Table 1 General Purpose Output High Logic Level 3 3V Low Logic Level OV Reading General Purpose Inputs Port 3 TTL level inputs available for external connection Input Ports is polled every 500ms and its status updated in the internal memory This status can be requested by Read Inputs Command OxFE OxOA SC1602 will response by transmitting the input port status byte INPUT o iow Low Low e mon mon row Table 2 General Purpose Inputs Analog Input Ports Two available O to 1OVDC and 0 20mA Both are 10bits resolution www siliconcraft net SILICON CRAFT To read O 10V port value OxFE OxOB Response from SC1602 OxFA MSB LSB To read O 20mA port value OxFE 0x0C Response from SC1602 OxFC MSB LSB Command Summary FUNCTION CODE Hexadecimal CODE Decimal Turn o
4. 7 PAGE OxDO Page 8 PAGE OxD1 Page 9 PAGE OxD2 Page 10 To display saved page Send OxOD to clear the display Then Send OxFE Ox2A spage to display the saved screen Spage O to 10 where spage O is the startup Page Changing the baud rate Set baud rate to 9600bps OxFE Ox1E Set baud rate to 19200bps OxFE Ox1F LCD will display the baud rate every time you change it It will be displayed for 1 5s Remember Settings www siliconcraft net SILICON CRAFT ee ee SC1602 16x2 Characters Serial LCD Module Rev 1 2 This command will memorize all settings done on to the non volatile memory and will be loaded on the next startup OxFE 0x20 User s settings include Backlight Brightness Auto Off Interval Baud Rate Users defined characters start up screen and predefined screens Text Scrolling You can display up to 40 characters per line using the text scrolling mode Left to right or right to left scroll is selectable Scroll left to right OxFE OxD3 row O text OxOD row 1 text OxFF Scroll right to left OxFE OxD4 row O text OxOD row 1 text OxFF You must exit the scroll mode by clear LCD command Ox0D before issuing any other command Horizontal Graph This command enables you to draw horizontal bar graph on the LCD easily Step 1 Initialize Horizontal Graph Utility OXFE 0x04 Step 2 Move the cursor to start position Step 3 Draw left to right graph
5. B Tet iy aot POPELEE Ciz YDE 54 E h LLE a i GND et Oa 8 ts F l P3 Se 3 ms l Inputs we i e ce E S Outputs ulu 8 ae wi pP I J a fa ahe ma 3 late oii ajra e a a it ER 331523 i p ka pes e a Adjust LCD Contrast Fig 4 SC1602 Connectors Power Supply SVDC connected through P5 or Pin 1 and Pin 2 of P1 Warning Check Power Supply Polarity before turning on the power P1 Serial Interface Pin 1 5YDC Pin 2 GND Pin 3 R5232 Receive Fin 4 R5232 Transmit Fin 5 Logic Level Receive Pin 6 Logic Level Transmit Warning Do not Connect RS232 to TTL Pins Fig 5 Serial Port Header www siliconcraft net SILICON CRAFT SC1602 16x2 Characters Serial LCD Module Rev 1 2 Fig 6 RS232 Interface with DB9 Female Connector DAY Female ND SW EELEE F1 Fig 7 TTL interface with microcontroller p Sv Oo y y 2 Microcontroller BERERE Pty Yt Pi P2 ay Note Connection 3 is not required if the inputs and analog ports are not used P3 General Purpose I Os 1 INPUT 1 2 INPUT 2 3 INPUT 3 4 OUTPUT 3 5 OUTPUT 2 6 OUTPUT 1 Inputs MAX 3 3V 20mA Outputs 3 3V 20mA Fig 8 P3 Header www siliconcraft net SILICON CRAFT a SC1602 16x2 Characters Serial LCD Module Rev 1 2 P2 Analog Input Ports Pin 1 5 VDC Pin 2 GND Pin 3 Analog Port 1 0 10VDC Pin 4 Analog Port 2 none Fig 9 P2 Header Communication All
6. SILICON CRAFT a ee SC1602 16x2 Characters Serial LCD Module Rev 1 2 Introduction SC1602 is an intelligence LCD module designed to ease project development that require LCD display SC1602 is a dot matrix LCD module with serial interface board The serial interface board receives and interprets serial data and output the data to the LCD module accordingly With RS232 and TTL inputs it can be use with any controller with serial port Computers microcontrollers microprocessors etc Fig 1 SC1602YG Two options are available Fig 2 SC1602YG 16x2 Characters Yellow Green LED Backlight Fig 2 SC1602B 16x2 Characters White Characters On Blue Backlight www siliconcraft net SILICON CRAFT a ee SC1602 16x2 Characters Serial LCD Module Rev 1 2 Features e Programmable baud rate 9600bps or 19200bps e RS232 or TTL serial interface e Simple serial command clear screen line feed clear row clear column etc e 85 bytes UART receive buffers e 11 Screens non volatile memory storage e Programmable backlight brightness level e Programmable backlight auto off e Text scrolling without host intervention e Horizontal graph drawing e 8 user s defined characters e 2 analog inputs O 10V and 0 20mA e 3 General Purpose Inputs e 3 General Purpose Outputs e Free application software with custom characters generator Hardware Connection P1 Serial Interface Pe Analog Ports LCIOCHL
7. Tun On Blseckellegra Tum Di Eshit Arum Backlight Blighiness D Disi Jute Off Derzsi Pupe h Fig 16 SC1602App Screenshot F User s Defined Characters Custom Character Clear All Set All Fig 17 SC1602App User s defined characters generator www siliconcraft net m Set Custom Characters Char 1 Char 2 Char 3 Char 4 Char 5 Char 6 Char 7 Char 8 Load Custom Characters Onto LCD Display Custom Character Char 1 Char 2 Char 3 Char 4 Char 5 Char 6 Char 7 Char 8
8. communication is through UART Universal Asynchronous Receiver Transmitter Data format is 8 data bits no parity and 1 stop bit Baud rate is programmable 9600bps or 19200bps Default value Sending ASCII characters to the serial LCD will result in text display on the LCD screen Example Send ASCII text LCD Demo ASCII code in Hexadecimal 0x4C 0x43 0x44 0x20 0x44 O0x65 Ox6D Ox6F The position of the first character depends on the current cursor position If the text is more than 16 characters it will wrap to the next row EZE 2000 ooe oor oona onoo fosos ox 10 fonaa A AAP E o TAG aa mal 2IBIRIBIF lal BCS malol 1410 Tiel t malol SENEU zlo EFF mjo P PGMS wy molol BHK DAI AAR EIF mafo FETE oo ts A E lol IMI maula Le PINAN meeki ol F0 lol Fig 10 ASCII character sets www siliconcraft net SILICON CRAFT ee ee SC1602 16x2 Characters Serial LCD Module Rev 1 2 Control Characters Backspace Ox0O8 Move Cursor one position to the left and delete the character Cursor Home OxOB Send Cursor to row 0 column O LCD screen unchanged Next Line OxOC Move Cursor to the beginning of next line Clear LCD OxOD Clear LCD display and Send cursor to row O column O Cursor Left OxOE Move cursor one position to the left Cursor Right OxOF Move cursor one position to the right User s Defined Characters User s can define up to 8 characters Each character consists of 8 bytes of data
9. n underline cursor Turn on blinking cursor Hide cursor Set cursor position Set Backlight brightness level Turn on backlight Turn off backlight Set auto off interval Text Scrolling Mode Setting Save Screen Into Memory Display Saved Screen Initialize Horizontal Graph Draw Draw Left to Right Graph Draw Right to Left Graph Defines User s Characters Load User s Defined Characters Clear row Clear column Set General Purpose Outputs Read General Purpose Inputs Read 0 10V Analog Port Read 0 20mA Analog Port Set baud to 9600bps Set baud to 19200bps Remember settings Display Defined Character 0 Display Defined Character 1 www siliconcraft net OxFE 0x01 OxFE 0x02 OxFE 0x32 row column OxFE smode LINE1 TEXT OxOD LINE2 TEXT OxFF OxFE page LINE1l TEXT OxOD LINE2 TEXT OxFF OxFE 0x2A spage OxFE 0x64 64 bytes Data SC1602 16x2 Characters Serial LCD Module Rev 1 2 254 1 254 2 254 3 254 50 row column 254 40 level 254 6 254 7 254 41 INTERVAL 254 smode LINE1 TEXT 13 LINE2 TEXT 255 254 page LINE1 TEXT 13 LINE2 TEXT 255 254 42 spage 254 4 254 43 length 254 44 length 254 100 64 Bytes Data 254 8 254 45 row 254 46 column 254 47 output 254 10 254 11 254 13 254 30 254 31 254 32 10 n SILICON SILICON CRAFT CRAFT SC1602 16x2 Characters Serial LCD Mod
10. ule Rev 1 2 Display Defined Character 2 Display Defined Character 3 0x03 Display Defined Character 5 0x05 5 Display Defined Character 6 0x06 6 Backspace 0x08 8 Ht A Clear LCD 0x0D Move Cursor one position right OxOF 15 Electrical Specification Power Supply 4 8 5 5V 10mA Backlight Off 4 8 5 5V 100mA Backlight On Operating Temperature 0 C to 50 C Storage Temperature 20 C to 60 C Voltage level on TTL inputs RXD 5 5V max General Purpose Inputs 3 9V max Voltage level TTL outputs TXD amp General Purpose 3 3V typical 20mA max O 10V Analog Inputs 12V max OV min 0 20mA Analog Inputs 50mA max OmA min Mechanical Dimension 84 0 0 5 79 0 0 2 Mo 2 R1 25 319 at IE can SERTA JE s ooog j 76 040 1 Fig 14 Front view Dimension in mm www siliconcraft net 11 SILICON CRAFT 2 4 SC1602 16x2 Characters Serial LCD Module Rev 1 2 5 8 Fig 15 Side view Dimension in mm SC1602App Software This application software is available free of charge on www siliconcraft net download htm It is created by Silicon Craft to test and configure SC1602 with computer serial port connection O SC 1 6074Ph Commision Baud Rate Configuration Sowing Text Graph Send ASCH Tex esto Cursor Cantal Unederkewd Cursor Block Bining Curso Hide Cursor Set Curso Posin Digable Uai Seren re Seen Bacikaht inis C

Download Pdf Manuals

image

Related Search

Related Contents

48 Inch 10-in-1 Game Center  取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file