Other Parts Discussed in Thread: MSP430G2553
Hello, I have soldered the provided crystal to the launchpad sockets. Here is my code for configuring it to be my main clock:
#include <msp430.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
BCSCTL1 &= ~XTS;
BCSCTL3 |= XCAP_3;
BCSCTL3 |= LFXT1S_0;
BCSCTL2 |= SELM_3;
BCSCTL2 |= DIVM_0;
P1SEL &= ~BIT5;
P1DIR |= BIT5;
while(1)
{
P1OUT ^= BIT5;
__delay_cycles(32768);
}
}
However this is not working at all. The LED is flashing way too rapidly. What can I do to fix this?
Thanks.