haroon_tech
Member level 2
hi,
i am writing a program in C for PIC16F877A ,but i am getting error because of configuration bits , any body know how to define configuration bits..
COMPILER: mplab8.66+HIGH TECH C
MY PROGRAM IS ...
#include<htc.h>
#define _XTAL_FREQ 8000000
__CONFIG(RC & WDTEN );
main()
{
RP0=0;
RP1=0;
PORTB=0x00;
RP0=1;
TRISB=0x00;
RP0=0;
while(1)
{
__delay_us(5);
PORTB=0x55;
__delay_us(5);
PORTB=0xAA;
__delay_us(5);
}
}
i am getting error as follows............
.....
Error [800] led.as; 45. undefined symbol "WDTEN"
Error [800] led.as; 45. undefined symbol "RC"
********** Build failed! **********
any body help me ...........
i am writing a program in C for PIC16F877A ,but i am getting error because of configuration bits , any body know how to define configuration bits..
COMPILER: mplab8.66+HIGH TECH C
MY PROGRAM IS ...
#include<htc.h>
#define _XTAL_FREQ 8000000
__CONFIG(RC & WDTEN );
main()
{
RP0=0;
RP1=0;
PORTB=0x00;
RP0=1;
TRISB=0x00;
RP0=0;
while(1)
{
__delay_us(5);
PORTB=0x55;
__delay_us(5);
PORTB=0xAA;
__delay_us(5);
}
}
i am getting error as follows............
.....
Error [800] led.as; 45. undefined symbol "WDTEN"
Error [800] led.as; 45. undefined symbol "RC"
********** Build failed! **********
any body help me ...........