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.

初学者关于时钟分频的疑问



如下这段程序:

void BCS_init_VLO()

{

      // Initiates the clock System in VLO

      // MCLK dive 4

      // Low current consumption.

 

      BCSCTL2 = SELM_3 + DIVM_2 + SELS;       

      //DIVM why divider /4, how choose?

      BCSCTL3 = LFXT1S_2;                                 

      //BCSCTL2 already chose VLO why BCSCLT3 choose VLO again?

      ...

}

问题见红色部分,主要问题在于:
1,定义时如何确定分频
2,BCSCTL3 这一步是否多余

真心是个初学者,还望大家多多指点,多谢