SlideShare a Scribd company logo
11
Most read
12
Most read
14
Most read
Abstract:
 Earlier in microcontroller based approach, every LCD
display was associated with a static input.
 This input was static and cannot be changed by user easily
as and when needed. Thus restricting the flexibility to user
can have in updating the data.
 In this topic, we propose to design a prototype where we
interface LCD display through FPGA board so as to provide
flexibility of data which is being displayed directly to LCD.
Thus, this design based Device can prove beneficial for
future Consumer Electronics Market.
 In this design, for serial communication, multi UART with
configurable baud rate is implemented.
 The multi UART and LCD driver are implemented with
Verilog language and can be integrated into the FPGA to
achieve compact, stable and reliable data transmission.
Index Terms : FPGA, LCD
Tools and equipments used:
a) XILINX SPARTAN 300AN FPGA Board
b) XILINX-7.1 SUITE
c) LCD
d) Connecting leads and wires
INTRODUCTION :
 Text LCD modules are cheap and easy to interface
using a microcontroller or FPGA.
 A liquid-crystal display (LCD) is a flat panel display,
electronic visual display, or video display that uses the
light modulating properties of liquid crystals.
 Liquid crystals do not emit light directly.
 LCDs are available to display arbitrary images (as in a
general-purpose computer display) or fixed images
which can be displayed or hidden, such as preset
words, digits, and 7-segment displays as in a digital
clock. They use the same basic technology, except that
arbitrary images are made up of a large number of
small pixels, while other displays have larger elements
Block diagram of LCD module from an
FPGA board
Pluto receives data from the PC serial port, de-serializes it, and sends it
to the LCD module. The de - serializer is the same module from the serial
interface project, so it is just instantiated here.
Lcd module interface with xilinx software using verilog
16x2 LCD :
 Liquid Crystal Display is an electronic display
module.
 A 16x2 LCD display is very basic module and is very
commonly used in various devices and circuits
 It can display 16 characters per line and there are
2 such lines
Pin diagram:
Black box for FPGA(Sparten 3):
Schematics to Interface 2x16 LCD with Spartan-3
Primer
LCD INTERFACE:
 Verilog code :
module Lcd_Display (clk, lcd_rs, lcd_rw, lcd_e, lcd_4, lcd_5, lcd_6,
lcd_7);
parameter n = 27;
parameter k = 17;
(* LOC="E12" *) input clk; // synthesis attribute PERIOD clk "100.0 MHz"
reg [n-1:0] count=0;
reg lcd_busy=1;
reg lcd_stb;
reg [5:0] lcd_code;
reg [6:0] lcd_stuff;
(* LOC="Y14" *) output reg lcd_rs;
(* LOC="W13" *) output reg lcd_rw;
(* LOC="Y15" *) output reg lcd_7;
(* LOC="AB16" *) output reg lcd_6;
(* LOC="Y16" *) output reg lcd_5;
(* LOC="AA12" *) output reg lcd_4;
(* LOC="AB4" *) output reg lcd_e;
always @ (posedge clk) begin
count <= count + 1;
case (count[k+7:k+2])
0: lcd_code <= 6'b000010; // function set
1: lcd_code <= 6'b000010;
2: lcd_code <= 6'b001100;
3: lcd_code <= 6'b000000; // display on/off control
4: lcd_code <= 6'b001100;
5: lcd_code <= 6'b000000; // display clear
6: lcd_code <= 6'b000001;
7: lcd_code <= 6'b000000; // entry mode set
8: lcd_code <= 6'b000110;
9: lcd_code <= 6'h24; // H
10: lcd_code <= 6'h28;
11: lcd_code <= 6'h26; // e
12: lcd_code <= 6'h25;
13: lcd_code <= 6'h26; // l
14: lcd_code <= 6'h2C;
15: lcd_code <= 6'h26; // l
16: lcd_code <= 6'h2C;
17: lcd_code <= 6'h26; // o
18: lcd_code <= 6'h2F;
19: lcd_code <= 6'h22; //
20: lcd_code <= 6'h20;
21: lcd_code <= 6'h25; // W
22: lcd_code <= 6'h27;
23: lcd_code <= 6'h26; // o
24: lcd_code <= 6'h2F;
25: lcd_code <= 6'h27; // r
26: lcd_code <= 6'h22;
27: lcd_code <= 6'h26; // l
28: lcd_code <= 6'h2C;
29: lcd_code <= 6'h26; // d
30: lcd_code <= 6'h24;
31: lcd_code <= 6'h22; // !
32: lcd_code <= 6'h21;
default: lcd_code <= 6'b010000;
endcase
if (lcd_rw)
lcd_busy <= 0;
lcd_stb <= ^count[k+1:k+0] & ~lcd_rw & lcd_busy; // clkrate /
2^(k+2)
lcd_stuff <= {lcd_stb,lcd_code};
{lcd_e,lcd_rs,lcd_rw,lcd_7,lcd_6,lcd_5,lcd_4} <= lcd_stuff;
end
endmodule
Lcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilog
SYNTHESIS RESULT :
UCF Generated
# PlanAhead Generated physical constraints
NET "clk" LOC = E12;
NET "lcd_4" LOC = AA12;
NET "lcd_5" LOC = Y16;
NET "lcd_6" LOC = AB16;
NET "lcd_7" LOC = Y15;
NET "lcd_e" LOC = AB4;
NET "lcd_rs" LOC = Y14;
NET "lcd_rw" LOC = W13;
RTL SCHEMATIC:
Design Summary :
Lcd module interface with xilinx software using verilog
CONCLUSION :
 In this project behavioural level hardware descriptive language
Verilog is used.
 Verification of the designed RTL code using simulation techniques,
synthesis of RTL code to obtain gate level netlist using Xilinx ISE
tool was successfully designed and implemented using Verilog and
Xilinx Spatan-300AN Field Programmable Gate Array.
 Finally we were able to display “HELLO WORLD” on the LCD of
FPGA board using interfacing.
 Applications:
Aero Space and Defence
Medical Electronics
Wired and Wireless comm.
High performance computing
Scientific instruments
Video and image processing
Lcd module interface with xilinx software using verilog

More Related Content

What's hot (20)

PPTX
All About VLSI In PPT
ErVishalJangade
 
PDF
Analog Electronics interview and viva questions.pdf
Engineering Funda
 
PPTX
Triac and Diac
Rahul Sahu
 
PPTX
Stick Diagram and Lambda Based Design Rules
Tahsin Al Mahi
 
PPTX
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
elprocus
 
PDF
Embedded C programming based on 8051 microcontroller
Gaurav Verma
 
PPT
Embedded firmware
Joel P
 
PDF
verilog code for logic gates
Rakesh kumar jha
 
PDF
Digital Electronics Question Bank
Mathankumar S
 
PPTX
Vhdl programming
Yogesh Mashalkar
 
PPTX
Wi-Fi Esp8266 nodemcu
creatjet3d labs
 
PPTX
FPGA
Syed Saeed
 
PDF
CMOS Topic 5 -_cmos_inverter
Ikhwan_Fakrudin
 
PDF
Verilog tutorial
Abhiraj Bohra
 
DOCX
Switch level modeling 2 x4
Alok Singh
 
PPTX
Flip flops, counters &amp; registers
Dharit Unadkat
 
PPT
Fan-in and Fan-out.ppt
vsnishok
 
PPT
Introduction to VHDL - Part 1
Abhilash Nair
 
PPTX
Unit 3
Bandana Mallick
 
PPT
Dot convention in coupled circuits
mrunalinithanaraj
 
All About VLSI In PPT
ErVishalJangade
 
Analog Electronics interview and viva questions.pdf
Engineering Funda
 
Triac and Diac
Rahul Sahu
 
Stick Diagram and Lambda Based Design Rules
Tahsin Al Mahi
 
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
elprocus
 
Embedded C programming based on 8051 microcontroller
Gaurav Verma
 
Embedded firmware
Joel P
 
verilog code for logic gates
Rakesh kumar jha
 
Digital Electronics Question Bank
Mathankumar S
 
Vhdl programming
Yogesh Mashalkar
 
Wi-Fi Esp8266 nodemcu
creatjet3d labs
 
CMOS Topic 5 -_cmos_inverter
Ikhwan_Fakrudin
 
Verilog tutorial
Abhiraj Bohra
 
Switch level modeling 2 x4
Alok Singh
 
Flip flops, counters &amp; registers
Dharit Unadkat
 
Fan-in and Fan-out.ppt
vsnishok
 
Introduction to VHDL - Part 1
Abhilash Nair
 
Dot convention in coupled circuits
mrunalinithanaraj
 

Viewers also liked (20)

ODP
FPGA Tutorial - LCD Interface
Politeknik Elektronika Negeri Surabaya
 
DOCX
Uart
cs1090211
 
PPT
generate IP CORES
guest296013
 
PPTX
Fpga project
aroosa khan
 
ODP
Fpga creating counter with internal clock
Politeknik Elektronika Negeri Surabaya
 
PPT
Led blinking using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
PPT
Getting started with code composer studio v3.3 for tms320 f2812
Pantech ProLabs India Pvt Ltd
 
PPT
Getting started with code composer studio v4 for tms320 f2812
Pantech ProLabs India Pvt Ltd
 
PPT
Switch & LED using TMS320C6745 DSP
Pantech ProLabs India Pvt Ltd
 
PPT
Fpga(field programmable gate array)
Iffat Anjum
 
PPTX
Field programable gate array
Neha Agarwal
 
PPTX
Calculator design with lcd using fpga
Hossam Hassan
 
PPTX
Brainsense -Brain computer Interface
Pantech ProLabs India Pvt Ltd
 
PPTX
Analog to Digital Converter
Ronak Machhi
 
PDF
Types of motors and control techniques using TI motor control kit
Pantech ProLabs India Pvt Ltd
 
PPT
Lcd
deepak281292
 
PPT
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
PPTX
Microcontroller 8051 and its interfacing
Ankur Mahajan
 
DOC
8051 Microcontroller Notes
Dr.YNM
 
PPTX
Analog to digital conversion
Engr Ahmad Khan
 
FPGA Tutorial - LCD Interface
Politeknik Elektronika Negeri Surabaya
 
Uart
cs1090211
 
generate IP CORES
guest296013
 
Fpga project
aroosa khan
 
Fpga creating counter with internal clock
Politeknik Elektronika Negeri Surabaya
 
Led blinking using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
Getting started with code composer studio v3.3 for tms320 f2812
Pantech ProLabs India Pvt Ltd
 
Getting started with code composer studio v4 for tms320 f2812
Pantech ProLabs India Pvt Ltd
 
Switch & LED using TMS320C6745 DSP
Pantech ProLabs India Pvt Ltd
 
Fpga(field programmable gate array)
Iffat Anjum
 
Field programable gate array
Neha Agarwal
 
Calculator design with lcd using fpga
Hossam Hassan
 
Brainsense -Brain computer Interface
Pantech ProLabs India Pvt Ltd
 
Analog to Digital Converter
Ronak Machhi
 
Types of motors and control techniques using TI motor control kit
Pantech ProLabs India Pvt Ltd
 
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
Microcontroller 8051 and its interfacing
Ankur Mahajan
 
8051 Microcontroller Notes
Dr.YNM
 
Analog to digital conversion
Engr Ahmad Khan
 
Ad

Similar to Lcd module interface with xilinx software using verilog (20)

PDF
Experiment 16 x2 parallel lcd
Prashanta Chowdhury
 
PDF
Learn LCD Arduino-v1
handson28
 
PDF
08_lcd.pdf
ssusera55490
 
PPTX
Phdl Presentation Oct 2011
byupcbhdl
 
PPTX
131080111003 mci
jokersclown57
 
DOCX
Lcd interfacing
AshuKaranam
 
DOCX
Alp lcd
Caleb Joshua
 
PDF
4 bit lcd_interfacing_with_arm7_primer
pvmistary
 
PDF
4 bit lcd_interfacing_with_arm7_primer
pvmistary
 
PPT
Lcd interfacing1
Monica Gunjal
 
PDF
Lcd tutorial
Sujan Heuju
 
PDF
Tft touch screen manufacturers
KeatonParker2
 
PDF
Embedded Systems Project 3rd Year
Andrew Kozik
 
PPT
Lcd interface with atmega32 avr best.ppt
SoumyaGupta836456
 
PPTX
Lcd interfacing with microprocessor 8051
Hasnain Yaseen
 
PDF
DEF CON 23 - Rodringo Almeida - embedded system design from electronics
Felipe Prado
 
PDF
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
SANTIAGO PABLO ALBERTO
 
PDF
Starshrooms Midterm Presentation
scottxko
 
PPTX
Embedded systems design @ defcon 2015
Rodrigo Almeida
 
DOCX
Fpg as 11 body
Rameez Raja
 
Experiment 16 x2 parallel lcd
Prashanta Chowdhury
 
Learn LCD Arduino-v1
handson28
 
08_lcd.pdf
ssusera55490
 
Phdl Presentation Oct 2011
byupcbhdl
 
131080111003 mci
jokersclown57
 
Lcd interfacing
AshuKaranam
 
Alp lcd
Caleb Joshua
 
4 bit lcd_interfacing_with_arm7_primer
pvmistary
 
4 bit lcd_interfacing_with_arm7_primer
pvmistary
 
Lcd interfacing1
Monica Gunjal
 
Lcd tutorial
Sujan Heuju
 
Tft touch screen manufacturers
KeatonParker2
 
Embedded Systems Project 3rd Year
Andrew Kozik
 
Lcd interface with atmega32 avr best.ppt
SoumyaGupta836456
 
Lcd interfacing with microprocessor 8051
Hasnain Yaseen
 
DEF CON 23 - Rodringo Almeida - embedded system design from electronics
Felipe Prado
 
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
SANTIAGO PABLO ALBERTO
 
Starshrooms Midterm Presentation
scottxko
 
Embedded systems design @ defcon 2015
Rodrigo Almeida
 
Fpg as 11 body
Rameez Raja
 
Ad

Recently uploaded (20)

PDF
William Stallings - Foundations of Modern Networking_ SDN, NFV, QoE, IoT, and...
lavanya896395
 
PDF
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
PDF
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
PPTX
Artificial Intelligence jejeiejj3iriejrjifirirjdjeie
VikingsGaming2
 
PPTX
Precooling and Refrigerated storage.pptx
ThongamSunita
 
PPTX
Diabetes diabetes diabetes diabetes jsnsmxndm
130SaniyaAbduNasir
 
PDF
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
PDF
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
PDF
Plant Control_EST_85520-01_en_AllChanges_20220127.pdf
DarshanaChathuranga4
 
DOCX
Engineering Geology Field Report to Malekhu .docx
justprashant567
 
PPTX
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
 
PDF
A Brief Introduction About Robert Paul Hardee
Robert Paul Hardee
 
PPTX
CM Function of the heart pp.pptxafsasdfddsf
drmaneharshalid
 
PDF
Tesia Dobrydnia - An Avid Hiker And Backpacker
Tesia Dobrydnia
 
PPTX
template.pptxr4t5y67yrttttttttttttttttttttttttttttttttttt
SithamparanaathanPir
 
PDF
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
PDF
Bayesian Learning - Naive Bayes Algorithm
Sharmila Chidaravalli
 
PDF
LLC CM NCP1399 SIMPLIS MODEL MANUAL.PDF
ssuser1be9ce
 
PDF
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
PDF
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
William Stallings - Foundations of Modern Networking_ SDN, NFV, QoE, IoT, and...
lavanya896395
 
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
Artificial Intelligence jejeiejj3iriejrjifirirjdjeie
VikingsGaming2
 
Precooling and Refrigerated storage.pptx
ThongamSunita
 
Diabetes diabetes diabetes diabetes jsnsmxndm
130SaniyaAbduNasir
 
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
Plant Control_EST_85520-01_en_AllChanges_20220127.pdf
DarshanaChathuranga4
 
Engineering Geology Field Report to Malekhu .docx
justprashant567
 
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
 
A Brief Introduction About Robert Paul Hardee
Robert Paul Hardee
 
CM Function of the heart pp.pptxafsasdfddsf
drmaneharshalid
 
Tesia Dobrydnia - An Avid Hiker And Backpacker
Tesia Dobrydnia
 
template.pptxr4t5y67yrttttttttttttttttttttttttttttttttttt
SithamparanaathanPir
 
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
Bayesian Learning - Naive Bayes Algorithm
Sharmila Chidaravalli
 
LLC CM NCP1399 SIMPLIS MODEL MANUAL.PDF
ssuser1be9ce
 
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 

Lcd module interface with xilinx software using verilog

  • 1. Abstract:  Earlier in microcontroller based approach, every LCD display was associated with a static input.  This input was static and cannot be changed by user easily as and when needed. Thus restricting the flexibility to user can have in updating the data.  In this topic, we propose to design a prototype where we interface LCD display through FPGA board so as to provide flexibility of data which is being displayed directly to LCD. Thus, this design based Device can prove beneficial for future Consumer Electronics Market.  In this design, for serial communication, multi UART with configurable baud rate is implemented.  The multi UART and LCD driver are implemented with Verilog language and can be integrated into the FPGA to achieve compact, stable and reliable data transmission.
  • 2. Index Terms : FPGA, LCD Tools and equipments used: a) XILINX SPARTAN 300AN FPGA Board b) XILINX-7.1 SUITE c) LCD d) Connecting leads and wires
  • 3. INTRODUCTION :  Text LCD modules are cheap and easy to interface using a microcontroller or FPGA.  A liquid-crystal display (LCD) is a flat panel display, electronic visual display, or video display that uses the light modulating properties of liquid crystals.  Liquid crystals do not emit light directly.  LCDs are available to display arbitrary images (as in a general-purpose computer display) or fixed images which can be displayed or hidden, such as preset words, digits, and 7-segment displays as in a digital clock. They use the same basic technology, except that arbitrary images are made up of a large number of small pixels, while other displays have larger elements
  • 4. Block diagram of LCD module from an FPGA board Pluto receives data from the PC serial port, de-serializes it, and sends it to the LCD module. The de - serializer is the same module from the serial interface project, so it is just instantiated here.
  • 6. 16x2 LCD :  Liquid Crystal Display is an electronic display module.  A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits  It can display 16 characters per line and there are 2 such lines
  • 8. Black box for FPGA(Sparten 3):
  • 9. Schematics to Interface 2x16 LCD with Spartan-3 Primer
  • 11.  Verilog code : module Lcd_Display (clk, lcd_rs, lcd_rw, lcd_e, lcd_4, lcd_5, lcd_6, lcd_7); parameter n = 27; parameter k = 17; (* LOC="E12" *) input clk; // synthesis attribute PERIOD clk "100.0 MHz" reg [n-1:0] count=0; reg lcd_busy=1; reg lcd_stb; reg [5:0] lcd_code; reg [6:0] lcd_stuff; (* LOC="Y14" *) output reg lcd_rs; (* LOC="W13" *) output reg lcd_rw; (* LOC="Y15" *) output reg lcd_7; (* LOC="AB16" *) output reg lcd_6; (* LOC="Y16" *) output reg lcd_5;
  • 12. (* LOC="AA12" *) output reg lcd_4; (* LOC="AB4" *) output reg lcd_e; always @ (posedge clk) begin count <= count + 1; case (count[k+7:k+2]) 0: lcd_code <= 6'b000010; // function set 1: lcd_code <= 6'b000010; 2: lcd_code <= 6'b001100; 3: lcd_code <= 6'b000000; // display on/off control 4: lcd_code <= 6'b001100; 5: lcd_code <= 6'b000000; // display clear 6: lcd_code <= 6'b000001; 7: lcd_code <= 6'b000000; // entry mode set 8: lcd_code <= 6'b000110; 9: lcd_code <= 6'h24; // H 10: lcd_code <= 6'h28; 11: lcd_code <= 6'h26; // e 12: lcd_code <= 6'h25;
  • 13. 13: lcd_code <= 6'h26; // l 14: lcd_code <= 6'h2C; 15: lcd_code <= 6'h26; // l 16: lcd_code <= 6'h2C; 17: lcd_code <= 6'h26; // o 18: lcd_code <= 6'h2F; 19: lcd_code <= 6'h22; // 20: lcd_code <= 6'h20; 21: lcd_code <= 6'h25; // W 22: lcd_code <= 6'h27; 23: lcd_code <= 6'h26; // o 24: lcd_code <= 6'h2F; 25: lcd_code <= 6'h27; // r 26: lcd_code <= 6'h22; 27: lcd_code <= 6'h26; // l 28: lcd_code <= 6'h2C; 29: lcd_code <= 6'h26; // d
  • 14. 30: lcd_code <= 6'h24; 31: lcd_code <= 6'h22; // ! 32: lcd_code <= 6'h21; default: lcd_code <= 6'b010000; endcase if (lcd_rw) lcd_busy <= 0; lcd_stb <= ^count[k+1:k+0] & ~lcd_rw & lcd_busy; // clkrate / 2^(k+2) lcd_stuff <= {lcd_stb,lcd_code}; {lcd_e,lcd_rs,lcd_rw,lcd_7,lcd_6,lcd_5,lcd_4} <= lcd_stuff; end endmodule
  • 17. SYNTHESIS RESULT : UCF Generated # PlanAhead Generated physical constraints NET "clk" LOC = E12; NET "lcd_4" LOC = AA12; NET "lcd_5" LOC = Y16; NET "lcd_6" LOC = AB16; NET "lcd_7" LOC = Y15; NET "lcd_e" LOC = AB4; NET "lcd_rs" LOC = Y14; NET "lcd_rw" LOC = W13;
  • 21. CONCLUSION :  In this project behavioural level hardware descriptive language Verilog is used.  Verification of the designed RTL code using simulation techniques, synthesis of RTL code to obtain gate level netlist using Xilinx ISE tool was successfully designed and implemented using Verilog and Xilinx Spatan-300AN Field Programmable Gate Array.  Finally we were able to display “HELLO WORLD” on the LCD of FPGA board using interfacing.
  • 22.  Applications: Aero Space and Defence Medical Electronics Wired and Wireless comm. High performance computing Scientific instruments Video and image processing