Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DESIGN PROJECT
[KE30602]
APPLICATION NOTE
LCDs
Liquid crystal displays (LCDs) are thin, flat display devices made up of any number of
color or monochrome pixels arranged in front of a light source or reflector. These
displays have become an indispensable part of most of electronic devices. Some
features that have made LCDs popular are:
Most LCD modules are equipped with a generic interface, on-board controllers, and on-
board driver. Thus, using an LCD to enhance the visual appeal of any application has
become a lot simpler. Some devices that use LCD displays are wrist watches, calculators,
laptops, PDAs, cellular phones, home electronics, and in our project (digital clock with
remote control).
Executive Summary
Many times a Liquid Crystal Display (LCD) interface is needed to display information.
There are multiple common protocols that are used for LCDs.This application note will
show how to interface a typical parallel protocol LCD and a Programmable Integrated
Circuit (PIC).
Objective
This application note will explain how to control the LCD 16*2BL with a Microchip
PIC16F876A.
Introduction
This document details the implementation of an LCD controller in a PIC16F876A.The
example display uses an 16*2 Dot Matrix LCD module, such as the popular SC1602D
device. The controller receives its into commands that are understood by the LCD
module. Togather, the devices can be used to created a simple and inexpensive
information display for a wide range of projects.
LCD Controller
You can easily integrate this controller design into any application to provide a suitable
display unit. It meets the timing constraints of the LCD by generating the necessary
timing signals and simultaneously off loads the microprocessor and controller from
details of the LCD, thereby allowing the processor and the controller to carry out their
other operations efficiently.
Recommendations
Although this code was built to work on a certain model of LCD, and use the Microchip
PIC16F876A, the techniques can be adapted to any parallel LCD or PIC that has similar
characteristics. The pins chosen in Figure 1 were recommended pins and are not in any
particular order. Any of the 28 I/O oins that PIC provides are sufficient to control the
LCD. For a particular project, use the pins that make the most sense for board design
and implementation.
The full circuit of PIC16F876A interface with LCD 16*2
Conclusion
This application note demonstrates how to control a parallel LCD with a PIC. Using the
same techniques, other parallel interfaces can be controlled via a PIC. Furthermore, this
application note demonstrated how to take existing libraries and manipulate them into
operating different hardware and running on different hardware than the library was
intended. By using this technique, the developer can save time and reduce bugs using
software that has already been used by other people.
References
1 . Microchip Technology, Inc. (2006). 16-bit Development Boards, Tools, and Libraries.
Retrieved March 29, 2007, from
http://www.microchip.com/stellent/idcService=SS_GET_PAGE&nodeId=2035