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: spi communication with DAC161S997

Part Number: DAC161S997

Hello

Аnyone can help me with the following problem? My DAC161S997 is always in error "spi timeout error".For three transactions, I send the address( 8 bit) and data(16 bit) to be written to the DAC161S997. But the record is apparently not produced and the DAC161S997 remains in error. what could be the problem? internal registers are read successfully

  • Hi Dmitriy,

    The SPI timeout error occurs when there is no SPI command written to the device in the time interval set by the SPI_TIMEOUT bits in the ERR_CONFIG register. The default value is 100ms, so an SPI write must occur within 100ms of the subsequent SPI write to avoid the error condition. A NOP write can be used to reset the error timer. To disable the error reporting you can set MASK_SPI_TOUT to '1'. How often are you performing SPI writes to the device and what timeout value are you using?

    Thanks,
    Garrett

  • Hi Garett,
    I use NOP write every 10 ms. I use default timeout value(100 ms). And i tried to set MASK_SPI_TOUT to "1"(command - 0x85,data - 0x103). The DAC returns me 85 01 02.
  • Hi Dmitriy,

    When you use command 0x85, this is read command not a write command. Is this what you intended? It seems like you were trying to write with this command. To write, you would use 0x05 as the command followed by the data. Then you can read back using 0x85 followed by 16 bits of dummy data. Is this what you tried? Also, have you been able to successfully write to the DAC output and change the loop current?

    Thanks,
    Garrett
  • Thanks! The problem is resolved