Interface binary io devices to the microcontroller we will

Assignment Help Electrical Engineering
Reference no: EM13348027

Interface binary I/O devices to the microcontroller. We will continue using functions to encapsulate the low level details of the code to make programs more readable and make the code within the function reusable.

All work is to be completed on your own. You can use the Tivaware examples in the C:\ti\TivaWare_C_Series-1.1\examples\boards\ek-tm4c123gxl directory, the class notes, and the book for reference, but please do not discuss this project with other students. You can use the functions provided in the example code segments discussed in class and included in the framework file posted to Angel as a starting point for your code.

Operation

1. Initialize the hardware and turn off all the LEDs, motor, relay, and incandescent light.
2. Repeat the following steps:
a. Debounce switch 1 and switch 2.
b. If switch 1 is pressed, increment a counter.
c. If switch 2 is pressed, decrement a counter.
d. If both switches are pressed, clear the counter.
e. If the counter reaches zero, further presses of switch 2 are ignored.
f. If the counter reaches three, further presses of switch 1 are ignored.
g. If the counter is 0, turn everything off.
h. If the counter is 1, turn on the red LED and the motor.
i. If the counter is 2, turn on the green LED and the solenoid.
j. If the counter is 3, turn on the blue LED and the incandescent light.

Reference no: EM13348027

Questions Cloud

Assume that you are the assistant to the cfo of xyz : assume that you are the assistant to the cfo of xyz company.nbsp your task is to estimate xyzs wacc using the following
John and jane doe are senior vice presidents of insurance : john and jane doe are senior vice presidents of insurance mutual of tampa. they co-manage the equity investments for
Question 1californian almond orchands are using : question 1californian almond orchands are using approximately one million bee hives each spring to pollinate the almond
Question 1 which type of study design is each of the : question 1 which type of study design is each of the following briefly describe why?i the smoking histories of patients
Interface binary io devices to the microcontroller we will : interface binary io devices to the microcontroller. we will continue using functions to encapsulate the low level
Problem 1pre-contribution balance sheets and fair : problem 1pre-contribution balance sheets and fair valuesjune 30 20x9in thousands of
If you were in charge of implementing a quality strategy : if you were in charge of implementing a quality strategy and benchmark your efforts with the competition how would do
Case study1-evaluate harrogate borough councils approach to : case study1-evaluate harrogate borough councils approach to quality management with particular reference to the system
Prepare a research paper on two independent variables one : prepare a research paper on two independent variables one of the is ordinal and the other is interval on two dependant

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Determine the average value of a half-sine waves

a circuit for an ac voltmeter utilizes a moving-coil meter that gives a full-scale reading when the average current flowing throught it is 1mA. The moving-coil meter has a 50-ohm resistance.

  Find minimized sop equations for flip-flop inputs and output

Create the circuit to implement the state table given below. Assume that on reset, the current state will become Q1Q0 = 00 using asynchronous inputs to the flip-flops. Note that the next state and output for state 3 are don't-cares.

  Determine auto correlation rxx for signal x

An Audio Signal s(t) generated by a loud speaker is reflected at two different walls with reflection coefficients r1 and r2. The signal x(t) recorded by a microphone to the loud speaker, after sampling is x(n) = s(n) +r1s(n-k1) + r2s(n-k2)

  Determine value of n for diode operating at constant temp

Suppose we have a junction diode operating at a constant temperature of 300K. With a forward current of 1mA, the voltage is 600mV. Furthermore, with a current of 10mA,the voltage is 700mV. Find the value of n for this diode.

  Find the minimal two level nor gate implementation

(b) Find and list all essential prime implicants of the F function. (c) Find the minimal two level NAND gate implementation of the F function. Find the gate input cost. (d) Find the minimal two level NOR gate implementation of the F function. Find th..

  Find the minimum sum-of-products form for f

(a) Find the maxterm expression for F. Express your answer both in decimal and algebraic form. (b) Use a Karnaugh map to find the minimum sum-of-products form for F'. (c) Find the minimum product-of-sums for F.

  Determine what is the capacitance of the capacitor

A capacitor is formed by two metal parallel plates with thearea 5.1 um*um. The distance between plates is 4.3 um. The gap between plates is filled with the dielectric material with dielectric constant 19. What is the capacitance of this capacitor?

  Polyethylene with r 225 is used as the insulating

polyethylene with ?r 2.25 is used as the insulating material in a lossless coaxial line with a characteristic

  Determined capacitor voltage and charging current

A series of combination having R=2Mohm and C=0.01 UF is connected across a D.C. voltage source of 50V. Determined capacitor voltage and charging current after 0.02s, 0.04s and 1 hour.

  Determine the expected resistance of the material

Assuming the resistance versus temperature function to be linear, determine the expected resistance of the material at 0 degrees celcius( the freezing point of water) and at 100 degrees celcius (the boiling point of water)

  Determine the voltage v across the circuit

A circuit consists of a current source, i=0.030 sin 500t, in parallel with L=20mH, C=50 micro Farads and R=25 Ohms. a. Determine the voltage V across the circuit. b. Solve for the power factor of the circuit.

  Determine the voltage drop across the 20 ohm resistor

determine the voltage drop across the 20 Ohm resistor with respect to the 48 V source. I'm having difficulty understanding why the voltage comes out to a negative 12 V, then to a negative 8 V.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd