RTC DS12C887 has three interrupts, namely, Alarm interrupt, Periodic interrupt & Update interrupt. ALARM INTERRUPT The alarm interrupt occurs whenever the current time matches the alarm time. When this interrupt occurs, the corresponding flag in the Register C is set. The IRQ pin also goes low only in case the alarm interrupt enable bit…