
15.0 Ports & Embedding the ezLCD-3xx
While the ezLCD-3xx can be used as a display running off a PC or even as a standalone device, the
ezLCD family of products were primarily designed to work as an embedded client. When used as a
client the ezLCD will be controlled and communicated to by a host through one of its ports, sometimes
referred to as I/O (input/output) ports. One of the ezLCD ports will be hooked to the compatible port on
a host.
The host can be a micro-controller like an AVR, PIC or ARM micro-controller The host can also be a
PC as it is in the examples we’ve shown up to now. More specific examples of embedding and
connecting the ezLCD-3xx to other micro-controllers can be found on the ezLCD-3xx product page at
We suggest that beginners take a look at the Arduino application
notes.
15.1 The ezLCD-3xx Command Port
Ports are the way the ezLCD-3xx talks to the outside world. Ports on the ezLCD-3xx currently include
USB and Serial. In the examples provided earlier in the manual, your command port is set to USB. As
with previous generations of the ezLCD, most customers will use the provided tools and their PC to
develop their user interface.
In a typical application, the ezLCD is connected to a micro-controller through one of its ports. The
CMD command will let you set the command port to another besides the factory default USB. Most
ezLCD application notes will use serial port 2 which is set by the following command:
First configure the GPIOs to the pins you are using for the serial. Typically this is;
cfgio 4 serial2_tx 115200 N81
'Configure Command Port to SERIAL2 TX
cfgio 3 serial2_rx 115200 N81
Now change the command port to the serial2 uart
cmd serial2
'115200 BAUD No Parity, 8 bits 1 Stop Bit
You could have used serial1,2 or 3 in this example.
Note
:
You cannot communicate with the ezLCD with any terminal program unless the command port
is set to the correct COM port and baud rate. If you want to use the USB port type the command:
CMD CDC
In this manual we showed you how to use the ezLCD-3xx using the full ASCII
long
command. Every
ezLCD-3xx command has two formats:
long
and
short
. On your micro-controller, which may have a
limited amount of memory, you may want to use the short form which is a numeric ASCII string taking
only one to three bytes (1-999) as shown in
Appendix B
.
59
Summary of Contents for ezLED-3 Series
Page 25: ...25 Dial Choice Digital Meter ...
Page 26: ...26 Progress Bar Radio Button Slider Slider scroll bar option ...
Page 27: ...27 Static Box Framed Static Box ...
Page 66: ...ezLCD 302 240 x 160 4 3 4096 Reflective Color TFT Sunlight Readable NO Touchscreen 66 ...
Page 67: ...Appendix C EarthSEMPL Colors 67 ...
Page 68: ...68 ...
Page 69: ...69 ...
Page 70: ...70 ...
Page 71: ...71 ...
Page 78: ...78 ...