Hi there
I am using the RF430FRL152HEVM. I want to setup P1.2 as an input, and have written the following function:
void initInterrupt()
{
 //initialising P1.2 for PERIPHERAL_RDY interrupt on rising edge
 P1DIR &= ~BIT2; //P1.2 as input
 P1SEL0 &= ~BIT2;
 P1SEL1 = 0x00;
 P1REN &= ~BIT2; //enable pullup/pulldown resistor
 P1OUT &= ~BIT2; //enable pulldown resistor
P1IE |= BIT2; //enable interrupt
 P1IES &= ~BIT2; //rising edge, set P1IFG (flag) high
 P1IFG &= ~BIT2; //clear interrupt flag
 //when P1IFG is set high, enter ISR (check #pragma vector on port1), at the end of the ISR, clear P1IFG flag
 return;
}
When I execute the function (in the main()), and measure P1.2 the line is floating at a logical 1 (~1.5 V). As I understand, it should be floating at a 0 when the pin is set to an input. I have successfully driven an LED through P1.4 on the EVM, and NFC communication with the TRF7970A is working fine. Advice?