我的芯片是LJ12
用SPI时遇到这个问题:
仿真时Data里看到
_SPDR
Byte undefined unsigned char
Bits <1> struct
R0_T0 undefined unsigned char[0:1]
......
R7_T7 undefined unsigned char[7:1]
执行
uchar i;
i = SPDR;
时出错
Error: At location 0012 - Error: Attempt to use invalid or uninitialized memory STEPPED
头文件里已经定义过SPDR,实在看不出是什么问题,请各位帮忙看看,谢谢了!!
|