??? 06/10/09 15:03 Read: times |
#165989 - I am sure it is something simple. Responding to: ???'s previous message |
You should not have two duff crystals. Double-check your circuit.
If you can write to one register and read it back later then you are communicating OK so your chip is probably fine. Page 9 of the data sheet shows the circuit. It could not be more simple. I would try without any capacitors. Then with capacitors. And as I suggested earlier you can always drive pin X1 from your 8051 anyway just to see if the seconds register updates. You can always just use the regular 8051 Timer as a software clock. You can implement the day, month year etc in software. If you run it in CTC mode, it will keep time as well as your watch crystal. Both methods fail when you remove the power. David. |