Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

LCD without SOPC builder and NOIS II

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!

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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