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

I2C with 3 PICs
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 13, 2006 8:45 pm     Reply with quote

Quote:
I already used 1k pullup already. Is it too low ?

Yes it is. Look at this appnote from Maxim which compares the SMbus
to the i2c bus.
http://www.maxim-ic.com/appnotes.cfm/appnote_number/476

About 2/3 of the way down the page, there is a table showing the
limits on the pull-up resistors. Note that for a 5 volt bus, the lowest
value is 1.6K. I suggest that you change the pull-ups to 2.2K ohms.
Tres
Guest







PostPosted: Mon Nov 13, 2006 9:38 pm     Reply with quote

Changed to 2.4k. Still have not fix the problem.
Thanks for suggestions.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Nov 14, 2006 1:59 pm     Reply with quote

Take a look at the EX_SLAVE.C program. Use that for your slave routine. Note that you can only read one byte at a time with the way that it is written. You will need to modify your master code to write the address and then read the data.
Guest








Tres
PostPosted: Tue Nov 14, 2006 7:59 pm     Reply with quote

That's Exactly where my code came from
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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