我写了一段I2C的程序,如下(其中的一部分): FSR = &TRISC; #asm bsf _INDF,SDA goto $+1 goto $+1 goto $+1 goto $+1 btfss _PORT_I2C,SDA goto $+1
bsf _INDF,SCL goto $+1 goto $+1 goto $+1 goto $+1 btfss _PORT_I2C,SCL goto $+1 bcf _INDF,SDA goto $+1 goto $+1 goto $+1 goto $+1
bcf _INDF,SCL goto $+1 goto $+1 goto $+1 goto $+1 #endasm 但是编译提示 “ Error[000] E:MCUedit-GPICDY05AHL6024.C 75 : undefined symbol _INDF Error[000] E:MCUedit-GPICDY05AHL6024.C 80 : undefined symbol _PORT_I2C “
希望那个大虾可以指点一下,谢谢 |