2017-07-06 12:02 PM
Hi,
My stm32 board has four uart ports. Each of them is connected to rs 485 transmitter (tx only).
I'm looking for any ideas how to extend my project to have more than four uart ports - up to 10.
My first idea was to connect from my main stm32 board to many smaller stm32 boards over spi (one small board = one rs485) but I'm afraid of synchronization - i need to send all data to rs485 at the same time.
Do you have any other ideas?
I will be grateful for any ideas.
#synchronize #uart #rs4852017-07-06 12:47 PM
Aren't there STM32 parts with 6 or more UART's?
A bunch of Quad-UART chips on an FSMC bus? Ones with some real FIFO depth.
Maxim has some SPI Quad-UART.
Not sure I'd use SPI, probably have a bunch of slave STM32 with multiple USART, with a higher bandwidth SLIP or CMUX serial link for a backbone.
2017-07-06 12:51 PM
Just throwing things out there.
Andrei
2017-07-06 02:08 PM
Thanks for all replies.
Any ideas how to send different data through all uarts on the same time using CAN-bus/
SPI Quad-UART.?
2017-07-06 04:03 PM
>>External UARTS but some of the SPI ones are a ***** to work with.
Frequently the IC designers feeling about what is a good idea doesn't comport with everyone else's. It could be a customer design that the vendor gets to sell too.
2017-07-06 04:17 PM
What do you mean by 'same'? Same time would indicate that you would be using a set of synchronous UARTs, all sharing a common external clock.
If you mean really close to the same, then that is completely different. Async but simultaneous is easy to do using interrupts or DMA. If you're polling, and you send out messages in a round-robin schedule, you're dead.
Andrei