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
I2C Error
Moderator: Benj
- 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
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.
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel