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

pic16f877a + ds1307 dont work

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








pic16f877a + ds1307 dont work
PostPosted: Sat May 03, 2008 8:07 pm     Reply with quote

I am working with a pic 16f877a and a ds1307 with a library that you post in this web, my simulation in Proteus is working perfect, but in the protoboard, i have a trouble, doesn't work, could you help me ?

I think that i have the correct crystal, a battery of 3.5 volts in pin 3, pullups resistor of 2K and ...the best try that i make, the time run 20 real seconds were equivalent in the circuit to 8 seconds.

Thats my trouble i shut down and turn on again and it runs 1 second in near to 40 seconds.

i check and check again, like 40000 times and i don t see any mistake, and in this forum in found that the crystal could be the trouble, it says 32.768.
crystal_lattice



Joined: 13 Jun 2006
Posts: 164

View user's profile Send private message

slow seconds
PostPosted: Sun May 04, 2008 12:59 am     Reply with quote

Your crystal load capacitance could be too big, this will cause it to run slow or not at all, they should be around 7pf if i'm not mistaken.
elizabeth ann



Joined: 16 Feb 2008
Posts: 33

View user's profile Send private message

PostPosted: Sun May 04, 2008 1:21 am     Reply with quote

in our project we used a TCXO from Maxim which is the DS32kHz. perhaps you are only using an ordinary crystal oscillator which may not be stable at all times. the DS32kHz is temperature-compensated so that the output frequency is very much stable.

try it. Wink good luck!
jotasmall



Joined: 03 May 2008
Posts: 1

View user's profile Send private message

PostPosted: Sun May 11, 2008 4:14 pm     Reply with quote

thanks for your help, but i am really surprise, i put a capacitor of 0.1u between vcc and pin2 with the negative side in vcc and it works, but yet doesn´t run in real time.

i suscribe to this forum, because i was reading and i found very useful information...
_________________
my mind is broken!!
crystal_lattice



Joined: 13 Jun 2006
Posts: 164

View user's profile Send private message

PostPosted: Mon May 12, 2008 3:14 am     Reply with quote

what do you mean by
Quote:
but i am really surprise, i put a capacitor of 0.1u between vcc and pin2 with the negative side in vcc and it works, but yet doesn´t run in real time.
cluelesskiller
Guest







PostPosted: Mon May 12, 2008 5:55 am     Reply with quote

Have you read the datasheet for the DS1307, or are you just randomly connecting it from bits and pieces of information you've read on the internet?
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