This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DAC53204: DAC53204RTER How to use this DAC in SPI Mode

Part Number: DAC53204

Tool/software:

Hi, we have the DAC53204RTER wired with SPI with a STM32 micro. For some reason I am not able to get output voltage.

I followed theses instructions to just get something out on DAC0, as suggested on the forum.

0x1F, 0x02, 0x49

0x03, 0x04, 0x00

0x19, 0xFF, 0x70

To verify the DAC is alive I am trying to read a register back, however I could not find any documentation on how to read a given register using SPI.

Any help will be much appreciated on how to read a register, as well as indicating if I am missing an initialization.

Thanks

  • Hi Gustavo, 

    Section 7.5.1 goes over communication with the device via SPI. SPI read is described right under figure 7-14. I assume you are not enabling the SDO pin, which is why you are not getting anything back out on the SDO pin.

    Is the DAC updating with your write commands? Those are the correct initialization to get an output on DAC0. If not, what SPI mode are you using? This DAC captures data on the falling edge, and the clock can either idle high or low. This is usually SPI mode 1 or 2 on most controllers. 

    Best,

    Katlynne Jones

  • Hi Katlynne

    Thanks for responding, we have the DAC wired on voltage output mode (Out0 feeding back to FB0 with no resistor, same for all 4 outputs), Is there another instruction to allow for this?

    The output is in the 15mV range and equal for all 4 DAC outputs, despite that I am only writing to DAC0.

    Thanks

  • Hi Gustavo, 

    No, that is correct. I expect you have a software issue. 

    The DACs are powered off in hi-z output mode by default, so a small voltage there is expected for each channel.

    Best,

    Katlynne Jones