Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Long delays

2006-03-19 by Ned Konz


On Mar 18, 2006, at 6:52 PM, OWEN-A wrote:

I need to generate delays of up to 24 hours on a Mega16 has anyone any suggestions, I could use an RTC but there may be another option as strict timekeeping is not necessary for this application.


Why not just extend one of the timers with your own variable? For instance, if you have a 10 Hz interrupt from an 8-bit timer, you can increment a 24-bit variable from its overflow and get a 32-bit timer (the low byte is the timer register, the upper 3 are your variable).

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.