- Thu Jun 05, 2008 7:40 am
#49667
Dear programers,
I´ve got some fundamentally problems with the MSP430F2274 and the Code Composer vers3.
I thought I could make a quick changeover from the 1611 to 2274 to use USB and the code size from 16kB.
My question:
#include "msp430x22x4.h"
void main(void)
{
WDTCTL = WDTPW + WDTHOLD;
P1DIR |= 0x03;
while (1)
{ unsigned char button=0x00;
if((BIT2 & P1IN)==0)
{button++;}
else
{button=0x0a;}
switch(button)
{
case 0x00: {P1OUT |= 0x00; break;}
case 0x01: {P1OUT ^= 0x02; break;}
default: {P1OUT |= 0x01;}
}
}
}
I´ve got some fundamentally problems with the MSP430F2274 and the Code Composer vers3.
I thought I could make a quick changeover from the 1611 to 2274 to use USB and the code size from 16kB.
My question:
#include "msp430x22x4.h"
void main(void)
{
WDTCTL = WDTPW + WDTHOLD;
P1DIR |= 0x03;
while (1)
{ unsigned char button=0x00;
if((BIT2 & P1IN)==0)
{button++;}
else
{button=0x0a;}
switch(button)
{
case 0x00: {P1OUT |= 0x00; break;}
case 0x01: {P1OUT ^= 0x02; break;}
default: {P1OUT |= 0x01;}
}
}
}