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.

LP-MSPM0G3507: How to use specific function IO pin as a general purpose IO?

Part Number: LP-MSPM0G3507

Hello!

I want to set PA2 pin as an output, but it's a specific function pin - ROSC. From MSPM0 G-Series MCUs Hardware Development Guide:

Can I use this pin and other ones which have some specific functions as GPIOs?

I tried configuring it as an output pin, but I don't get expected 3.3V when I set the pin. It's always on logic low.

I found some info about it in the same guide:

Does it mean that I can just put pullup/pulldown resistors on such pins and I can't use them as GPIOs?

  • Hi Nika,

    Generally, you can use any PAx or PBx pin as a GPIO, with the exceptions of PA0 and PA1, as described in the hardware development guide.

    The likely reason that you are currently unable to see 3.3V on PA2 is that the Launchpad is shipped with this pin (among others) disconnected. This can be seen in the device's user guide in Section 5: Schematics. 

    If you'd like to quickly verify this, you can drive the output for PA2 high, then probe the R9 solder pad. You may also just try soldering a resistor onto R9 and then continuing to probe the PA2 header.

  • Hello Dylan,

    Sorry for the extremely late reply.

    You were right, that pin and some of the others are disconnected on the board. That was the sole problem.

    Thank you for the help!