Arduino UNO and AD5530

Hii all,
i need help with send data from Arduino to DAC AD5530. Im beginner.

My program

#include <SPI.h>

#define SYNC 7
#define CLR 8
#define LDAC 9
#define RBEN 10
#define SDI 11
#define SCLK 13

void setup() {
pinMode(RBEN, OUTPUT);
digitalWrite(RBEN, HIGH);
pinMode(LDAC, OUTPUT);
digitalWrite(LDAC, LOW);
pinMode(CLR, OUTPUT);
digitalWrite(CLR, HIGH);
pinMode(SYNC, OUTPUT);
digitalWrite(SYNC, HIGH);
SPI.begin();

}

void loop() {
int value = 2048 ; // 0 for -10V 4096 for +10V
digitalWrite(SYNC, LOW);
SPI.transfer(value); // for 0V to output
digitalWrite(SYNC, HIGH);

}

thanks all for any help

Welcome in Arduino land,
please follow the posting guidelines, the more information the question gives the better answers you might expect.

Can you explain what the problem is?
Does it not compile?
Does it not do what you expect?
What did you expect the code to do?
Can you provide a link to the datasheet of this device?

Please use CTRL-T in the IDE before copying and use [code]...[/code] tags to make the code more readable.

Hi,
i dont know how send "value" to DAC via SPI. Datasheet for DAC in att. I think it is well connected (Arduino and DAC) but problem may be in any setting SPI.

thank you

AD5530_5531.pdf (402 KB)

digitalWrite (syncPin, LOW);
SPI.transfer(highByte(yourDataWord));
SPI.transfer(lowByte(yourDataWord));
digitalWrite (syncPin, HIGH);

or yourDataWord can be from array:
dataWordArray[pointer]

Don't need these, just make them notes
#define SDI 11
#define SCLK 13

thx very much for help