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

PIC i2c comm when pics are different speeds

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







PIC i2c comm when pics are different speeds
PostPosted: Sat Mar 14, 2009 11:51 pm     Reply with quote

I was wondering if it is possible to allow two PICS to communicate over i2c if the clock frequencies they are using are different?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Mar 15, 2009 12:33 am     Reply with quote

Yes, but preferably make the slave have the faster clock.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Thu Mar 19, 2009 1:39 pm     Reply with quote

It doesn't matter what clock speed either of the PICs are running at as long as the Master gives the Slave the time it needs to process the different commands that is sent to it. The Master could be running at 20MHZ and the Slave could be running at 4MHZ. The Master would simply need to have delays inserted into it's code because it takes the Slave a certain amount of time to receive a command and then process it to be ready to either receive the next command or have data ready for the Master to read.

Ronald
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