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.爲了避免電流的增加,用什麼模塊就使能它的時鐘,不用的關閉。



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