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.

CCS/MSP430F5529: Read All port Pin

Part Number: MSP430F5529

Tool/software: Code Composer Studio

Hello Everyone,

I have a simple question regarding reading port pins in msp430.

As we all know if we want to read e.g. P1.2  we write

P1DIR &=~ BIT2;

and read through

P1IN & BIT2;

but what if i real all 8 pins on the same port?

can anyone help me for the same , to read all Pins on the same port together or how can i read all 8 pins at the same time?

**Attention** This is a public forum