英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流
标题:
candemo
[打印本页]
作者:
winnie
时间:
2009-3-20 17:23
标题:
candemo
使用高奇icd2和高奇的demo试验板,在试验板上装了can通讯ic,并在高奇的网站上下载了高奇针对demo板的can总线演示程序。由于本人c语言不是很懂,在mplab 7.0下挂接了picc 8.05。但是调试老通不过,只有一条错误,如下:Error[000] D:\Program Files\picc805\include\pic168xa.h 16 : ; expected
双击错误指向picc里的关于16f87x头文件里的PCL定义,如下:
static volatile unsigned char INDF @ 0x00;
static volatile unsigned char TMR0 @ 0x01
—〉 static volatile unsigned char PCL @ 0x02;
static volatile unsigned char STATUS @ 0x03;
static unsigned char FSR @ 0x04;
static volatile unsigned char PORTA @ 0x05;
static volatile unsigned char PORTB @ 0x06;
static volatile unsigned char PORTC @ 0x07;
#ifdef __PINS_40
static volatile unsigned char PORTD @ 0x08;
搞不明白是什么错误。test1.c candemo.h candemo.c 三个文件已经检查了n遍,找不到原因
作者:
winnie
时间:
2009-3-20 17:23
static volatile unsigned char TMR0 @ 0x01分号漏掉了?
欢迎光临 英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 (http://enroobbs.com/)
Powered by Discuz! X3.2