DS1307 SQWO wrong frequency

OP #6519542
Rate this post
useful
not useful
Hello together,

I've designed a PCB which I am currently testing. I soldered on a DS1307 
RTC which I desoldered from an old project. It is driven by a 2 mm x 1.2 
mm 32,768 kHz Crystal (6pF). Communication over I2C works flawless, 
however when it comes to using the squarewave output, things get worse.
I don't know why, but the frequency of the SQW pin not even close to the 
desired 1 Hz. Also when I supply the PCB with 5V from the Debugger (by 
bypassing the VREG) and unplug it and plug it in again the time is lost. 
By powering of the VREG, the time is kept.
Did someone face a similar issue?

Squarewave output and Schematic attached.

Best
schellek
Attached files:
Guest #6521098
Rate this post
useful
not useful
you could try to measure the xtal frequency with a x100 or x10 probe on 
Pin X2 (not on X1, this is the input of the internal inverter; and a x1 
probe has a too low impedance).

Then you could maybe post your initialisation code to check that you 
didn't set any unsupported bits in the config register.

Kristian S. wrote:
> Also when I supply the PCB with 5V from the Debugger (by
> bypassing the VREG) and unplug it and plug it in again the time is lost.
> By powering of the VREG, the time is kept.
need more information on that problem, maybe post the whole schematic 
and the pcb?

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now