Other Parts Discussed in Thread: MSP430F2013
I havethe following code using code composer 6.1 and the msp430f2013 micro
// "main.h" #define SCR_PULSE (0x80);
#define FAULT (0x04);
#define FAULT_CONDITION (0x08);
#define DAC_OFF (0x10); // "main.c" if(P2IN & SCR_PULSE){ }
P1REN = FAULT | FAULT_CONDITION | DAC_OFF;
i get an expecting a ")" error on the if statement line. and i get an expecting an expression error for the P1REN declaration.
if i change the statement to
if(P2IN & 0x80){
}
P1REN = FAULT;
P1REN |= FAULT_CONDITION;
P1REN |= DAC_OFF;
I do not get the errors. Is there something about this i am completely missing with CCS?