DSP

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

2019-07-13 11:50发布

请教同时之后,在找到了看门狗/时钟配置及系统控制的寄存器介绍.    // 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.为了避免电流的增加,用什么模块就使能它的时钟,不用的关闭。