Beruflich Dokumente
Kultur Dokumente
Display Module
Technical Manual Rev 1R0
Schematic Description
R3
RES1 U1 R6 R7 VCC
8 11 RES1 POT1 LCD1
VCC
P31/OE P00/CLR
9 12 1
P32/EPM P01/CLK GND
JP2 2 10 13 2
P33/VPP P02/PGM VDD
3
VLC
(Reserve) 7 15 4
XTAL1/CE P20/D0 RS
1 Y1 6 16 5
GND
B P26/D6 D3
4 11
P27/D7 D4
12
D5
Z86E04 13
D6
JP3 2 14
14
D7
15
LED +
(Reserve) 16
LED -
1
JUMPER R8 LCD
RES1
VCC LED
Serial LCD
Figure 2. Schematic diagram of the Serial LCD Module.
Pin Description The serial LCD will work with MCUs operating at 5V
and 3.3V Logic level signals.
CON1
TX
RX
GND
RX TX
UART
VCC GND GND
LED VCC
MICRO-
CONTROLLER
Table 1.
Figure 5. Wiring connection with a MCU. Commu-
Pin ID Description nication is one way, hence only one signal line is
1 TX UART Serial Data Out used.
2 RX UART Serial Data In
3 GND Circuit Ground
4 Vcc +5V Power IN
5 LED +5V LED Backlight supply
RX TX E-Gizmo
RS-232 to TTL
Power Supply GND
VCC
GND
VCC
Converter Kit
DB-9
The serial LCD requires a stable 5V source for op- (-) (+)
To 5V Power Supply
eration. With LCD displays, the module draws about
25mA supply current. Current shoots up to 100mA RS-232 link
TX
RX
GND (-)
To 5V Power supply
VCC (+)
LED VCC
Example Connections
The Serial LCD works with the following communica- Note “\033” = ESC character (octal representation)
tions parameters:
4. Turn OFF cursor
Baud Rate: 9600bps
Data Width: 8 bit printf(“\033C0”);
Stop Bit: 1
Parity: None
Handshake: None
Visual Basic 6 Programming Examples
The serial LCD recognize and perform the function of
Figure 7 details the connection required if you wish to
the following control characters:
use the serial LCD with a PC (or with any other RS-
232 equipped device).
Back Space BS (0x08)
– move cursor to the left by one character
Visual Basic access to a COMM port can be conve-
niently implement using VB6 MSCOMM object. The
Horizontal Tab HT (0x09)
following examples assumes you are already familiar
– jump cursor to the right by three characters
with the use of this object. Initialize the MSCOMM
object by selecting your COM port (defaults to COM1)
Carriage Return CR (0x0D)
and then entering the communication parameters as
– move cursor to start of next line from the
previously discussed. Activate the MSCOMM object
current cursor position.
by executing the MSCOMM portopen method.
In addition to this, there are three non printing ESC
mscomm1.portopen= True
character sequence to force the LCD display do some
housekeeping chores:
The following examples assumes you named your
MSCOMM object as mscomm1.
Clear Screen, ESC E (0x1B, 0x45)
– Clear the whole LCD screen
1. Display “hello”
Cursor OFF, ESC C 0 (0x1B, 0x63, 0x30)
mscomm1.output=”hello”
– Turn OFF cursor
2. Display “e-Gizmo” on third line from current cursor
Cursor ON, ESC C 1 (0x1B, 0x63, 0x31)
position
– Turn ON cursor
mscomm1.output=chr(13) + chr(13)
Microcontroller Programming Examples mscomm1.output=“e-Gizmo”
With the serial LCD connected with your microcon- 3. Turn ON Cursor
troller as described, displaying message through the
LCD becomes an effortless task as shown in the fol- mscomm1.output=chr(27) + “C1”
lowing examples in C:
printf(“\ne-Gizmo”);
3. Clear Display