2025-06-21 10:47 PM
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.
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.
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?
2025-06-22 12:15 AM
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:
So read ds and set SPI matching, what the AD expects/needs.