[source]

Entity pmod_KYPD

CLOCK_FREQSCAN_FREQBOUNCE_TIMEClockstd_logicResetstd_logicRows_n[3 downto 0]std_logic_vectorKeysT_PMOD_KYPD_KEYPADColumns_nstd_logic_vector[3 downto 0]

Block Diagram of pmod_KYPD

This module drives a 4-bit one-cold encoded column vector to read back a 4-bit rows vector. By scanning column-by-column it's possible to extract the current button state of the whole keypad. This wrapper converts the high-active signals from PoC.io.KeypadScanner to low-active signals for the pmod. An additional debounce circuit filters the button signals. The scan frequency and bounce time can be configured.

Generics

Name

Type

Default

Description

CLOCK_FREQ

FREQ

100 MHz

SCAN_FREQ

FREQ

1 kHz

BOUNCE_TIME

time

10 ms

Ports

Name

Type

Direction

Description

Clock

std_logic

in

Reset

std_logic

in

Keys

T_PMOD_KYPD_KEYPAD

out

Matrix interface

Columns_n

std_logic_vector

out

KeyPad interface

Rows_n

std_logic_vector

in