#include <pic.h>
main()
{
TRISD=0X00; /*TRISD寄存器被赋值,PORTD 每一位都为输出*/
while(1) /*循环执行点亮发光二极管的语句*/
{
PORTD=0XF0; /*向PORTD 送数据,点亮LED(由实验模板*/
/*的设计决定相应位置低时LED 点亮)。*/
}
}
这是程序
Build E:\EEEEE\EEEEE for device 16F877A
Using driver C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe
Make: The target "E:\EEEEE\EEEEE.p1" is out of date.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe" --pass1 E:\EEEEE\EEEEE.c -q --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [228] E:\EEEEE\EEEEE.c; 5.11 illegal character (0xA3)
Warning [228] E:\EEEEE\EEEEE.c; 5.12 illegal character (0xBB)
Error [312] E:\EEEEE\EEEEE.c; 6.1 ";" expected
Warning [228] E:\EEEEE\EEEEE.c; 8.11 illegal character (0xA3)
Warning [228] E:\EEEEE\EEEEE.c; 8.12 illegal character (0xBB)
Error [285] E:\EEEEE\EEEEE.c; 11.1 no identifier in declaration
Warning [374] E:\EEEEE\EEEEE.c; 11.1 missing basic type; int assumed
Error [314] E:\EEEEE\EEEEE.c; 11.1 ";" expected
这是错误代码 好像MPLAB软件中没有PIC.H这个文件 |