





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Summary of Microprocessor system: switch and led interface
Typology: Summaries
1 / 9
This page cannot be seen from the preview
Don't miss anything!
Preparation: You will need a LaunchPad, two push buttons, two 10KΩ resistors, three color LEDs: red, yellow, and green, and three resistors for the LEDs. Book Reading: Textbook Sections 2.7, 4. Starter project: Labware/Lab10_TrafficLight Purpose: Lab 2 is our first lab requiring you to build circuits on the breadboard and connect them to the LaunchPad. The purpose of this lab is to learn how to interface a switch and an LED. You will perform explicit measurements on the circuits to verify they are operational and to improve your understanding of how they work. System Requirements: In this lab, you will build two switch interface that implement positive logic, and you will build three LED interface that implement positive logic. You will attach this switch and LED to your breadboard, and interface them to your TM4C123. Overall functionality is given below:
Operation At reset the only LED that is lit should be the read LED. As you toggle the first push button, it cycles through the red, yellow, and green LED respectively. When the first push button is pressed and held it should cycle through in the mentioned order with a delay of 100ms. Letting go of the button should stop the LEDs from cycling through and stop at the LED that is currently on. The second push button toggles the blinking part of the lit LED. When the second button is pressed and held, the LED will start blinking in 50ms intervals. Once the button is let go, it will stop blinking and will stay lit. Circuit Design
Hardware Design