Skip to main content
giovanni239955_stm1
Associate II
November 3, 2006
Question

UART INTERRUPT

  • November 3, 2006
  • 2 replies
  • 851 views
Posted on November 03, 2006 at 06:56

UART INTERRUPT

This topic has been closed for replies.

2 replies

giovanni239955_stm1
Associate II
November 3, 2006
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
November 3, 2006
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