This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DAC8832通信

Other Parts Discussed in Thread: DAC8832

我用16位模式SPI,DAC8832正常,用8位模式SPI,DAC8832输出电压不对,而且都是-VREF。

请问DAC8832不能用8位模式吗?

void DAC_Write(u16 DacData)
{
SPI_DAC_CS=0;
SPIx_ReadWriteByte(SPI1 , (u8)(DacData) >> 8);
SPIx_ReadWriteByte(SPI1 , (u8)DacData);
delay_us(50);
SPI_DAC_CS=1;
}