pic单片机入门 同样的程序 mplab 为什么我的编译不了
使用idev8.10,程序是#include<pic.h>__CONFIG(0x3B31);voidmain(){TRISD=0xfe;//11111110PORTD=0...
使用ide v8.10,程序是
#include<pic.h>
__CONFIG(0x3B31);
void main()
{
TRISD=0xfe;//11111110
PORTD=0x01;//00000001
while(1);
}
安装的picc8.05 破解了,编译后
Executing: "c:\program files\HT-PIC\BIN\PICC.EXE" -C -E"13.cce" "13.c" -O"13.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F73
Warning[000] D:\my design\pic file\13.c 12 : Missing newline
Error[000] D:\my design\pic file\13.c 9 : undefined identifier: TRISD2
Error[000] D:\my design\pic file\13.c 10 : undefined identifier: RD2
Warning[000] D:\my design\pic file\13.c 11 : line does not have a newline on the end
Halting build on first failure as requested.
BUILD FAILED: Mon Mar 14 12:24:56 2011
,为什么会这样?是不是c编译器不行? 展开
#include<pic.h>
__CONFIG(0x3B31);
void main()
{
TRISD=0xfe;//11111110
PORTD=0x01;//00000001
while(1);
}
安装的picc8.05 破解了,编译后
Executing: "c:\program files\HT-PIC\BIN\PICC.EXE" -C -E"13.cce" "13.c" -O"13.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F73
Warning[000] D:\my design\pic file\13.c 12 : Missing newline
Error[000] D:\my design\pic file\13.c 9 : undefined identifier: TRISD2
Error[000] D:\my design\pic file\13.c 10 : undefined identifier: RD2
Warning[000] D:\my design\pic file\13.c 11 : line does not have a newline on the end
Halting build on first failure as requested.
BUILD FAILED: Mon Mar 14 12:24:56 2011
,为什么会这样?是不是c编译器不行? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询