de-ld011_ver1.0_en
DESCRIPTION
LCD-USBTRANSCRIPT
-
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
-
1602 LCD DISPLAY BOARD WITH UART BASED USB (EDITION III&III)
USERS GUIDE
2004-2009 Sure Electronics Inc.
Table of contents
Chapter1.Overview ......................................................................................................................... 11.1 Welcome.......................................................................................................................... 11.2 Quick Start ....................................................................................................................... 2
Chapter2.Hardware Detail .............................................................................................................112.1 Hardware introduction.....................................................................................................112.2 Pinouts ............................................................................................................................112.3 Mechanical drawing ........................................................................................................11
Chapter3.Tips for usage ............................................................................................................... 13Chapter4. Appendix ...................................................................................................................... 14
Appendix1 Schematics............................................................................................................. 14Appendix2 PCB Layout ............................................................................................................ 15Appendix3 Command Set ........................................................................................................ 16
Chapter5.Contact Us..................................................................................................................... 19
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.
Fig 1.1
Fig 1.2
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 1
-
Overview
1.2 Quick Start 1. First, install LCD Smartie application, Sure-LCD 1.0 and CP2102 driver. All of them are available on the following links: LCD_smartie_v5.4: http://www.sureelectronics.net/drivers/lcd_smartie_v5.4.zip Sure-LCD V1.0 http://www.sure-electronics.net/download/Sure-LCD_1.0.zip CP2102 driver: http://www.sureelectronics.net/drivers/CP210x_VCP_Win2K_XP_S2K3.zip 2. Connect LCD board and computer with mini USB like shown in fig 1.3. LCD will display the defaulted graphs like shown in fig 1.4.
Fig 1.3 Schematic of connection with mini USB
Fig 1.4 Photo after power-up
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 2 2004-2009 Sure Electronics Inc.
-
Overview 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.
Fig 1.9 Select the contents to be displayed
Fig 1.10 Simulation display
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 4 2004-2009 Sure Electronics Inc.
-
Overview
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.
Fig 1.12
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_page 5 2004-2009 Sure Electronics Inc.
-
Overview
Fig 1.13
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
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 8 2004-2009 Sure Electronics Inc.
-
Overview 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.22 Panel Installation schematic
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_page 9 2004-2009 Sure Electronics Inc.
-
Overview
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
2.3 Mechanical drawing
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 11
-
Hardware Detail
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
+5V
PWM
2
DB
4
EEPROM
R12
681
SD
A
C11
104
1 2
J9IC
D C
onne
ctor
1 2 3 4 5 6
1 2 3 4 5 6
R24
392
BAT1
Li-io
n/3V
1 2
B+ B-
U5
24C
041 32 4
57 68PR
E E2E1
VSS
SDA
MO
DE/
WC
SCL
VCC
+5V
J3C
ON
4
2 31 4Tx
D/2
32R
xD/2
32Vcc
GN
D
+5V
C9
104
R23
0R
C6
104
VIN
R20
220o
hm
R2
472
R7
10K
U4
PIC
16F7
22-I/
SP
1
2 3 4 5 6 7
8 9 10
11 12 13 14 15 16 17 18
1920
21 22 23 24 25 26 27 28
MC
LR
RA0
/AN
0R
A1/A
N1
RA2
/AN
2R
A3/A
N3/
VR
EF
RA4
/TO
CK
IR
A5/A
N4/
SS
Vss
OS
C1/
CLK
INO
SC
2/C
LKO
UT
RC
0/T1
OSO
/T1C
KI
RC
1/T1
OS
IR
C2/
CC
P1R
C3/
SCK
/SC
LR
C4/
SD
I/SD
AR
C5/
SDO
RC
6/TX
RC
7/R
X
Vss
VDD
RB0
/INT
RB1
RB2
RB3
RB4
RB5
RB6
RB7
+5V
Q4
FDN
302P
1
32
G
DS
SCL
RS
Power
Indicatorr
(G)
Vin
1
D-
RxD
/232
U6
SP23
2EC
N 1 32
4 56
1110
14712 9
13 8
1516
C1+ C1-
V+
C2+ C2-
V-
T1in
T2in
T1ou
t
T2ou
tR
1out
R2o
ut
R1i
n
R2i
n
GNDVCC
SCL
C8
104
C12
104
1 2
J10
USB
1 2 3 4
6
5
7
8
9
VBU
S D-
D+
NC
GNDGN
D
GND
GND
GND
+5V
RB
7/IC
SPD
AT
R22
0R
C17
105
1 2
R4
472
DB
0
R9
1K
+5V
E
+5V
RxD
/CM
OS
R15
681
R14
103
+5V
+5V
+5V
RW
+5V
RxD
/CM
OS
Brig
htness
Sens
or Module
+5V
722R
X
TTL/CM
OS Interface
D+
MC
LR
PWM
1722T
X
TxD
/232
out
+5V
+3.3
V
TTL & CMOS
Level
Acceptabl
e
Vin1
J7C
ON
2
1 2
+5V
SDA
722TX
+5V
DB
5
RxD
/232
in
DB
2
TxD
/232
out
RB7
/ICSP
DAT
R5
472
SDA
R18
220o
hm
R16
102
VIN
C2
105
U8
PRTR
5V0U
2X
123
4
GN
DI/
O1
I/O
2V
CC
R27
4.7k
R17
0R
VIN
DB
3
DB
1
D1
BAT
54/S
OT
13
+5V
E
R3
270R
12
Vo
+5V
RXD
/US
B
DB
7
MC
LR
DB
2
UART Level
Selected by Resi
stor
F1F
US
E
Charge Li-battery
Thermistor
TxD
/USB
/CM
OSo
ut
DB
4
DB7
RxD
/232
C14
104
1 2
C3
104
1 2
R6
10K
RS232
Interface
RXD
/USB
722RX
TXD
/US
B
RxD
/232
in
+5V
D2
TBD
R1
103
TxD
/232
+5V
TXD
/USB
DB6
RW
U2
LM75
1 42 35678
SD
A
GN
D
SC
LO
.S.
A2A1A0+VS
U7
CP2
102
12
3 4567
25 24 2312119
8262728
DC
DRI
GN
D
D+
D-
VDD
RE
GIN
RXD RTS
CTS
SUSP
END
SUSP
END
RST
VBU
STX
D
DSR
DTR
R11
NTC
-SM
D
+5V
+5V
SCL
D+
C4 22
pF
1 2
Y1
TBD
12
+5V
SDA
J8 CO
N10
1 3 5 7 9
2 4 6 8 10
VCC
DA
TA-
DA
TA+
GN
DN
C
VCC
DAT
A-D
ATA
+G
ND
NC
J5C
ON
2
1 2
Tans
mit
Indi
cator(G)
C1
105
J1C
ON
4
1 2 3 4
Vcc
TxD
/CM
OS
RxD
/CM
OS
GN
D
PWM
1
J4C
ON
16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
GN
D+5
VVo R
SR
WE D
B0
DB
1D
B2
DB
3D
B4
DB
5D
B6
DB
7A K
Vin2
16*2LCD Interfac
e
IIC Soft
ware Simulation
+5V
D-
MC
LR
SCL
C15
104
1 2
RB6
/ICSP
CLK
C7
104
DB
3
C13
104
1 2
+5V
TEST
TxD
/CM
OS
PWM
2
R26
471
C16
105
1 2
Convert 23
2 level to TTL lev
el
+5V
R21
0R
R8
1K
722T
X
722R
X
R10
1K
C5 22
pF
1 2
Q1
9014
1
23
b
ec
TxD
/USB
/CM
OSo
ut
J21 2 3
Q3
9014
1
23
b
ec
Reception
Indicator(Y)
TxD
/CM
OS
Q2
9014
1
23
b
ec
SMD
+5V
TxD
/232
out
Vin
2
RS
DB
0
R25
471
U1
RX-
8025
41 2 5
8763
91011121314
NC
1
NC
SC
L
TEST
NC
2F
OE
VD
D
Fou
t
NC
3/I
NTA
GN
D/I
NTB
SD
AN
C4
J6C
ON
2
1 2
U3
CY
T616
7-3.
3V
32
1
INO
UT
GND
TxD
/232
+5V
RB
6/IC
SPC
LK
R19
330o
hmD
B1
TxD
/232
C10
104
1 2
DB
5
R13
103
+5V
DB
6
Chapter4. Appendix
-
Appendix
2004-2009 Sure Electronics Inc. DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 15
Appendix2 PCB Layout
-
Appendix
2004-2009 Sure Electronics Inc.
Appendix3 Command Set
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, 2n Kbit such as 2 indicates 22 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
DE-LD011 & DE-LD012 & DE-LD013_Ver1.0_Page 19