Hi Jellis,
Try this line in place of the Cntrl you are now using:
Code:
cntrl CON %00000101 ' sets the SQW/OUT to 1Hz pulse, logic level low
I used a 4.7K pullup on the SQW/INTB pin then into a 1K resistor to the base
of a PNP transistor. Then I used the transistor to drive an LED.
Your current control register setting of %00011001 should cause the 1337 to
output the 32Khz pulse.
I would suggest you focus first on just getting the clock to work then add the
SQW output then the alarm1 features.
Unfortunately I don't have the circuit board with me that I had mine working
on.
Also I have a jumper on my clock board that I put through the uC so when I first powerup my clock it looks to see if the jumper is on (low) and if it is, then I go to the SetTimeand Date routine. If its high it skips over the routine.
Did you look at the wiring I mentioned previously? Do you have 4.7K pullups on the SCL and SDA lines?
BobK
Bookmarks