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.

MSP430F6659 DCO ISSUE

Other Parts Discussed in Thread: MSP430F6659

i am working on MSP430F6659

here in ucs system my code is 

int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer

UCSCTL0_H |= 0b00011111;
UCSCTL0_L &= 0b00000000;
UCSCTL1 |= DCORSEL_7;
UCSCTL4 |= SELS_4;

__delay_cycles(100000);

P3DIR |= BIT4;
P3SEL |= BIT4;

}

my question is how to get maximum clk frequency = 135mhz.

when i am compiling above code on ccs6 it shows all DCO bits are 0 and all the MOD bits are 1. What should i do?

  • These bits are automatically changed by the FLL. You need to disable the FLL (set SCG0).

    And there is no guarantee that you will reach 135 MHz; the datasheet guarantees only that these settings will result in some random frequency between 60 MHz and 135 MHz.

    And overclocking beyond 20 MHz is not guaranteed to succeed, unless "success" includes a melted CPU.

    And before going beyond 8 MHz, you must increase PMMCOREV (see section 2.2.4 of the User's Guide).

  • Hi Clemens Ladisch

    Thank you for you reply . . .

    I have tried as per your suggestion but there is no effect....
  • It is better to use XT2 for overclocking than DCO.

    I have few boards that are working on doubled MCLK (40 / 48 MHz) specified in datasheet (20 / 24 MHz) on 3.3 V.

**Attention** This is a public forum