Skip to main content
SA.17
Associate III
May 28, 2020
Question

How to differentiate between receive interrupt and transmit interrupt in UART ?

  • May 28, 2020
  • 1 reply
  • 517 views

How to differentiate recieve and transmit interrupt of UART using HAL library , low level library and directly accessing registers ?

which HAL lib function will check this?

This topic has been closed for replies.

1 reply

Ozone
Principal
May 28, 2020

Different interrupt flags are set for RxNE and TxE.

Check the reference manual (UART/USART section) of the specific part you are using.

HAL and LL lib code check those flags.

Cannot speak for the H7 and latest L4 devices, but the basic UART/USART registers are almost identical for all STM32 devices. Even inluding STM8 devices.