Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

F5系列UCS的问题

$
0
0

F5的官方例程里面有段代码是这样:

/
  __bis_SR_register(SCG0);                  // Disable the FLL control loop
  UCSCTL0 = 0x0000;                         // Set lowest possible DCOx, MODx
  UCSCTL1 = DCORSEL_5;                      // Select DCO range 16MHz operation
  UCSCTL2 = FLLD_1 + 249;                   // Set DCO Multiplier for 8MHz
                                            // (N + 1) * FLLRef = Fdcodiv 原Fdco
                                            // (249 + 1) * 32768 = 8MHz
                                            // Set FLL Div = fDCOCLK/2
  __bic_SR_register(SCG0);                  // Enable the FLL control loop

我的问题是: UCSCTL0 = 0x0000;为什么把MOD设为0,这样DCO调制器就关掉了,FLL如何调节频率?使能FLL时,MODx与DCOx都是自动修改的吧。

 


Viewing all articles
Browse latest Browse all 3634

Trending Articles