uday mehta
Advanced Member level 4
when i burn a program for example :-
#include <reg51.h>
#define port P3
void delay(unsigned int);
void main(void)
{
for(;
{
port = 0x0;
delay(1000);
port = 0x0ff;
delay(1000);
}
}
void delay(unsigned int a)
{
unsigned int i;
unsigned int j;
for(i=0;i<a;i++)
for(j=0;j<120;j++);
}
it shows "the data out of range will be ignored".
but in my program in place of port P3 if i use port P1 then my program burn successfully.
i use AT89C2051.
where is the problem?
#include <reg51.h>
#define port P3
void delay(unsigned int);
void main(void)
{
for(;
{
port = 0x0;
delay(1000);
port = 0x0ff;
delay(1000);
}
}
void delay(unsigned int a)
{
unsigned int i;
unsigned int j;
for(i=0;i<a;i++)
for(j=0;j<120;j++);
}
it shows "the data out of range will be ignored".
but in my program in place of port P3 if i use port P1 then my program burn successfully.
i use AT89C2051.
where is the problem?