Part Number:TMS320F28069M
Hi all,
I was recently trying to switch the internal oscillator to external oscillator in HAL_setupClks function. I needed to keep system clock 90Mhz as it is. I refereed few conversation in the forum regarding this. But did not worked.
So far I tried to mimic control suit XtalOscSel function in HAL_setupClks as below,
CLK_enableCrystalOsc(obj->clkHandle);//enable
usDelay(1000);
CLK_disableClkIn(obj->clkHandle);
CLK_setOsc2Src(obj->clkHandle, CLK_Osc2Src_External);
CLK_setOscSrc(obj->clkHandle,CLK_OscSrc_External);
CLK_setLowSpdPreScaler(obj->clkHandle,CLK_LowSpdPreScaler_SysClkOut_by_1);
CLK_setClkOutPreScaler(obj->clkHandle,CLK_ClkOutPreScaler_SysClkOut_by_1);
But did not worked. Is there any example with external oscillator . Please help me to solve this.
Thanks.