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.

MSP430FR2676: Interrupt priority

Part Number: MSP430FR2676
Other Parts Discussed in Thread: MSP430FR2355, MSP430FR2353, MSP430FR2155

Hello,

I checked the priority of the interrupts in the datasheet.
They are as follows, in order.
timer > eUSCI_B0 > ADC

But if the ADC interrupt source contains TA1
the priorities are reversed as follows?

eUSCI_B0 < ADC

Best regards,
DDdoor

  • No, it is TA1 trigger ADC to generate an ADC interrupt. It is not TA1 generate an Timer interrupt.

  • Hello,Eason Zhou

    Thanks for your reply.
    Our client is currently in the following situation.


    What could be the cause?

    1,When ADC interrupt is enabled, the processing of USCI_B0 is delayed.
    As a result, communication processing is not completed in time and an Overrun Error occurs.

    2,If ADC interrupt is disabled, no communication error occurs.


    Best regards,
    DDdoor

  • The MSP430 does not have pre-emptive interrupts so if an ISR is executing all interrupts are disabled. If a USCI interrupt comes along while the ADC ISR is executing, the USCI interrupt will be delayed till (at least) after the ADC ISR executes its return from interrupt.

    The ADC ISR should of course be as short and simple as possible.

    You can of course enable interrupts (set GIE) within an ISR if you think that is a good thing.

  • Hello,

    Thank you.

    In 5.1 of the user guide, there is a section called Interrupt Compare Controller (ICC) Introduction, which says that ICC can be preemptive.
    Is this what you are referring to?

    Does this mean that the MSP430FR2676 can process eUSCI_B0 interrupts even when ADC interrupts are being executed?

    Best regards,
    DDddor

  • After you enable interrupts (set GIE) within an ISR, you can make MSP430FR2676 to process eUSCI_B0 interrupts even when ADC interrupts are being executed.

  • I was not referring to the ICC. Which you have to explicitly configure and enable. Even then it says to enable GIE within the ISR.

  • Remember Danny Kaye's first rule of interrupts:

    Hubert Hawkins: I'd like to get in, get on with it, get it over with, and get out. Get it?

    Ravenhurst: Got it.

    Hubert Hawkins: Good.

     -Hubert Hawkins’ first rule of interrupts. Danny Kaye in The Court Jester

  • Hello,Eason Zhou

    Just to be sure, there is a description of ICC in the MSP430FR4xx and MSP430FR2xx family User's Guide,
    but there is no section describing ICC in the MSP430FR2676 datasheet. Can the ICC function be used with the MSP430FR2676?

    Best regards,
    DDdoor

  • As I know, only MSP430FR3153,MSP430FR2155, MSP430FR2353, MSP430FR2355 support this.

**Attention** This is a public forum