PIC16F1824有什么C编译器能用?

2020-02-06 09:56发布

本帖最后由 1125526801 于 2013-6-15 09:24 编辑

PIC16F1824有什么C编译器能用?之前学习板上的单片机不一样是18F4520,用的MCC18。PIC16F1824是用PICC吗?



360截图20130615092316974.jpg (177.04 KB, 下载次数: 0) 下载附件 2013-6-15 09:23 上传

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
64条回答
1125526801
2020-02-08 21:27
xiongh 发表于 2013-6-15 10:18
MPLAB X  + PICC  挺好用。
#include "pic.h"
#include

#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! **********

一周热门 更多>