Skip to main content
stefano239955_stm1_stmicro
Associate III
September 15, 2006
Question

STR91x Lib & UART

  • September 15, 2006
  • 3 replies
  • 755 views
Posted on September 15, 2006 at 08:25

STR91x Lib & UART

This topic has been closed for replies.

3 replies

halim
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:31

Hi

you are right.

This issue was fixed in the next Rev of LIb.

with best regards

Punto

stefano239955_stm1_stmicro
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:31

Hi,

in the UART libs the UART_ClearITPendingBit()

fuction has the following code :

{

/* Clear the specified interrupt */

UARTx->ICR &= UART_IT;

}

This code in my eval board give me unpredictable results :( !!!

The ICR register is write only.

To clear the IT bit is sufficient to write

UARTx->ICR = UART_IT;

alain239955_st
Associate
May 17, 2011
Posted on May 17, 2011 at 09:31

Sorry but the library available NOW on St web site still implement :

void UART_ClearITPendingBit(UART_TypeDef* UARTx, u16 UART_IT)

{

/* Clear the specified interrupt */

UARTx->ICR &= UART_IT;

}

:-Y

Mister StMicro please update your sources !