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.

MSP430F2122: How to use PIN 27 as an input?

Part Number: MSP430F2122
Other Parts Discussed in Thread: MSP-FET

I'm using the MSP-FET for Debugging and Flashing my program to the MSP430F2122. However, I'm about done and I went to add functionality to PIN 27 to hopefully use it as an input but I can not seem to figure out how to do that. Is it possible to use the SBW on pin 1 and 7 to flash via the MSP-FET device?

  • Solved my problem. Forgetting to remove a jumper on my programming board was causing me troubles! 

  • Hi Joshua,

    On power up, all GPIO IO pins are reset to input, so you shouldn't have to do anything, but to configure pin27 as an input, you clear that bit in the P1DIR register ->  P1DIR &= ~(BIT6);

    And you read the state of the bit using the P1IN register.

    Regarding pin1,7 for SBW programming, yes you can. Just make sure you have a 47K pull up resistor and a capacitor no larger than 2.2nF on the RST pin, else the programmer may not work.

  • Hi Joshua,

    It's been a while since we have heard from you, so I'm going to assume you were able to move forward with your project.
    I will mark this posting as RESOLVED, but if this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.
    If this thread is locked, please click the "Ask a related question" button, and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

**Attention** This is a public forum