I want to implement SDLC communication on an STM32 (assume I can pick any one up to M7) using the existing HW in it.
SDLC is a full duplex synchronous serial interface. In my case, it uses differential signaling (RS-485), so I am using some MAX488 to convert the differential signals to single ended signals.
So I have Tx Clock and Data, Rx Clock and Data.
I was thinking about using one SPI as master for transmitting the data and one SPI as slave for receiving the data.
A few questions:
- Is this possible? Is there any better way to achieve this with only an STM32?
- How can I generate 153.6 and 614.4 kHz clocks for SPI Tx?
- Can the SPI slave receive any clock? Like 614.4 kHz?