cancel
Showing results for 
Search instead for 
Did you mean: 

USART interrupt problem

jeromezr
Associate II
Posted on December 31, 2007 at 18:53

USART interrupt problem

4 REPLIES 4
jeromezr
Associate II
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

asterix
Associate II
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
Associate II
Posted on May 17, 2011 at 12:20

thank you for your suggestion.I will try.

Jerome Zheng

pinwu
Associate II
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 ]