I am trying to add a time clock to my board. I have a DS1307 time chip connected to it. To start debug, I want the 4KHz output to pulse. Well.... It is not happening. I am stumped. With my scope I can see the Mega64 is loading the DS1307 RTC chip. I can see the clock line is active high, clocking away on bootup and the SDA line is loading the same data. I have 2K pull-ups on the SCL and SDA pins. I also have a pull-up on pin 7 (the Fout pin of the DS1307). I can see the CLK and SDA pins loading the chip, but no output. I am using Codevision and I had the wizard produce the code to generate the output pin to toggle at 4KHz. Power and ground are on the chip, decopuled with a .1uF.
Something I noticed was that when I scope the crystal on pins 1&2 of the DS1307, I do not see a sine wave. Hmm... I see it on the Mega 64 crystal, but not on the crystal of the RTC chip. I buzzed out the foil tracks and both pins are connected. I even tried 4 different 32.768KHz crystals! Same results. I verified 5V on the chip and the SDA, SCL lines are pulsing from the Mega64.
Anyone with experience on this chip? I am beginning to think it is a software issue with Codevision, but not so sure. At this point, not sure where to point fingers. I just changed chips, same result. This may be difficult debug via this forum, but I'll keep trying new things.