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.

DAC161S997: Not able to get Continuous output of DAC161S997

Part Number: DAC161S997

Hi,

I am interfacing DAC161S997 with MCU over SPI communication.

When I Write the value to DACCODE register to set the output so it gives the output only for some milliseconds.

For continuous output I am writing the value to register in a infinite loop.

Could you please suggest me any solution to set the DACCODE register once and It give the continuous output to me ?

Thanks,

Rajeev Kumar

  • Rajeev,


    The DAC161S997 has an SPI timeout, and I think you are seeing is the device hitting the SPI timeout error. Once the error has been detected, the device then sets the DAC to the error output (either 3.375mA or 21.75mA). This is discussed in the datasheet on page 9 in section 8.3.1.2 and section 8.4.

    The DAC expects to receive SPI commands within a specific time period, or the device thinks that the controller has lost communication. Once it thinks it has lost communication, it signals an error by setting the DAC to the error current.

    To stop the DAC from setting the error, you can mask this error by setting the MASK_SPI_TOUT bit to 1 (bit 4 in the ERR_CONFIG 0x05 register). If you want to keep that function, you could also change the timeout time period by setting the SPI_TIMEOUT[2:0] (bits [3:1] of ERR_CONFIG) to a longer time period.


    Joseph Wu

  • Thank You Joseph Wu, I got my answer.