Anthony_
Junior Member level 2
- Joined
- Jul 29, 2013
- Messages
- 23
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Location
- Zulia-Venezuela
- Activity points
- 175
hi all! i've been struggling to make a ds1307 work with a 16f877a, i interfaced then very well, i set the ds1307 to output a square wave from SQW pin, but it doenst work with its crystal (i connected a 32khz crystal in ds1307's pins X1 and X2), afterwards i started playing with it and connected the ds1307's X1 pin (i left the X2 floating) with the 16f877a's OSC2/CLKOUT pin and the RTC started working perfectly giving the 1 HZ Square wave tru SQW pin output, the pic 16f877a is also working with a 32 khz crystal ( LP mode). so the RTC works perfectly with the pic's oscillator not its
with all this i assume both ics are interfaced correctly and the DS1307 is configured properly for my purpose of producing a 1HZ wave, the Vcc is 5V and Vbat is 3V, the pull up resistors of SCL and SDA lines are 4,7K each (i tried with 10k but same result), so what could it be? Ds1307's oscillator damaged?
here the sch.
with all this i assume both ics are interfaced correctly and the DS1307 is configured properly for my purpose of producing a 1HZ wave, the Vcc is 5V and Vbat is 3V, the pull up resistors of SCL and SDA lines are 4,7K each (i tried with 10k but same result), so what could it be? Ds1307's oscillator damaged?
here the sch.