cancel
Showing results for 
Search instead for 
Did you mean: 

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

SA.17
Associate III

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?

1 REPLY 1
Ozone
Lead

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.