I am working on a project & have concluded that it's never going to get finished unless I get some assistance.
I need someone with considerable relevant experience, to program a timer function. Need it programmed in C (so that I can understand & modify it in the future). The device is an ATmega64 and I am using Imagecraft ICCAVR compiler.
Here's what I have in mind so far:
Function will be called by RTC or main program loop when the minute increments - returns "Setup".
512 day program is stored in consecutive eeprom locations - each day has a Schedule number (0-15) assigned to it. Example:Starting Date = [# days since 1/0/2000]
Day Schedule# 1 3 2 3 3 3 4 3 5 3 6 2 7 2 8 5 9 3 etc.
The 16 schedules are also stored in eeprom. Each schedule has up to 16 events per day. Each event has a time and an associated "Setup" number.
Schedule Number 3 may look something like this: time Setup
0 (12:00 am), 3 360 (6:00 am), 1 480 (8:00 am), 12 840 (2:00 pm), 1 930 (3:30 pm), 12 1200 (8:00 pm), 3Functionality:
12:00 AM Look up today's Schedule_Number & place in memory as Todays_Schedule_Number Evaluate for current "Setup" value return SetupEach Minute: Evaluate time v. today's schedule & return "Setup"
This is as far as I have figured things so far. No doubt there are other issues to consider, which is why I am looking for someone who has already been there, who can do this efficiently and point out the things that I have not yet considered.
If interested, contact me at: scottk at iccom.com or
503-678-2849Thanks, Scott Kelley