I've been trying to get 2 input push-buttons working on my MSP430 FF529.
I've been successful with 1, but not the other, which leads me to think the one not working is broken, since I'm doing the exact same thing for both.
The two push-buttons on this board are attached to ports
P2.1 to work fine by doing:
P2DIR = 0x00; //set as input P2REN |= 0x02; //enable pullup for p2.1
Now for Port 1, I also need an LED attached to
P1.0 as output, so I have done:
P1DIR = 0x01; //set p1.0 as output, and p1.1 as input P1REN |= 0x02; //enable pullup for p1.1
So P2.1 is working perfectly fine. The default value is HIGH, and I can see it switch to LOW when I press the button. But this is not the case for P1.1. The default value for this is LOW, and pressing the button has no effect. Am I missing something obvious? Or something different about this port than the other port?
The parts I'm referring to are in green boxes.