Is it possible to improve delay between two LL_SPI_TransmitData16
Hello,
currently reading out an ADC sensor with SPI. The goal is to achieve a fast readout. Currently I am at around 200000 readouts per second, but I am wondering if this delay between two LL_SPI_TransmitData16 is because of the LL_SPI_ReceiveData16 or just because of the way LL works. Is it possible to even get faster readouts with adjusting some code? (clocks are maxed out already)
See code below:
GPIOD->BSRR = PIN_SPI_CS << 16U; // CS LOW
for(int i = 0; i < 2; i++)
{
while(!LL_SPI_IsActiveFlag_TXE(SPI1));
LL_SPI_TransmitData16(SPI1, 0x0000);
while(!LL_SPI_IsActiveFlag_RXNE(SPI1));
spiRxBuf[i] = LL_SPI_ReceiveData16(SPI1);
}
GPIOD->BSRR = PIN_SPI_CS; // CS HIGHAnd here is the signal capture: (MOSI, CS, CLK, MISO)

Thanks!
