picc的编译器正常
picc的编译器正常。就是出问题!我的程序如下:for(i=0;i<50;i++)
{
m++;
addr=0x01;
EEPROM_WRITE(address,m);
m=EEPROM_READ(address);
} #include "pic.h"
const unsigned char s={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08};
unsigned char i,s1,data,addr;
void delay(unsigned int data)
{
unsigned int d=data;
while(--d){;}
}
main()
{
for(i=0;i<8;i++){
addr=i;
eeprom_write(addr,s);
delay(2000);
}
for(i=0;i<8;i++){
addr=i;
s1=eeprom_read(addr);
}
while(1)
{
data=s1;
data=s1;
}
}
页:
[1]