PIC18F25J11-I/PT MICROCHIP [Microchip Technology], PIC18F25J11-I/PT Datasheet - Page 237

no-image

PIC18F25J11-I/PT

Manufacturer Part Number
PIC18F25J11-I/PT
Description
28/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
16.3
The alarm features and characteristics are:
• Configurable from half a second to one year
• Enabled using the ALRMEN bit (ALRMCFG<7>,
• Offers one-time and repeat alarm options
16.3.1
The alarm feature is enabled using the ALRMEN bit.
This bit is cleared when an alarm is issued. The bit will
not be cleared if the CHIME bit = 1 or if ALRMRPT ≠ 0.
The interval selection of the alarm is configured
through the ALRMCFG bits (AMASK<3:0>). (See
Figure 16-5.) These bits determine which and how
many digits of the alarm must match the clock value for
the alarm to occur.
FIGURE 16-5:
© 2009 Microchip Technology Inc.
Register 16-4)
Note 1:
0000 – Every half second
0001 – Every second
0010 – Every 10 seconds
0011 – Every minute
0100 – Every 10 minutes
0101 – Every hour
0110 – Every day
0111 – Every week
1000 – Every month
1001 – Every year
Alarm Mask Setting
Alarm
AMASK<3:0>
CONFIGURING THE ALARM
Annually, except when configured for February 29.
ALARM MASK SETTINGS
(1)
Day of the
Week
d
Month
m
m
PIC18F46J11 FAMILY
The alarm can also be configured to repeat based on a
preconfigured interval. The number of times this occurs
after the alarm is enabled is stored in the ALRMRPT
register.
Note:
d
d
Day
d
d
While the alarm is enabled (ALRMEN = 1),
changing any of the registers – other than
the RTCCAL, ALRMCFG and ALRMRPT
registers and the CHIME bit – can result in
a false alarm event leading to a false
alarm interrupt. To avoid this, only change
the timer and alarm values while the alarm
is disabled (ALRMEN = 0). It is recom-
mended
ALRMRPT registers and CHIME bit be
changed when RTCSYNC = 0.
Hours
h
h
h
h
h
h
h
h
that
Minutes
m
m
m
m
m
the
m
m
m
m
m
m
DS39932C-page 237
ALRMCFG
Seconds
s
s
s
s
s
s
s
s
s
s
s
s
s
s
s
and

Related parts for PIC18F25J11-I/PT