|
RV-3029 Datasheet, PDF (33/67 Pages) MICORO CRYSTAL SWITZERLAND – DTCXO Temperature Compensated Real Time Clock | |||
|
◁ |
Micro Crystal
DTCXO Temperature Compensated Real Time Clock / Calendar Module
RV-3029
4.5.1.ALARM INTERRUPT
The generation of Interrupts from the Alarm function is enabled by âAIEâ = â1â (bit 0 in register Control_INT).
When all enabled Alarm comparisons first match (wired âANDâ) and the Alarm Interrupt is enabled by, the Alarm
Flag âAFâ (bit 0 in Register Control_INT Flag) is set to logic = â1â. The Interrupt signal ( INT ) follows the condition of
âAFâ.
The Interrupt signal INT follows the condition of Alarm Flag âAFâ (bit 0 in register Control_INT Flag), The Alarm
Flag âAFâ and the Interrupt signal ( INT ) remain set until cleared by software writing âAFâ = â0â.
Once bit âAFâ has been cleared, it will only be set again when the time increments and matches the alarm condition
once more.
Alarm Interrupt Control (addresses 01h / 02hâ¦bits description)
Address
Function
Bit 7
Bit 6
Bit 5
01h
Control_INT
X
X
X
Bit 4
SRIE
Bit 3
V2IE
Bit 2
V1IE
Bit 1
TIE
Bit 0
AIE
0
AIE
0
AF is disabled, no Alarm Interrupt generated
1
AF is enabled, AF is set â1âand Alarm Interrupt generated when all
enabled Alarm comparisons first match
02h
Control_INT Flag
X
X
X
SRF
V2IF V1IF
TF
AF
0
AF
0
No Alarm Interrupt generated
Alarm Flag is set â1â when all enabled Alarm comparisons first match,
1
needs to be cleared to clear INT
Bit positions labelled as âXâ are not implemented and will return a â0â when read.
Example for Alarm Flag and Alarm INT
Example where âMinute Alarmâ is enabled and set to 45 and no other Alarm is enabled.
If bit AIE is enabled, the INT pin follows the condition of bit 0 âAFâ in register Control_INT Flag at address 02h.
33/67
|
▷ |