F28335的InitSysCtrl()与DSP2833x_SysCtrl.c文件(2)

请教同时之后,在<TMS320x2833x, 2823x System Control and Interrupts>找到了看门狗/时钟配置及系统控制的寄存器介绍.

    // Initialize the PLL control: PLLCR and DIVSEL
    // DSP28_PLLCR and DSP28_DIVSEL are defined in DSP2833x_Examples.h
    //
    InitPll(DSP28_PLLCR,DSP28_DIVSEL);


对锁相环进行配置,传入两个变量DSP28_PLLCR,DSP28_DIVSEL,该两个在DSP2833x_Examples.h有定义.一般都是配置成150M.

DSP2833x_Examples.h目前还没有找到在哪里


    //
    // Initialize the peripheral clocks
    //

    InitPeripheralClocks();

这个函数是对所有的外设进行时钟信号的使能.详细代码见DSP2833x_SysCtrl.c

其实在文档中有这样一句换:

Due to the peripheral/GPIO MUXing, all peripherals cannot be used at the same time. While it is
possible to turn on the clocks to all the peripherals at the same time, such a configuration is not useful. If
this is done, the current drawn will be more than required. To avoid this, only enable the clocks required

by the application.

由于28335的管脚是复用的,所以没有必要打开所有的时钟使能,it  is not useful.为了避免电流的增加,用什么模块就使能它的时钟,不用的关闭。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章