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.

DAC7718 读写寄存器只有部分寄存器能够读取和写入

Other Parts Discussed in Thread: DAC7718, DAC8718

我用NXP LPC11C24 通过SPI接口控制DAC7718只有部分寄存器能够读写,例如寄存器0x00,0x07,0x1F,0x0F,均能够工作,通过写寄存器0x07能够广播控制所有DAC通道,通过写寄存器0x0F能够控制所有DAC通道8,但是不能独立控制其他DAC通道,也不能通过写寄存器0x02控制GPIO输出。

DAC7718设置在Unipolar模式。

写寄存器代码示例:

dac8718RegWrite(0x02,0xe000);不能工作

dac8718RegWrite(0x00,0x8400);工作

dac8718RegWrite(0x1f,0x2000);工作

dac8718RegWrite(0x0f,0x2000);工作

dac8718RegWrite(0x08,0x2000);不能工作

dac8718RegWrite(0x0E,0x2000);不能工作