Thanks for all of the feedback! Yeah I did flash the code into the PIC it is as followed:
#include <pic.h>
/* c7Segment.c - Roll through 10 Digits on 7
Segment LED Display
This program will display each of the Decimal
10 digits on a 7 Segment Common Cathode LED
Display.
Hardware Notes:
RA5 - Segment a
RC5 - Segment b
RC4 - Segment c
RC3 - Segment d
RC2 - Segment e
RC1 - Segment f
RC0 - Segment g
Ken J.
9.14.08
*/
__CONFIG(INTIO & WDTDIS & PWRTEN & MCLRDIS &
UNPROTECT & BORDIS & IESODIS & FCMDIS);
int i, j, k;
const char LEDDigit[10] = {
// RRRRRRR - PIC16F684 Pin
// ACCCCCC
// 5543210
// abcdefg - LED Segments
0b1111110, // Digit Zero
0b0110000, // Digit One
0b1101101, // Digit Two
0b1111001, // Digit Three
0b0110011, // Digit Four
0b1011011, // Digit Five
0b1011111, // Digit Six
0b1110000, // Digit Seven
0b1111111, // Digit Eight
0b1111011}; // Digit Nine
main()
{
PORTA = 0;
PORTC = 0;
CMCON0 = 7; // Turn off Comparators
ANSEL = 0; // Turn off ADC
TRISA = 0b011111; // RA5 is an Output
TRISC = 0b000000; // All Bits of PORTC are Outputs
k = 0; // Start at Digit 0
while(1 == 1) // Loop Forever
{
for (i = 0; i < 255; i++) // Simple Delay Loop
for (j = 0; j < 129; j++);
RA5 = LEDDigit[k] >> 6; //Pass Data Bits to LED Bits
PORTC = LEDDigit[k] & 0x03F;
k = (k + 1) % 10; // Increment k within range of 0-9
} // elihw
} // End c7Segment
It succeeded when I built it. And flashed correctly with the checksum being verified. Let me know if my program looks bad!!!!
I've attached the datasheet below:
View attachment 7 segment datasheet.pdf
Thanks again guys!!! I'm gonna rewire it and retry!!