English
Language : 

BQ4285E Datasheet, PDF (6/32 Pages) Texas Instruments – Enhanced RTC With NVRAM Control
bq4285E/L
Interrupts
The bq4285E/L allows three individually selected inter-
rupt events to generate an interrupt request. These
three interrupt events are:
n The periodic interrupt, programmable to occur once
every 122 µs to 500 ms.
n The alarm interrupt, programmable to occur once per
second to once per day, is active in battery-backup
mode, providing a “wake-up” feature.
n The update-ended interrupt, which occurs at the end
of each update cycle.
Each of the three interrupt events is enabled by an indi-
vidual interrupt-enable bit in register B. When an event
occurs, its event flag bit in register C is set. If the corre-
sponding event enable bit is also set, then an interrupt
request is generated. The interrupt request flag bit
(INTF) of register C is set with every interrupt request.
Reading register C clears all flag bits, including INTF,
and makes INT high-impedance.
Two methods can be used to process bq4285E/L inter-
rupt events:
n Enable interrupt events and use the interrupt request
output to invoke an interrupt service routine.
n Do not enable the interrupts and use a polling routine
to periodically check the status of the flag bits.
The individual interrupt sources are described in detail
in the following sections.
Periodic Interrupt
The mux output used to drive the SQW output also
drives the interrupt-generation circuitry. If the periodic
interrupt event is enabled by writing a 1 to the periodic
interrupt enable bit (PIE) in register C, an interrupt re-
quest is generated once every 122µs to 500ms. The pe-
riod between interrupts is selected by the same bits in
register A that select the square wave frequency (see Ta-
ble 3). Setting OSC2–OSC0 in register A to 011 does
not affect the periodic interrupt timing.
Table 3. Square-Wave Frequency/Periodic Interrupt Rate
OSC2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
OSC1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Register A Bits
OSC0 RS3 RS2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
X
X
RS1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
X
Square Wave
RS0 Frequency Units
0
None
1 256
Hz
0 128
Hz
1
8.192
kHz
0
4.096
kHz
1
2.048
kHz
0
1.024
kHz
1 512
Hz
0 256
Hz
1 128
Hz
0
64
Hz
1
32
Hz
0
16
Hz
1
8
Hz
0
4
Hz
1
2
Hz
X
32.768
kHz
Periodic Interrupt
Period
Units
None
3.90625
ms
7.8125
ms
122.070
µs
244.141
µs
488.281
µs
976.5625
µs
1.95315
ms
3.90625
ms
7.8125
ms
15.625
ms
31.25
ms
62.5
ms
125
ms
250
ms
500
ms
same as above defined
by RS3–RS0
6