Question: Homework 5-Write a program for the MSP430G2 Launchpad that will use the two built in LED's as a two-bit binary counter. The program will use

 Homework 5-Write a program for the MSP430G2 Launchpad that will use

Homework 5-Write a program for the MSP430G2 Launchpad that will use the two built in LED's as a two-bit binary counter. The program will use two buttons. One button will increment the counter and the other will decrement the counter . The program is expected to run on the MSP430G2 Launchpad The LSB of the counter must be LED2 (controlled by P1.6) The MSB of the counter must be LED1 (controlled by P1.0) The count up function must be activated with the S2 button (P1.3) . The count down function must be done with another pair of GPIO pins" using an external SPST switch (S3) that will be provided in class. The program must provide an internal pull up resistor for the P1.3 input On the G2 Launchpad the S2 button is connected from P1.3 to ground o o And it may or may not have an external pull up resistor The S3 Vcc connection must be created by outputting Vcc on a GPIO pin It should be de-bounced with a wait state at minimum The S3 button must be connected between the input pin and Vcc o The counter should change only once every time that a button is pressed and released O . The program must poll the S2 button for its value (No interrupt service routine) *The pins that must be used for S3 are as follows ASCII value of upper case first letter of first name odd odd odd odd ASCII value of upper case first letter of last name odd odd even most digit of ID # odd odd odd odd Pins used for S3 P1.4, P2.0 P1.5, P2.1 P1.4, P2.1 P1.5, P2.2 P1.4, P2.2 P1.7, P2.5 P1.7, P2.4 P1.7, P2.3 even even even odd odd even even even Example: first G-71, last T- 84, RMD-2S3 is on P1.5, P2.2 Homework 5-Write a program for the MSP430G2 Launchpad that will use the two built in LED's as a two-bit binary counter. The program will use two buttons. One button will increment the counter and the other will decrement the counter . The program is expected to run on the MSP430G2 Launchpad The LSB of the counter must be LED2 (controlled by P1.6) The MSB of the counter must be LED1 (controlled by P1.0) The count up function must be activated with the S2 button (P1.3) . The count down function must be done with another pair of GPIO pins" using an external SPST switch (S3) that will be provided in class. The program must provide an internal pull up resistor for the P1.3 input On the G2 Launchpad the S2 button is connected from P1.3 to ground o o And it may or may not have an external pull up resistor The S3 Vcc connection must be created by outputting Vcc on a GPIO pin It should be de-bounced with a wait state at minimum The S3 button must be connected between the input pin and Vcc o The counter should change only once every time that a button is pressed and released O . The program must poll the S2 button for its value (No interrupt service routine) *The pins that must be used for S3 are as follows ASCII value of upper case first letter of first name odd odd odd odd ASCII value of upper case first letter of last name odd odd even most digit of ID # odd odd odd odd Pins used for S3 P1.4, P2.0 P1.5, P2.1 P1.4, P2.1 P1.5, P2.2 P1.4, P2.2 P1.7, P2.5 P1.7, P2.4 P1.7, P2.3 even even even odd odd even even even Example: first G-71, last T- 84, RMD-2S3 is on P1.5, P2.2

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!