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.

[参考译文] MSP430F4784:增加 SMCLK

Guru**** 668880 points
Other Parts Discussed in Thread: MSP430F4784
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1118019/msp430f4784-increase-smclk

器件型号:MSP430F4784

您好!

我目前正在使用 MSP430F4784。

在这里、我将使用8MHz 的 DCO 时钟。

我想增加时钟12 - 16MHz。  

在 MSP430F4784中获取所需时钟的可能方法是什么。

下面给出了时钟初始化。

/** clock config **/

SCFQCTL |=  SCFQ_4M; 
SCFI0 |= FN_2;
FLL_CTL0 |= DCOPLUS;

/** for MCLK **/
FLL_CTL1 &= ~XT2OFF;
  do
  {
	 IFG1 &= ~OFIFG;
     __delay_cycles(1000);
  }while(IFG1 & OFIFG);

 FLL_CTL1 &= ~SELS; // DCO for SMCLK
 FLL_CTL1 |= SELM1; // XT2 for MCLK
 FLL_CTL2 |= XT2S_2;