我得初始化
SPI_data1=RD33389(0x27,0xC7);//dog 200ms
//冷启动必读
//SPI_data1=RD33389(0x30,0x0); //读唤醒输入控制寄存器WUICR
//SPI_data1=RD33389(0x60,0x0); //读复位源寄存器RSR
//SPI_data1=RD33389(0x6C,0x0); //读电压补给状态寄存器VSSR
//唤醒后必读
SPI_data1=RD33389(0x30,0x0); //读唤醒输入控制寄存器WUICR
SPI_data1=RD33389(0x3c,0x0); //读唤醒输入状态寄存器WUISR
SPI_data1=RD33389(0x60,0x0); //读复位源寄存器RSR
SPI_data1=RD33389(0x6C,0x0); //读电压补给状态寄存器VSSR
//******************************************************
SPI_data1=RD33389(0x28,0x0); //基础电平寄存器
SPI_data1=RD33389(0x44,0x0); //读唤醒输入适时信息
SPI_data1=RD33389(0x50,0x0); //读CANH错误
SPI_data1=RD33389(0x5C,0x0); //读CANL错误
SPI_data1=RD33389(0x28,0x0); //基础电平寄存器
//
SPI_data1=RD33389(0x03,0x91);//标准模式
SPI_data1=RD33389(0x90,0x91);//标准模式
//
SPI_data1=RD33389(0x17,0x91);//V3ON
//SPI_data1=RD33389(0x33,0x32); //唤醒输入控制寄存器
//
SPI_data1=RD33389(0x2B,0x00);//0。7V
//SPI_data1=RD33389(0x2B,0x91);//-1.2V
//SPI_data1=RD33389(0x2B,0x32);//-1.7V
//SPI_data1=RD33389(0x2B,0xA3);//-2.2V
//CAN设置
SPI_data1=RD33389(0x93,0xA3);//RX/TX
//SPI_data1=RD33389(0x93,0x32);//RX
//SPI_data1=RD33389(0x93,0x00);//VBAT
//SPI_data1=RD33389(0x3C,0x0); //唤醒输入状态寄存器
//SPI_data1=RD33389(0x90,0x0); //传送控制寄存器 |