Arduino-Due-RTC-Library icon indicating copy to clipboard operation
Arduino-Due-RTC-Library copied to clipboard

wrong date with Due_RTC_Simple_Sample_oneline_time_and_date

Open iddq opened this issue 9 years ago • 2 comments

Can you please check the date in the output of Due_RTC_Simple_Sample_oneline_time_and_date example? I always get Date: Mon 01.01.2007

I use RTC_clock rtc_clock(RC);

other question why XTAL doesn't work and what is this option exactly?

thanks

iddq avatar Jun 07 '16 20:06 iddq

The Arduino Due has an internal RC for the Clock or/and an external crystal so if the option XTAL does not work your Due has no external crystal.

So you get Date: Mon 01.01.2007 this is the "normal" Date the Chips comes with. What Time shows up? Looks like the rtc_clock.set_clock(__DATE__, __TIME__); line does not work right. Did you use the sample as it is or did you change something?

MarkusLange avatar Jun 09 '16 10:06 MarkusLange

RC is very inaccurate. I experienced 3 seconds delay within 30 seconds. Can you please send me a link about how I could install an XTAL? I've modified the XTAL to RC and the port speed, nothing more.

iddq avatar Jun 09 '16 18:06 iddq