Hi
we are going to use the Dac3171 ( 7 bit interface version ) in a project but unfortunately we have some problem to make it workinng.
Basically we have alarms on the Data and Dac clock and we do not understand what the problem could be.
Here below the DATA clk ( LVDS ) and the signals comes from directly FPGA and no external 100Ohm is mounted ( use internal DAC resistor )
Here below the DAC clk ( LPECL20 )
Here below the configuration register applied
SetTxEn(false);
for (UINT32 lToggle = 0; lToggle < 100; lToggle++)
SetReset(true), mSleep(1), SetReset(false), mSleep(1);
//Deassert reset and enbable TX
SetPowerDown(false);
SetSleep(false);
SetReset(false);
SetTxEn(true);
WriteConfig(CONFIG_00_REG, 0x42FC);
SPIRead16(CONFIG_06_REG, & wData); => read 0x4610 (from datasheet is Dac3171)
WriteConfig(CONFIG_01_REG, 0x600E);
WriteConfig(CONFIG_02_REG, 0x3F80);
WriteConfig(CONFIG_03_REG, 0x0001);
WriteConfig(0x05, 0x0000, true);
SPIRead16(0x05, & wData); => read 0xFFC0 sometimes 0xFF40, 0xFF80 and even if I write to zero to clear, i always read out alarms
I can set the output voltage by SPI but not by FPGA.
Any idea?