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.

MSP432开发环境 中 system_msp432p4111.c文件咨询



请问TI工程师:

      system_msp432p4111.c中
      void SystemCoreClockUpdate(void)    这个函数何时执行?

      谢谢~~ 

  • 这个函数主要是在系统时钟H变化的时候调用,以更新一个全局变量SystemCoreClock,这个变量可以为应用程序使用,但必须保证正确。默认不用调用这个函数,因为SystemCoreClock默认被设置为设定的频率了

    在该文件中给出了相关的时钟定义

    /*----------------------------------------------------------------------------
       Define clocks, used for SystemCoreClockUpdate()
     *---------------------------------------------------------------------------*/
    #define __VLOCLK           10000
    #define __MODCLK           24000000
    #define __LFXT             32768
    #define __HFXT             48000000

    以及

    /*----------------------------------------------------------------------------
       Clock Variable definitions
     *---------------------------------------------------------------------------*/
    uint32_t SystemCoreClock = __SYSTEM_CLOCK;  /*!< System Clock Frequency (Core Clock)*/

  • 很高兴能帮到您