Page 1 of 1

I2C Error

Posted: Tue Sep 06, 2011 12:59 am
by HjH
Hallo

ich will mit einem 24F16KA102 eine I2C EEPROM beschreiben. Leider bekomme ich beim kompilieren folgende Fehlermeldungen.

ExtEEPROM.c: In function 'FCD_I2C_Master0_MI2C_Init':
ExtEEPROM.c:676: error: 'I2CCONbits' undeclared (first use in this function)
ExtEEPROM.c:676: error: (Each undeclared identifier is reported only once
ExtEEPROM.c:676: error: for each function it appears in.)
ExtEEPROM.c:686: error: 'I2CBRG' undeclared (first use in this function)
ExtEEPROM.c: In function 'FCD_I2C_Master0_MI2C_Start':
ExtEEPROM.c:772: error: 'I2CCONbits' undeclared (first use in this function)
ExtEEPROM.c: In function 'FCD_I2C_Master0_MI2C_Restart':
ExtEEPROM.c:810: error: 'I2CCONbits' undeclared (first use in this function)
ExtEEPROM.c: In function 'FCD_I2C_Master0_MI2C_Stop':
ExtEEPROM.c:854: error: 'I2CCONbits' undeclared (first use in this function)
ExtEEPROM.c: In function 'FCD_I2C_Master0_MI2C_Transmit_Byte':
ExtEEPROM.c:899: error: 'I2CTRN' undeclared (first use in this function)
ExtEEPROM.c:900: error: 'I2CSTATbits' undeclared (first use in this function)
ExtEEPROM.c: In function 'FCD_I2C_Master0_MI2C_Receive_Byte':
ExtEEPROM.c:973: error: 'I2CCONbits' undeclared (first use in this function)
ExtEEPROM.c:980: error: 'I2CRCV' undeclared (first use in this function)

was mache ich falsch.

mit freundlichen Grüßen
HjH
ExtEEPROM.msg.zip
(11.48 KiB) Downloaded 383 times

Re: I2C Error

Posted: Tue Sep 06, 2011 10:09 am
by Benj
Hallo HJH,

Es scheint, dass Microchip hat beschlossen, alle I2C Register auf diese Familie von Geräten umzubenennen. Ich habe Ihre zusätzlichen Code-Fenster geändert werden, um damit das Programm korrekt kompiliert.


Hello HJH,

It seems that Microchip has decided to rename all the I2C registers on this family of devices. I have modified your supplementary code window to allow the program to compile correctly.

Re: I2C Error

Posted: Tue Sep 06, 2011 5:08 pm
by HjH
Danke für die Hilfe