Hello together,
i try since few hours to use the PxIN but i get allways the P1IN zero so low...i tried all combination with PxOUT, PxEN, PxSEL but without good results... i used the PxDIR as 0 for the PIN and i set the port as P1IN = 1 but the problem is that all the pins of the port are low so zero...can someone briefly tell me about the trick combination of PxSEL , PxIN, PxEN and and...
void main(void) //Main program
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR=0x00;
P1OUT=0x00;
for (;;)
{
P1DIR = 0x00;
P1IN = 0xFF;
}
}