HI,
its Time0 interrupt enable bit.
Code is attached here in .txt format
The code is extracting time from rtc module I2C displaying at segments and the segments is refresing at every 1msec using timer0 and the multiplex is uded.
So, I think debounce routine is not clock consuming here.
The code is running ok with the h/w and there are no problems(drift in time) also if button is pressed and debounce called.
HTML:
now I want to add a feature that is, when the time reach at 2:30 (at night)the disp
will be turned OFF and after 2:32 (at night) the disp will turn ON
Pl looks the code in .TXT format here.
What is happening::
1) Button is used to set the time(2:29) nearer to predefined OFF stage, some times it is going OFF and ON (at 2:31), and once OFF/ON completed for the first time
2) Then it should be keep ON( that means the time is DAY 2:30AM, i set the time nearer to predefined by button)
3) Again after set at nearer to predefined time (that means the time is 2:30 PM) - the it should be OFF at this stage. and continue continuously those all three stage one after another.
I have modified under //edit(), and while() at main() function to get this result but irregularity is noticed that means once point 1 is comes then it is coming after some stage latter not interval of one stage.
pl suggest what i am doing wrong in the code to add that features.
tnx