This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Configuring launchpad with 32KHz Crsystal

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.

**Attention** This is a public forum