Question: 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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!