Upload a picture of how you were touching the crystal on the cap or across the leads?
I am touching the metal cap on top not the leads... and touching always doesnt make it run (Abt 80% of the time when I touch it runs) and that too not always at the correct speed..
I have successfully used a pc board layout that did not include the recommended ground plane, but a solderless breadboard introduces a lot of extraneous capacitance which may be your problem.
I too am guessing this to be the reason... any way to correct this??
Ok, that is a bit strange.
Use a perf board to build your circuit on or a PCB kit?
My guess is that crystal capacitance does not match the DS1307 requirements.
What is the Cl of the crystal? Verify that this matches the DS1307 requirements.
Does the ESR specification of the crystal match the drive capabilities
of the DS1307? Both of these specifications are important for stable operation.
For low frequency crystals I use a guard ring around the crystal. These
devices are high-impedance and are susceptible to noise.
Pictures of my layouts are at Loading...
My guess is that crystal capacitance does not match the DS1307 requirements.
What is the Cl of the crystal? Verify that this matches the DS1307 requirements.
Does the ESR specification of the crystal match the drive capabilities
of the DS1307? Both of these specifications are important for stable operation.
How do I find this? because I I got the crystals from a local shop and no way to know the values... I still am thinking its the capacitance problem of the crystals..
By the way what is CI and ESR?
Use a perf board to build your circuit on or a PCB kit?
I tried building on General purpose line PCB board earlier but it didnt work same problem... but I will give it a try once more...
Cant use/order pref board its too expensive for the stuff I am building considering the shipping charges...
Cl is load capacitance. For the DS1307 the required load capacitance is 12.5pF.
This capacitance is internal to the DS1307.
ESR is Effective Series Resistance. For the DS1307 the maximum ESR is 45KOhms.
These values effect startup and stability of the clock. You need the datasheet
for the crystal to get these numbers. If your layout is correct (see the MAXIM
datasheet) the best thing to do is to order a couple of crystals from Mouser
or Digikey.
Just post here or on bars forum asking for good shops (online or local) in India. Lots of friends in India visit this forum and should be able to point you to places for parts.
Will keep u guys posted... Because this is 1 problem I cant get a fix on... Never had I had this kind of a problem... I have finished the entire project just need to get this part running...
So I will update if I get it working
Once again Thank you all for your help..
Will surely do.. I gotta figure this one out anyway.. its an important component of my project.. This forum has helped me so many ways. I will post the answer once I get it figured out
You have the primary Engineering requirement: persistence.
Yippee! got it working... I bought a new crystal from another local shop, its working nicely... Tried around 12 crystals for the entire project though and the 12th one worked I think the stuff I bought from the earlier shop was from a bad stock or something ... Phew! What a relief...
Thanx again for everyone's support...
Glad you finally got it working. Maybe you can start a list of good shops and bad shops and share with local electronics fans I don't have any shops near me except the RadioShack. I go there for replacement soldering iron tips. Man, they got me hooked when I bought their cheap iron. The tip is too fragile. Maybe not thick enough tin/chromium + too much power.