How do I check if a input pin (PAD07) is low or high. I have a 10k pullup on the pin. This is what I have tried,
unsigned char pinstate;
pinstate = PT0AD0;
pinstate = PT0AD0 & 0x80;
pinstate = PT0AD0_PT0AD07;
pinstate = PT0AD0 & PT0AD0_PT0AD07;
None of them give me a value that makes sense.