0% found this document useful (0 votes)
24 views2 pages

Lab No 08

Lab 08 focuses on controlling a red LED using a switch input on the TM4C123G microcontroller through GPIO configuration. The LED toggles on when the switch is pressed and off when released. The lab effectively demonstrates basic input/output handling with the microcontroller.

Uploaded by

Zulqurnan Anjum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Lab No 08

Lab 08 focuses on controlling a red LED using a switch input on the TM4C123G microcontroller through GPIO configuration. The LED toggles on when the switch is pressed and off when released. The lab effectively demonstrates basic input/output handling with the microcontroller.

Uploaded by

Zulqurnan Anjum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab no 08

Control of Red LED Through Switch Input Using TM4C123G


Microcontroller
Objective:
The objective of Lab 08 is to control a red LED using a switch input on the TM4C123G
microcontroller, by reading the switch state and toggling the LED accordingly. This exercise
focuses on GPIO configuration and basic input/output handling.

Source Code:

Fig 8.1

Aleeza Imran (2022-EE-30)


Output:

Fig 8.2

The output of Lab 08 involves the Red LED turning on or off based on the state of the switch
input. When the switch is pressed, the LED will turn on; when the switch is released, the LED
will turn off.

Conclusion:
This lab successfully demonstrates controlling an LED using a switch input with
GPIO configuration, showcasing microcontroller I/O handling.

Aleeza Imran (2022-EE-30)

You might also like