On 11/28/2016 02:54 AM, Marko Cebokli wrote: > Any idea what I am doing wrong here?
I suspect that you haven't configured the pin correctly. This simple program causes P2.6 to toggle along with the LED: #include <msp430.h> int main() { WDTCTL = WDTPW + WDTHOLD; // stop watchdog timer P1DIR = P2DIR = 0xff; P2DIR &= ~BIT7; P2SEL &= ~BIT6; P2SEL2 &= ~BIT6; while(1) { P1OUT ^= BIT0; P2OUT ^= BIT6; __delay_cycles(1000000L); } } XIN and XOUT connect to the pin headers via 0 Ohm resistors R28 and R29. If those resistors are not present, then no signal will reach those pins. -- David W. Schultz http://home.earthlink.net/~david.schultz "Life without stock is barely worth living..." - Anthony Bourdain ------------------------------------------------------------------------------ _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users