Rick,
Thanks for sharing the code and example call.
Currently going to stick with the DS1307, cheap and the SNTP update every 12hrs, makes it very accurate for my application.
Upon further thought. I am going to allow the event scheduler to set a flag upon every call to the ISR which will allow the RTC's date and time to be fetched in the main do loop. Since most of the time, the app is waiting for schedule events to occur.
As it only takes 965uS to read the RTC, and the ISR is call once every second, no problem. Just want to keep commonality in the event schedule in the ISR.
Haven't had a chance to make the final changes and document this in my examples, but will do shortly. Will post my example test code when completed.
Some of my designs are here. Posting a link to my web site, not looking for sales, just showing some of the items that I have designed using AVRs/BASCOM. The REALLY good stuff is coming. www.cloud9tech.com
Here is a video of the PS/2 keyboard interface on a ATmega168A.
http://www.youtube.com/watch?v=tv7a3wBHCLY
I am in the process of upgrading that to USB.
Regards,
Mark
↧