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.

MSP430FR2355: TIMER0_B1_VECTOR

Part Number: MSP430FR2355

Hello

I'm following a tutorial using the MSP430FR2355 DEV board.  For an example using timer B to trigger an interrupt on overflow, the vector used is TIMER0_B1_VECTOR.  The program works well.  As I'm trying to learn how to use this device, I will need to know where to locate these vectors in the future.  I've searched the datasheet and user's guide but there is no reference of TIMER0_B1_VECTOR.  Could you point me to a list of these vectors for the device in question?

thanks

Shawn

  • Unless someone else chimes in and enlightens me as well, there really isn't a direct reference for TIMER0_B1_VECTOR, or any other interrupt vector, in any documentation outside of the IDE.

    First, figure out which interrupt flag you want to work off of. So in your example, you want to act on timer overflow, which asserts TB0IFG. Next, find the list of interrupts available in the target device by opening the datasheet (SLASEC4D for the FR2355) and look for something about "Interrupt Vectors". In the FR2355 datasheet, that is section 6.3, "Interrupt Vector Addresses". This shows all of the available interrupts in the FR2355, including their "Word Address" and the Flags associated with them. Make note of the "Word Address" associated with the flag you're monitoring for the next step. For TB0IFG, this is FFF6h, which can also be written as 0xFFF6.

    In your IDE, open up the header file for the target device. For this example, that is "msp430fr2355.h", and do a search for the previously noted address "FFF6". It should hit a comment near the end of the file. On that same line as the comment is the #define for that vector which you'd use in conjunction with your interrupt function, in this case, TIMER0_B1_VECTOR.

    [EDIT: Added image for clarity and corrected Interrupt Flag wording]

  • Thanks Seth.  This makes sense to me.  Consider this issue closed. 

**Attention** This is a public forum