Hello, I have soldered the provided crystal to the launchpad sockets. Here is my code for configuring it to be my main clock:
BCSCTL1 &= ~XTS; BCSCTL3 |= XCAP_3; BCSCTL3 |= LFXT1S_0; BCSCTL2 |= SELM_3; BCSCTL2 |= DIVM_0;
Then I have an LED being toggled every second, as follows:
__delay_cycles(32768); // frequency of our crystal and thus our main clock.
However this is not working at all. The LED flashes rapidly and not even close to a period of 1 second. What can I do?
Thanks.