DS1307 project problem
Posted: Sun Mar 20, 2011 2:21 pm
Hi all,
I have a problem with my DS1307 chip.
I use this example file (init_time_v3.fcf) to study the I2C protocol.
My problem is as follow:
First thing that I have done was remove the backup battery and disconnect the chip from the 5V supply. Then replaced the chip and connect it to +5V and reinserted the backup battery. I loaded the flowcode into my PIC16F877A and pressed button A0. the time is set correctly and the clock is running.
PERFECT.
When I want to change the time from 07:30:00 to lets say 11:25:00 the DS1307 is going crazy. When I upload the code into my chip all kinds of different time value are showing up (01:01:01 and then 32:06:48 and then 00:00:85 ect.) Only when I keep pressing A0 the time is wright and the clock is running properly. Why is the chip doing this.
can some one please explain whats happening.
I will attach the example file that I have got from the forum.
Hope you can help me out.
Regards Jordy
I have a problem with my DS1307 chip.
I use this example file (init_time_v3.fcf) to study the I2C protocol.
My problem is as follow:
First thing that I have done was remove the backup battery and disconnect the chip from the 5V supply. Then replaced the chip and connect it to +5V and reinserted the backup battery. I loaded the flowcode into my PIC16F877A and pressed button A0. the time is set correctly and the clock is running.
PERFECT.
When I want to change the time from 07:30:00 to lets say 11:25:00 the DS1307 is going crazy. When I upload the code into my chip all kinds of different time value are showing up (01:01:01 and then 32:06:48 and then 00:00:85 ect.) Only when I keep pressing A0 the time is wright and the clock is running properly. Why is the chip doing this.
can some one please explain whats happening.
I will attach the example file that I have got from the forum.
Hope you can help me out.
Regards Jordy