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.