Entity 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.
Name |
Type |
Default |
Description |
---|---|---|---|
CLOCK_FREQ |
100 MHz |
||
SCAN_FREQ |
1 kHz |
||
BOUNCE_TIME |
time |
10 ms |
Name |
Type |
Direction |
Description |
---|---|---|---|
Clock |
std_logic |
in |
|
Reset |
std_logic |
in |
|
Keys |
out |
|
|
Columns_n |
std_logic_vector |
out |
|
Rows_n |
std_logic_vector |
in |
×