2020-08-25 03:24 AM
Hello,
Good day, I am a intern trying to get the AD7616 to work with STM32h743ZI2. My main objective is to use the AD7616 in software mode and convert the analog input
and read them over SPI.
The sequence of steps, I will be following are as follows: -
1. Power ON.
2. Full reset.
3. Select the the Operational mode.
4. Reset again (partial or full, I am confused)
5. SPI Initialize
6. Set channel register.
7. Start dummy conversion.
8. After the dummy conversion is done initiate the real conversion.
9. Read results from registers.
Is this correct or am I missing something.
I have gone through the wiki page of AD7616.
https://analog-staging.dw1.cosmocode.de/resources/eval/user-guides/ad7616-sdz
From there I found the Github repository for analog devices for NO-OS AD7616.
https://github.com/analogdevicesinc/no-OS/tree/2016_R1/ad7616-sdz
I have added these files to project in stm32.
However when I try to compile this project, I am getting this error - ..\..\..\STM32 H743\noos-AD7616-sdz\platform_drivers.h(45): error: #5: cannot open source input file "xparameters.h": No such file or directory.
I would appreciate any kind of input from you.
Look forward to your response.
Thank You.
2020-08-25 06:06 AM
I don't think those drivers were intended to be used by the STM32.
https://www.xilinx.com/support/answers/34804.html
I'd suggest making your own SPI driver for the chip.
2020-08-25 06:15 AM
Should be some SPI BSP code for the Nucleo under the Drivers\BSP directories of the CubeH7 repository.