Tiva C Projects: Seven Segment Display With Tiva C Launchpad
by EslamG11 in Circuits > Microcontrollers
2006 Views, 1 Favorites, 0 Comments
Tiva C Projects: Seven Segment Display With Tiva C Launchpad
![FCUPCXQKX39EA8N.jpeg](/proxy/?url=https://content.instructables.com/FYF/2XJ7/KX39FJBU/FYF2XJ7KX39FJBU.jpg&filename=FCUPCXQKX39EA8N.jpeg)
How to interface seven segment display with tiva C launchpad
Let`s do it
Watch the Video
![Tiva C Projects: Seven Segment Display with Tiva C Launchpad](/proxy/?url=https://content.instructables.com/F92/L9IX/KXIZ9D1S/F92L9IXKXIZ9D1S.jpg&filename=Tiva C Projects: Seven Segment Display with Tiva C Launchpad)
Hardware Components
![FCUPCXQKX39EA8N.jpeg](/proxy/?url=https://content.instructables.com/FYF/2XJ7/KX39FJBU/FYF2XJ7KX39FJBU.jpg&filename=FCUPCXQKX39EA8N.jpeg)
![7-seg.jpg](/proxy/?url=https://content.instructables.com/FEU/F4F7/KXIZ9D4J/FEUF4F7KXIZ9D4J.jpg&filename=7-seg.jpg)
- Tiva C board
- Breadboard
- Jumpers
- Seven Segment Display
Schematic of the Circuit
![7seg.jpg](/proxy/?url=https://content.instructables.com/FR4/7U7A/KXKEP236/FR47U7AKXKEP236.jpg&filename=7seg.jpg)
- Connect pin A on 7Seg with PB0 on Tiva C
- Connect pin B on 7Seg with PB1 on Tiva C
- Connect pin C on 7Seg with PB2 on Tiva C
- Connect pin D on 7Seg with PB3 on Tiva C
- Connect pin E on 7Seg with PB4 on Tiva C
- Connect pin F on 7Seg with PB5 on Tiva C
- Connect pin G on 7Seg with PB6 on Tiva C
- Connect common pin on 7 seg with 3.3 V on tiva C
Seven Segment Display
![7-seg.jpg](/proxy/?url=https://content.instructables.com/FEU/F4F7/KXIZ9D4J/FEUF4F7KXIZ9D4J.jpg&filename=7-seg.jpg)
![Screenshot 2021-12-24 172612.png](/proxy/?url=https://content.instructables.com/FBX/ALQM/KXKEP2I0/FBXALQMKXKEP2I0.png&filename=Screenshot 2021-12-24 172612.png)
There are two types of seven segment display:
- Common anode: you should connect the common pin with 3.3V
- Common cathode: you should connect the common pin with ground
In this project, we used a common anode seven segment display so the common pin should be connected with 3.3V and when we want to turn on a specific led we should let its pin as low
To turn on A LED, PB0 must be LOW (common anode 7 segment display)
To turn on B LED, PB1 must be LOW (common anode 7 segment display)
Note: If we use common cathode display, the corresponding pin should be HIGH to turn on the LED.
In the above table, there are the binary and hexadecimal formats for each digit in 7 seg
for example for digit 0 in 7 segment, we should turn on all LEDs on 7 Seg except G LED and DP LED
0 <- 11000000 -> 0xC0
and so on for all digits.