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

Problems with DS1307
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
Ttelmah
Guest







PostPosted: Tue Feb 24, 2009 11:59 am     Reply with quote

You never actually answered the question from PCM, early on, as to whether you have pull up resistors on both I2C lines.

Best Wishes
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Feb 24, 2009 12:25 pm     Reply with quote

Do you have pull-up resistors or do you have series resistors ?

This is a series resistor. Don't do this:
Code:

PIC pin ------/\/\/\/-------- DS1307 pin


This is a pull-up resistor. You need 2 resistors. One on SCL and one
on SDA. Use a value from 2.2K to 4.7K:
Code:

    +5v ---/\/\/\/---
                    |
                    |
PIC pin ------------o---------- DS1307 pin
simons



Joined: 15 Jan 2009
Posts: 18

View user's profile Send private message

PostPosted: Tue Feb 24, 2009 12:29 pm     Reply with quote

yes 4K7 pullups on both lines...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Feb 24, 2009 12:42 pm     Reply with quote

If possible, post a schematic and a photo of the board which shows the
connections.
simons



Joined: 15 Jan 2009
Posts: 18

View user's profile Send private message

PostPosted: Tue Feb 24, 2009 12:45 pm     Reply with quote

I'm using a test board which I bought some years ago.. i think i might don't have the schematic...
I'll try another method.. I'll build a brand new board without all the test equipment...

stay tuned.. this might work..
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