PIC24FJ256GA702 I2C channel not working query
Posted: Mon Jul 13, 2020 3:29 am
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
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