I2C Error

Support-Forum für Deutschsprachige, die in ihrer Muttersprache schreiben möchten.

Moderator: Benj

Post Reply
HjH
Posts: 108
Joined: Sat Jul 03, 2010 4:38 pm
Been thanked: 2 times

I2C Error

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: I2C Error

Post 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.
Attachments
ExtEEPROM.fcf_pic16
(13.61 KiB) Downloaded 389 times

HjH
Posts: 108
Joined: Sat Jul 03, 2010 4:38 pm
Been thanked: 2 times

Re: I2C Error

Post by HjH »

Danke für die Hilfe

Post Reply