Home > categories > Electrical Equipment & Supplies > Relays > The program flow of single - chip control relay timer switch
Question:

The program flow of single - chip control relay timer switch

Is it necessary to set a condition loop to detect the current time if set to the opening hours <= current hours

Answer:

On the main program has been refreshed Pay attention to judge when to separate If ((openhour <= hour) && (hour
May 9, 2017
Do not need it, just set the timer interrupt on it
May 9, 2017
Clock chips are generally interrupt output, such as DS12B887, every second has an interrupt output, use this signal can do what you want to do.
May 9, 2017

Share to: