Part Number: MSP430FR5994
Tool/software: Code Composer Studio
I have two problems. First, I'm trying to just read the input value on a pin on the launchpad for my MSP430FR5994 and it doesn't show up. If I look under "registers" in CCS at P3IN, it doesn't change even as I set different pins high. My code is below. My second problem is that my variable doesn't show up in either "variables" or "expressions" in CCS. Am I missing something?
#include <msp430.h>
/**
* main.c
*/
int main(void)
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
unsigned int nonsense;
P3DIR &= 0xF0;
while(1){
nonsense = P3IN;
__delay_cycles(1000);
}
}