PIC 16f876
Following program
Code: Select all
#include <system.h>
main()
{
set_bit(STATUS, RP0); //SELECTS BANK 1
TRISB=0x00; //MAKES PORTB OUTPUT
TRISA=0xff; //MAKES PORTA INPUT
clear_bit(STATUS, RP0); //SELECTS BANK 0
if(input_pin_port_a(0))
{
PORTB=0xff;
}
else
PORTB=0x00;
}
Compiles and assembles (hex file). burns to the chip... but does not show the expected out put at all.
What settings are to be used like RC or XT on the board.
FAST or SLOW settings, to make the program work.