i am using mplab and execute the below program for sample and has been loaded in pic 16f877A . it was programmed without error by pic kit 3 . but when we check in target board its not working.
i also test by check read option . that time its working.
please let me know the solution
i also test by check read option . that time its working.
please let me know the solution
Code:
#include<pic.h>
#define _XTAL_FREQ 11059200
//__CONFIG (0X3FBA);
__CONFIG (0X3F39);
void main()
{
TRISB=0;
//for (;;)
while(1)
{
RB0=1;
RB1=1;
RB2=1;
RB3=1;
__delay_ms(10);
RB0=0;
RB1=0;
RB2=0;
RB3=0;
//RB0=0;
__delay_ms(10);
}
}
Last edited by a moderator: