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.

DAC8718EVM: Writing to DAC

Part Number: DAC8718EVM

Hi,

I am using DAC8718EVM. I am trying to write to DAC through SPI. I have to write gain value, input code and offset DAC code to DAC. For that, what all registers I have to use? How to configure DAC properly?

I have seen in datasheet that after writing to a channel, we have to make LD=1 in configuration register. To update to the channel, do I have to do anything else? Any delay is needed between writing to channel and making LD=1?

Please guide me.

Thanks & Regards

Sandra

  • Hi Sandra,

    Thank you for your query. Please find below the sequence of SPI writes for asynchronous mode (LDAC pin tied LOW) setup with GAIN=4:

    1. Write to the Configuration register 0x8110: SPI Data - 0x008110
    2. Write to the offset DAC code. Please see page 39 for setting the offset DACs correctly. Please note that it is applicable only in dual-supply mode
    3. Write to Data register DAC0 0xFF00 (just an example): SPI Data - 0x08FF00

    In case you want to use the DAC in synchronous mode (LDAC tied HIGH), then you need to use the LD bit in the configuration register and the LDAC pin to update the DAC value. The relevant timings for the LDAC pin are t9 and t10. Please look at page 43 for details.

    Hope that answers your questions.

    Regards,
    Uttam Sahu
    Applications Engineer, Precision DAcs