I'm using a MSP430F2618TPM, and need to use UART A1 in SPI mode. If I'm reading the pinout for the 64-pin device correctly:
Pin 34 : P3.6/UCA1TXD/UCA1SIMO
Pin 35 : P3.7/UCA1RXD/UCA1SOMI
Pin 44 : P5.0/UCB1STE/UCA1CLK
Pin 47 : P5.3/UCB1CLK/UCA1STE
I need to set all four pins into their "secondary peripheral module function", yes?
So (just focusing on the first two pins for now, SIMO and SOMI), I'm trying to write this code:
P3SEL |= 0xC0; // set bits 6 and 7 to 1
P3SEL2 |= 0xC0; // set bits 6 and 7 to 1
but my compiler (Crossworks) says that "P3SEL2" doesn't exist.
I've done embedded programming before, but am new to both this microcontroller and this development environment, so I'm not sure where the problem lies.
Am I trying to write the correct code, and my compiler is being stupid? Or am I misreading the spec and trying to write code I don't need to?
Thanks,
Chris