interfacing AD5752 DAC with arduino

Hello Everyone, I am new in programming and i have to implement one project in which i am suppose to use a bi-polar DAC to generate +- 0 -> 5V triangular wave output at the frequency of 50mhz. I tried going through the datasheet of DAC but i am not very confident in writing the code for. can anyone please help or share some sample code.

You cannot achieve a 50MHz output from an Arduino and the AD5752, it's physically impossible.

Is this a homework assignment?

Thanks for your immediate response, its 50 Mili hertz not 50 MegaHertz. sorry for the confusion

avr_fred:
You cannot achieve a 50MHz output from an Arduino and the AD5752, it's physically impossible.

Is this a homework assignment?

Its a part of large project.

Millihertz? As in 0.05 Hz? Certainly doable.

Start here: GitHub - kasskas/AD5752_lib: Arduino library for AD5752. Onlu basic functionality is implemented, but a good start

I asked about homework because most of the forum regulars want to see an effort on your part to solve the problem. Asking for help is fine but doing nothing and asking for a ready-made solution/code is not okay if it is work that you should be doing to further your knowledge.

avr_fred:
Millihertz? As in 0.05 Hz? Certainly doable.

Start here: GitHub - kasskas/AD5752_lib: Arduino library for AD5752. Onlu basic functionality is implemented, but a good start

I asked about homework because most of the forum regulars want to see an effort on your part to solve the problem. Asking for help is fine but doing nothing and asking for a ready-made solution/code is not okay if it is work that you should be doing to further your knowledge.

Thanks for your immediate and helpful response, i tried using header file and made the following code (arduino uno)

#include <AD5752.h>

void setup() {
// put your setup code here, to run once:

}

void loop() {
init_DAC(DAC_A, pn5V);
set_DAC_value(0X00, 0x00); \-5v
delay(1000);
set_DAC_value(0XFF, 0xFF); \+5v
}

my pinout is as follows
2scomp = gnd
sync = 9
sclk = 13
sdin = MOSI
Ddout = MISO
Ldac = gnd
Clr = gnd

still no output. can you please identify my mistake

Just some things off my head that I can see straight away.

Put initDAC in the setup.
Initialise chip select pin to whatever pin your are using as cs.
Declare SPI library #include<SPI.h>

Read the data sheet for the DAC, and understand it, you need to learn how the input register works before you can really utilise the DAC for all its worth. Good luck!