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

  Implement a multiple mode counter

Implement a multiple mode counter

  Paper on orthogonal frequency-division multiplexing

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

  Rc circuits: capacitor is completely discharged

Assume that capacitor is completely discharged when t

  Processor development

Explain the process of processor development

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  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

  Digital systems and microprocessors

Design a sequential system to continuously output your set of eight different digits (01275438) in binary at the rate of one digit per clock pulse.

  Future generation telecommunication technology

Write a report on Future Generation Telecommunication Technology.

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Synchronization primitive in multiprocessor systems

Describe why interrupts are not appropriate for implementing synchronization primitive in multiprocessor systems.

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