Question: microcontroller used is MSP430F5438A Interfacing matrix keyboard with a Microcontroller is the most common practice and important part of any embedded systems. Lab 3 will
Interfacing matrix keyboard with a Microcontroller is the most common practice and important part of any embedded systems. Lab 3 will provide you an opportunity to control a 4x4 matrix keypad (S1-S16) using the P2 Port (P2.0-P2.7 except P2.5) and P3.5 of the MSP430F5438A. Please complete the following task: When the key SI is pressed, all 7-segment displays show the digit 0 (i.e., the key Si represents O on the keyboard); when the S2 key is pressed, all the displays show the digit I (i.e., the key S2 represents l on the keyboard); the S3 key is pressed, all the displays show the digit 2 (i.e., the key S3 represents "2" on the keyboard)... the S16 key is pressed, all the displays show the digit "F" (i.e., the key S16 represents "F" on the keyboard). Please write your branching code using "Switch Case" instead of "If...else..." statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
