Page 1 of 1

QUESTION 4 Consider this scenario: You have installed a first-person shooting game into your PC. However, you do not hav

Posted: Sun May 15, 2022 12:52 pm
by answerhappygod
Question 4 Consider This Scenario You Have Installed A First Person Shooting Game Into Your Pc However You Do Not Hav 1
Question 4 Consider This Scenario You Have Installed A First Person Shooting Game Into Your Pc However You Do Not Hav 1 (50.05 KiB) Viewed 110 times
QUESTION 4 Consider this scenario: You have installed a first-person shooting game into your PC. However, you do not have a gaming controller as an input device to play the game. Therefore, you have used the keyboard as the controller. Before this is possible, you are required to map specific keys to the respective buttons of a gaming controller. Perform the following steps to design a decoder that would map the required keyboard keys to the needed controller buttons. Main task: Map the keys W. S, A, and D to Up, Down, Left, and Right respectively. Hint: W, S, A, and D provides the binary inputs; Up, Down, Left, and Right are outputs. a) Assuming the binary codes of some keys are as follows: Key A D G J M P S Binary 000 001 010 011 100 101 110 111 W Construct a 3-bit decoder truth table with active LOW output (no Enable needed and assume unrelated keys to not activate any output). b) Design the logic diagram of the 3-bit decoder based on the truth table.