2020-02-06 09:56发布
xiongh 发表于 2013-6-15 10:18 MPLAB X + PICC 挺好用。 #include "pic.h" #include
最多设置5个标签!
#include <pic16f1824.h> //调用头文件,
#include "pic.h"
#include <htc.h>
__CONFIG(FOSC_INTOSC & WDTE_OFF & PWRTE_OFF & MCLRE_ON & CP_OFF & CPD_OFF & BOREN_OFF & CLKOUTEN_OFF & IESO_ON & FCMEN_OFF);
__CONFIG(WRT_OFF & PLLEN_ON & STVREN_ON & BORV_LO & LVP_OFF);
编译不成功:
Build E:PICPIC_1824EPIC_1824E for device 16F1824
Using driver C:Program Files (x86)Microchipxc8v1.12inxc8.exe
Make: The target "E:PICPIC_1824Emain.p1" is up to date.
Executing: "C:Program Files (x86)Microchipxc8v1.12inxc8.exe" -oPIC_1824E.cof -mPIC_1824E.map --summary=default,-psect,-class,+mem,-hex --output=default,-inhx032 main.p1 --chip=16F1824 "-IC:Program Files (x86)Microchipxc8v1.12include" "-IC:Program Files (x86)HI-TECH SoftwarePICCstd9.60include" -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,-stackcall,-config,+clib,+plib --opt=default,+asm,-debug,-speed,+space,9 --warn=0 -N255 -D__DEBUG=1 --debugger=pickit3 -Bsmall --double=32 --float=32 --addrqual=ignore -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Microchip MPLAB XC8 C Compiler V1.12
Copyright (C) 2012 Microchip Technology Inc.
License type: Node Configuration
Warning [1273] ; . Omniscient Code Generation not available in Free mode
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "FCMEN_OFF"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "IESO_ON"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "CLKOUTEN_OFF"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "BOREN_OFF"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "CPD_OFF"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "CP_OFF"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "MCLRE_ON"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "PWRTE_OFF"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "WDTE_OFF"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 339. undefined symbol "FOSC_INTOSC"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 343. undefined symbol "LVP_OFF"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 343. undefined symbol "BORV_LO"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 343. undefined symbol "STVREN_ON"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 343. undefined symbol "PLLEN_ON"
Error [800] C:UsersguoliangAppDataLocalTempss2k.; 343. undefined symbol "WRT_OFF"
(908) exit status = 1
********** Build failed! **********
一周热门 更多>