Hello, I don’t quite understand the output range register. Can you explain how to set the specific configuration for each channel from 0 to 15 for different output ranges?
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.
Hello, I don’t quite understand the output range register. Can you explain how to set the specific configuration for each channel from 0 to 15 for different output ranges?
您好,我们可以直接中文沟通。
首先您应该不是下载的最新版本的数据手册,最新版本的这个寄存器介绍在8.6.11部分,我看您这里是9.6.11部分:
https://www.ti.com/lit/ds/symlink/dac81416.pdf
另外,四个寄存器0A~0D分别指的是四个通道DAC的输出范围。
a通道的配置寄存器为0xA,bit15~12为配置范围,比如我们要配置DACa的输出电压范围,需要配置0xA的bit15~12,如果配置为0~5V输出,则0xA的bit15:12=0000.
DACb的输出电压范围需要配置0xB的bit11-8. DACc的输出电压范围需要配置0xC的bit7-4. DACd的输出电压范围需要配置0xD的bit3-0.
您好,抱歉回复晚了,我看了下数据手册,应该是这样的:
16个通道单端输出,也可以配置为差分输出,并且每个通道都可以独立配置输出电压范围。
因此a: 15, 11, 7 or 3; b: 14, 10, 6 or 2; c: 13, 9, 5 or 1; d: 12, 8, 4 or 0这里代表的是通道。
比如我们需要差分输出,差分对选择channel15-14,0~10V输出,那么寄存器0xA配置为0001 0001 0000 0000 即1100h。
那如果就是单端输出的话,channel 15 输出0~10V 即为寄存器的bit15~12,寄存器0xA配置为0001 0000 0000 0000,即1000h。
寄存器0xA~0xD没有顺序 要求,比如0xA中a使用的channel 15,b使用的是channel 14,那么0xB 中的a可以使用channel 11, b使用channel10。
以此类推,所以需要4个寄存器0xA~0XD来把16个通道都配置完。