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.

MSP430G2101: Won't initialize when power on P1.6

Part Number: MSP430G2101

I'm attempting to implement the following circuit. It's powered by 9v, which is passed through a momentary switch, and a voltage divider to bring the voltage down to ~2.7 volts. This voltage is used to enable a voltage regulator that is also supplied by the 9v. 

When the controller initializes, it sends 3.3v to the voltage regulator to keep the power on after the button is released. It also turns on the led, to indicate that everything is working.

The issue i've encountered, is that i'm trying to send the 2.7v from the switch to P1.6, so that i can detect when the power button is pressed (The purple line in the schematic). When P1.6 is connected, the controller fails to initialize, and the voltage supplied to the enable pin of the voltage regulator is only 0.86v. When P1.6 is not connected, everything initializes correctly.

I'm sure i'm missing something obvious, but i'm not sure what to search for. Any help would be greatly appreciated.

 

Here is the code flashed to the controller

#include <msp430.h>

int main(void)
{
WDTCTL = WDTPW | WDTHOLD;
P1SEL = 0x00;
//P1.6 Input
P1DIR = ~BIT6;
//Output 3.3v on P1.1
P1OUT = BIT1;
P2SEL = 0x00;
P2DIR = 0xFF;
P2OUT = 0x00;
//Enable resistor on P1.6
P1REN |= BIT6;

//Turn on LED
P2OUT |= BIT6;
}

**Attention** This is a public forum