请教一个关于pic18编译器的问题,很痛苦
1个回答
展开全部
使用MPLABIDEv8.9编译c18选用单片机为pic18f2525分别采用如上三种编译器均无法编译要么无法找到头文件(picc18),要么陷入死循环(mcc)、或者配置字未定义(xc8)#include#include#include/*Setconfigurationbits*-setHSoscillator*-disablewatchdogtimer*-disablelow_voltageprogramming*-disablebrownoutreset*-enablemasterclear*/#pragmaconfigOSC=HS#pragmaconfigWDT=OFF#pragmaconfigLVP=OFF#pragmaconfigBOR=OFF#pragmaconfigMCLRE=ONvoidMyHighInt(void)voidMyLowInt(void)#pragmainterruptMyHighInt#pragmacodehigh_vector=0x08voidhigh_vector(void){_asmGOTOMyHighInt_endasm}#pragmainterruptlowMyLowInt#pragmacodelow_vector=0x18voidlow_vector(void){_asmGOTOMyLowInt_endasm}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |