#define SJA1000_Data_Port portA000 ioport unsigned int portA000; //定义数据输入/输出端口 #define SJA1000_Address_Port port8000 ioport unsigned int port8000; //定义地址输入端口 SJA1000_WRITE(REG_MODE, 0x01); TempData= SJA1000_READ(REG_MODE); //向模式寄存器写0x01,进入复位模式 while((TempData & 0x01) != 0x01); //等待SJA1000复位
2019-12-21 21:18:19 85KB sja1000程序
1