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.

MSP430F2121 port settings?

i am reviewing code to used on an MSP430F212RGE device and noticed the following port initialization:

mov.b  BIT3, $P2DIR

mov.b  (BIT7+BIT6+BIT3), &P2SEL

...

mov.b BIT3, &CAPD

1.  Is there any problem having P2DIR.bit3 = 0, P2SEL.bit3 = 1, and CAPD = 0 as the port settings for a short time, prior to setting CAPD = 1?

I do not see this combination of settings defined in the data sheet.

Thanks,

Steve

  • Steve,

    What is your end usage goal for the IO pin?

    I dont see any issues with the circumstance that you presented.

    As long as you dont use the IO for its intended use until you have finalized the setup of the IO/peripheral.

    If its not setup correctly, it just wont function. 

    -Jason

     

  • Jason,

    Thanks for the reply.

    I just wanted to make sure, we weren't going to risk putting the IO in an unpredictable state.

    We do not use the peripheral function on this IO pin until we have it set up correctly.

    -Steve

**Attention** This is a public forum