i need help trying to fix a problem i have with a little project i got on the side, i'm new to programming in C but i'm learning quick, i have some exp with pascal but thats about it.
i had it working fine but after i left it powered overnight and i woke to see the time and date displayed as:
45/25/-1
45:85:85
i have no idea why its done this but as far as i can see it should be working. it also displays this on the terminal if i plug it to the serial port on my pc.
any help would be awesome
cheers _________________ <~Simbo~>
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
Posted: Sun Mar 02, 2008 1:43 pm
The DS1307 regs 0..7 appear to be corrupted. This can happen if the DS1307 is run without a backup battery and power fails. The other source is that a valid series of I2C writes sent the values you see into the DS1307 regs. The other possibility is that every thing inside the DS1307 is just fine but the I2C read routine is getting messed up and gives you false values.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum