Interface binary i/o devices to the microcontroller

Assignment Help Electrical Engineering
Reference no: EM131961

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: EM131961

Questions Cloud

What is the firms cost of preferred stock : What sources of capital should be included when you estimate XYZ's WACC? and Should the component costs be estimated on a before or after-tax basis? Why?
Write a brief overview concerning stock valuation : Write a brief overview concerning stock valuation. A brief explanation of the legal rights and privileges of common stockholders.
What are the corresponding prices and mucs : What are the efficient quantities for each of the two periods? What are the correspondingprices and MUCs?
Explain the odds-ratios for the risk of overall cancer : Explain and interpret the odds-ratios for the risk of overall cancer, Do you think the study was appropriate in reference to ethics?
Interface binary i/o devices to the microcontroller : Interface binary Input Output devices to the microcontroller
Prepare swag''s consolidated balance sheet : Prepare Swag's consolidated balance sheet under and prepare the consolidated financial statements for 20X3 using the direct method
Implementing a quality strategy : Implementing a quality strategy and benchmark your efforts with the competition,
Evaluate harrogate borough council''s approach : Evaluate Harrogate Borough Council's approach to quality management with particular reference to the system used for performance measurement.
Prepare a research paper on two independent variables : Prepare a research paper on two independent variables

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Ac analysis gain at midband with bypass capacitor

AC Analysis Gain at Midband (with bypass capacitor in circuit) Connect the bypass capacitor using the switch.

  Step-down transformer

Step-down transformer

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Processor development

Explain the process of processor development

  Analyzing the blink alive code

Analyzing the Blink Alive code - Embedded Systems Design

  How a transformer works

How a transformer works and apply those rules to a transformer where the primary core cross-sectional area is twice.

  Future generation telecommunication technology

Write a report on Future Generation Telecommunication Technology.

  Compute the transfer function

In this project we will consider the control of a synchronous generator supplying electricity to the grid.

  Ziegler-nichols open loop tuning

Ziegler-Nichols Open Loop Tuning Often, when working with a faster loop, many people will opt only for a PI control philosophy

  Stereotaxic neurosurgery for electrode implant

Utilizing the rat stereotaxic atlas in the course materials, devise a surgical plan for implanting a Michigan type array

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Pulse width modulator

A pulse width modulation (PWM) circuit works by varying the duty cycle of the square wave while keeping the period fixed.

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