DP8573AN National Semiconductor, DP8573AN Datasheet - Page 7

IC REAL TIME CLOCK 24-DIP

DP8573AN

Manufacturer Part Number
DP8573AN
Description
IC REAL TIME CLOCK 24-DIP
Manufacturer
National Semiconductor
Type
Clock/Calendar/NVSRAMr
Datasheet

Specifications of DP8573AN

Memory Size
32B
Time Format
HH:MM:SS:hh (12/24 hr)
Date Format
YY-MM-DD-dd
Interface
Parallel
Voltage - Supply
4.5 V ~ 5.5 V
Operating Temperature
-40°C ~ 85°C
Mounting Type
Through Hole
Package / Case
24-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
*DP8573AN
8573

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DP8573AN
Manufacturer:
NS
Quantity:
5 510
Part Number:
DP8573AN
Manufacturer:
NS/国半
Quantity:
20 000
Figure 5 )
Functional Description
INTERRUPT LOGIC FUNCTIONAL DESCRIPTION
The RTC has the ability to coordinate processor timing ac-
tivities To enhance this an interrupt structure has been im-
plemented which enables several types of events to cause
interrupts Interrupts are controlled via two Control Regis-
ters in block 1 and two Status Registers in block 0 (See
Register Description for notes on paging and Table I )
The interrupts are enabled by writing a one to the appropri-
ate bits in Interrupt Control Register 0 and or 1
The Interrupt Status Flag D0 in the Main Status Register
indicates the state of INTR and MFO outputs It is set when
either output becomes active and is cleared when all RTC
interrupts have been cleared and no further interrupts are
pending (i e both INTR and MFO are returned to their inac-
tive state) This flag enables the RTC to be rapidly polled by
the P to determine the source of an interrupt in a wired
OR interrupt system (The Interrupt Status Flag provides a
true reflection of all conditions routed to the external pins )
Status for the interrupts are provided by the Main Status
Register and the Periodic Flag Register Bits D1–D5 of the
Main Status Register are the main interrupt bits
These register bits will be set when their associated timing
events occur Enabled Alarm comparisons that occur will
set its Main Status Register bit to a one However an exter-
nal interrupt will only be generated if the Alarm interrupt
enable bit is set (see Figure 5 )
Disabling the periodic interrupts will mask the Main Status
Register periodic bit but not the Periodic Flag Register bits
The Power Fail Interrupt bit is set when the interrupt is en-
abled and a power fail event has occurred and is not reset
until the power is restored If all interrupt enable bits are 0
no interrupt will be asserted However status still can be
read from the Main Status Register in a polled fashion (see
To clear a flag in bits D2 and D3 of the Main Status Register
a 1 must be written back into the bit location that is to be
cleared For the Periodic Flag Register reading the status
will reset all the periodic flags
Interrupts Fall Into Three Categories
1 The Alarm Compare Interrupt Issued when the value in
2 The Periodic Interrupts These are issued at every incre-
32 768 kHz
Main Status Register
Periodic Flag Register
Interrupt Control Register 0
Interrupt Control Register 1
Output Mode Register
the time compared RAM equals the counter
ment of the specific clock counter signal Thus an inter-
rupt is issued every minute second etc Each of these
interrupts occurs at the roll-over of the specific counter
XTAL
Register Name
TABLE I Registers that are Applicable
47 pF
C
o
to Interrupt Control
2 pF–22 pF
C
t
Register
Select
X
0
1
1
1
(Continued)
150 k
R
OUT
to 350 k
Address
00H
03H
03H
04H
02H
7
Figure 5 These flags constantly sense the periodic signals
3 The Power Fail Interrupt Issued upon recognition of a
ALARM COMPARE INTERRUPT DESCRIPTON
The alarm time comparison interrupt is a special interrupt
similar to an alarm clock wake up buzzer This interrupt is
generated when the clock time is equal to a value pro-
grammed into the alarm compare registers Up to six bytes
can be enabled to perform alarm time comparisons on the
counter chain These six bytes or some subset thereof
would be loaded with the future time at which the interrupt
will occur Next the appropriate bits in the Interrupt Control
Register 1 are enabled or disabled (refer to detailed descrip-
tion of Interrupt Control Register 1) The RTC then com-
pares these bytes with the clock time When all the enabled
compare registers equal the clock time an alarm interrupt is
issued but only if the alarm compare interrupt is enabled
can the interrupt be generated externally Each alarm com-
pare bit in the Control Register will enable a specific byte for
comparison to the clock Disabling a compare byte is the
same as setting its associated counter comparator to an
‘‘always equal’’ state For example to generate an interrupt
at 3 15 AM of every day load the hours compare with 0 3
(BCD) the minutes compare with 1 5 (BCD) and the faster
counters with 0 0 (BCD) and then disable all other compare
registers So every day when the time rolls over from
3 14 59 99 an interrupt is issued This bit may be reset by
writing a one to bit D3 in the Main Status Register at any
time after the alarm has been generated
If time comparison for an individual byte counter is disabled
that corresponding RAM location can then be used as gen-
eral purpose storage
PERIODIC INTERRUPTS DESCRIPTION
The Periodic Flag Register contains six flags which are set
by real-time generated ‘‘ticks’’ at various time intervals see
and may be used whether or not interrupts are enabled
These flags are cleared by any read or write operation per-
formed on this register
To generate periodic interrupts at the desired rate the asso-
ciated Periodic Interrupt Enable bit in Interrupt Control Reg-
ister 0 must be set Any combination of periodic interrupts
may be enabled to operate simultaneously Enabled period-
ic interrupts will now affect the Periodic Interrupt Flag in the
Main Status Register
When a periodic event occurs the Periodic Interrupt Flag in
the Main Status Register is set causing an interrupt to be
generated The P clears both flag and interrupt by writing a
‘‘1’’ to the Periodic Interrupt Flag The individual flags in the
periodic Interrupt Flag Register do not require clearing to
cancel the interrupt
If all periodic interrupts are disabled and a periodic interrupt
is left pending (i e the Periodic Interrupt Flag is still set) the
Periodic Interrupt Flag will still be required to be cleared to
cancel the pending interrupt
power fail condition by the internal sensing logic The
power failed condition is determined by the signal on the
PFAIL pin The internal power fail signal is gated with the
chip select signal to ensure that the power fail interrupt
does not lock the chip out during a read or write

Related parts for DP8573AN