- Fri Aug 06, 2010 7:56 am
#106811
Without much luck I'm trying to convert the IAR Kickstart demo code to msp430 for the MSP430_169 for my Sparkfun DEV-00772 dev board. Is this the correct conversion -->
IAR Kickstart code: P5OUT_bit.P5OUT_4 = 1;
My msp430 code: P5OUT |= BIT4;
BIT4 is defined as,
#define BIT4 0x0010
P5OUT is defined as,
#define P5OUT_ 0x0031 /* Port 5 Output */
sfrb(P5OUT, P5OUT_);
and here's example that clears the hardware port -->
IAR Kickstart code: P3SEL_bit.P3SEL_0 = 0; // STEO0
My msp430 code: P3SEL &= ~BIT0; // STEO0
Regards,
Paul
IAR Kickstart code: P5OUT_bit.P5OUT_4 = 1;
My msp430 code: P5OUT |= BIT4;
BIT4 is defined as,
#define BIT4 0x0010
P5OUT is defined as,
#define P5OUT_ 0x0031 /* Port 5 Output */
sfrb(P5OUT, P5OUT_);
and here's example that clears the hardware port -->
IAR Kickstart code: P3SEL_bit.P3SEL_0 = 0; // STEO0
My msp430 code: P3SEL &= ~BIT0; // STEO0
Regards,
Paul