can anyone check this code for my dac

I’m having a lot of stress trying to work out this 16 bit DAC AD5764rbsuz don’t know if I am sending the data correctly. tried all four modes getting nothing.

not sure if I cooked it or its wired wrong never tried SPI

Jumped in the deep end with this.

I’m using an Arduino DUE

if anyone has one and can test the code on it with an analyser / ocilliscope I downloaded one but don’t know how to use it.

AD5764R-278558.pdf (551 KB)

Dac_test.ino (3.63 KB)