Datasheet

2012-2018 Microchip Technology Inc. DS20002300C-page 22
MCP7951X/MCP7952X
FIGURE 5-7: ALARM BLOCK DIAGRAM
5.4.1 CONFIGURING THE ALARM
In order to configure the alarm modules, the following
steps need to be performed:
1. Load the timekeeping registers and enable the
oscillator.
2. Configure the ALMxMSK<2:0> bits to select the
desired alarm mask.
3. Ensure the ALMxIF flag is cleared.
4. Based on the selected alarm mask, load the
alarm match value into the appropriate
register(s).
5. Enable the alarm module by setting the
ALMxEN bit.
RTCSEC
RTCMIN
RTCHOUR
RTCWKDAY
RTCDATE
RTCMTH
Timekeeping
Registers
Alarm 0
Registers
Alarm 0 Mask Alarm 1 MaskComparator Comparator
MFP
Set
ALM0IF
Set
ALM1IF
ALM0MSK<2:0>
ALM1MSK<2:0>
RTCHSEC
ALM0MIN
ALM0HOUR
ALM0WKDAY
ALM0DATE
ALM0MTH
ALM0SEC
Alarm 1
Registers
ALM1SEC
ALM1MIN
ALM1HOUR
ALM1WKDAY
ALM1DATE
ALM1HSEC
MFP
Output Logic