Other Parts Discussed in Thread: CONTROLSUITE
Hi,
Im using the F28069 with v1.36 of the driver lib
and a 20Mhz crystal is connected to the controller
i need the low speed clock to work at 10 Mhz
Is the order of the following system initialization calls in main function correct ??
How to use InitPll function
Where should i call
>>GPIO init & mux function
>>SPI A & B Init
>>CPU timer 0 init
>>McBSP Init
//Step 1 XtalOscSel(); //Step 2 InitPll(val,divsel)//how to use this ??? //Step 3 //LSPCLK/Low Speed Clock = SYSCLKOUT/(LOSPCPx2) = //20Mhz/(001x2) = 10Mhz SysCtrlRegs.LOSPCP.all = 0x0001; //Step4 //Enable clocking only to peripherals used , SysCtrlRegs.PCLKCR0.bit.SPIAENCLK = 1; // SPI-A SysCtrlRegs.PCLKCR0.bit.SPIBENCLK = 1; // SPI-B SysCtrlRegs.PCLKCR0.bit.MCBSPAENCLK = 1; // McBSP-A SysCtrlRegs.PCLKCR3.bit.CPUTIMER0ENCLK = 1; // CPU Timer 0 //Step5 // Disable and clear all CPU interrupts DINT; IER = 0x0000; IFR = 0x0000; //PIE block Init InitPieCtrl(); InitPieVectTable();