STM8S 115200bps serial port interrupt continuous reception error

Publisher:朱雀Latest update time:2020-04-18 Source: eefocusKeywords:STM8S Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The internal 16M crystal oscillator has too much error, resulting in inaccurate baud rate. 9600bps is OK. If you want to use 115200, use an external crystal oscillator.


In addition, if the data in the data register DR is not removed in time (it may also be due to inaccurate baud rate), data overflow will occur, resulting in repeated interrupts. For example, if there is still data on the serial port when it is paused during debugging, the data in DR will always be a certain data when it runs again, which will not appear under normal circumstances. The solution is to clear the OV flag when entering the interrupt (which cannot solve the fundamental problem).

Keywords:STM8S Reference address:STM8S 115200bps serial port interrupt continuous reception error

Previous article:STM8S main clock switching (using HSE clock source)
Next article:STM8 chip deadlock unlocking method

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号