I'm using a MSP430G2252 with a MSP-TS430PW28A and a MSP-FET430UIF. No matter what I try, I never get a high signal from P2.6 or P2.7. According to the data sheet, I have to set P2SEL and P2SEL2 to zero to activate their GPIO functionality. I did so, but they remain dead. Even this minimal example doesn't work with P2.6 or P2.7:
#include <msp430.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P2DIR |= 0xD0; // Set P2.4,6,7 to output direction
P2SEL = 0;
P2OUT |= 0xD0; // P2.4,6,7 to output direction
}
(from http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/p/64120/230943.aspx#230943)
However, I get a high signal if I use P2.4, for example. What is going on here?