Engineering
Engineering, 26.11.2019 06:31, Juicebox18

Write a program to create a 3-bit counter with direction using the built in led’s for the msp432 launchpad. the program will use two buttons for input. one button will increment the counter and the other will decrement the counter. the rgb led will indicate the state (or value) of the counter and the red led will indicate the direction of the previous button event (i. e. was the last button press an increment or decrement) • register level configuration using bitwise operators and proper mask must be used to configure all registers o the program may not use any driverlib function calls • the program must have an init() function containing all one-time configuration • the count-up function must be activated with the built-in button s1 (p1.1) • 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 configure internal pull-up/pull-down resistors on all inputs • the s3 button must be connected between the input pin and vcc o the s3 vcc connection must be created by outputting vcc to s3 • the rgb led should change state only once for every button event o a button event is defined as the press and release of a button o both the press and the release must be de-bounced • the program must poll the s1 button for its value (no interrupt service routine)

countstate

1 off

2 red (r)

3 green (g)

4 yellow (rg)

5 blue (b)

6 pink (rb)

7 blue sky (gb)

8 white (rgb)

answer
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, anna22684
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
image
Engineering, 04.07.2019 18:10, katelynn73
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
image
Engineering, 04.07.2019 18:10, juansoto227711
Journeyman training is usually related (clo2) a)-to specific tasks b)-to cost analysis of maintenance task c)-to control process to ensure quality d)-to installation of machinery
Answers: 2
image
Engineering, 04.07.2019 18:10, mirmir62
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
Do you know the correct answer?
Write a program to create a 3-bit counter with direction using the built in led’s for the msp432 lau...

Questions in other subjects: