Page 1 of 1

PIC24FJ256GA702 I2C channel not working query

Posted: Mon Jul 13, 2020 3:29 am
by pmck
Hello

Another problem with this chip is selecting I2C, channel 2 results in a compile fail. I have been using EEPROM, MAX44009 sensor and BMP280 OK on channel 1 (or software) BUT when I went to channel 2 it doesn't compile & gives errors 'I2CCON' (undeclared first use in this function) etc

Can you assist please?

To look at this, select the chip then add an I2C component and try to compile to hex. Don't forget to include the workaround for the ANSELA/B problem
#define ANSELA ANSA
#define ANSELB ANSB

regards

Paul

Re: PIC24FJ256GA702 I2C channel not working query

Posted: Wed Jul 15, 2020 9:40 am
by Benj
Hi Paul,

Thanks for letting us know. I've pushed a fix to the update system now which should solve the I2C CH2 problem and should also remove the need for you to add those defines to your projects.