I have added the code adcon1=0x07 to it, but even then it doesn't work
Matrix Multimedia board PIC 16f876
Code: Select all
set_bit(STATUS, RP0); //SELECTS BANK 1
TRISB=0x00; //MAKES PORTB OUTPUT
TRISA=0xff; //MAKES PORTA INPUT
clear_bit(STATUS, RP0); //SELECTS BANK 0
The above code should be turning all leds connected to PORTB on when bit 0 of PORTA is set, otherwise turned off.
And also i have know what the oscillator setting should be for this. XT or RC or HS.