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.

MSP430FR2355: Programming Understanding

Part Number: MSP430FR2355


Hello TI Helpers,

The purpose of the code is to generate PWM on P6.0 pin.

In one of TI code it is written there,

P6DIR |= (BIT0+BIT1+BIT2+BIT3+BIT4+BIT5);

P6SEL0 |= BIT0;
P6SEL0 |= BIT1;

Please help us to understand this code.

Thank you in advance.

  • >P6DIR |= (BIT0+

    > P6SEL0 |= BIT0;

    This part can be understood from data sheet (SLASEC4D) Table 6-68 as configuring P6.0 as TB3.1, controlled by TB3CCTL1/TB3CCR1.

    It's hard to explain the rest without some context. Which TI code is this taken from?

**Attention** This is a public forum