Skip to main content
jeromezr
Associate
December 31, 2008
Question

USART interrupt problem

Posted on December 31, 2007 at 18:53

USART interrupt problem

    This topic has been closed for replies.

    4 replies

    asterix
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:20

    Hi,

    I recommand you to start with downloading the Examples for USART already

    available at ST Web site :o , keil web site or others ; This is very useful as a starting point for beginners in STM32 ;)

    Magigimix.

    [ This message was edited by: asterix.magigimix on 28-12-2007 16:03 ]

    jeromezr
    jeromezrAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:20

    my english is poor,maybe a little difficult to understand,I am sorry for that

    here are my questions:

    which registers I have to config if I want to use the USART interrupt?

    I have configed these registers:

    Irq Set Enable reg--bit[39] //Enable the USART3 global interrupt

    USART_CR1 //Enable UE,TXE,TCIE,RXNEIE,TE,RE

    but the USART3 interrupt doesn't work

    Best Regards,

    Jerome

    pinwu
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:20

    I am working on this part.

    Need to do more things:

    1. NVIC_Init(&NVIC_InitStructure);

    2. USART_ITConfig(USART3, USART_IT_RXNE, ENABLE);

    [ This message was edited by: pinwu1 on 31-12-2007 23:24 ]

    jeromezr
    jeromezrAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:20

    thank you for your suggestion.I will try.

    Jerome Zheng