View previous topic :: View next topic |
Author |
Message |
SeeCwriter
Joined: 18 Nov 2013 Posts: 160
|
New I2C Functions |
Posted: Fri May 10, 2019 8:33 am |
|
|
I was reading the CCS News about the new I2C functions added to the compiler and was curious about the statement "these functions were added...to support some new devices...not compatible with the legacy i2c_start, i2c_write, i2c_read, and i2c_stop functions." What devices don't support the legacy functions? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19504
|
|
Posted: Fri May 10, 2019 9:31 am |
|
|
This was covered in a couple of threads here a few weeks ago.
<http://www.ccsinfo.com/forum/viewtopic.php?t=57751>
and
<http://www.ccsinfo.com/forum/viewtopic.php?t=56997>
The chips concerned don't have the MSSP peripheral. Instead they
have a separate I2C peripheral which is designed to do a complete
I2C transfer of multiple bytes as one transaction. |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Fri May 10, 2019 9:35 am |
|
|
Hmm, I am using the PIC24FJ128GA308 as masters, which also has a separate I2C peripheral instead of MSSP. I am still using the old functions.
However, I didn't specify FORCE_HW. I'm assuming that they are still using the hardware though, since I selected I2C1 in the options... |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19504
|
|
Posted: Fri May 10, 2019 12:26 pm |
|
|
No, the PIC24 'I2C' peripheral does still support the older functions
it is only this new one that doesn't have this reverse compatibility... |
|
|
|