I`m trying to use PCF8574N with the MSP430G2553, but with no luck so far. I tried several examples but nothing seems to work.
Basically, what i`m trying to do is light up a selected number of LEDs using the PCF8574N, but no matter the value I use in the UCB0TXBUF, P0 to P7 are always on HIGH, please see the code below:
WDTCTL = WDTPW + WDTHOLD; // Stop Watchdog Timer
P1SEL |= BIT6 + BIT7; // Assign I2C pins to USCI_B0
P1SEL2|= BIT6 + BIT7; // Assign I2C pins to US