您好!
我正在使用带有 Arduino 的 DAC8568、但我无法成功更改参考源。 默认情况下它是内部的、但我需要外部的。
我看到了数据表、但我仍在阻止它。
你知道我必须用 Arduino 框架更改什么注册器吗?
谢谢你
此致
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.
您好!
我测试了你的建议,但这不起作用。
Arduino 代码下面显示我设置的操作:
空 setup() 
{ 
  引脚模式(SyncDAC8568、输出);//信号同步覆铜 DA8568 
  SPI.setDataMode(SPI_MODE1); 
  SPI.begin(); 
  延迟(100); 
  digitalWrite (SyncDAC8568、低电平);延迟(10); 
  DAC8568 Write (0b0000、0b1000、0b0000、0b0000、0b0000);  
}
void DAC8568Write (unsigned int 前缀、unsigned int control、unsigned int address、unsigned int 数据、unsigned int 特性) 
{ 
   无符号整型; 
   无符号整型2; 
   无符号整型 three; 
   unsigned int four; 
   //通过 SPI 发送地址和值: 
   一个=(前缀<< 4)|控件; 
   2 =(地址<< 4)|(数据>> 12); 
   三=数据>> 4; 
   四=(数据<< 4)|功能; 
   digitalWrite (SyncDAC8568、LOW); 
   spi.传输(一个); 
   spi.传输(两个); 
   spi.transfer (三次); 
   spi.传输(四个); 
   digitalWrite (SyncDAC8568、HIGH); 
} 
我确认在 DAC8568的引脚8上具有3V 电压并且为引脚 AVDD 引脚3上的元件提供+5V 电压。
在输出端、电压介于0V 至5V 之间。
祝你好运
祝你一切顺利