Description
A Seven-segment display used to display digits from 0-9.Seven segment display widely used in digital clocks, weight machines, Ph meters, etc.

The common configuration has an array of eight LEDs arranged to display these digits. Led is assigned a name from a to h and identified by its name. Seven LEDs a to g are used to display the numerals while eighth led h is used to display the dot/decimal.
Direction Table

Hardware Required
- Seven segment Display.
- Pic16f877a MicroController.
Circuit

Virtual Circuit

Code
void main() { TRISB=0; while(1) { PORTB=0X3F; Delay_ms(500); PORTB=0X06; Delay_ms(500); PORTB=0X5B; Delay_ms(500); PORTB=0X4F; Delay_ms(500); PORTB=0X66; Delay_ms(500); PORTB=0X6D; Delay_ms(500); PORTB=0X7D; Delay_ms(500); PORTB=0X07; Delay_ms(500); PORTB=0X7F; Delay_ms(500); PORTB=0X67; Delay_ms(500); } }