plizz help me solve this problem... thnks

Discussion in 'Programmer's Corner' started by ramo, Feb 5, 2010.

  1. ramo

    Thread Starter New Member

    Feb 5, 2010
    2
    0
    i need to interface a keypad 4x4 to xilinx spartan 3 starter kit board. the problem is that i need to use VHDL code so that the signal from the keypad will convert to ASCII code for the FPGA to read.

    example

    if i press button 1, the VHDL code will convert it to 0110001 (ASCII code for 1).

    help me. its my school project.
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Keypads are usually implemented as pushbutton switches located in a row and column matrix. The location of any key on the keypad can be based on two coordinates: the row and column position for that key. Then you can use a look-up table​
     
  3. ramo

    Thread Starter New Member

    Feb 5, 2010
    2
    0
    thnks for the reply. =)
     
Loading...