2022-06-17 01:58 AM
Hi ST community,
I'm using a WiFi module, which receives data with SPI. The WiFi module has NORX pin, which indicates whether the module can accept the data or not. The data bits sent when NORX is set to high are discarded. So, when transmitting a SPI packet from STM32H7 to the module and NORX is asserted during the SPI transmission, the successive SPI bits are discarded at the module. To avoid this, STM32H7 has to stop the SPI transmission immediately after the NORX is asserted.
I'm sending data with SPI via DMA. Is there any way to stop the SPI transmission with a external GPIO trigger? Here, I assume that external GPIO trigger is NORX.
The STM32H7 runs by 280MHz clock. The speed of SPI is 10Mbits/sec. So the SPI transmission has to be stopped within 28 cycles.
Thanks in advance