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.

CC430 5137 No connections on XT1, yet it is still working.



I am wondering why is the LED still blinking on my program yet I dont have a crystal connected on my XT1. I can't find any information (or I missed something) on the datasheet  on what oscillator is running when there is no oscillator on XT1. I copied my UCS registers from the debugger.

UCS__Unified_System_Clock    
    UCSCTL0    0x1388    Memory Mapped Register: UCS Control Register 0    
    UCSCTL1    0x0020    Memory Mapped Register: UCS Control Register 1    
    UCSCTL2    0x101F    Memory Mapped Register: UCS Control Register 2    
    UCSCTL3    0x0000    Memory Mapped Register: UCS Control Register 3    
        SELREF    000 - SELREF_0    FLL Reference Clock Select Bit : 0    
        FLLREFDIV    000 - FLLREFDIV_0    Reference Divider Bit : 0    
    UCSCTL4    0x0044    Memory Mapped Register: UCS Control Register 4    
        SELA    000 - SELA_0    ACLK Source Select Bit: 0    
        SELS    100 - SELS_4    SMCLK Source Select Bit: 0    
        SELM    100 - SELM_4    MCLK Source Select Bit: 0    
    UCSCTL5    0x0000    Memory Mapped Register: UCS Control Register 5    
    UCSCTL6    0x01CD    Memory Mapped Register: UCS Control Register 6    
    UCSCTL7    0x0403    Memory Mapped Register: UCS Control Register 7    
    UCSCTL8    0x0707    Memory Mapped Register: UCS Control Register 8   

///////////////////////////////// very simple blinking program
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer

hal_io_InitOutputs();

while(1){
    volatile u8 ctr=255;
    while(ctr--!=1);while(ctr--!=1);while(ctr--!=1);while(ctr--!=1);while(ctr--!=1);while(ctr--!=1);while(ctr--!=1);while(ctr--!=1);while(ctr--!=1);
    OUT_LED1_POUT ^= OUT_LED1_BIT;

}

/////////////////////////////////


I observed that ACLK - XT1CLK , SMCLK - DCOCLK, MCLK - DCOCLK.

Checking the FLL reference, it says that it uses XT1clk as its source.

  • The LFXT1oscillator is very sensitive and may oscillate without a crystal. But this unreliable and the frequency is uncertain. You should not depend on it.

  • Hi,

    i think this is due to the fact, when XT1 fails, the CC430 will use the internal REFOCLK (32 kHz) as the clock source.

    Please refer to the CC430 Family Users Guide, chapter 3.2.12  UCS Module Fail-Safe Operation

  • On 5x family, ACLK has a fallback to the internal 32kHz REFO if ACLK is sourced by LFXT1 and LFXT1 is not operating.

    However, you do not use ACLK nor do you use any clock except MCLK. And MCLK is by default sourced by the internal DCO (digitally controlled oscillator). Not stable, not precise, but always available on every MSP.

**Attention** This is a public forum