Chapter 3 – Real Time Clock
3-14
3.5.4
RTC Alarm Function
The RTC alarm function can be used to determine when the RTC time has reached a specified time, without having to
read the entire set of RTC registers. The alarm time is specified by the user, and when the RTC time reaches the alarm
time, the AF is set. The alarm registers (64 Hz, Seconds, Minutes, Hours, Day of Week, and Day) each have an enable
(ENB) bit which controls whether that register is used in the comparison. Two or more alarm registers may be enabled
simultaneously.
The following flow chart and instructions demonstrate the procedure for setting up the RTC alarm function.
•
•
•••••••••••••••••••••••••••••
•
Clock Running ...
•
•••••••••••••••••••••••••••••
•
•••••••••••••••••••••••••••••
•
Set the alarm time and
•
Enable only those alarm registers that are to be
•
set appropriate ENB
•
used in the comparison.
•
bits in alarm registers
•
•••••••••••••••••••••••••••••
•
•••••••••••••••••••••••••••••
•
Clear AF
•
Clear the Alarm Flag in Control Register A.
•••••••••••••••••••••••••••••
•
•••••••••••••••••••••••••••••
•
Monitor the alarm time
•
•
(Check AF)
•
•••••••••••••••••••••••••••••
Follow the procedure below to setup and monitor the alarm function:
1.
Since interrupts are not used, there is no need to be concerned with handling an interrupt from a the
alarm function. (The AIE and CIE bits in Control Register A should always be written with '0').
2.
Determine which of the alarm registers needs to be used in the comparison. For those registers, set
the desired alarm time and set the ENB bit to '1'.
3.
Clear the AF bit in Control Register A to '0'. Note: To prevent the CF bit from being cleared as well,
set the CF bit to '1' for the write operation.
4.
Monitor the AF bit in Control Register A until it becomes set to '1'. When this occurs, the alarm time
has been reached. The AF bit will remain set as long as the RTC time matches the alarm time. The
AF bit can be cleared by writing a '0' to it, but will be set again immediately if the alarm condition is
still met. To avoid this, either set the alarm time to a different time, or clear all of the ENB bits of the
alarm registers.
Содержание XVME-113
Страница 10: ...Chapter 1 Introduction 1 6...
Страница 11: ......
Страница 12: ...Chapter 2 Installation 2 2...
Страница 13: ...XVME 113 RAM ROM Memory Module October 1992 2 3 0 1 2...
Страница 14: ...Chapter 2 Installation 2 4 3 1 1 1 13 14 15 16 7 2 89 2 89 9 9 9 9 3 4 5 6 97 9 9 9 97 9 9 9 9 9 9 9 4 9 9...
Страница 15: ...XVME 113 RAM ROM Memory Module October 1992 2 5 4 A B B B B C 9 A B 2 D B 4 8 8 8 3 4 9 9 0 0 1 0 E E E...
Страница 16: ...Chapter 2 Installation 2 6 3 7 2 2 3 8 1 1...
Страница 18: ...Chapter 2 Installation 2 8 4 9 2 3 6 42 4 5 612 4 6 2 4 7 02 4 E 3 4 5 6 9 B 3 4 5 6 9 B 3 5 3 E...
Страница 19: ...XVME 113 RAM ROM Memory Module October 1992 2 9 4 3 9 5 C 5 C 9 C C 9 9 9 9...
Страница 20: ...Chapter 2 Installation 2 10 3...
Страница 26: ...Chapter 2 Installation 2 16 4 6 4 5...
Страница 28: ...Chapter 2 Installation 2 18 4 5 9 B A 4 B9 5 2 9 9 5 4 B9 4 4 B9 E 9 7 E 7 9EE EE E EE 4 B9 0 5 9 4 B9 0 4...
Страница 30: ...Chapter 2 Installation 2 20 4 5 E E B E 6 E 6 E E E B E...
Страница 31: ...XVME 113 RAM ROM Memory Module October 1992 2 21 4 3 8 8 3 C 4 8 3 B E E 4 9 J 53 J 53J 6 9 5 6 8 5...
Страница 32: ...Chapter 2 Installation 2 22 9...
Страница 52: ......
Страница 64: ...Appendix B Quick Reference Guide B 6 Figure B 2 Read Timing Waveform...
Страница 65: ...C 1 APPENCIX C BLOCK DIAGRAM ASSEMBLY DRAWING SCHEMATICS Figure C 1 XVME 113 Block Diagram...
Страница 66: ...Appendix C Block Diagram Assembly Drawing Schematics C 2 Figure C 2 Assembly Drawing...
Страница 67: ......
Страница 68: ......
Страница 69: ......
Страница 70: ......
Страница 71: ......
Страница 72: ......
Страница 73: ......
Страница 74: ......
Страница 75: ......