RTC Interrupt
Posted: Sun May 26, 2013 9:01 pm
Hi ,
I am to developing a project using the 16F877A connected to a D1307 to provide time and date information. I want to run a routine (to control a couple of stepper motors etc.), which will start at a specific time of day from Monday to Sunday, execute and stop at a specific time. I want to configure the start time and end time per day on any specific day. For times when the !6F877A is not executing the routine, it will basically be idle and just display the time on the LCD (if possible, to save power).
I'm not sure exactly how to implement this; do I have to constantly read time information from the D1307 and compare it to START_TIME. If equal, execute the routine, then stop. Thereafter start comparing times from the D1307 to the next configured START_TIME and so on. Is there a simpler method using an interrupt or something similar.
Thanks.
I am to developing a project using the 16F877A connected to a D1307 to provide time and date information. I want to run a routine (to control a couple of stepper motors etc.), which will start at a specific time of day from Monday to Sunday, execute and stop at a specific time. I want to configure the start time and end time per day on any specific day. For times when the !6F877A is not executing the routine, it will basically be idle and just display the time on the LCD (if possible, to save power).
I'm not sure exactly how to implement this; do I have to constantly read time information from the D1307 and compare it to START_TIME. If equal, execute the routine, then stop. Thereafter start comparing times from the D1307 to the next configured START_TIME and so on. Is there a simpler method using an interrupt or something similar.
Thanks.