Tiva C Projects: Control External LED by Push Button on PORTB
by EslamG11 in Circuits > Microcontrollers
2499 Views, 0 Favorites, 0 Comments
Tiva C Projects: Control External LED by Push Button on PORTB

How to control external LED by push button on PORTB.
Let`s do it
Watch the Video

Hardware Components
- Tiva C board (TM4C123)
- Breadboard
- LED
- 330 Ohms Resistor
- Push button
- Jumpers
Schematic of the Circuit

- Connect 330Ohms resistor with PB2
- Connect the other pin of 330Ohms resistor to positive pin of LED
- Connect the negative pin of LED with GND on Tiva C Board
- Connect the first terminal of push button with PB3
- Connect the other terminal of push button with ground
Let`s Write the Code
Look at the code on GitHub: Link