Page 1 of 1

I2C does not build on PIC32

Posted: Wed Apr 04, 2012 2:31 pm
by resodad
Lubin,
Please look into this. I believe it is a bug.
There are two other related posts from 2010:
http://www.kerhuel.eu/forum/viewtopic.php?f=1&t=318
and
http://www.kerhuel.eu/forum/viewtopic.php?f=8&t=267
Thanks
John
desktopFig.jpg

Re: I2C does not build on PIC32

Posted: Wed Apr 25, 2012 1:37 pm
by resodad
Hi Lubin,
Can you please tell me if this bug is a priority for you?
If it is not, I will work on the I2C code in C.
Thanks, John

Re: I2C does not build on PIC32

Posted: Fri Apr 27, 2012 1:31 am
by LubinKerhuel
Hello John,

As you probably noticed, I am pretty busy theses time.
It's would be difficult for me spend much time on this question.

However, if the problem is just one bit MI2C1IF whose name changed, I might solve it pretty easily.
Do you think the problem is limited to this ?

Lubin

Re: I2C does not build on PIC32

Posted: Fri Apr 27, 2012 2:58 pm
by resodad
Hi Lubin,
My C expert, Konstantin, says:
"Probably not, although it most likely will not be too much work to fix.
In the I2CCON register in particular, going from the dsPIC family of microcontrollers to the PIC32, the I2CCON register gets renamed I2CxCON where x is the I2C module number. Also within the I2CCON register itself the I2CEN and I2CSIDL bits get renamed ON and SIDL in the PIC32 hardware."
John