ud23
Advanced Member level 3
sbit alarmset=P3^7;
I don't understand what is the use of this pin as per your hardware connection(not Proteus) in early post P3.7 is floating no connection at that pin and all your settings done after checking it is high in main logic.
and I didn't checked whole your code yet.