#defineSJA1000_Data_PortportA000ioportunsignedintportA000;//定义数据输入/输出端口#defineSJA1000_Address_Portport8000ioportunsignedintport8000;//定义地址输入端口SJA1000_WRITE(REG_MODE,0x01);TempData=SJA1000_READ(REG_MODE);//向模式寄存器写0x01,进入复位模式while((TempData&0x01)!=0x01);//等待SJA1000复位