In our design, pin 4.7 of msp430 is connected to the KILL pin of the ON/OFF switch IC which is active LOW. So when ever I set the pin 4.7 as output in DIR register, the whole circuit turns OFF even though I set the OUTPUT as HIGH immediately. Is there any way to avoid the output going to low when the DIR (direction) register is set as output?
Here is the piece of code that I used:
P4DIR |= BIT7; //Set KILL pin as OUTPUT
P4OUT |= BIT7; //Set Kill pin high