Dear All.
I want to control 10 bits DAC by Arduino using wire library.
I read the data sheet of the DAC53608 carefully and wrote the following code to get 5 volts.
#include <Wire.h>
byte DAC= 0x48; //DAC_Address
byte command;//Config_Device and Output_Address
byte data1;//Data_LSB
byte data2;//Data_MSB
void setup() {
Serial.begin(9600);
Wire.begin();
command=0x01;
data1=0x00;
data2=0xFE;
delay(2000);
Wire.beginTransmission(DAC);
Wire.write(command);
Wire.write(data1);
Wire.write(data2);
Wire.endTransmission();
Serial.println("Device Config is DONE");
}
void loop() {
command=0x08;
data1=0xff;
data2=0xff;
Wire.beginTransmission(DAC);
Wire.write(command);
Wire.write(data1);
Wire.write(data2);
Wire.endTransmission();
}
```
```
but there is no signal.
Does anyone face the same problem?