Updated SPI code and tested on MCU with AD9834. WORKS :) DAC is to test