The Touch Display 4. 3
The Touch Display 4. 3 is composed of a 4. 3 inch
LCD, an LCD driver chipset, a resistive touch screen driver,
a large memory IC, and a 16-bit PIC24EP512GU810
microcontroller. To be exact, the Touch Display 4. 3 is
comprised of a 480x272 Kentec TFT display, an Epson
S1D13517 display controller, a Semtech SX8651 touch
controller, and a 256M Spansion S34ML02G1 Flash
Turning the Touch Display over on its back in Photo 1,
we see a USB portal, a PIC programming jack, a power
jack, and a 10-pin male header. The USB portal is used to
communicate with the CCS Interface Designer application,
with typical traffic being image data and command strings.
However, the programmer can call upon and apply the full
range of CCS-supplied USB CDC functions if the user
application requires the use of the Touch Display’s USB
The 4. 3’s programming jack is standard issue and can
accommodate either a CCS programmer/debugger
module or a Microchip ICD 3 hockey puck.
During the preparation for this discussion, I
used a Microchip ICD 3 and the latest
version of MPLAB X.
I was also successful using a combination
of CCS’s CCSLOAD utility and an ICD 3.
Microchip’s MPLAB IPE (Integrated
Programming Environment) with an ICD 3
attached was tested successfully as well.
The 10-pin male header is a gateway to
some of the Touch Display’s onboard PIC
microcontroller I/O pins. An ST2378E eight-bit dual supply 1.71V to 5.5V level translator
presents a TTL-level ( 5.0 volt) interface on the
The incoming nine volt power and
ground entering the power jack can also be
tapped at the 10-pin header.
Touch Display 4. 3 Programming Model
The Touch 4. 3 widgets involved with putting together
a coherent GUI are images, windows, areas, and actions.
Images can be canned or handcrafted using graphic
editors like the CCS Paint utility or Photoshop. Touch
Display 4. 3 Windows are designed to logically contain an
image or multiple images. Areas and actions are directly
related to images in that an area can be drawn within an
Touching the areas triggers actions. Actions range
from removing or adding windows and images, to kicking
off a C function. Areas are also used to display text
through a Text Box. Text Box areas do not register
touches. Instead, they display text within the area.
The assembly and management of the code behind
the images, windows, areas, and actions is governed by
the CCS Interface Designer application. The Interface
Designer allows the Touch Display 4. 3 programmer to
import images, which are ultimately placed within
windows. The images can be resized upon importation.
Graphical LCD Programming with
the Touch Display 4. 3
■ BY FRED EADY
If you are a CCS PICC C compiler user, you already know how easy it is to use the
CCS C compiler. The folks at CCS have added a GUI component to their PICC
arsenal that is just as easy to use. If you’re beyond writing serial port based user
menus, or have a need to display some data and gather user input using color and
graphics, you will definitely be interested in this month’s discussion. We are going
to do some graphical LCD programming with the CCS Touch Display 4. 3 and CCS’s
PICC C compiler.
THE DESIGN CYCLE
■ PHOTO 1. This is the behind-the-scenes production department of the
Touch Display 4. 3. Everything needed to support the TFT LCD on the
other side can be found here.
January 2018 55