回读时用的这个函数:AD568X_ReadBack(AD568X_ADDR_DAC_C);
这个函数中的部分程序是这样的:
AD568X_SetInputRegister(AD568X_CMD(AD568X_CMD_SET_READBACK) |
AD568X_ADDR(dacChannelAddr));
Read_Back |= SPI1_ReadWriteByte(0xff)<<16;
Read_Back |= SPI1_ReadWriteByte(0xff)<<8;
Read_Back |= SPI1_ReadWriteByte(0xff);
[size=13.3333px]Read_Back读出的全是F。
回读时用的这个函数:AD568X_ReadBack(AD568X_ADDR_DAC_C);
这个函数中的部分程序是这样的:
AD568X_SetInputRegister(AD568X_CMD(AD568X_CMD_SET_READBACK) |
AD568X_ADDR(dacChannelAddr));
Read_Back |= SPI1_ReadWriteByte(0xff)<<16;
Read_Back |= SPI1_ReadWriteByte(0xff)<<8;
Read_Back |= SPI1_ReadWriteByte(0xff);
[size=13.3333px]Read_Back读出的全是F。
举报