RFQ/BOM 0 Iniciar sesión / Registro

Selecciona tu ubicación

imagen de usuario

STOP mode serial communication has a high bit error rate.

MCU
enero 29, 2021 by Irena 1715

STM32nucleo development board, mcu is STM32L053R8, LPUART uses external 32.768kHz crystal oscillator (LSE), baud rate 9600. In STOP mode, the error rate of the first byte of received data is very high (30%~40%). For example, the PC sends a character string "sleep" (73 6C 65 65 70 0D 0A), and the MCU receives "髄eep" ((F3 6C 65 65 70 0D 0A). If the baud rate is changed to 4800, there will be no Question. What is the reason for this and is there any way to solve it?

todos los comentarios

user image

Mana Publicado en January 29, 2021

See how big the crystal frequency is selected in stop mode. Generally speaking, sleep will reduce the speed, which will affect the baud rate.

0
user image

Suzy Publicado en January 29, 2021

It should be caused by the crystal frequency error.

The 32.768kHz crystal frequency division 9600 should be very accurate. It is estimated that the crystal oscillator you choose is not good.

0
user image

Kevan Publicado en January 29, 2021

The latter is right, the crystal frequency should be no problem, if the first few bytes are always wrong, you can try to delay

0

Escribe una respuesta

Necesitas iniciar sesión para responder. Iniciar sesión | Registro