Forum Discussion
7 Replies
- Altera_Forum
Honored Contributor
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.
- Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
thanks! but just wondering how can i access the driver?! because i think you need to command the driver first! am i wrong?
- Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
and do you know where can i find more info?
- Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
Thanks man!