project building in MPLAB

Thread Starter

ect_09

Joined May 6, 2012
180
A.A
i am using MPLAb and i am new with this.
here is unknown error,
i donot know what is it in when in build my project..

i attached the output image..
plz check this..
Thanks
 

Attachments

Thread Starter

ect_09

Joined May 6, 2012
180
its a simple code for testing .....
/////////////////////////////////

#include <P18F452.h>
void MSDelay(unsigned int);
void main(void)
{
TRISB = 0;
while(1)
{
PORTB = 0x55;
MSDelay(250);
PORTB = 0xAA;
MSDelay(250);
}
}
void MSDelay(unsigned int itime)
{
unsigned int i; unsigned char j;
for(i=0;i<itime;i++)
for(j=0;j<165;j++);
}
 

nerdegutta

Joined Dec 15, 2009
2,684
It's more friendly to read if we use the code-tags - the # in the to menu:):


Rich (BB code):
#include <P18F452.h>
void MSDelay(unsigned int);
void main(void)
{
TRISB = 0;	
while(1) 
{
PORTB = 0x55;
MSDelay(250);
PORTB = 0xAA;
MSDelay(250);
}
}
void MSDelay(unsigned int itime)
{
unsigned int i; unsigned char j;
for(i=0;i<itime;i++)
for(j=0;j<165;j++);
}
The error says that it's a file missing, or not found. Which compiler are you using? Have you tried the free Hi Tech C?

I guess you are trying to flash some LEDs?
 

Thread Starter

ect_09

Joined May 6, 2012
180
firstly i am trying to see the timers by using led.
is there perfect timing for my sensor.
so am doing for this.
i want to make line tracking robot..
 
Top