I am working with the MSP430F2350 and im trying to learn how to interact with this MSP, so i design a basic system so that i could program it by JTAG conection and it was succesfull but whe the program that is now in the MSP won´t do anything. The program only shuffles the value in port 1 so that a led can turn on and off. The code is :
#include <msp430x24x.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction
for (;;)
{
volatile unsigned int i;
P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR
i = 50000; // Delay
do (i--);
while (i != 0);
}
}
I don´t know if it´s problem of the oscilador ?, I put an external oscilator of 18MHZ with two capacitors of 22pf.
What are the minimun requeriments so that the MSP430F2350 can work ?