i want write a program to first read adc and then read i2c data and reapet this but the pin of adc and i2c is same how should i create circuit and write program for this purpos?
Hi,
I2C pins are RC4 and RC5, while ADC pins are RC0, RC1, RC2, RC3, RC4 and RC5. So, since you are using I2C, you need RC4 and RC5 for I2C, then use either RC0, RC1, RC2 or RC3 for ADC, what's the problem?
Hi,
In that case, you have to use software I2C. In the compiler that I use, mikroBASIC, there are in-built library functions for using Software I2C modules.