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

  Find the magnetic field and inductance

A 1000 turns wire are tighly wound on a toroid with a rectangular cross section, the heigh of toroid is 0.5 cm . The inner and outer radii of 2 cm and 3cm respectively. The current in the wire I=100 mA, Ur = 4000. N= 1000, Find H,B,phi and inducta..

  Design and test a two input circuit with characteristics

Vout=3.5v1 +(-1.5)v2 . The input impedances should be: input 1: 20k, input 2:∞.Youmay need to use 2 or more op-amps (inverting, noninverting,summing, differential, voltage follower...). Show calculations anda drawing of the op amps used.

  Determine the number of turns of wire in the secondary coil

If the resultant core flux is 0.0683 Wb (max), determine (a) the number of turns of wire in the secondary coil; (b) the new core flux if the driving voltage is increased by 20 percent and the frequency is decreased by 5 percent.

  Create a digital circuit with a single 8 bit output

A home entertainment center has four different audio sources that can be played over the same set of speakers. Each audio source, named A,B,C,D, is connected using 8 wires on which the digitizedaudio signal is transmitted.

  Design four by four combinational binary multiplier

Design four by four combinational binary multiplier using hierarchical design method, use switches as inputs, use LEDs as outputs, download design on FPGA and show your demo. You must design this part in VHDL.

  What is the probability that a tick carries both l and h

Deer ticks can carry both Lyme disease (L) and human granulocytic ehrlichiosis (H). In a study of ticks in the Midwest, it was found that 16% carried L, 10% carried H and 25% that had either L or H carried both.

  Find the magnitude of the phase current in the load

a) A delta-connected three-phase source has a phase voltage of 220 V. It feeds a delta-connected load consisting of three identical impedances of 10/42° O each. Find the magnitude of the phase current in the load, the line current

  Calculate and return an output of the total number of miles

Write a function that takes inputs of yards and feet (whole numbers) and calculates and returns an output of the total number of miles (a floating-point value). There are 5280 feet per mile. There are 3 feet in a yard.

  Calculate the mass of agcl required and give effective area

Design an Ag/AgCl electrode that will pass 150 mC of charge without removing all the AgCl. Calculate the mass of AgCl required. Show the electrode in the cross section and give the active area.

  Find what value capacitor should be connected in parallel

an electric motor operates at 220V rms ,60 Hz, draws 20A rms, and has a power factor of 0.75 lagging. a) what is average power absorbed by the motor b) what value capacitor should be connected in parallel with the motor to give a power factor of 1

  Determine the standing wave pattern for the voltage

A sinusoidal voltage wave of real amplitude B0, and frequency w, and phase constant B, propogate in the forward z direction toward the shorted load end in a lossless transmission line of characteristic impedance Z0.

  Find the current distribution and the length of the array

Design a continuous antenna array to have the following soace factor : [(sin(2πcosθ))/(2πcosθ)] , at a  wavelength λ=.5 m namely,find : i- the current distribution and the length of the array. ii-the relative side lobe level.

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