Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Simple LCD Verilog codes for display characters

Status
Not open for further replies.

engrkhadim

Newbie level 3
Joined
Jun 17, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
Hello,
I'm a newbie.
Can anybody help me with a sample verilog-code to display a character on LCD.
I'm unable to manage the initializing delays.
 

engrkhadim

Newbie level 3
Joined
Jun 17, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
lcd verilog code

rameshchand said:
http://www.fpga4fun.com/TextLCDmodule.html

Thanks for your response.

But that design needs a serial interface to pc which i don't have.
I want to initialize and display a character on the LCD from within the FPGA.
 

salma ali bakr

Advanced Member level 3
Joined
Jan 27, 2006
Messages
971
Helped
104
Reputation
206
Reaction score
21
Trophy points
1,298
Activity points
7,491
lcd controller verilog

it's all written in an HDL...no need to have any additional hardware

you just need to look into your LCD datasheet...and see what control signals it needs...and write some state machines for controlling it

don't you have any documentation that says anything about LCD interface in your kit?
 

btminzon

Full Member level 2
Joined
Jun 12, 2006
Messages
122
Helped
9
Reputation
18
Reaction score
1
Trophy points
1,298
Location
Brazil
Activity points
2,144
verilog code for lcd display

Hi engrkhadim, I have wroten once in VHDL. This LCD is a 40x4 and have some rountines to control a keybord, but it´s easy to identify the primary blocks to control. The project was made in Quartus II 7.2. Follows in attachment. best regards
 

    engrkhadim

    Points: 2
    Helpful Answer Positive Rating

engrkhadim

Newbie level 3
Joined
Jun 17, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
verilog lcd code

I'm looking for a simpler code.
As I mentioned in my first post, i'm a newbie. The fpga i'm using is spartan-3e and the hardware is developed by myself and it's not a kit from company. therefore there is no documentation.

I know the working and interface of LCD and i can program it in assembly language. but i'm not familiar with HDL. I've managed to do some programming with verilog but VHDL isn't my cup of tea i think.

anyhow thanks for your responses.
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
638
Reputation
1,274
Reaction score
89
Trophy points
1,328
Location
USA
Activity points
33,176
lcd interface verilog

Here is some very crude code I wrote to display "Hello World!" on the LCD of a Xilinx Virtex-4 development board. Maybe it will help you:
#741681

Similar code, modified for the Xilinx Spartan-3E Starter Kit:
#852813
 

    engrkhadim

    Points: 2
    Helpful Answer Positive Rating

engrkhadim

Newbie level 3
Joined
Jun 17, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
verilog lcd interfacing

@ECHO47 Thanks buddy it works but I need to understand it.

Meanwhile I was trying my own code and I've become successful to show a single character full of the display. I hope I'll control this timing stuff.
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
638
Reputation
1,274
Reaction score
89
Trophy points
1,328
Location
USA
Activity points
33,176
lcd code (verilog or vhdl)

Yes, my Verilog LCD module is somewhat weird and unclear. I wrote it quickly long ago for some forgotten test purpose, and not as a teaching example.

Good luck writing your own module. Hopefully yours will be clearer and easier to use. :)
 

ipunished

Junior Member level 3
Joined
Mar 15, 2011
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
United Kingdom
Activity points
1,504
Re: lcd code (verilog or vhdl)

Yes, my Verilog LCD module is somewhat weird and unclear. I wrote it quickly long ago for some forgotten test purpose, and not as a teaching example.

Good luck writing your own module. Hopefully yours will be clearer and easier to use. :)

i can agree with the complexity of your code, as i spent all morning trying to figure out what it does.. tried overwriting hellow world with something else and it doesnt work :(
 

madushan

Newbie level 4
Joined
Jan 8, 2011
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,322
try this blog post, it includes a simple code you can customize easily to any lcd display.
**broken link removed**
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top