When is the stm32 USART interrupt flag cleared

Publisher:梦回归处Latest update time:2018-06-09 Source: eefocusKeywords:stm32  USART Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
USART_ClearITPendingBit(USART2,USART_IT_RXNE);
I put it in the interrupt processing function, why is there no effect?

answer:

The RXNE flag cannot be cleared directly. Read USART->DR (that is, read the received data) to clear the RXNE flag.


Keywords:stm32  USART Reference address:When is the stm32 USART interrupt flag cleared

Previous article:STM32 defect 1: serial port interrupt flag defect
Next article:STM32 serial port flag and it flag

Recommended ReadingLatest update time:2024-11-16 21:27

High torque permanent magnet synchronous motor drive system based on STM32
    introduction   The high-torque permanent magnet synchronous motor direct drive eliminates the unfavorable factors such as low efficiency, frequent maintenance, noise and large rotational inertia caused by the mechanical structure because it removes the complex mechanical transmission mechanism. It has a series of
[Microcontroller]
High torque permanent magnet synchronous motor drive system based on STM32
Can STM32 run Linux?
There are two types of operating systems: those with MMU and those without MMU The ones that use MMU are Windows, MacOS, Linux, Android, and the ones that don't use MMU are FreeRTOS, VxWorks, and ucOS... There are two types of CPUs, with and without MMU. The ones with MMU are Cortex-A series, ARM9, and ARM11 se
[Microcontroller]
About bxCAN of STM32
The CAN of STM32 is called bxCAN (Basic Extended CAN), which supports CAN protocol 2.0A and 2.0B. The basic type of STM32 has only one master CAN, and the interconnected type has one master CAN and one slave CAN. 1. About CAN_RX and CAN_TX CAN communication is divided into CNA controller and CAN transceiver. The signa
[Microcontroller]
STM32 Note 11: Capture wonderful moments, pulse square wave length capture
a)            Purpose: Basic PWM input is also called capture, and interrupt coordination application. Use the output pin PB1 (pin 19) in the previous chapter, directly use a jumper to connect the input PA3 (pin 13), configure it as TIM2_CH4, and conduct experiments. b)            For simple PWM input applications, th
[Microcontroller]
A first look at the USB peripherals of STM32
These days I have been considering whether to use USB or Ethernet for the project, but the platform we are using, STM32F103ZET6, does not seem to have the Enternet peripheral, so let's consider USB first. One of the major features of USB peripherals is plug-and-play, which is possible because the USB protocol stipulat
[Microcontroller]
Preliminary design of STM32 IAP bootloader based on TCP
        I recently studied the implementation of IAP bootloader, which is very useful in product design. IAP is online application programming, which can be used for remote program upgrades. For example, if we design a product that is encapsulated in a beautiful shell using a relatively complex process, or is used in
[Microcontroller]
【STM32】The basic principles and registers of ADC
STM32F1xx official information: "STM32 Chinese Reference Manual V10" - Chapter 11 Analog/Digital Conversion (ADC) Basic Introduction to ADC Basic Definition of ADC The abbreviation of Analog-to-Digital Converter. It refers to an analog/digital converter or an analog/digital converter. It refers to a device that co
[Microcontroller]
【STM32】The basic principles and registers of ADC
STM32 beginner's LED button interrupt
First, we select the specific pins that need to be controlled. Then configure specific functions for it. Finally, you can control the on and off of the LED by pressing the button. The initialization of LEDs and buttons is similar, both are configured through the GPIO_InitTypeDef structure. typedef struct {   u
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号