Wire LCD Driver
Wire LCD Driver
Wire LCD Driver
-Final Project
Submitted By:
Equipment’s:
• PIC16F877A (microcontroller)
• Crystal Oscillator
• Capacitors
• Resistors
• Potentiometer
• 74HC595 register
Introduction:
• 3-Wire LCD:
In most cases, the LCD display requires at least 4 data lines to function.
However, some microcontroller families, such as the PIC12F family, do not have this
many available pins, thus we must find a way to reduce the number of pins the LCD
display uses.
The shift register, which is serial-in parallel-out accepts serial data from the
microcontroller through two pins (data pin and clock pin), which is then used to deliver
data in serial format to the LCD display.
75HC595:
Serial Communication:
A computer bus or communication channel is used in serial
communication, a telecommunications approach that transfers data by sending bits at a time in a
sequential manner. It is the most basic method of getting a message across to a recipient.
✓ Data is transmitted in serial transmission as binary pulses. In other words, Binary One
denotes a logic HIGH or 5 Volts, and Binary Zero denotes a logic LOW or 0 Volts.
Depending on the type of transmission channel and data transfer, serial communication
can take many different forms.
Working of 75HC595:
An 8-bit shift register having serial-in, parallel-out, a storage
register, and 3-state outputs is the 74HC595. There are separate clocks for the shift and storage
registers. The device has an asynchronous reset MR input as well as a serial input (DS) and
output (Q7S) that permit cascading. The shift register is reset by a low signal on MR. When the
SHCP input switches from LOW to HIGH, data is displaced. When the STCP input transitions
from LOW to HIGH, the data in the shift register is transferred to the storage register. The shift
register and storage register will always be one clock pulse apart if the two clocks are coupled. If
the output enable input (OE) is LOW, data from the storage register is displayed at the output.
PIN Layout:
Pin Number Pin Name Description
1,2,3,4,5,6,7 Output Pins (Q1 to Q7) The 74hc595 has 8 output pins out of
which 7 are these pins. They can be
controlled serially.
8 Ground Connected to the Ground of the circuit.
9 (Q7) Serial Output This pin is used to connect more than
one 74hc595 as cascading.
10 (MR) Master Reset Resets all outputs as low. Must be held
high for normal operation.
11 (SH_CP) Clock This is the clock pin to which the clock
signal must be provided from
MCU/MPU.
12 (ST_CP) Latch The Latch pin is used to update the
data to the output pins. It is active high.
13 The Output Enable is used to turn off
(OE) Output Enable the outputs. Must be held low for
normal operation.
14 (DS) Serial Data This is the pin to which data is sent,
based on which the 8 outputs are
controlled.
15 (Q0) Output The first output pin.
16 Vcc This pin powers the IC, typically +5V
is used.
EEPROM:
The term "electrically erasable programmable read-only memory," or EEPROM,
is abbreviated. It's a flash drive memory gadget made to keep the data it contains even when the
power is off. The chip enables developers to repeatedly write to and programmed the IC. It will
be able to function as an EPROM—a UV erasable programming ROM—as a result. It is mainly
utilized in laptops and PCs. The board can be utilized as non-volatile storage by microcontrollers
for smart cards and remote keyless systems.
Code:
PCB Layout :
3D View:
• It uses less number of conducting wires, hence reduces cost of the interface.
• It supports long distance data communication.
• It uses less number of wires often only one, this leads to simple interface between
transmitting and receiving devices or ICs. It is easy to implement.
Conclusion:
Thus, in this project we have tried to implement a 3 Wire LCD driver using a
shift register which is the main part of this project. It takes data serially and then convert it to
parallel data and then display on the LCD.