2004-2009 Sure Electronics Inc. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0 1602 LCD DISPLAY BOARD WITH UART BASED USB (EDITION III&III) USERS GUIDE 2004-2009 Sure Electronics Inc. Table of contents
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page i 1602 LCD Display Board with UART Based USB (Edition III&III) 2004-2009 Sure Electronics Inc. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page ii
NOTES:
Product Version Ver 1.0
Document Version Ver 1.0
1602 LCD DISPLAY BOARD WITH UART BASED USB (EDITION III&III) USERS GUIDE 2004-2009 Sure Electronics Inc. Chapter1.Overview
1.1 Welcome
Thanks for using the products of 16*2 serial port communication info boards family by Sure Electronics. The product family includes 3 different versions: Edition I, II and III. With larger version number comes more powerful functions.
Their basic functions include display system information of your computer, such as Everest status, MBM status (Your CPU temperature, fan/cooler speed, etc.), BBC world news (or any other RSS feeds), WinAmp status (currently playing tracks title, length, position, etc), network status (speed, total bytes, etc), CPU speed, free disk space, memory usage, E-mail details, game status and many others. In addition, users may adjust the contrast ratio of LCD display and backlight brightness.
Edition II and III are further developed versions based on the basic functions of LCD Smartie. More features like ambient temperature display, conversion between and , feedback current LCD contrast ratio, backlight brightness level, temperature or product info are added in Edition II. Tips function is available on Edition III based on II.
This product provides two different ways of connection: mini USB and 9-pin power cable. Bolts and screws are also provided along with this product so that it can be fixed onto the PC case.
3. Run LCD Smartie click Setup at the lower left-hand corner of the main page to perform the following configuration (as shown in fig 1.5)
Fig 1.5 Simulation display interface
Select matrix.dll from the Display Plugin drop-down list under Screens tab. Fill the COM port name in Startup Parameters under Display settings, the communication speed is 9600bps. (As shown in fig 1.6).
Fig 1.6 Select plug-in and fill in port name
Port name can be obtained by the following means: Right-click My Computer and locate Silicon Labs CP210x USB to UART Bridge after PropertiesHardwareDevice ManagerPorts. The content in its following bracket is the port name.
Select 2x16 from the LCD size drop-down list under the Screen tab of Display Setting (shown in fig 1.7). Click OK or Apply at the lower right-hand corner to enable communication. After that, the display on LCD will be consistent with what is being simulated with LCD Smartie.
Fig 1.7 Select the type of LCD display
Other settings can be conducted after LCD functions normal.
To adjust the contrast ratio and brightness, just drag the slide bar.
To turn the backlight of LCD off, click the small icon at the lower right-hand corner and select Commands->Backlight Off (shown in fig 1.8). With the same path, you can turn on the backlight DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_page 3 2004-2009 Sure Electronics Inc. Overview again.
Fig 1.8 Turn off the backlight
An example of how the time of PC is displayed. In the left task bar of LCD Smartie, highlight Uptime short (days, hours, minutes) first and click Insert --> button and $UpTims will appear in the place where cursor flashed, as shown in fig 1.9. Click Apply will make the LCD display the time of your PC system, as shown in fig 1.10.
4. If you select Sure-LCD V1.0as your application A 16X2 sized LCD simulator screen (blue backlight & white character) will pop up like shown in fig 1.11
Fig 1.11
Right-click simulator and select Config in the popped up window and a configuration page will be displayed as shown in fig 1.12. Select COM4 in Com Setting and click Start button to establish a communication. Edition II doesnt provide Edit Memo function like shown in fig 1.13, though Edition III reserves that function as shown in fig 1.14.
The following is an example of how to use this application. In Select drop-down list of Command Group, choose About me and click Send like shown in fig 1.15 and watch the display on simulator screen. The version numbers of Edition II and III are 16020201000 and 16020202000 respectively like shown in fig 1.16 and 1.17.
Fig 1.15
Fig 1.16
Fig 1.17
5. How to use Tips function: Firstly, select Send Memo to MCU in the drop-down list of Command Group like shown in fig 1.18. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 6 2004-2009 Sure Electronics Inc. Overview
Fig 1.18 select commands for tips edit
You can edit contents of tips in Edit Memo area like shown in fig 1.19. Each row can simulate the display on LCD, i.e. maximum 16 letters a row (including space) and you are allowed to edit 10 rows at most.
Fig 1.19 Edit tips
Right-click simulator and click Exit in the popup window like shown in fig 1.20. Tips will be displayed on LCD screen soon afterwards.
Tips are displayed progressively and repeatedly like shown in fig 1.20. Interval of adjacent contents is approximately 2 seconds. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_page 7 2004-2009 Sure Electronics Inc. Overview
Fig 1.20 a flow simulating the display of tips
Restart LCD Smartie or Sure-LCD, tips display will end.
6. In case the 9-pin power cable is used for the connection with your computer, you need to connect the power cable to J8 on the reverse side of LCD while the other end shall be connected to a 9-pin port of your motherboard, as shown in Fig 1.21. Users may refer to step 1~4 for detailed operations.
Fig 1.21Schematic of connection with cable harness
7. To fix LCD board onto PC case, users need to drill holes on the PC panel. You may refer to the mechanical drawing in hardware detail for mounting information like spaces between mounting holes, etc.
Fig 1.23 Photo of panel installed on PC case Notice: Fig 1.23 is provided for reference only DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 10 2004-2009 Sure Electronics Inc. 1602 LCD DISPLAY BOARD WITH UART BASED USB (EDITION III&III) USERS GUIDE
2004-2009 Sure Electronics Inc.
Chapter2.Hardware Detail 2.1 Hardware introduction 1. Chip of MCU U4: PIC16F722Packaging SSOP 2. 5-pin USB socket J10 of mini B type: serves as +5V power supply as well as serial communication port 3. USB 9-pin J8: same as J10 4. Signal conversion chip for USB communication: CP2102Packaging: QFN 5. Single-row female socket J4: for the connection with blue backlight & white character 16*2 LCD 6. Transistor of NPN type Q1, Q3: They are used to convert TTL level to CMOS level when communicating. Packaging SOT23 7. MOSFET of P type Q4: FDN302P. It is used to adjust the backlight brightness of LCD display. Packaging: SOT23. 8. Resistor R16 and capacitor C10: They constitute the RC low pass filter system and are used to adjust the contrast ratio of LCD. 9. Reserved programming port J9 The current over USB power cable shall not exceed 200mA. 10. EEPROM U5:24C04.packaging:SOICAvailable in Edition II and Edition III only 11. Thermo-sensitive resistor R11: detect ambient temperature (available in Edition II only) 12. Temperature sensor U2:LM75packaging SOIC.available in Edition III only
2.2 Pinouts J4 No Pin name Functions 1 GND GND 2 +5V Positive output of +5V power supply 3 Vo Contrast ratio voltage output 4 RS For the selection of register 5 RW For the selection of read & write 6 E For Enabling 7~14 DB0~DB7 For data bus 15 A Positive of backlight power 16 K Negative of backlight power, GND
J8 No Pin name Function VCC USB+5V 12 3 D- USB Data- 5 D+ USB Data+ GND GND 78 4,6,9,10 NC No Connection
NOTE: Please note that the inner diameter of one of the hex screws of LCD is 2.5mm while it is 3mm for the board beneath the LCD when you choose Allan key.
2004-2009 Sure Electronics Inc. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 12 1602 LCD DISPLAY BOARD WITH UART BASED USB (EDITION III&III) USERS GUIDE 2004-2009 Sure Electronics Inc.
Chapter3.Tips for usage 1. This product only supports the communication of D+ and D-, a set of data cable in 9-pin USB. Besides, users need to avoid using mini USB and 9-pin power cable simultaneously for the communication with computer.
2. If the contrast ratio, backlight brightness and displaying contents vary after running LCD Smartie application, it proves that LCD display has successfully received the info from LCD Smartie.
3. The backlight brightness can be adjusted only when the backlight is turned on. Otherwise, the backlight brightness cannot be adjusted once the backlight is turned off. LCD display will turn the backlight off upon receiving the command of Turn backlight off even when the communication is in progress. Therefore, the backlight brightness cannot be adjusted by the slider bar and users need to click Backlight off first and click Backlight On again. Please refer to item 4 in Quick Start for details.
4. Katakana will be displayed if the characters sent by your computer exceed the range of common ASCII code.
5. Please refer to http://lcdsmartie.sourceforge.net/ for more details about LCD Smartie. 6. Do not use LCD Smartie and Sure-LCD simultaneously. 7. Tips will not be displayed once the power is off. If you send newly-created tips to MCU, previous tips will be replaced. 8. You may refer to help of application for use of Sure-LCD. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 13 1602 LCD DISPLAY BOARD WITH UART BASED USB (EDITION III&III) USERS GUIDE 2004-2009 Sure Electronics Inc. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_page 14
Appendix1 Schematics + 5 V P W M 2 D B 4 E E P R O M R 1 2 6 8 1 S D A C 1 1 1 0 4 12 J 9 IC D C o n n e c to r 123456 123456 R 2 4 3 9 2 B A T 1 L i-io n /3 V 12 B +B - U 5 2 4 C 0 4 13 24 5 76 8 P R E E 2 E 1 V S S S D A M O D E /W C S C L V C C + 5 V J 3 C O N 4 23 14 T x D /2 3 2 R x D /2 3 2 V c c G N D + 5 V C 9 1 0 4 R 2 3 0 R C 6 1 0 4 V IN R 2 0 2 2 0 o h m R 2 4 7 2 R 7 1 0 K U 4 P IC 1 6 F 7 2 2 -I/S P 1 234567 89 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 M C L R R A 0 /A N 0 R A 1 /A N 1 R A 2 /A N 2 R A 3 /A N 3 /V R E F R A 4 /T O C K I R A 5 /A N 4 /S S V s s O S C 1 /C L K IN O S C 2 /C L K O U T R C 0 /T 1 O S O /T 1 C K I R C 1 /T 1 O S I R C 2 /C C P 1 R C 3 /S C K /S C L R C 4 /S D I/S D A R C 5 /S D O R C 6 /T X R C 7 /R X V s s V D D R B 0 /IN T R B 1 R B 2 R B 3 R B 4 R B 5 R B 6 R B 7 + 5 V Q 4 F D N 3 0 2 P 1 3 2 G D S S C L R S P o w e r I n d i c a t o r r ( G ) V in 1 D - R x D /2 3 2 U 6 S P 2 3 2 E C N13 2 45 6 1 1 1 0 1 4 7 1 2 9 1 38 1 5 1 6 C 1 + C 1 - V + C 2 + C 2 - V - T 1 in T 2 in T 1 o u t T 2 o u t R 1 o u t R 2 o u t R 1 in R 2 in G N D V C C S C L C 8 1 0 4 C 1 2 1 0 4 12 J 1 0 U S B 1234 6 5 7 8 9 V B U S D - D + N C G N D G N D G N D G N D G N D + 5 V R B 7 /IC S P D A T R 2 2 0 R C 1 7 1 0 5 12 R 4 4 7 2 D B 0 R 9 1 K + 5 V E + 5 V R x D /C M O S R 1 5 6 8 1 R 1 4 1 0 3 + 5 V + 5 V + 5 V R W + 5 V R x D /C M O S B r i g h t n e s s S e n s o r
M o d u l e + 5 V 7 2 2 R X T T L / C M O S
I n t e r f a c e D + M C L R P W M 1 7 2 2 T X T x D /2 3 2 o u t + 5 V + 3 .3 V T T L
&
C M O S
L e v e l
A c c e p t a b l e V in 1 J 7 C O N 2 12 + 5 V S D A 7 2 2 T X + 5 V D B 5 R x D /2 3 2 in D B 2 T x D /2 3 2 o u t R B 7 /IC S P D A T R 5 4 7 2 S D A R 1 8 2 2 0 o h m R 1 6 1 0 2 V IN C 2 1 0 5 U 8 P R T R 5 V 0 U 2 X 1 2 3 4 G N D I/O 1 I/O 2 V C C R 2 7 4 .7 k R 1 7 0 R V IN D B 3 D B 1 D 1 B A T 5 4 /S O T 1 3 + 5 V E R 3 2 7 0 R 1 2 V o + 5 V R X D /U S B D B 7 M C L R D B 2 U A R T
L e v e l
S e l e c t e d
b y
R e s i s t o r F 1 F U S E C h a r g e
L i - b a t t e r y T h e r m i s t o r T x D /U S B /C M O S o u t D B 4 D B 7 R x D /2 3 2 C 1 4 1 0 4 12 C 3 1 0 4 12 R 6 1 0 K R S 2 3 2
I n t e r f a c e R X D /U S B 7 2 2 R X T X D /U S B R x D /2 3 2 in + 5 V D 2 T B D R 1 1 0 3 T x D /2 3 2 + 5 V T X D /U S B D B 6 R W U 2 L M 7 5 14 23 5 6 7 8 S D A G N D S C L O .S . A 2 A 1 A 0 + V S U 7 C P 2 1 0 2 1 2 34 5 6 7 2 5 2 4 2 3 1 2 1 1 9 8 2 6 2 7 2 8 D C D R I G N D D + D - V D D R E G IN R X D R T S C T S S U S P E N D S U S P E N D R S T V B U S T X D D S R D T R R 1 1 N T C -S M D + 5 V + 5 V S C L D + C 42 2 p F 12 Y 1 T B D 1 2 + 5 V S D A J 8 C O N 1 0 13579 24681 0 V C C D A T A - D A T A + G N D N C V C C D A T A - D A T A + G N D N C J 5 C O N 2 12 T a n s m i t I n d i c a t o r ( G ) C 1 1 0 5 J 1 C O N 4 1234 V c c T x D /C M O S R x D /C M O S G N D P W M 1 J 4 C O N 1 6 123456789 1 0 1 1 1 2 1 3 1 4 1 5 1 6 G N D + 5 V V o R S R W ED B 0 D B 1 D B 2 D B 3 D B 4 D B 5 D B 6 D B 7 AK V in 2 1 6 * 2 L C D
I n t e r f a c e I I C
S o f t w a r e
S i m u l a t i o n + 5 V D - M C L R S C L C 1 5 1 0 4 12 R B 6 /IC S P C L K C 7 1 0 4 D B 3 C 1 3 1 0 4 12 + 5 V T E S T T x D /C M O S P W M 2 R 2 6 4 7 1 C 1 6 1 0 5 12 C o n v e r t
2 3 2
l e v e l
t o
T T L
l e v e l + 5 V R 2 1 0 R R 8 1 K 7 2 2 T X 7 2 2 R X R 1 0 1 K C 52 2 p F 12 Q 1 9 0 1 4 1 2 3 b e c T x D /U S B /C M O S o u t J 2 123 Q 3 9 0 1 4 1 2 3 b e c R e c e p t i o n I n d i c a t o r ( Y ) T x D /C M O S Q 2 9 0 1 4 1 2 3 b e c S M D + 5 V T x D /2 3 2 o u t V in 2 R S D B 0 R 2 5 4 7 1 U 1 R X -8 0 2 5 4 125 8 7 6 3 9 1 0 1 1 1 2 1 3 1 4 N C 1 N C S C L T E S T N C 2 F O E V D D F o u t N C 3 /IN T A G N D /IN T B S D A N C 4 J 6 C O N 2 12 U 3 C Y T 6 1 6 7 -3 .3 V 3 2 1 IN O U T G N D T x D /2 3 2 + 5 V R B 6 /IC S P C L K R 1 9 3 3 0 o h m D B 1 T x D /2 3 2 C 1 0 1 0 4 12 D B 5 R 1 3 1 0 3 + 5 V D B 6
Trial Version Applicable in No Command to MCU Command Description
MCU to PC Edition I Edition II Edition III LCD Smartie Sure-LCD 1 Started with 0xFE,0x47 ,0x01, 0x01 and followed by 16 characters Display 16 characters that followed in row 1 of LCD
Y Y Y Y Y 2 started with 0xFE,0x47,0x01,0x02 and followed by 16 characters Display 16 letters that followed in row 2 of LCD
Y Y Y Y Y 3 started with 0xFE,0x50 and followed by a hex ranging from 0x01~0xFE Adjust LCD contrast ranging from 0x01~0xFE
Y Y Y Y Y 4 started with 0xFE,0x98 and followed by a hex ranging from 0x01~0xFE Adjust backlight brightness ranging from 0x01~0xFE
Y Y Y Y Y 5 0xFE,0x46 Turn backlight off Y Y Y Y Y 6 0xFE,0x42,0x00 Turn backlight on (with the latest configuration)
Y Y Y Y Y 7 Started with 0xFE,0x4E, i and followed by 8 hex numbers (range of i is 0~7) Customize character pattern of 0~7CGRAM
Y Y Y Y N 8 0xFE,0x63 Request MCU to send LCD contrast reading CR001~CR254 represents contrast values at different levels N Y Y N Y 9 0xFE,0x62 Request MCU to send LCD backlight reading BKLT001~BKLT254 represents backlight brightness at different level N Y Y N Y 10 0xFE,0x76 Request MCU to send version number wwhhpeeltrrr wwhh:Indicates the size of LCD screen, e.g.: 1602, 2004 P: indicates whether RX8025 N Y Y N Y DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 16 Appendix
2004-2009 Sure Electronics Inc. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_page 17 exists or not, 1 indicates yes, 0 indicates no and USB is adopted. 24C04 is only available in higher version. e: indicates the size of EEPROM, 2 n Kbit such as 2 indicates 2 2 Kbit, i.e. 4Kbit. l: indicates whether a photosensitive resistor exists or not, 0 indicates no, 1 indicates yes. t: indicates whether a thermal resistor (or LM75) exists or not. 0 indicates no, 1 indicates thermal resistor exists, 2 indicates LM75 exists. rrr: defaulted as 000, reserved 11 0xFE,0x77 Request MCU to send temperature Fabcd F: it will be blank if the temperature is above freezing and will be - if the temperature is below zero. Abc: temperature reading. If the absolute value of the temperature is less than 99, a will be null, if less than 10, b will be null. is degree. D is C or F, indicates centigrade and Fahrenheit
N Y Y N Y 12 Started with 0xFE,0x57 and followed by i (the range of i is 0x01~0x02) display temperature in row i of LCD Refer to 11 for the way of display, the contents will be aligned left when display, while the remaining is space N Y Y N Y 13 0xFE,0x53,0x75, 0x72,0x65 establish communication
N Y Y N Y Appendix
2004-2009 Sure Electronics Inc. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 18 14 Started with 0xFE,0x48,0x01, i and followed by 16 or 20 characters (range of I is 0x01~0x0a in hex) Save tips and simulate contents displayed in row i, the minimum of i is 0x02 in 16*2 LCD.
N N Y N Y 15 Started with 0xFE,0x57 and followed by i (i is either 0x46 or 0x43) Set temperature type: F: Fahrenheit C: centigrade
N Y Y N Y 16 0xFE,0x64 Turn LCD display ON or OFF
N Y Y N Y 17 0xFE,0x66 Close application and this command can also be used to start tips
N N Y N Y 1602 LCD DISPLAY BOARD WITH UART BASED USB (EDITION III&III) USERS GUIDE 2004-2009 Sure Electronics Inc.
Chapter5.Contact Us Sure Electronics Co., Ltd. 5F, Zone A, Qinhuai Technology Innovation Center 105-2 DaMing Rd (ZIP:210022) Nanjing P.R.China Tel: +86-25-66606340 (English service, from GMT1-10AM) +86-13601408832 (For technical questions & Reseller qualifications) Fax: +86-25- 66606340 Website: www.sure-electronics.com www.sure-electronics.net