Posted: Sat Apr 15, 2006 12:18 am Post subject: AVR's RTC versus DS1307 (or equivalent)
I'm uisng an M128 in a new design (to be replaced with an M2560 as soon as Bascom supports it!).
I'm using a DS1307 RTC and I'm wondering. I'm using the 32.768 Khz output of the '1307 to drive the Osc1 input of the M128. This allows me to use the RTC in the AVR instead of having to use the iC2 routines to read the clock. Aside from reading the '1307 on AVR startup (or reset), is there any reason to do what I'm doing any differently? Oh yes, I'm also using a backup battery for the '1307.
Any advantages to reading one over the other? My gut says no but you never know
Joined: 05 Apr 2005 Posts: 23 Location: New Zealand
Posted: Wed Apr 26, 2006 7:16 am Post subject: I had some problems with the internal RTC
when I was using a ATmega 32, and I had come LCD control lines on PortC (next to the tosc inputs) My time was about 6 seconds fast a day. Once I connected the LCD to another Port and had my pushbuttons on PortC everything went fine.
I was thinking I had to use an external RTC to have an accurate clock. But I have since built 3 different clock's keeping that in mind and they all keep real good time.
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 You cannot attach files in this forum You cannot download files in this forum