haroon_tech
Member level 2
- Joined
- Apr 28, 2011
- Messages
- 51
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- bangalore
- Activity points
- 1,727
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 ...........