hi
as i press on switch s2 (P1.1) as shown in the following code, i dont see any change in P1IN (P1IN remains constant as i press the button)
**i am using msp430f5529 lp
ps: P1DIR is input by defaulf.
#include "msp430.h"
void main()
{
WDTCTL = WDTPW + WDTHOLD; //stop watch dog timer
P1REN |= 0x02;
while(1){//do something}
}
thx :)