AnsweredAssumed Answered

Interpretation of TXEIE bit (UART programming)

Question asked by cadot.sidney on Jul 4, 2013
Latest reply on Jul 4, 2013 by cadot.sidney
Hi all,

The documentation of the "GetITStatus" function, as found in the file 'stm32f10x_uasrt.c", describes the functionality as follows:

    "Checks whether the specified USART interrupt has occurred or not."

However, when I follow what happens why I call GetITStatus(UART1, USART_IT_TXE), it appears that it simply returns bit 7 of CR1 (TXEIE) which, according to the STM32 reference manual (RM0008), is the "TXE interrupt enable".

It seems these are two different things; the GetITStatus() documentation claims that the bit returns if the interrupt *has happened*, while the reference manual gives the meaning as: the interrupt is enabled (i.e., it *can happen*).

Can anyone explain which of these two interpretations is the correct one?