Skip to main content
Visitor II
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

    Visitor II
    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;

    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

    Visitor II
    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 !