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.

MSP430G2553: Help Setting up GPIO pins and Interrupts

Part Number: MSP430G2553
Other Parts Discussed in Thread: MSP430FR2111, MSP430FR2110, MSP430-FUNCTION-CODE-EXAMPLES, MSP430FR2100, , MSP430FR2000, TIDA-01496, MSP430G2253

I was trying to set up one positive edge triggered interrupt and one timer interrupt, like SysTick on the TM4C123, but I have not found source code on how to set it up. I was also looking to have the positive edge trigger interrupt be based on one GPIO pin being an input, and the timer interrupt to control an output on a different GPIO pin. Are there any online instructions for setting up ports and timers? Do I also need to worry about setting up separate clocks or will the system clock suffice?

Thank you for your help!

  • Hello Ryan,

    Have you checked out the code examples in CCS? This would be a great place to start. Also, I would recommend searching the forum for similar questions. Are you required to use the MSP430G2553? If not, I would highly recommend that you check out our newer MSP430 FRAM devices. For example, the MSP430-FUNCTION-CODE-EXAMPLES is a collection of 25 code examples for use with the MSP430FR2000, MSP430FR2100, MSP430FR2110 and MSP430FR2111 Value Line Sensing microcontrollers (MCUs). These code examples allow developers to add programmability to simple digital and analog functions such as timers, input/output expanders, system reset controllers, EEPROM and more.

    I hope this helps!

    Regards,

    James

    MSP Customer Applications

  • Hey James,

    My project leader insists on the MSP430G2553. I was looking at the source code from www.ti.com/.../slva557.pdf and all of the relevant source code I could find on the parts homepage. I also found the TIDA-01496 reference design that is very useful with source code, but I need to implement something like that in a different way. Mainly if I can set up the ports/interrupts I will be in the right direction.

    Do the the MSP430FR boards have the same GPIO ports and interrupt vectors as the MSP430G2253?
    Could I use the example code from the MSP430-FUNCTION-CODE-EXAMPLES with the MSP430G2253?

    Feel free to email me and I can give you a more in depth overview.

    Thank you again for your help!
    Ryan

**Attention** This is a public forum