EmbDev.net

Forum: FPGA, VHDL & Verilog Interfacing 4x4 keypad with 16x2 LCD on FPGA using VHDL


von Sebastian M. (n30)


Rate this post
useful
not useful
Hello all! I have recently dived into the world of FPGA, and have 
challenged my self to see if you are able to take an input from a 4x4 
keypad and display the output on an 16x2 LCD utilizing the DE-10 LITE 
FPGA board on quartus. I have found out how to send the keypad inputs to 
seven segment display and how to utilize the LCD on it's own.. although 
now putting the two together is where I have hit a brick wall. As you 
all know there is not much VHDL resources online so if anyone has 
accomplished this please feel free to respond and lend a helping hand 
thank you!

von Duke Scarring (Guest)


Rate this post
useful
not useful
Can you show the internal interfaces of your keypad controller and your 
lcd controller?
Maybe you need a state machine to connect both things together.

My lcd controller looks like this:
1
entity lcd_controller is
2
    generic
3
    (
4
        clk_frequency : integer := 10_000_000
5
    );
6
    port 
7
    (
8
        clk     : in  std_ulogic;
9
        --
10
        line1   : std_ulogic_vector( 127 downto 0)   := ( others => '0');
11
        line2   : std_ulogic_vector( 127 downto 0)   := ( others => '0');
12
        update  : std_ulogic                         := '0';
13
        --
14
        db      : out std_ulogic_vector(7 downto 0);
15
        rs      : out std_ulogic;
16
        rw      : out std_ulogic;
17
        en      : out std_ulogic
18
    );
19
end entity lcd_controller;

Duke

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig