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

DS1307 problem

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



Joined: 15 Oct 2007
Posts: 3

View user's profile Send private message

DS1307 problem
PostPosted: Tue Feb 23, 2010 9:17 am     Reply with quote

I designed a PCB with PIC18F2520 and DS1307 communicating through I2C.
I have some problem with that communication. The pull up resistors are installed for each I2C line.

The distance of the pull up resistors is how considerable from the master or from slave?

Thanx in advance :)
Ttelmah
Guest







PostPosted: Tue Feb 23, 2010 9:36 am     Reply with quote

What matters is the bus capacitance, and the frequency you are running it.
What value have you used for the resistors?. How long is the bus?. What gap have you used the adjacent tracks (power plane?)?. What frequency are you running the bus?.

Best Wishes
kukac24



Joined: 15 Oct 2007
Posts: 3

View user's profile Send private message

PostPosted: Sun Feb 28, 2010 2:45 am     Reply with quote

I tried the pull ups with 4k7 and 10k. The freq. was tried with FAST and SLOW as well.
The result is the same, when I send the time to LCD, there is only 45:85:85.
The quartz is 32kHz, without battery
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Feb 28, 2010 3:04 am     Reply with quote

See these threads on the "45:85:85" problem with the DS1307:
http://www.ccsinfo.com/forum/viewtopic.php?t=19926
http://www.ccsinfo.com/forum/viewtopic.php?p=29784
http://www.ccsinfo.com/forum/viewtopic.php?p=94498
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