TI中文支持网
TI专业的中文技术问题搜集分享网站

外部晶振无法使用

我是用的28027芯片,时钟配置如下:

CLK_disableOsc1(clkHandle);	
	
CLK_setOscSrc(clkHandle,CLK_OscSrc_External);  
	
CLK_disableClkIn(clkHandle);

CLK_enableCrystalOsc(clkHandle);
	
CLK_disableOsc2(clkHandle);
PLL_setup(pllHandle, PLL_Multiplier_6, PLL_DivideSelect_ClkIn_by_2);
PLL_setup函数如下:
void PLL_setup(PLL_Handle pllHandle, const PLL_Multiplier_e clkMult, const PLL_DivideSelect_e divSelect)  
{if(PLL_getClkStatus(pllHandle) == PLL_ClkStatus_Missing){// The clock is missing so we cannot setup the PLL correctlyasm(" ESTOP0");}// Set divider to max value (/4) for safetyPLL_setDivider(pllHandle, PLL_DivideSelect_ClkIn_by_4);// Set the desired multiplierPLL_setMultiplier(pllHandle, clkMult);while(PLL_getLockStatus(pllHandle) != PLL_LockStatus_Done){}// Set the desired dividerPLL_setDivider(pllHandle, divSelect);

} // end of PLL_setup() function

使用外部20M晶振,按照手册配置的外部电路;编译通过,但是烧写程序时,烧写进去了,但是仿真开始,就会执行到下面的语句,仿真停止

 if(PLL_getClkStatus(pllHandle) == PLL_ClkStatus_Missing){// The clock is missing so we cannot setup the PLL correctlyasm(" ESTOP0");}
然后软件重新配置使用内部晶振,但是程序怎么也烧不进板子,一直报下面的错误,怎么都不行了,求大神指点,怎么配置外部晶振?如何退出下面这个模式?急,在线等!!!

mangui zhang:

外部晶体应该是没启振  上电后用万用表测晶体引脚  有个1v左右电压就说明工作了

我是用的28027芯片,时钟配置如下:

CLK_disableOsc1(clkHandle);	
	
CLK_setOscSrc(clkHandle,CLK_OscSrc_External);  
	
CLK_disableClkIn(clkHandle);

CLK_enableCrystalOsc(clkHandle);
	
CLK_disableOsc2(clkHandle);
PLL_setup(pllHandle, PLL_Multiplier_6, PLL_DivideSelect_ClkIn_by_2);
PLL_setup函数如下:
void PLL_setup(PLL_Handle pllHandle, const PLL_Multiplier_e clkMult, const PLL_DivideSelect_e divSelect)  
{if(PLL_getClkStatus(pllHandle) == PLL_ClkStatus_Missing){// The clock is missing so we cannot setup the PLL correctlyasm(" ESTOP0");}// Set divider to max value (/4) for safetyPLL_setDivider(pllHandle, PLL_DivideSelect_ClkIn_by_4);// Set the desired multiplierPLL_setMultiplier(pllHandle, clkMult);while(PLL_getLockStatus(pllHandle) != PLL_LockStatus_Done){}// Set the desired dividerPLL_setDivider(pllHandle, divSelect);

} // end of PLL_setup() function

使用外部20M晶振,按照手册配置的外部电路;编译通过,但是烧写程序时,烧写进去了,但是仿真开始,就会执行到下面的语句,仿真停止

 if(PLL_getClkStatus(pllHandle) == PLL_ClkStatus_Missing){// The clock is missing so we cannot setup the PLL correctlyasm(" ESTOP0");}
然后软件重新配置使用内部晶振,但是程序怎么也烧不进板子,一直报下面的错误,怎么都不行了,求大神指点,怎么配置外部晶振?如何退出下面这个模式?急,在线等!!!

Seven Han:

检查下是不是没焊接好,或更换下晶振外部电容。

我是用的28027芯片,时钟配置如下:

CLK_disableOsc1(clkHandle);	
	
CLK_setOscSrc(clkHandle,CLK_OscSrc_External);  
	
CLK_disableClkIn(clkHandle);

CLK_enableCrystalOsc(clkHandle);
	
CLK_disableOsc2(clkHandle);
PLL_setup(pllHandle, PLL_Multiplier_6, PLL_DivideSelect_ClkIn_by_2);
PLL_setup函数如下:
void PLL_setup(PLL_Handle pllHandle, const PLL_Multiplier_e clkMult, const PLL_DivideSelect_e divSelect)  
{if(PLL_getClkStatus(pllHandle) == PLL_ClkStatus_Missing){// The clock is missing so we cannot setup the PLL correctlyasm(" ESTOP0");}// Set divider to max value (/4) for safetyPLL_setDivider(pllHandle, PLL_DivideSelect_ClkIn_by_4);// Set the desired multiplierPLL_setMultiplier(pllHandle, clkMult);while(PLL_getLockStatus(pllHandle) != PLL_LockStatus_Done){}// Set the desired dividerPLL_setDivider(pllHandle, divSelect);

} // end of PLL_setup() function

使用外部20M晶振,按照手册配置的外部电路;编译通过,但是烧写程序时,烧写进去了,但是仿真开始,就会执行到下面的语句,仿真停止

 if(PLL_getClkStatus(pllHandle) == PLL_ClkStatus_Missing){// The clock is missing so we cannot setup the PLL correctlyasm(" ESTOP0");}
然后软件重新配置使用内部晶振,但是程序怎么也烧不进板子,一直报下面的错误,怎么都不行了,求大神指点,怎么配置外部晶振?如何退出下面这个模式?急,在线等!!!

desheng yang:

回复 mangui zhang:

好的,谢谢您mangui zhang

我是用的28027芯片,时钟配置如下:

CLK_disableOsc1(clkHandle);	
	
CLK_setOscSrc(clkHandle,CLK_OscSrc_External);  
	
CLK_disableClkIn(clkHandle);

CLK_enableCrystalOsc(clkHandle);
	
CLK_disableOsc2(clkHandle);
PLL_setup(pllHandle, PLL_Multiplier_6, PLL_DivideSelect_ClkIn_by_2);
PLL_setup函数如下:
void PLL_setup(PLL_Handle pllHandle, const PLL_Multiplier_e clkMult, const PLL_DivideSelect_e divSelect)  
{if(PLL_getClkStatus(pllHandle) == PLL_ClkStatus_Missing){// The clock is missing so we cannot setup the PLL correctlyasm(" ESTOP0");}// Set divider to max value (/4) for safetyPLL_setDivider(pllHandle, PLL_DivideSelect_ClkIn_by_4);// Set the desired multiplierPLL_setMultiplier(pllHandle, clkMult);while(PLL_getLockStatus(pllHandle) != PLL_LockStatus_Done){}// Set the desired dividerPLL_setDivider(pllHandle, divSelect);

} // end of PLL_setup() function

使用外部20M晶振,按照手册配置的外部电路;编译通过,但是烧写程序时,烧写进去了,但是仿真开始,就会执行到下面的语句,仿真停止

 if(PLL_getClkStatus(pllHandle) == PLL_ClkStatus_Missing){// The clock is missing so we cannot setup the PLL correctlyasm(" ESTOP0");}
然后软件重新配置使用内部晶振,但是程序怎么也烧不进板子,一直报下面的错误,怎么都不行了,求大神指点,怎么配置外部晶振?如何退出下面这个模式?急,在线等!!!

desheng yang:

回复 Seven Han:

好的,我检查一下,谢谢您Seven Han

赞(0)
未经允许不得转载:TI中文支持网 » 外部晶振无法使用
分享到: 更多 (0)