In this post I’ll show how you can drive 7 Segment LED display with PIC16F876A
Segments a-g are connected to PORTC of the MCU. If you are going to build this circuit pay attention to how they are connected to controller. PICkit3 programmer
Source code and a compiled HEX file can be downloaded here.This code should also work on PIC16F877/887 however I did not test it on these devices.You’ll need to change the Include file name and rebuild the project.