Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Anyway someone on here would be able to help me with my MSP430 Assignment? I dont exactly know what code it is because its not
Anyway someone on here would be able to help me with my MSP430 Assignment? I dont exactly know what code it is because its not C, we write this in Code composer studio using the msp430.h with the specific MSP430G2 board .h it uses things like P1OUT, P1RES....so on.
Homework 6-Write a program for the MSP430G2 Launchpad that will use 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 (old or new version) It must have an init() function containing all one-time configuration The LSB of the counter must be the LED controlled by P1.6 . . The MSB of the counter must be the LED controlled by P1.0 The count up function must be activated with the built-in button S2 (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 . o On the G2 Launchpad the S2 button is connected from P1.3 to ground o Older boards may or may not have an external pull-up resistor o New boards do not have an external pull-up The S3 button must be connected between the input pin and Vcc The counter should change only once every time that a button is pressed and released The program must poll the S2 button for its value (No interrupt service routine) o The S3 Vcc connection must be created by outputting Vcc on a GPIO pin . o The press and the release each must be de-bounced The pins that must be used for S3 are as follows: ASCII value of upper case first letter of first name ASCII value of upper case first letter of last name Right most digit of ID # Pins used for 53 odd even odd P1.4, P2.1 Example: first G- 71, last T- 84, RMD 2 S3 is on P1.5, P22
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