This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430f5419 is missig the interrupts while in capure mode when the uart is enabled

Hi All,

I am using timer B0 in capture mode for capturing the interrupts.  When i tried capturing the data from the signal generator i am succeeded in getting the proper interrupts with the success rate of 100%  the UART.  But when i enabled the UART  i am getting 3% failures in the captured interrupts.  Even though timer B0 has more priority than the UART.  can anybody let me know the possible causes of this problem and how can i reduce the failures.  My project is in the critical phase and 3% failures are very huge.  can anbody tell me what possible try i can give to fix the issue.

Thanks in advance

 

  • Hi, maybe you spent to much time in UART ISR? msp430 has no interrupt nesting by default. It means that if any interrupt is processed another are delayed even if they are higher priority. Please verify how looks in time the sequence of these ISR, how much time is spent in each one. You can use two output pins for signaling processing each of the interrupt correspondingly. Capture by logic analyzer the signals together with the signal from generator that is processed by your program. If there is any conflict in time you will see it. If you will be sure that uart isr is too long, try to shorten it or design nested ISRs (using nested interrupts is possible when you enable interrupts after ISR is entered). Regards Piotr Romaniuk, Ph.D. ELESOFTROM

**Attention** This is a public forum