cancel
Showing results for 
Search instead for 
Did you mean: 

UART INTERRUPT

giovanni239955_stm1
Associate II
Posted on November 03, 2006 at 06:56

UART INTERRUPT

2 REPLIES 2
giovanni239955_stm1
Associate II
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 II
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