PIC24FJ256GA702 I2C channel not working query

Moderator: Benj

Post Reply
pmck
Posts: 7
Joined: Wed Aug 07, 2019 1:33 pm
Contact:

PIC24FJ256GA702 I2C channel not working query

Post 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

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: PIC24FJ256GA702 I2C channel not working query

Post 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.

Post Reply