Hello,
I am trying to configure the AFE031 to output a signal. I believe that my SPI bus is correctly configured because I am able to write to a configuration register and then perform a read which returns the correctly written value. However, when I then put the DAC line high and try to write values into the DAC register, I get no output on the DAC output.
I am configuring the AFE031 as shown below:
// Reset AFE031
spi_xmit(0x0914);
for(i = 0; i < 100000; i++) {}
// Enable PA, TX, DAC
spi_xmit(0x0123);
for (i = 0; i < 100000; i++) {}
// Enable REF1, REF2, PA_OUT
spi_xmit(0x030E);
for (i = 0; i < 100000; i++) {}
Shown below is a scope capture of SPI traffic trying to update the DAC register.
The output of PA shows no signal. The only curious thing I can find is that the I_FLAG bit of the RESET register always appears to be set, even after I reset the device and write a zero to that bit which should clear it. I have the I_FLAG_EN bit disabled in the Control2 register so I_FLAG should never get set in the first place.
Is there something I am missing in the configuration of the AFE031?