Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the following code and keypad layout, what will the function GetKey () return when it is run while keys 1, 4, 6, 9 and
Given the following code and keypad layout, what will the function GetKey () return when it is run while keys 1, 4, 6, 9 and D are pressed? 0 row 0 PORTx(01 row 1 PORT1] PORT 2] keypad row 33 PORT 3] Vcc 10 K Read k column 0 PORTI4] Vce 10 K Read ke column 1 PORT [5] Vce 10 K d column 2 PORT (6] Vce 10 K Read column 3 PORT7] TRISB != 0x000000F0 ; LATB = 0x0000000F; unsigned char GetKey (void) { unsigned char KeyMask [16] = ( OxEE, OxDE, OxBE, 0x7E, OXED, 0xDD, 0xBD, 0x7D, 0xEB, 0xDB, 0xBB, 0x7B, 0xE7, 0xD7, 0xB7, 0x77 int i char Key; for (Key-0, i-0 i
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started