Skip to main content
Visitor II
June 22, 2025
Question

SPI Communication with AD5592 ADC/DAC

  • June 22, 2025
  • 1 reply
  • 515 views

Hello, I'm attempting to work with the AD5592 ADC/DAC in SPI mode and am unable to confirm communication. I'm attempting to read and write to single registers to determine whether communication takes place since I don't have an oscilloscope or logic analyzer at the moment. Whenever I try to read any register, even if I try to write to a register first, I receive this same result. 

Avid_0-1750570514141.png

I tested the AD5592 with an Arduino Uno in DAC mode and was able to successfully generate outputs on the channels so I'm sure there isn't an issue with the board. However, when I test the AD5592 with both a nucleo and a custom board it doesn't work. 

Avid_1-1750570786858.pngAvid_2-1750570825761.pngAvid_3-1750570852835.png

The most updated code shown here was an attempt to convert the C++ code on the Arduino to use the STM32 HAL, and in this example, I'm trying to change bit 6 of register 0x03 from 0 to 1 and read the result. 

Are there any issues with how the SPI is set up, and if not is there a better way to set up the software to communicate with the board? 

 

    This topic has been closed for replies.

    1 reply

    Super User
    June 22, 2025

    Hi,

    >re there any issues with how the SPI is set up

    you set the SPI on 8bit mode, but a short look at ds of AD5592 shows:

    AScha3_0-1750576213485.png

    So read ds and set SPI matching, what the AD expects/needs.