CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

New I2C Functions

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
SeeCwriter



Joined: 18 Nov 2013
Posts: 160

View user's profile Send private message

New I2C Functions
PostPosted: Fri May 10, 2019 8:33 am     Reply with quote

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: 19496

View user's profile Send private message

PostPosted: Fri May 10, 2019 9:31 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Fri May 10, 2019 9:35 am     Reply with quote

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: 19496

View user's profile Send private message

PostPosted: Fri May 10, 2019 12:26 pm     Reply with quote

No, the PIC24 'I2C' peripheral does still support the older functions
it is only this new one that doesn't have this reverse compatibility...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group