cancel
Showing results for 
Search instead for 
Did you mean: 

problems with UART1 and TIM0 (again !)

robosoft
Associate II
Posted on February 01, 2008 at 08:49

problems with UART1 and TIM0 (again !)

4 REPLIES 4
robosoft
Associate II
Posted on May 17, 2011 at 09:49

Hi,

I use STR912FWX44 (Revision D(631)) with KEIL development tools.

I have a problem, when using two interrupts (Timer0 and UART1)simultaneously, like some other people on this forum have !!!

For test, I send a large file (1MB) to the serial port (57600Baud).

UART FIFO's are disabled as I want to get an interrupt for each character.

My UART1 interrupt routine is about 4µsec long.

The Timer1 interrupt routine just counts a global variable.

When I disable TIMER_IRQ receiving works fine.

When I enable TIMER_IRQ, my program restarts main().

There seems to be some troubles with the STR912 device without a solution for it !

A year ago we decided to develop a product using STR912 as a replacement for 80188EB (Intel). It seems to be a wrong choice !

Can somebody of the ST support team please give a solution or at least an answer !

Luc Vercruysse

mark9
Associate II
Posted on May 17, 2011 at 09:49

There is a work around to the hardware issue. You need to check the function pointer returned by the VIC to make sure they aren't 0. If so, just exit the IRQ and let it fix itself on the next IRQ call.

The problem seems to happen if you have 2 interrupts, one that uses VIC0 and one that uses VIC1.

amira1
Associate II
Posted on May 17, 2011 at 09:49

Hello all,

Please refer to the new version of STR9 library (v2.0):

http://www.st.com/stonline/products/support/micro/files/um0233.zip

In this version the problem of spurious interrupt is already handled. There is an application note which will be available next week : STR91x interrupt management. Please refer to this application note for more details.

Best regards,

mirou.

robosoft
Associate II
Posted on May 17, 2011 at 09:49

Thanks for response.

Luc Vercruysse