Hi All,
I am working on interfacing DAC8560 with Arduino Uno. I have few query.
1. When powered up DAC8560. What will be the Vref Voltage. As mentioned in Datasheet Default Vref 2.5V will be enabled. But When I checked that pin, it was showing 0v. Is that 0V expected value at Vref when powered up???
2. Where we have to connect Vref when we are using internal 2.5 V reference voltage?
3. I have sent Digital value but I am getting 0V at Vout. I tried send the command to enable internal Reference. Below is the SPI configuration and arduino code.
SPI Mode - 1
FSCLK - Below 4 MHZ
MSB First.
Below is the arduino code
.
#include<SPI.h>
#define SS 10
void setup() {
// put your setup code here, to run once:
pinMode(SS, OUTPUT);
digitalWrite(SS, HIGH); // ensure SS stays high
SPI.beginTransaction (SPISettings (1000000, MSBFIRST, SPI_MODE1));
Serial.begin(9600);
// start the SPI library:
SPI.begin();
digitalWrite(SS, LOW);
SPI.transfer(0x4C);
SPI.transfer(0x04); //address
SPI.transfer(0x00);
SPI.transfer(0x0);
digitalWrite(SS, HIGH);
digitalWrite(SS, LOW);
SPI.transfer(0x49); //address
SPI.transfer(0x04);
SPI.transfer(0x01); //address
SPI.transfer(0x0);
digitalWrite(SS, HIGH);
}
void loop() {
digitalWrite(SS, LOW);
SPI.transfer(0xFF); //Digital Byt2
SPI.transfer(0x00); //Digital Byte1
digitalWrite(SS, HIGH);
delay(1000);
}
Kindly help us if my code is wrong