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 support@ccsinfo.com

Connecting i2C lines on dspic33

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



Joined: 25 Aug 2013
Posts: 12

View user's profile Send private message

Connecting i2C lines on dspic33
PostPosted: Tue Jul 08, 2014 1:40 pm     Reply with quote

Hi.
Am confused regarding the i2c connection.
We are building demo board and as far as i know i2c should be connected to sda i scl line but there are some schematics examples where he uses INT.
Is this possible or am missing something ?
newCCSUser



Joined: 25 Aug 2013
Posts: 12

View user's profile Send private message

PostPosted: Wed Jul 09, 2014 1:06 am     Reply with quote

forget it, i will connect it by the book.
Thank you anyway.
Ttelmah



Joined: 11 Mar 2010
Posts: 19359

View user's profile Send private message

PostPosted: Wed Jul 09, 2014 8:22 am     Reply with quote

There are two ways of handling I2C.

'Soft' I2C (master only) can use any pins. 'Hardware' I2C. The chip hardware sends and receives the bytes for you.
For the 'hardware' I2C, you have to use the hardware pins. The software implementation can use any pins you want.
The hardware implementation, is faster, and can be sending/receiving, while the chip is doing other things.
bkamen



Joined: 07 Jan 2004
Posts: 1611
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Jul 11, 2014 10:50 am     Reply with quote

If you see pins on an I2C chip like INT or IRQ, that's because the chip can generate flags (like MCHP's GPIO extenders that can create an interrupt-on-change).

So these can optionally be hooked to a pin on a PIC or other MCU that can generate interrupts.

Good examples are INT_RB or INT0/INT1/etc....

but yes, SDA and SCL are the 2 major pins of importance.

Cheers,

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
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