View previous topic :: View next topic |
Author |
Message |
Guest
|
pic16f877a + ds1307 dont work |
Posted: Sat May 03, 2008 8:07 pm |
|
|
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
|
slow seconds |
Posted: Sun May 04, 2008 12:59 am |
|
|
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
|
|
Posted: Sun May 04, 2008 1:21 am |
|
|
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. good luck! |
|
|
jotasmall
Joined: 03 May 2008 Posts: 1
|
|
Posted: Sun May 11, 2008 4:14 pm |
|
|
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
|
|
Posted: Mon May 12, 2008 3:14 am |
|
|
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
|
|
Posted: Mon May 12, 2008 5:55 am |
|
|
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? |
|
|
|