while(1)//主循环 { if(irok) //如果接收好了进行红外处理 { Ircordpro(); irok=0;
eeprom_read(0x2000);
if(IRcord [2]>=0x04)
{if(IRcord [2]<=0x1b)
{ temp1=IRcord[2];
eeprom_eares(0x2000);
eeprom_write(0x2000,temp1);
temp1=eeprom_read(0x2000);
temp1=isp_data;
ee_temp=ee_temp1&0x0f;}else{ eeprom_eares(0x2000); eeprom_write(0x2000,temp1);
void Ir_work(void)//红外键值散转程序{temp1=eeprom_read(0x2000);
switch(temp1)。。。。怎么断电不能保存呢,请高手指点