Tiva C Projects: Control External LED by Push Button on PORTB

by EslamG11 in Circuits > Microcontrollers

2120 Views, 0 Favorites, 0 Comments

Tiva C Projects: Control External LED by Push Button on PORTB

FQ2XD84KX39E5E0.jpeg

How to control external LED by push button on PORTB.

Let`s do it

Watch the Video

Tiva C Projects: Control External LED by Push Button on PORTB

Hardware Components

  • Tiva C board (TM4C123)
  • Breadboard
  • LED
  • 330 Ohms Resistor
  • Push button
  • Jumpers

Schematic of the Circuit

Untitled Sketch 2=_bb.jpg

  • 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

Downloads