Skip to main content
This topic has been closed for replies.

2 replies

giovanni239955_stm1
Associate II
Nov 3, 2006 4:17 AM UTC
Posted on November 03, 2006 at 05:17

Hi guys,

I've tried to generate an interrupt from UART TX empty condition, but with no success. My micro is STR11 and I'm working with an evaluation board. Interrupts coming from RX buffer full condition are working pretty well.

Someone can help me ?

Thanks a lot

Giovanni

hichem2
Associate
Nov 3, 2006 5:56 AM UTC
Posted on November 03, 2006 at 06:56

Hi guru63,

I tried it as following and it work pretty well.

/* EIC peripheral configuration -------------------------------*/

/* Configure the EIC channel interrupt */

EIC_IRQChannelPriorityConfig(UART0_IRQChannel, 1);

EIC_IRQChannelConfig(UART0_IRQChannel, ENABLE);

EIC_IRQConfig(ENABLE);

UART_ItConfig(UART0,UART_TxEmpty, ENABLE);

You can send me your code to check it if you still have a problem.

Regards,

Hich