subject
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)

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
question
Engineering, 04.07.2019 18:20
Atank with constant volume contains 2.27 kg of a mixture of water phases (liquid-vapor). in the initial state the temperature and the quality are 127 °c and 0.6, respectively. the mixture is heated until the temperature of 160 oc is reached. illustrate the process in a t-v diagram. then, determine (1) the mass of the vapor in kg at the initial state, (2) the final pressure in kpa.
Answers: 3
question
Engineering, 04.07.2019 19:10
Afoot bridge is made as a simple deck, 4 m long, with a cross section 2 m (wide) and 20 cm thick, and made of wood. the deck is supported at the two ends. the maximum load allowable on the bridge is 10 tons, provided it is uniformly distributed on the deck. to sense this load, a strain gauge is placed at the center of the bridge and its resistance is monitored. if the sensor has a nominal resistance of 350 s2 and a gauge factor of 3.6, what is the reading of the strain gauge at maximum load? the modulus of elasticity for the wood used in the construction is 10 gpa.
Answers: 2
question
Engineering, 04.07.2019 19:10
Agas contained within a piston-cylinder assembly e end nation about same energy states, 1 and 2, where pi 10 bar, v undergoes two processes, a and b, between the sam 0.1 m3, ui-400 kj and p2 1 bar, v2 1.0 m2, u2 200 kj: process a: process from 1 to 2 during which the pressure- volume relation is pv constant process b: constant-volume process from state 1 to a pressure of 2 bar, followed by a linear pressure-volume process to +20 0 state 2 kinetic and potential energy effects can be ignored. for each of the processes a and b, (a) sketch the process on p-v coordinates, (b) evaluate the work, in kj, and (c) evaluate process the heat transfer, in kj
Answers: 2
You know the right answer?
Write a program to create a 3-bit counter with direction using the built in led’s for the msp432 lau...
Questions
question
Mathematics, 31.08.2021 01:00
question
Physics, 31.08.2021 01:00
question
Mathematics, 31.08.2021 01:00
Questions on the website: 13722359