Difficulty: Easy
Correct Answer: Hi-Z
Explanation:
Introduction / Context:
Shared buses require that only one device drive the lines at a time. In keypad HDL designs, the encoded key data should be driven only when valid and requested. Otherwise, the outputs must not contend with other devices.
Given Data / Assumptions:
Concept / Approach:
When data is not valid, the keypad interface should tri-state its data outputs so that other peripherals can use the bus. Driving a pattern during idle risks contention or false reads by a host that samples multiple devices.
Step-by-Step Solution:
Verification / Alternative check:
On a logic analyzer, observe that when no key is pressed, the data lines float (pulled by bus resistors if present) and only drive when dav asserts.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting to tri-state in idle can cause multi-driver conflicts; failing to debounce can briefly drive spurious codes before dav is qualified.
Final Answer:
Hi-Z
Discussion & Comments