In this project we will interface a seven segment displays with PIC16F877A 8-bit microcontroller. If you are new to PIC microcontroller programming we suggest you to execute the basic led blinking project here before trying this project.
The setup requirement for this project is as given below:
Learn firmware development theory, applications, get practical skills from online tests, projects and earn certificate for software jobs
The required hardware and software for this project is as below:
The schematic diagram for this project is as shown below:
The connections to be made to write a numerical digit is as shown below.
|SSD pins||Microcontroller PORT, Pin|
|Power supply SSD0||PORTB, RB4|
|Power supply SSD1||PORTC, RC5|
|Power supply SSD2||PORTD, RD3|
|Power supply SSD3||PORTD, RD2|
|Segment A||PORTD, RD4|
|Segment B||PORTD, RD5|
|Segment C||PORTD, RD6|
|Segment D||PORTD, RD7|
|Segment E||PORTB, RB0|
|Segment F||PORTB, RB1|
|Segment G||PORTB, RB2|
|Segment DEC||PORTB, RB3|
To write a numerical digit on any of the seven segment display you need to set the power supply pin of the SSD and required segments for the numerical digit. For example to write 8 on SSD0 you need to set RB4 pin to provide power supply to the SSD and set RD4,RD5,RD6,RD7,RB0,RB1,RB2 pins to write 8 on the SSD.