Greetings !
3 moths ago, I started developing a driver in #C in order to control manually the AD9959 with a microcontroller, so far, I can output different frequency, phase and amplitude from each channel the problem is that the channel don't have the same amplitude and are not in phase. Also, there amplitude seems to change with the frequency I choose. I am convince this is not normal and can't find the maximum amplitude for each channel in the datasheet. Channel 2 and 3 have the same amplitude and phase but its not the same the output signal from channel 0 and 1. In my first use I set the first 10 bits of the ACR register to 0x3FF which should corresponds to an amplitude scale factor of 1 for each channel but it turns out the amplitude is not the same for all channel. As for the phase, I write 0 as a phase offset word in the CPOW0 register and the signals are not in phase.
I'm resetting the board with the MASTER_RESET pin before doing all those operations so I have a hard time finding the problem. Do I need to enable the amplitude multiplier enable bit ACR[12] or should it must be set to 0 if I want to control the amplitude, for now I set it to 1 every time. I also would like to know the max output amplitude for each channel because for now it seems to change in function of the frequency .
Thank you for your time.