On Fri, Sep 29, 2006 at 11:20:12AM +1200, Jinx wrote: > > > You could also do it all inside the PIC, having it run off a > > 32kHz crystal. Use the EEPROM or FLASH to hold the > > event times. > > My thought exactly, it takes very little processor time to > check an interrupt count and compare to a table. Far less > time than communicating with another device True. But let me tell you from experience that the 32khz crystal doesn't keep real good time. In my sunrise/sunset controller there is definitly temperature drift. Why isn't there an electronic component that works as well as a $2 battery wall clock module? BAJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist