I have a STM32F2xx connected to a FTDI UM232H using SPI, STM32F2xx will be configured as SLAVE and FTDI will be configured as MASTER
My scenario is this, I am getting data in STM32F2xx, and when I received data I would like to send it to my FTDI using SPI
But, how can a slave SPI send to Master??? since to initiate the communication, it needs the SCLK, which is controlled by the master
So how can I do that?
Or my master needs to constantly read the SPI Slave??? (like polling method) or is there any better way to do ti??
My current configuration for my SPI is:
- 2 line duplex
- 1 Mhz clock
- 8 bit
- Phase = Low
- Polarity = Positive
- Hardware: 4 lines connection, CS, SCLK, MOSI, MISO