请教大家,我用HI-TEH9.80开发12F508,出现一个问题,软件无法编译OSCCAL,但是头文件已经定义了OSCCAL
#include<pic.h>
//#include<htc.h>
//#include<piclite.h>
#include<pic12f508.h>
其中pic12f508.h里定义了
// Register: OSCCAL
volatile unsigned char OSCCAL @ 0x005;
// bit and bitfield definitions
volatile bit CAL0 @ ((unsigned)&OSCCAL*8)+1;
volatile bit CAL1 @ ((unsigned)&OSCCAL*8)+2;
volatile bit CAL2 @ ((unsigned)&OSCCAL*8)+3;
volatile bit CAL3 @ ((unsigned)&OSCCAL*8)+4;
volatile bit CAL4 @ ((unsigned)&OSCCAL*8)+5;
volatile bit CAL5 @ ((unsigned)&OSCCAL*8)+6;
volatile bit CAL6 @ ((unsigned)&OSCCAL*8)+7;
为什么编译时候说未定义OSCCAL
Error [800] F:\4TX\111.c; 31. undefined symbol "OSCCAL"
//Warning [1352] F:\4TX\111.c; 30. truncation of operand value (0x1ff) to 8 bits
|