D ts e t
aa h e
R c e t r lc r nc
o h se Ee to is
Ma u a t r dCo o e t
n fc u e
mp n n s
R c e tr b a d d c mp n ns ae
o h se rn e
o oet r
ma ua trd u ig ete dewaes
n fcue sn i r i/ fr
h
p rh s d f m te oiia s p l r
uc a e r
o h r n l u pi s
g
e
o R c e tr waes rce td f m
r o h se
fr e rae r
o
te oiia I. Al rce t n ae
h
r nl P
g
l e rai s r
o
d n wi tea p o a o teOC
o e t h p rv l f h
h
M.
P r aetse u igoiia fcoy
at r e td sn r n la tr
s
g
ts p o rmso R c e tr e eo e
e t rga
r o h se d v lp d
ts s lt n t g aa te p o u t
e t oui s o u rne
o
rd c
me t o e c e teOC d t s e t
es r x e d h
M aa h e.
Qu l yOv riw
ai
t
e ve
• IO- 0 1
S 90
•A 92 cr ct n
S 1 0 et ai
i
o
• Qu l e Ma ua trr Ls (
ai d
n fcues it QML MI- R -
) LP F
385
53
•C a sQ Mitr
ls
lay
i
•C a sVS a eL v l
ls
p c ee
• Qu l e S p l r Ls o D sr uos( L )
ai d u pi s it f it b tr QS D
e
i
•R c e trsacic l u pir oD A a d
o h se i
r ia s p l t L n
t
e
me t aln u t a dD A sa d r s
es lid sr n L tn ad .
y
R c e tr lcrnc , L i c mmi e t
o h se Ee t is L C s o
o
tdo
t
s p ligp o u t ta s t f c so r x e t-
u pyn rd cs h t ai y u tme e p ca
s
t n fr u lya daee u loto eoiial
i s o q ai n r q a t h s r n l
o
t
g
y
s p l db id sr ma ua trr.
u pi
e yn ut
y n fcues
T eoiia ma ua trr d ts e t c o a yn ti d c me t e e t tep r r n e
h r n l n fcue’ aa h e a c mp n ig hs o u n r cs h ef ma c
g
s
o
a ds e ic t n o teR c e tr n fcue v rino ti d vc . o h se Ee t n
n p c ai s f h o h se ma ua trd eso f hs e ie R c e tr lcr -
o
o
isg aa te tep r r n eo i s mio d co p o u t t teoiia OE s e ic -
c u rne s h ef ma c ft e c n u tr rd cs o h r n l M p c a
o
s
g
t n .T pc lv le aefr eee c p r o e o l. eti mii m o ma i m rt g
i s ‘y ia’ au s r o rfrn e up s s ny C r n nmu
o
a
r xmu ai s
n
ma b b s do p o u t h rceiain d sg , i lt n o s mpetsig
y e a e n rd c c aa tr t , e in smuai , r a l e t .
z o
o
n
© 2 1 R cetr l t n s LC Al i t R sre 0 1 2 1
0 3 ohs E cr i , L . lRg s eevd 7 1 0 3
e e oc
h
T l r m r, l s v iw wrcl . m
o e n oe p ae it w . e c o
a
e
s
o ec
bq3285E/L
Real-Time Clock (RTC)
Features
®
Direct clock/calendar replace-
ment for IBM
®
AT-compatible
computers and other applications
®
Functionally compatible with the
DS1285
®
BCD or binary format for clock
and calendar data
®
Calendar in day of the week, day
of the month, months, and years,
with automatic leap-year adjust-
ment
®
Time of day in seconds, minutes,
and hours
General Description
The CMOS bq3285E/L is a low-
power microprocessor peripheral
providing a time-of-day clock and
100-year calendar with alarm fea-
tures and battery operation. The
bq3285L supports 3V systems.
Other bq3285E/L features include
three maskable interrupt sources,
square-wave output, and 242 bytes
of general nonvolatile storage.
A 32.768kHz output is available for
sustaining power-management ac-
tivities. Wake-up capability is pro-
vided by an alarm interrupt, which
is active in battery-backup mode.
The bq3285E/L write-protects the
clock, calendar, and storage registers
during power failure. A backup
battery then maintains data and oper-
ates the clock and calendar.
The bq3285E/L is a fully compatible
real-time clock for IBM AT-compatible
computers and other applications.
The only external components are a
32.768kHz crystal and a backup bat-
tery.
-
Closely matches MC146818A
pin configuration
®
2.7–3.6V operation (bq3285L);
4.5–5.5V operation (bq3285E)
®
242 bytes of general nonvolatile
storage
®
32.768kHz output for power man-
agement
®
System wake-up capability—
alarm interrupt output active in
battery-backup mode
®
Less than 0.5µA load under bat-
tery operation
®
Selectable Intel or Motorola bus
timing
®
14 bytes for clock/calendar and
control
-
-
12- or 24-hour format
Optional daylight saving
adjustment
®
Programmable square wave out-
put
®
Three individually maskable in-
terrupt event flags:
-
-
-
Periodic rates from 122µs to
500ms
Time-of-day alarm once per
second to once per day
End-of-clock update cycle
®
24-pin plastic DIP, SOIC, or
SSOP
Pin Connections
Pin Names
AD
0
–AD
7
Multiplexed address/
data input/output
RST
SQW
Reset input
Square wave output
MOT
X1
X2
AD0
AD1
AD2
AD3
AD4
AD5
AD6
AD7
VSS
1
2
3
4
5
6
7
8
9
10
11
12
24
23
22
21
20
19
18
17
16
15
14
13
VCC
SQW
EXTRAM
RCL
BC
INT
RST
DS
VSS
R/W
AS
CS
MOT
CS
AS
DS
R/W
INT
Bus type select input
Chip select input
Address strobe input
Data strobe input
Read/write input
Interrupt request
output
EXTRAM Extended RAM enable
RCL
BC
X1–X2
V
CC
V
SS
RAM clear input
3V backup cell input
Crystal inputs
Power supply
Ground
24-Pin DIP or SOIC/SSOP
PN3285E1.eps
SLUS004A -DECEMBER 1993 - REVISED MAY 2004
1
bq3285E/L
Block Diagram
Pin Descriptions
MOT
Bus type select input
MOT selects bus timing for either Motorola
or Intel architecture. This pin should be
tied to V
CC
for Motorola timing or to V
SS
for
Intel timing (see Table 1). The setting
should not be changed during system opera-
tion. MOT is internally pulled low by a
30KΩ resistor.
AD
0
–AD
7
Multiplexed address/data input/
output
The bq3285E/L bus cycle consists of two
phases: the address phase and the data-
transfer phase. The address phase pre-
cedes the data-transfer phase. During the
address phase, an address placed on
AD
0
–AD
7
and EXTRAM is latched into the
bq3285E/L on the falling edge of the AS sig-
nal. During the data-transfer phase of the
bus cycle, the AD
0
–AD
7
pins serve as a bidi-
rectional data bus.
Table 1. Bus Setup
AS
Bus
Type
Motorola
MOT
DS
R/W
AS
Level Equivalent Equivalent Equivalent
V
CC
V
SS
DS, E, or
Φ2
RD,
MEMR, or
I/OR
R/W
AS
Address strobe input
AS serves to demultiplex the address/data
bus. The falling edge of AS latches the ad-
dress on AD
0
–AD
7
and EXTRAM. This de-
multiplexing process is independent of the
CS signal. For DIP and SOIC packages with
MOT = V
SS
, the AS input is provided a signal
similar to ALE in an Intel-based system.
Intel
WR,
MEMW, or ALE
I/OW
2
bq3285E/L
DS
Data strobe input
When MOT = V
CC
, DS controls data trans-
fer during a bq3285E/L bus cycle. During a
read cycle, the bq3285E/L drives the bus af-
ter the rising edge on DS. During a write
cycle, the falling edge on DS is used to latch
write data into the chip.
When MOT = V
SS
, the DS input is provided
a signal similar to RD, MEMR, or I/OR in
an Intel-based system. The falling edge on
DS is used to enable the outputs during a
read cycle.
R/W
Read/write input
When MOT = V
CC
, the level on R/W identi-
fies the direction of data transfer. A high
level on R/W indicates a read bus cycle,
whereas a low on this pin indicates a write
bus cycle.
When MOT = V
SS
, R/W is provided a sig-
nal similar to WR, MEMW, or I/OW in an
Intel-based system. The rising edge on
R/W latches data into the bq3285E/L.
CS
Chip select input
CS should be driven low and held stable
during the data-transfer phase of a bus cy-
cle accessing the bq3285E/L.
INT
Interrupt request output
INT is an open-drain output. This allows
alarm INT to be valid in battery-backup
mode. To use this feature, INT must be con-
nected to a power supply other than V
CC
.
INT is asserted low when any event flag is
set and the corresponding event enable bit
is also set. INT becomes high-impedance
whenever register C is read (see the Con-
trol/Status Registers section).
SQW
Square-wave output
SQW may output a programmable fre-
quency square-wave signal during normal
(V
CC
valid) system operation. Any one of
the 13 specific frequencies may be selected
through register A. This pin is held low
when the square-wave enable bit (SQWE)
in register B is 0 (see the Control/Status
Registers section).
A 32.768kHz output is enabled by setting
the SQWE bit in register B to 1 and the
32KE bit in register C to 1 after setting
OSC2–OSC0 in register A to 011 (binary).
BC
EXTRAM
Extended RAM enable
Enables 128 bytes of additional nonvolatile
SRAM. It is connected internally to a 30K
Ω
pull-down resistor. To access the RTC
registers, EXTRAM must be low.
RCL
RAM clear input
A low level on the RCL pin causes the con-
tents of each of the 242 storage bytes to be
set to FF(hex). The contents of the clock
and control registers are unaffected. This
pin should be used as a user-interface input
(pushbutton to ground) and not connected
to the output of any active component. RCL
input is only recognized when held low for
at least 125ms in the presence of V
CC
. Us-
ing RAM clear does not affect the battery
load. This pin is connected internally to a
30KΩ pull-up resistor.
3V backup cell input
BC should be connected to a 3V backup cell
for RTC operation and storage register non-
volatility in the absence of system power.
When V
CC
slews down past V
BC
(3V typical),
the integral control circuitry switches the
power source to BC. When V
CC
returns
above V
BC
, the power source is switched to
V
CC
.
Upon power-up, a voltage within the V
BC
range must be present on the BC pin for
the oscillator to start up.
RST
Reset input
The bq3285E/L is reset when RST is pulled
low. When reset, INT becomes high imped-
ance, and the bq3285E/L is not accessible.
Table 4 in the Control/Status Registers sec-
tion lists the register bits that are cleared
by a reset.
Reset may be disabled by connecting RST
to V
CC
. This allows the control bits to re-
tain the ir s tates t hro ugh p ow er-
down/power-up cycles.
X1–X2
Crystal inputs
The X1–X2 inputs are provided for an exter-
nal 32.768kHz quartz crystal, Daiwa DT-26
or equivalent, with 6pF load capacitance. A
trimming capacitor may be necessary for ex-
tremely precise time-base generation.
In the absence of a crystal, a 32.768kHz
waveform can be fed into the X1 input.
3
bq3285E/L
Functional Description
Address Map
The bq3285E/L provides 14 bytes of clock and con-
trol/status registers and 242 bytes of general nonvolatile
storage. Figure 1 illustrates the address map for the
bq3285E/L.
dar locations during the update cycle at the end of each
update period (see Figure 2). The alarm flag bit may
also be set during the update cycle.
The bq3285E/L copies the local register updates into the
user buffer accessed by the host processor. When a 1 is
written to the update transfer inhibit bit (UTI) in regis-
ter B, the user copy of the clock and calendar bytes re-
mains unchanged, while the local copy of the same bytes
continues to be updated every second.
The update-in-progress bit (UIP) in register A is set
t
BUC
time before the beginning of an update cycle (see
Figure 2). This bit is cleared and the update-complete
flag (UF) is set at the end of the update cycle.
Update Period
The update period for the bq3285E/L is one second. The
bq3285E/L updates the contents of the clock and calen-
Figure 1. Address Map
Figure 2. Update Period Timing and UIP
4