Interfacing 4x4 keypad with 16x2 LCD on FPGA using VHDL

OP #6841204
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!
Guest #6841327
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

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now