memory地址0x150 to 0x15a already contains a value,
选项Project >> Settings >> Linker将start address改为1x15b
int iCentriodPos;
struct I2C_Regs
{ WORD wRawCount;
WORD wBaseLine;
WORD wDiff;
char cStr[5];
} MyI2C_Regs;
void main(void)
{
M8C_EnableGInt;
EzI2Cs_1_SetRamBuffer(sizeof(MyI2C_Regs),6,(BYTE*)&MyI2C_Regs);
EzI2Cs_1_Start();
EzI2Cs_1_SetAddr(0x10);
}
|