Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21336 Discussions

LCD without SOPC builder and NOIS II

Altera_Forum
Honored Contributor II
2,075 Views

is it possible to use LCD by write a program in verilog without using SOPC builder and NOIS II?? if so, can you tell what steps should i go through? i have DE2 board!

0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
725 Views

I guess you are talking about 16x2 character LCD available on DE2. If this is the case then you can write simple state machine in verilog to operate LCD's initialization and other things you want to include. I think you should study LCD's datasheet to know what steps you need to take.

0 Kudos
Altera_Forum
Honored Contributor II
725 Views

Attached a Verilog sample LCD driver. 

 

It initializes then continuously updates a 16x2 LCD from a bank of wires. The wires are ASCII chars, "Hello there 32 chars ..." etc. 

 

The timing can be a little bit finicky. I had to add some proper timing constraints to the output signals to get it working on a Cyclone III DSP board.
0 Kudos
Altera_Forum
Honored Contributor II
725 Views

thanks! but just wondering how can i access the driver?! because i think you need to command the driver first! am i wrong?

0 Kudos
Altera_Forum
Honored Contributor II
725 Views

The sample Verilog will take care of initializing the driver chip on the LCD board. It has a power up init protocol similar to a DRAM chip. Then it sweeps through the ASCII data you provide one character at a time. 

 

The displays have fancy features for cursors, changing character sets, etc. If you want to use that stuff you will need a more detailed control state machine.
0 Kudos
Altera_Forum
Honored Contributor II
725 Views

and do you know where can i find more info?

0 Kudos
Altera_Forum
Honored Contributor II
725 Views

Feeling brave? Attached is the datasheet for the LCD on DE2.

0 Kudos
Altera_Forum
Honored Contributor II
725 Views

Thanks man!

0 Kudos
Reply