Electronic Components Datasheet Search
  English  ▼

X  

48GA004 Datasheet(PDF) 186 Page - Microchip Technology

Part # 48GA004
Description  28/44-Pin General Purpose, 16-Bit Flash Microcontrollers
PDF  268 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

48GA004 Datasheet(HTML) 186 Page - Microchip Technology

Back Button 48GA004 Datasheet HTML 182Page - Microchip Technology 48GA004 Datasheet HTML 183Page - Microchip Technology 48GA004 Datasheet HTML 184Page - Microchip Technology 48GA004 Datasheet HTML 185Page - Microchip Technology 48GA004 Datasheet HTML 186Page - Microchip Technology 48GA004 Datasheet HTML 187Page - Microchip Technology 48GA004 Datasheet HTML 188Page - Microchip Technology 48GA004 Datasheet HTML 189Page - Microchip Technology 48GA004 Datasheet HTML 190Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 186 / 268 page
background image
PIC24FJ64GA004 FAMILY
DS39881D-page 186
 2010 Microchip Technology Inc.
19.3
Alarm
• Configurable from half second to one year
• Enabled using the ALRMEN bit
(ALCFGRPT<15>, Register 19-3)
• One-time alarm and repeat alarm options
available
19.3.1
CONFIGURING THE ALARM
The alarm feature is enabled using the ALRMEN bit.
This bit is cleared when an alarm is issued. Writes to
ALRMVAL should only take place when ALRMEN = 0.
As shown in Figure 19-2, the interval selection of the
alarm is configured through the AMASK bits
(ALCFGRPT<13:10>). These bits determine which and
how many digits of the alarm must match the clock
value for the alarm to occur.
The alarm can also be configured to repeat based on a
preconfigured interval. The amount of times this occurs
once the alarm is enabled is stored in the ARPT bits,
ARPT7:ARPT0 (ALCFGRPT<7:0>). When the value of
the ARPT bits equals 00h and the CHIME bit
(ALCFGRPT<14>) is cleared, the repeat function is
disabled and only a single alarm will occur. The alarm
can be repeated up to 255 times by loading
ARPT7:ARPT0 with FFh.
After each alarm is issued, the value of the ARPT bits
is decremented by one. Once the value has reached
00h, the alarm will be issued one last time, after which
the ALRMEN bit will be cleared automatically and the
alarm will turn off.
Indefinite repetition of the alarm can occur if the CHIME
bit = 1. Instead of the alarm being disabled when the
value of the ARPT bits reaches 00h, it rolls over to FFh
and continues counting indefinitely while CHIME is set.
19.3.2
ALARM INTERRUPT
At every alarm event, an interrupt is generated. In addi-
tion, an alarm pulse output is provided that operates at
half the frequency of the alarm. This output is
completely synchronous to the RTCC clock and can be
used as a trigger clock to other peripherals.
FIGURE 19-2:
ALARM MASK SETTINGS
Note:
Changing any of the registers, other then
the RCFGCAL and ALCFGRPT registers
and the CHIME bit while the alarm is
enabled (ALRMEN = 1), can result in a
false alarm event leading to a false alarm
interrupt. To avoid a false alarm event, the
timer and alarm values should only be
changed while the alarm is disabled
(ALRMEN = 0). It is recommended that the
ALCFGRPT register and CHIME bit be
changed when RTCSYNC = 0.
Note
1:
Annually, except when configured for February 29.
s
ss
ms
s
mm
s
s
hh
m
m
s
s
dh
h
m
m
s
s
dd
h
h
m
m
s
s
mm
d
d
h
h
m
m
s
s
Day of
the
Week
Month
Day
Hours
Minutes
Seconds
Alarm Mask Setting
(AMASK3:AMASK0)
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(1)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com