Hi,

I am trying to implememnt a timer that would control a number of loads (max of 16) thru' any number of cycles.

Typically, each event would need 5 bytes to be stored; the unit address, on-hour, on-minutes, off-hour, off-min, and recurrence. The last is actually a bit, and defines whether the event is once-only or to be repeated every day.

These event parameters would be defined thru' the PC and downloaded into the PIC.

Here's the question; how do I set up a file system to store the events data in the EEPROM, so that the events are always sorted by say, increasing address units, and correspondingly moving the respective other parameters asssociated with it?

What makes it complex to me is that the no. of events could vary, and some units might be connected with multiple events, while some others might not.

I hope I have not made this description even more confusing than it really is...

Any advice, folks?

Thanks in advance.

Anand