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.

Starterware/MSP430F67471A: Configuration of PxDIR when pin works as UART

Part Number: MSP430F67471A

Tool/software: Starterware

Hello.

I have a question.

In the example code "msp430f677xA_uscia0_uart_03.c", it is described following code.

P3SEL0 |= BIT0 | BIT1; // Set P3.0, P3.1 to non-IO
P3DIR |= BIT0 | BIT1; // Enable UCA0RXD, UCA0TXD

Device datasheet saids , P3DIR don't care when P3SEL is set,.

why does the sample code configure P3DIR register?

Regards,

uchida-k

**Attention** This is a public forum