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.
Setting up the crystal on a MSP430F1612, trying to get the SMCLK to source from XTL1 in HF mode. I can get it to output the DCO on the SMCLK pin but not XTL1. The data sheet says that when XTL2 is not present, that setting SELS in BCSCTL2 will have SMCLK sourced from XTL1. MCLK sources the 8MHz just fine.
void initClockModule()
{
unsigned int cnt;
BCSCTL1 |= XTS + XT2OFF; // XT1 high frequency (8MHz). Insure XT2 is off
BCSCTL2 &= 0; // Make sure MCLK is not divided
do {
IFG1 &= ~OFIFG; // Clear fault flag
for(cnt=1;cnt;cnt++); // Count 256 times
} while (IFG1 & OFIFG); // If flag still cleared, all is well
BCSCTL2 |= SELM_3; // MCLK = XT1
BCSCTL2 |= SELS; // SMCLK = XT1
}
MT7316,
XT1 is not a source for SMCLK for the MSP430F161x, MSP430F16x, and MSP430F15x devices.
The LFXT1 oscillator replaces XT2CLK only on MSP430x11xx and MSP430x12xx devices.
This is noted on page 112 Section 4-3 of the MSP430x1xx User's Guide.
MSP430x1xx Family User's Guide: http://www.ti.com/litv/pdf/slau049f#page=112
**Attention** This is a public forum