cancel
Showing results for 
Search instead for 
Did you mean: 

My interrupts takes to long time. Blocks another interrupt.

sima2
Associate III
Posted on November 08, 2010 at 13:39

My interrupts takes to long time. Blocks another interrupt.

1 REPLY 1
Posted on May 17, 2011 at 14:14

Give the USART interrupts a higher priority/preemption, and make them REAL simple. (ie just FIFO the data and look at it later)

Use DMA for USART Rx

Use a lower priority 800us timer task

Use a worker task to do the computation

Simplify the computation. (ie optimize it, use reciprocal multiplication instead of divides)

Break the computation into smaller pieces, or precompute parts of it.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..