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.

CCS/MSP430FR2033: MSP430FR2033 MCLK not working more than 2MHZ

Part Number: MSP430FR2033
Other Parts Discussed in Thread: MSP430FR4133

Tool/software: Code Composer Studio

P1.4 selected as a primary module function.

I Configured REFO as FLL reference source. just i used clock config and gpio port config.
MCLK upto 2 mHZ its working fine more than 2 mHZ if we configured controller is going to STCK INIT(); but in Evaluation board mspfr4133 is working fine with all clock configuration upto 16MHz.
msp430fr2033 board:
DCO selected as 1MHZ ->observed MCLK as 1MHZ on P1.4
DCO selected as 2MHZ ->observed MCLK as 2MHZ on P1.4
DCO selected as 4MHZ and MCLK=DCO/2->observed MCLK as 2MHZ on P1.4
DCO selected as 4MHZ and MCLK=DCO/1->observed controller is continuously resetting.(frequency approx 2.98MHZ)
DCO selected as 8MHZ and MCLK=DCO/4->observed MCLK as 2MHZ on P1.4
DCO selected as 8MHZ and MCLK=DCO/2->observed controller is continuously resetting.(frequency approx 2.98MHZ)
DCO selected as 16MHZ and MCLK=DCO/8->observed MCLK as 2MHZ on P1.4
DCO selected as 16MHZ and MCLK=DCO/4->observed controller is continuously resetting.(frequency approx 2.98MHZ)

  • Hi ,

    Can you share your test code?

    Have you tried FR413x_FR203x CS code example?

    //******************************************************************************
    //  MSP430FR413x Demo - Configure MCLK for 8MHz sourced from DCO.
    //
    //  Description: Default DCODIV is MCLK and SMCLK source.
    //  By default, FR413x select XT1 as FLL reference.
    //  If XT1 is present, the XIN and XOUT pin needs to configure.
    //  If XT1 is absent, switch to select REFO as FLL reference automatically.
    //  XT1 is considered to be absent in this example.
    //  f(DCOCLK) = 2^FLLD * (FLLN+1) * (fFLLREFCLK / n).
    //  FLLD = 0, FLLN =243, n=1, DIVM =1, f(DCOCLK) = 2^0 * (243+1)*32768Hz = 8MHz,
    //  f(DCODIV) = (243+1)*32768Hz = 8MHz,
    //  ACLK = default REFO ~32768Hz, SMCLK = MCLK = f(DCODIV) = 8MHz.
    //  Toggle LED to indicate that the program is running.
    //
    //           MSP430FR4133
    //         ---------------
    //     /|\|               |
    //      | |               |
    //      --|RST            |
    //        |          P1.0 |---> LED
    //        |          P1.4 |---> MCLK  = 8MHz
    //        |          P8.0 |---> SMCLK = 8MHz
    //        |          P8.1 |---> ACLK  = 32768Hz
    //
    //
    //   William Goh
    //   Texas Instruments Inc.
    //   March 2014
    //   Built with IAR Embedded Workbench v6.10 & Code Composer Studio v6.0
    //******************************************************************************
    #include <msp430.h>
    
    int main(void)
    {
        WDTCTL = WDTPW | WDTHOLD;               // Stop watchdog timer
    
        __bis_SR_register(SCG0);                // disable FLL
        CSCTL3 |= SELREF__REFOCLK;              // Set REFO as FLL reference source
        CSCTL0 = 0;                             // clear DCO and MOD registers
        CSCTL1 &= ~(DCORSEL_7);                 // Clear DCO frequency select bits first
        CSCTL1 |= DCORSEL_3;                    // Set DCO = 8MHz
        CSCTL2 = FLLD_0 + 243;                  // DCODIV = 8MHz
        __delay_cycles(3);
        __bic_SR_register(SCG0);                // enable FLL
        while(CSCTL7 & (FLLUNLOCK0 | FLLUNLOCK1)); // Poll until FLL is locked
    
    
        CSCTL4 = SELMS__DCOCLKDIV | SELA__REFOCLK; // set default REFO(~32768Hz) as ACLK source, ACLK = 32768Hz
                                                // default DCODIV as MCLK and SMCLK source
    
        P1DIR |= BIT0 | BIT4;                   // set MCLK and LED pin as output
        P1SEL0 |= BIT4;                         // set MCLK pin as second function
        P8DIR |= BIT0 | BIT1;                   // set ACLK and SMCLK pin as output
        P8SEL0 |= BIT0 | BIT1;                  // set ACLK and SMCLK pin as second function
    
        PM5CTL0 &= ~LOCKLPM5;                   // Disable the GPIO power-on default high-impedance mode
                                                // to activate previously configured port settings
    
        while(1)
        {
            P1OUT ^= BIT0;                      // Toggle P1.0 using exclusive-OR
            __delay_cycles(10000000);           // Delay for 10000000*(1/MCLK)=1.25s
        }
    }
    

    BR,

    Ling

  • same code i am using for both the controllers  msp430fr4133 and msp430fr2033

    its working fine in 4133

    but not working in 2033.

  • How many FR2033 do you have?
    Have you tried the code in a different FR2033?
  • I had tested in one 2033.
  • Please try to run the test code in another 2033.
    I have tested the code and silicon from my side and haven't see any issue.
  • Hi SHRAVAN BOMMU,

    Have you solved the problem?

    Regards,
    Ling

**Attention** This is a public forum