control of 2 DAC and ADC converters, DAC81402 et ADS8691 with the STM32G431CBU
Hello at all
To do this, I use STM32CubeIDE and STMCubeMX to configure my I/O interfaces and serial buses, including two SPI buses to control my converters.
Only the hardware configuration of an SPI bus is limited to between 8 and 16 data buses, whereas my converters operate with between 24 and 32 bits of data...
However, in hardware SPI, my sync (CS) goes back after an 8- to 16-bit frame, whereas I need it to remain at 0 to meet the TI requirement.
So I tried to manage the sync pin in IO mode, but it still goes back...
I tried using DMA, but the CS signal delay I'm managing is too long before the start of my frame and ends long after it; I must be at about sixty microseconds, too long.
Note that I'm running my MCU at 24 MHz and I want to be able to retrieve my converted data in about 10 µS.
Currently, I'm using SPI bit bang, or I've configured my SPI port as IO, and I'm retrieving my values in 212 µS, which is too long...
So, should I try assembler?...
Do you have any advice on this? A recommendation that could guide me to the best solution.
Thank you for your invaluable help.
Have a good day everyone.
