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

i2c pullup resistors

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







i2c pullup resistors
PostPosted: Tue May 17, 2005 6:23 am     Reply with quote

i'm running at 33000 bps on the i2c bus; one pic acts as the master; another PIC as a slave; no other devices on the bus.

The slave's i2c code is isr driven, while the master's i2c code directly uses the MSSP libraries provided by CCS.

Once in a rare occasion, i don't get an ACK back from the slave following a master write of the slave address.

I suspect that my SDA and SCL edges are uneven in my circuit. Is it okay to lower the SDA pullup resistor value so that it swings to its logic level slightly ahead of SCL? I currently have 4.7K on both.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Tue May 17, 2005 8:23 am     Reply with quote

Your parts won't be damaged if the pull-ups are lowered. I've had them as low as 1K before. Try experimenting with different values. If you're having problems with the integrity of your signals you might want to try a bus conditioner like the LTC1694-1 made by Linear Technology.

Ronald
valemike
Guest







PostPosted: Tue May 17, 2005 8:37 am     Reply with quote

Thanks Ronald. Since you responded to this post, I see now that it can be a problem.

Thanks,
Mike
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