Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 718183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:29:51+00:00 2026-05-14T05:29:51+00:00

I know that when working with the MSP430F2619 and TI’s CCSv4, I can get

  • 0

I know that when working with the MSP430F2619 and TI’s CCSv4, I can get more than one interrupt to use the same interrupt handler with code that looks something like this:

#pragma vector=TIMERA1_VECTOR
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void){

ServiceWatchdogTimer();
}

My question is, when I find myself in that interrupt, is there a way to figure out which one of these interrupts got me here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:29:52+00:00Added an answer on May 14, 2026 at 5:29 am

    The general answer to your question is no there is no direct method to detect which interrupt is currently being called. However each interrupt has its own interrupt flag so you can check each flag in the interrupt. You should and the flag with the enable to make sure you are handling the interrupt that actually was called. Also with the timers on the MSP430 there is vector TAIV which can tell you what to handle in the A1 handler. Case 0 of the TAIV is that there was no interrupt for A1 handler so for that case you can assume it is the A0 handler.

    I would do something like the following.

    #pragma vector=TIMERA0_VECTOR
    #pragma vector=TIMERA1_VECTOR
    __interrupt void Timer_A (void)
    {
       switch (TAIV)         // Efficient switch-implementation
       {
         case  TAIV_NONE:          // TACCR0             TIMERA0_VECTOR
            break;
         case  TAIV_TACCR1:        // TACCR1             TIMERA1_VECTOR
            break;
         case  TAIV_TACCR2:        // TACCR2             TIMERA1_VECTOR
            break;
         case TBIV_TBIFG:          // Timer_A3 overflow  TIMERA1_VECTOR
            break;
         default;
            break;
       }
       ServiceWatchdogTimer();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on PostgeSQL with PHP and I know that PosrgeSQL allow columns of
I'm working on PostgreSQL 8.4 in read committed mode. I know that for each
I've been working with app engine for quite some time, I know that there
The title says it! I know that Jon Skeet was working on an implementation
I have working registration script the only problem is that i do not know
I know there is a command that updates the changes like c:\svn up <working
I am working on Drupal. I want to know how to change that footer
I have a vertical drop-down menu that is working fairly well. I have one
We all know that working with S3 is a pain: deleting virtual directories requires
I know that I can set up a .gitattributes for each project that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.