RFQ/BOM 0 로그인 / 등록하다

귀하의 위치를 선택하세요

사용자 이미지

STOP mode serial communication has a high bit error rate.

MCU
1월 29, 2021 by Irena 1704

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?

모든 댓글

user image

Mana 게시 날짜 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 게시 날짜 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 게시 날짜 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

답변 작성

답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다