Skip to main content
Associate III
April 18, 2024
Solved

STM32H7B3 synchronous usart slave with a continuous clock

  • April 18, 2024
  • 5 replies
  • 1730 views

Hi! 

I wonder if it is possible to set up the STM32H7B3 µC as a synchronous usart slave with the usart1 peripheral. From the reference manual it seems that it is only possible to set it up in 'SPI-mode'. The functionality I want is a USART slave that transmits data packets at a fixed rate(i.e. 1kHz) with no NSS, at the bit-rate determined by a continuous clock provided by the master. 

Any clarification would be appreciated! 

 

This topic has been closed for replies.
Best answer by Saket_Om

Hello @HansPLJ 

 

Have you attempted to control the chip select using GPIO pins?

5 replies

ST Technical Moderator
April 26, 2024

Hello @HansPLJ 

Synchronous slave mode is fully supported on USART1 of the STM32H7B3 MCU. For further details, please refer to Section 53.4 in the Reference Manual RM0455, as indicated in the table below.

OSAKE1_0-1714137847921.png

You can refer to this example which describes an USART-SPI communication (transmit/receive) between two boards where the USART is configured as a slave.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
HansPLJAuthor
Associate III
April 26, 2024

Hello Omar!

Thank you for you input!

I was a bit inaccurate in my post. My needs are maybe atypical, but I'm trying to implement an asynchronous communication protocol that communicates at a frequency determined by a continuous input clock. For the SPI slave mode, there are timing requirements (time between chip select edge and first clock edge) that appear to not be compatible with my requirements of an continuous clock at the input.  

I suspect that this somewhat unusual functionality is not supported by st libraries. 

HP 

Saket_OmBest answer
ST Technical Moderator
April 29, 2024

Hello @HansPLJ 

 

Have you attempted to control the chip select using GPIO pins?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
Pavel A.
April 26, 2024

The baudrate detection function allows to precisely tune to the peer's rate.