Overview
This is a very simple design that initializes the Altera DE2
LCD and displays 32-bit hexadecimal numbers. To get
initialization, commands and timing, use the datasheet for the
LCD part number CFAH1602B-TMS-JP supplied with the DE2 CD-ROM
in the datasheet folder.
Design description
There are three modules in this design.
lcd_display simplifies the interface to the LCD by taking
care of generating the correct signals to the LCD with proper
timing. It waits for the self-initialization process of the LCD
to finish and then accepts user input. The user indicates if the
input data is a command or a write and the delay to wait after
the input data is given to the LCD. This way the user does not
need to take care of any timing and is advised of the completion
of the command with a signal. For the Altera board this module
is simpler than for the Xilinx board because the LCD interface
is used in 8-bit mode rather than 4-bit mode
lcd_write_number
is a module that initializes the LCD and then waits for a
32-bit number input from a user to display in hexadecimal
representation.
Finally, the test
module
lcd_write_number_test
uses the lcd_write_number module to display a running 32-bit
counter on the display.
Design files
altera_lcd.zip