Skip to main content
SRao
Visitor II
February 5, 2019
Question

Can I create multiple EMUL UART in STM32F407 controller using stsw-stm32156

  • February 5, 2019
  • 1 reply
  • 478 views

One of my project I need 3# EMUL UART - I created 13 and it is working, if I try another 2 it is not working. pls let me know the procedure to add more UART

This topic has been closed for replies.

1 reply

S.Ma
Principal
February 5, 2019

Replacing HW by SW has limits, If the TX of your "USART" are not sending simultaneously, you could share a HW USART by changing which GPIO will become the "TX" pin. This will relax a bit the core.

Worst case is all SW UART receive a start bit at once. SW will queue these interrupts and create latency. When it exceed one UART bit duration, the system will fall apart. Cranking the SYSCLK up, putting the EXTI interrupts in SRAM (and its vectors) might help a bit.

Another issue will be that in the end there won't be enough DMA streams for all these UART needs.