The MC146818A Real-Time Clock plus RAM is a peripheral device
which includes the unique MOTEL concept for use with various
microprocessors,microcomputers,and larger computers.This part
combines three unique features: a complete time-of-dayclock with
alarm and one hundred year calendar, a programmable periodic interrupt and square-wave generator, and 50 bytes of low-powerstatic
RAM. The MC146818A uses high-speed CMOS technology to interface
with 1 MHz processor buses, while consuming very little power.
The Real-Time Clock plus RAM has two distinct uses. First, it is
designed as a battery powered CMOS part (in an otherwise NMOS/TTL
system) including all the common battery backed-up functions such as
RAM, time, and calendar. Secondly, the MC146818A maybe used with
a CMOS microprocessor to relieve the software of the timekeeping,~~
workload and to extend the available RAM of an MPU such as the ., “’~:$
MC146805E2.
● Low-Power, High-Speed CMOS
● Internal Time Base and Oscillator
O Counts Seconds, Minutes, and Hours of the Day
● Counts Days of the Week, Date, Month, and Year,$:
,,,,,,M,,)$f,
<..%.-...*<.*$,
,$\ \.,
,,:,,
. ..i,;t~
..!.*:,:
~t.k,$,.,
● 3 V to 6 V Operation
● Time Base Input Options: 4.194304 MHz, 1.048ti~~z, or 32.7W
kHz
● Time Base Oscillator for Parallel Resonan~$$~{S]s
● 40 to 200 pW Typical Operating Power{,~L:~#~ ‘Frequency Time Base
● 4.0 to 20 mW Typical Operating Po.~%j~*$?gh Frequency Time Base
● Binary or BCD Representation ~fTW~Calendar, and Alarm
● 12- or 24-Hour Clock with A~$oQ$PMin 12-Hour Mode
● Daylight Savings Time OplWn ‘$
● Automatic End of Mo~:~’’~$e6gnition
● AutomaticLeap Y~r ~&&~ensation
● Microprocessor#$@t@mpatible
● Selectable Ba$W&n’Wotorolaand Competitor Bus Timing
● Multiplex@:~@fbr Pin Efficiency
● lnterfq&$&%@% Software as 64 RAM Locations
● 14 B~es:$’~CIOckand Control Registers
● ~’~~~~$i’ofGeneral Purpose RAM
,,*J
....~.
~‘.$$*$
, -~.,y,}$~*
~’.,-,,
.$k,..?.l,{+<,,$$,>:,.,
*;* $*,,$$
.~;\l...
,~$.~,,,
;<4 ,
*>sq,.,,\,$4:*,
$+.~:;;,. ..~.
@x;.$J&%wsBit indicates Data Integrity
?{&us Compatible Interrupt Signals (~Q)
..
● Three Interrupts are Separately Software Maskable and Testable
Time-of-Day Alarm, Once-per-Second to Once-per-Day
Periodic Rates from 30.5 ps to 500 ms
End-of-Clock Update Cycle
● Programmable Square-Wave Output Signal
● Clock Output May Be Used as Microprocessor Clock Input
At Time Base Frequency -1 or +4
● 24-Pin Dual-In-Line Package
● Quad Pack Also Available
,.,.>*t!F\+{k
,1,
~;, ~p
~$$~.
)>.
‘,&Q.%~!*
“’t:>?,.
,!!:\’;
.\,i,.,..
$s,,..
.....
~\}t
CMOS\
CASE 623
PIN ASSIGNMENT
‘oT ~vDD
Oscl [ 2
0SC2 [ 322 ] Ps
ADO [ 4
AD1 [ 5
AD2 [ 6
AD3 [ 7
AD4 [ 8
AD5 c g
AD6 [ 10
AD7 [ 1114 ] AS
Vss [
12
u“
23 ] SQW
21 JCKOUT
20 ] CKFS
lg ] l~Q
18 ] RESET
17 ] DS
16 ] STBY
15 ] Rl~
13 ]=
I
hls document contains !ntormatlon on a new product. Specltlcatlons and tntormatlon here!n
are subject to change without notice
.
)MOTOROLAINC,, lW
ADI-1026
Page 2
FIGURE 1 – BLOCK DIAGRAM
~CKOUT
Clock
output
+
~CKFS
—
sow
~Q
RESET
Ps
,i,>,~
.. ~><.,
.*$:, \ h .
,*
~:*.
. ..
?+
$.;).,,<,:?
,’<;}.:-
MAXIMUMRATINQ~~(@oJjagesreferenced to VSS)
R~$n& “~:?’
Supply Volta~J**“ ‘$?
All Input V:$~&.~xceptOSC1
Current ~rai~~rPin Excluding
Vmi,a%q,.vs s
Op&~~~&TemperatureRange
‘~%$~6818A
‘<@c146818AC
Storage Temperature Range
THERMALCHARACTERISTICS
Characteristic
Thermal Resistance
Plastic
Cerdlp9JA
Ceramic
SymbolValue
VDD–0.3 to +8.0
VinV5S– O.5 to VDD+O.5
I10
TA
Tstg
TL to TH
0 to 70
– 40 to 85
–55to+150
Symbol I
II
ValueUnit
120
II
65“c/w
50
Unit
mA
Oc
Oc
User RAM
(50 Bytes)
v
v
v
This device contains circuitry to protect the inputs against damage due to high static voltages
or electric fields; however, it is advised that normal precautions be taken to avoid application of
any voltage higher than maximum rated voltages
to this high-impedance circuit. For proper operation it is recommended that Vin and Vout be constrained to the range VSS =(Vinor Voutl
s VDD. Reliability of operation is enhanced if
unused inputs are tied to an appropriate logic
voltage level (e.g., either VSS or VDD).
MOTOROLASemiconductorProducts Inc.
@
2
—
Page 3
)C ELECTRICAL CHARACTERISTICS(vD
Characteristics
Frequency of Operation
Output VoltagevOL
Vdc, vs s = O Vdc, TA = Tl to TH unless otherwise noted)
I Symbol IMin
fosc
IDD3–
IDD4–
vOH
STBY, ADO-AD7, DS, AS, R/W, CS
RESET, CKFS, PS, OSC1
——
MOT, OSCI, CE, STBY, RESET, CKFS, ,P#‘$ ‘“
———
——
MOT
MOT .#vj
AS, DS, R/~F
VOL
vlH
vlL ‘?$yvss
~~:$~
VDD– O.1–
.,$,@,q.,
‘$:?y$:~ ~?:,
,,. ‘k$,’w.~’D
Max
I
32.76832.768
—
i’t” *
2.7t +?’+’~’’t;;k~v
-$.*;,,’:,: ~
, %&$$y’
<t~tl,
,,}\k*t
$i.,,,,
~-.>,,->,,.,/,
?J
VDDv
VDD
VDD
I
0.1
50
50
:,.:,.~
. .:s.‘ ..
i,,..
..,t>.$.‘:.*$
\k;~#\ ~,
....,.
.,+ ..%)$
0.3v
0.5v
Vss
–
Vss
* 10
*I
* 10WA
Unit
kHz
v
A&fi%$k
$“’:#$, !,
~~.+,,~i:”
~+,,....
PA
I
.\,
“~{?.
.::.
Input Current
Three-State LeakageIRQ, ADO-AD7ITSL I–
m
MOTOROkASemiconductorProducts Inc.
MOT, OSCI, CE, STBY, RESET, CKFS, PS
———
AS, DS, R/~
Iin
11
II
3
—
+10AA
*1
,I
*IO
PA
I
1
Page 4
BUS TIMING
VDD=5.O V
*lo%
1 TTL and
130 pF Load
953dc
300–
325–
—
30
Ident.
Number
1Cycle Time
Characteristi~Symbol
tcvc
2Pulse Width, DS/E Low or ~D/WR HighPWELlm
3——Pulse Width, DS/E High or RD/WR LowPWEH15m
4Input Rise and Fall Timetr, tf
Vnn=3.O V
ti;FLoad
MinMaxMinMaxUnit
5000–
—
—
—
100
8R/~Hold TimetRWH10–10–ns “~$
~*... ..s..’
~y>>,
—
—
—
,,~r$
—
—
13R/~ Setup Time Before DS/E
14Chip Select Setup Time Before DS, ~R, or ~Dtcs
15
Chip Select Hold Time
18Read Data Hold TimetDHR10
21Write Data Hold Time
Muxed Address Valid Time to AS/ALEFall
25I Muxed Address Hold TimetAHL100I–
DelaV Time DS/E to AS/ALERise
26
27Pulse Width, AS/ALEHigh
DelaV Time, AS/ALE to DS/E Rise
28
Peripheral Output Data Delay Time from DS/ E or ~tDDR1300
30
Peripheral Data Setup TimetDSW1q$.ii ~.~’2m–ns
31
S~Setup Time before AS/ALE Rise
32
S~Hold Time after AS/ALE Fall
33
NOTE: Designations E, ALE, ~,and ~R refer to signals from alternative Mp;cessorsignals.
* Refer to IMPORTANTNOTICES appearing on page 20 of this data :~~t,.
tRWS2m–
200–
tCH10
—
Im
tnu\A/100–o
tASL2~–
I
—
tASDm–
pwAs H
tASED500
tSBS
tSBH
.,
6~
~Q:@:J~$+’3’–
$~B~~ ~_
.,.. ....
‘~+.k
– *,i$
* %:.\tf.,:/?@
.,~.,.,.?~...‘,’!..~,~
‘.?.?~i~,.~,:,
80
25
o
10
50 ,~p+:;a“’
I
w“t “-
, ‘*‘ .-ns
;~J$$95
ax..,.!>.
20240
TBD–
TBD–
,,.
~: m
~~~;~e.:
I
ns
ns
ns
ns
*.#*..,...,:{
~s %+.<
n:
SI24
ns
ns
ns
ns
—
,:,,,
.$..
I
-.
Note: VHIGH=VDD–2.O
VHIGH=2.O V, VLOW=O.5V,
MOTOROLASemiconductorProducts Inc.
@
V, VLOW=O.8 V, for VDD=5.O V +IOYO for outputs only.
for VDD=3.OV for outputs onlv.
4
Page 5
FIGURE 3 – BUS READ TIMING COMPETITOR MULTIPLEXED BUS
‘LE(AddressLatch
~ (Read Output Enable)
(DS Pin)
C= (Chip Select)
STBY
ADO-AD7
(Address/ Data Bus)
IIL
FIGURE 4 – BUS WRITE TIMINti?@PETITORMULTIPLEXED BUS
ADO-AD7
(Address/ Data
Note: VHIGH=VDD-2.OV, VLOW=O.8V, for VDD=5.OV A 10% for outputs only.
VHIGH=2.OV, VLOW=O.5V, for VDD=3.OV for outputs only.
,1’, by reading Register d. The VRT bit mn only be cleared by pulling the PS pin low (see REGISTER D ($OD)).
@
MOTOROLASemiconductorProducts Inc.
7
Page 8
SIGNAL DESCRIPTIONS
The block diagram in Figure 1, shows the pin connection
with the major internal functions of the MC146818A Real-
Time Clock plus RAM. The following paragraphs describe
the function of each pin.
VDD, VSS
DC power is provided to the part on these two pins, VDD
being the more positive voltage. The minimum and maximum voltages are listed in the Electrical Characteristics
tables.
MOT–MOTEL
The MOT pin offers flexibility when choosing bus type,
When tied to VDD, Motorola timing is used. When tied to
VSS, competitor timing is used. The MOT pin must be hard-
wired to the VDD or VSS supply and cannot be switched
during operation of the MC146818A.
OSC1, OSC2 – TIME BASE, INPUTS
The time base for the time functions may be an external
signal or the crystal oscillator.External square waves at
4.184304 MHz, 1.M576MHz, or 32.768 kHz may be connected to OSCI as shown in Figure 9. The internal time-base
frequency to be used is chosen in Register A.
The on-chip oscillator is designed for a parallel resonant
AT cut crystal at4.1 M04MHz, 1.048576 MHz or32.768 kHz
frequencies. The crystal connections are shown in Figure 10
and the crystal characteristics in Figure 11.
CKOUT – CLOCK OUT, OUTPUT
The CKOUT pin is an output at the time-base freque~~
divided by 1 or 4. A major use for CKOUT is as the t~u~:t,
clock to the microprocessor;thereby saving the c,@$:&::@
second crystal. The frequency of CKOUT depends%~okt$he
+
.k’~
CKFS – CLOCK OUT FREQUENCY #%&<$:INPUT
When the CKFS pin is tied to VD~$~$:jcai~es CKOUT to be
the same frequency as the time b~e ~~fie OSCI pin. When
CKFS is tied to Vss, CKOUJ:~~l~@~OSCltime-base frequency divided by four. T~le~~summarizes the effect
.,,,
,,:
~me Base,,~~~~=~kFrequency
oscl~, ;$t~,;
(
Freq~ ~,,,,, ‘“
4.ly3~,,MyzHigh
4.W:MHZ
~$+&6MHZ
‘:\:~576M HZ
,.,..r“
‘32.768 kHz
32.7& kHzLow
‘+
Select Hn
(CKFS)
Low
High
Low
High
SQW – SQUARE WAVE, OUTPUT
The SQW Din can output a signal from one of the 15 taps
provided by ihe 22 internal-divid~r stages. The frequency of
the SQW may be altered by programmingRegister A, as
shown in Table 5. The SQW signal may be turned on and off
using the SQWE bit in Register B.
Multiplexed bus processors save pins by presenting the
address during the first portion of the bus cycle and using
the same pins during the second portion for data. Addressthen-data multiplexing does not slow the access time of the
MC146818A since the bus reversal from address to data is
occurring during the internal RAM access time.
The address must be valid just prior to the fall ,@#~$~~LE
at which time the M C146818A latches the addr.e~ ??@ ADO
to AD5, Valid write data must be presente@t~~~~fi8?d stable
during the latter portion of the DS or ~~~~?~~.In a read
cycle, the MC146818A outputs eight ~[~bf~~taduring the
latter portion of the DS or ~ pulse~$~$~masesdriving the
bus (returns the output drivers to t~,h,$h-impedancestate)
when DS falls in the Motorola&cJ&e o~~OTEL or R~ rises in
the other case.
..,~t;~,.?)?
AS – MULTIPLEX~:~@#~SSSTROBE, INPUT
A positive goin~+ mu~~[pjexed address strobe pulse serves
to demultiplex t~~x,~~s.The falling edge of AS or ALE causes
the address+~:$~~atchedwithin the MC146818A.
\
,!:!~ ‘,$$v<,,:hi:.
DS ~ #&$A’”sTROBEOR READ, INPUT
~~,DS pin has two interpretations via the MOTEL circuit,
,:&$$n@manatingfrom a Motorola type processor, DS is a
.,,,%~o$$lve pulse during the latter portion of the bus cycle, and
*~~&$ariouslycalled DS (data strobe), E (enable), and 42 (42
!,,.,
..-,:::.J+>,<T,,.
*a:Jclock). During read cycles, DS signifies the time that the
~\33,
‘ RTC is to drive the bidirectional bus. In write cycles, the trail-
ing edge of DS causes the Real-Time Clock plus RAM to
latch the written data,
The second MOTEL interpretationof DS is that of ~,
MEM R, or ~emanating from the competitor type processor. In this case, DS identifies the time period when the
real-time clock plus RAM drives the bus with read data. This
interpretationof DS is also the same as an output-enable
signal on a typical memory.
R/~– READ/WRITE,INPUT
The MOTEL circuit treats the R/~ pin in one of two ways.
When a Motorola type processor is connected,R/~is a
level which indicates whether the current cycle is a read or
write. A read cycle is indicated with a high level on R/~
while DS is high, whereas a write cycle is a Iowon R/~ dur-
ing DS.-
The second interpretationof R/~ is as a negative write
pulse, ~R,MEMW, and l/OW from competitor tv~e ~rocessors, The MOTEL circuit in t~s mode gives R/~’pin” the
same meaning as the write (W) pulse on many generic
RAMs.
~S – CHIP SELECT, INPUT
The chip-select (C~) signal must be asserted (low) for a
bus cycle in which the MC146818A is to be accessed. C= is
not latched and must be stable during DS and AS (Motorola
case of MOTEL) and during ~D and ~R. Bus cycles which
take place withoutasserting C= cause no actions to take
place within the MC146818A. When C% is not used, it should
be grounded. (See Figure 20).
+,tp:=,y,t\>
.,
>.t,,...
\\;~,;.
. ,..,$).
—
@
M070ROLASemiconductorProducts Inc.
8
Page 9
4.1%304 MHz
or
1.W576 MHz
FIGURE 9 – EXTERNAL TIME-BASE CONNECTION
VDD
Optional
(VDD–1.O VI
$
I
I
2
Oscl
32.7:; kHz
(Open)<—
3
OSC2
OSC2
MC146818A
L
MC146818A
,!~.-
,..
@
fow
RS (Maximum)
CO(Maximum)
cl
Q
Cin/Cout
R
Rf
4.1-MHz
75 Q700 n
7 pF
0.012 pF0.~8 pF
50 k
15-30 pF
—
10 M
1.046576 MHz
5 pF
35 k30 k
15-40 pF
—
10 M
32.7@ kHz
Wk
1.7 pF
0.~3 pF
10-22 pF
300-470 k
22 M
MOTOROLASemiconductorProducts Inc.
9
Page 10
~Q–INTERRUPT REQUEST, OUTPUT
The IRQ pin is an active low output of the MC14W18Athat
may be used as an interruptinput to a processor,The ~Q
outputremains low as long as the status bit causing the interrupt is present and the correspondinginterrupt-enablebit
is set. To clear the 1~ pin, the processor program normally
reads Register C. The RESET pin also clears pendinginterrupts.
When no interruptconditionsare present, the ~Q level is
in the high-impedancestate. Multipleinterruptingdevices
may thus be connectedto an ~Q bus with one pullup at the
processor.
RESET – RESET, INPUT
The RESET pin does not affect the clock, calendar,or
RAM functions.On powerup,the RESET pin must be held
low for the specifiedtime, tRLH, in order to allow the power
supply to stabilize.Figure 12 shows a typical representation
of the RESET pin circuit.
When RESET is low the followingoccurs:
a) Periodic Interrupt Enable (PIE) bit is cleared to
zero,
b) Alarm InterruptEnable (AIE) bit is cleared to zero,
c) Alarm InterruptEnable (AIE) bit is cleared to zero,
d) Update ended InterruptFlag (UF) bit is cleared to zero,
e) InterruptRequest status Flag (IRQF) bit is cleared to
zero,
f) Periodic InterruptFlag (PF) bit is cleared to zero,
g) The part is not accessible.
h) Alarm InterruptFlag (AF) bit is cleared to zero,
i) IRQ pin is in high-impedancestate, and
j) Square Wave outputEnable (SQWE)bit is cleared JQ
zero,
STBY – STAND– BY
The STBYpin, whenactive,preventsac~s~$~“the
MC146818Amaking it ideal for battery back-~’~~~l~ations.
Stand-byoperationincorporatesa transpa~~$$~~$tch,After
data strobe(DS) goes low (TD or _j:rn@),STBY is
recognizedas a valid signal.
The STBY signal is totally asyR*L@6s.Its transpare~t
latch is opened by the falling e~~~.of .@S (rising edge of RD
or ~R) and clocked by the r$@n@~dge of AS (ALE). Therefore, for STBY to be reco$oize@t@Sand AS should occur in
pairs. When STBY gop@~l,W,,beforethe falling edge of DS
(rising edge of ~R ?r ~~k$~recurrent cycle is completedat
that edge and thq $h<,~yclewill not be executsd.
\ ~...!,...
S*, \“~*~>
~.$,*,%2’$\$-
.:>.$,:<
J*!
$$3,
N
...
‘~l~\
tFi’>\t:;*g*\\$
.,.
‘~’+!
,,,:*.LF,,, .,,,.$
PS – POW,~”:J~~$E,INPUT
The pQ,v&-s~$sepin is used in the controlof the valid
RAM @~~~$(VRT) bit in Register D. When the PS pin is
low ~@q,w~~T bit is cleared to zero.
W~@’Usingthe VRT feature during powerup,the PS pin
must % externallyheld low for the specifiedtpLH time. As
power is applied, the VRT bit remains low indicatingthat the
contentsof the RAM, time registers,and calendar are not
guaranteed.PS must go high after powerupto allow the
VRT bit to be set by a read of register D,
FIGURE 12–TYPICALPOWERUP DELAY
.,~!,:~,,+
..
Not~~${,the RTC is isolated from the MPU or M CU power by a
,~J,,,tdwe drop, care must be taken to meet Vin requirements.
~y
1~~
CIRCUIT FOR RESET
DI
D2
,,f:~
FIGURE 13 – TYPICAL POWERUP DELAY CIRCUIT
DI
FOR POWER SENSE
D2
I
VDD
Ps
MC146818
+
Vss
T
DI = MBD701 (Schottky) or Equivalent
D2 = 1N4148 or Equivalent
2.0 k
0.005 ~F
I
m
MOTOROLASemiconductorProducts Inc.
10
Page 11
POWER-DOWNCONSIDERATIONS
In most systems, the MC146818Amust continueto keep
time when system power is removed.In such systems,a
conversionfrom system power to an alternate power supply,
usually a battery,must be made. During the transitionfrom
system to battery power, the designer of a battery backed-up
RTC systemmust protectdata integrity,minimizepower
consumption,and ensure hardwarereliability.
The stand-by(STBY)pin controlsall bus inputs(R/~,
DS, AS, ADO-AD7)ST BY, when negated,disallowsany
unintendedmodificationof the RTC data by the bus. STBY
also reduces power consumptionby reducing the number of
transitionsseen internally.
Power consumptionmay be further reduced by removing
resistive and capacitiveloads from the clock out (CKOUT)
pin and the squarewave(SQW) pin.
During and after the power source conversion,the VIN
maximumspecificationmust never be exceeded.Failure to
meet the VIN maximumspecificationcan cause a virtual
SCR to appear which may result in excessive current drain
and destructionof the part.
ADDRESS MAP
Figure 14 shows the address map of the MC146818A,The
memory consists of 50 general purpose RAM bytes, 10 RAM
bytes which normallycontain the time, calendar,and alarm
data, and four controland status bytes, All 64 bytes are
directly readable and writableby the processor program except for the following:1) Registers C and D are read only,
2) bit 7 of Register A is read only, and 3) the high-orderbit of
the seconds byte is read only. The contentsof four control
and statusregisters(A, B, C, and D) are describedin
REGISTERS.
TIME, CALENDAR,AND ALARMLOCATIONS
The processorprogramobtains time and calw~~~r ~tiYormation by reading the appropriatelocations.~~f~~gram
may initializethe time, calendar,and ala~,$~p$i~rltlngto
these RAM locations.The contents of th.$,~@&~”~, calendar,
and alarmbytesmay be eitherbi.~r~.,~~binarv-coded
decimal (BCD).
>.’*. J.
‘~
.Fi.’.’
,~..,.,.,
~’ ~:,.:$..,
‘%<. ‘,+
....’t)\..).$<l>\b
>..!l’;:!,,t,.,.....
Before initializingthe internalregisters,the SET bit in
Register B should be set to a “1” to prevent time/calendar
updates from occurring.The program initializes the 10 locations in the selected format (binary or BCD), then indicates
the formatin the data mode (DM) bit of RegisterB. All
10 time, calendar,and alarm bytes must use the same data
mode, either binary or BCD. The SET bit may now be c~red
to allow updates.Once initializedthe real-time clocR’Mkes
all updates in the selected data mode. The data ~~~a,~%nnot
be changed withoutreinitializingthe 10 data ,&~<~~~$t*
Table 3 shows the binary and BCD form~&Q{t~e10 time,
calendar,and alarm locations.The 24/:~9 ‘~~~,1~ Register B
establisheswhetherthe hour locatio+n$f#p[&sentl-to-12or
O-to-23. The 24/12 bit cannot be c~;fi~&~”r%ithoutreinitializing the hour locations.When th+ l~~~~rformat is selected
the high-orderbit of the hoursh~&representsPM when it is
a “l”.
The time,calendar,~@ ~~~rm bytes are not always
accessibleby the proce~?i:,@;ogram.Once per second the
10 bytes are switched ~,~bupdate logic to be advanced by
one second and te<~ec~foran alarm condition.If any of the
10 bytes are,~&#@$?Thistime, the data outputsare undefined. The u~~a~ ~~ckout time is 248ys at the 4.19W04 MHz
and 1.O@fiMMztime bases and 1948 ps for the 32.768 kHz
time Qas&fl~he Update Cycle section shows how to accommo,ðe update cycle in the processor program.
,,$~t~~e%~hree alarm bytes may be used in two ways. First,
,%,~p~$ the Program inserts an alarm time in the appropriate
“:,$~”fbrrupt is initiated at the specified time each day if the alarm
enable bit is high. The second usage is to insert a “don’t
*J~”
care” state in one or more of three alarm bytes. The “don’t
care” code is any hexadecimalbyte from CO to FF. That is,
the two most-significantbits of each byte, when set to “l”,
create a “don’tcare” situation.An alarm interrupteach hour
is created with a “don’tcare” code in the hours alarm location.Similarly,an alarm is generatedevery minutewith
“don’tcare” codes in the hours and minutesalarm bytes.
The “don’tcare” codes in all three alarm bytes create an interrupt every second.
,.::,,\.,....,
‘J~...l,>.<.,
.:i\\y+.:\\
.;. ..<,),.,+*,.
FIGURE
—
o
13
50
Bvtes
User
RAM
63
(M)
MOTOROLASemiconductorProducts Inc.
00
OD
14 – ADDRESS MAP
01
1
I
1I
\
10 I
Seconds100)
Seconds Alarm
Register A
01I
Binary
or BCC
Contents
4I
I OA
11
Page 12
TABLE 3 – TIME, CALENDAR, AND ALARM DATA MODES
AddressDecimal
Location
o
1
2
3
4
5
6
7
Function
Seconds
Seconds Alarm
Minuteso-59
Minutes Alarm
Hours
(12 Hour Mode)
Hours
(24 Hour Mode)
Hours Alarm
(12 Hour Mode)
Hours Alarm
Hour Mode)
(24
Dav of the
Week
Sunday= 1
Date of the Month
Range
o-59
o-59$00-$3B
o-59
1-12
O-23
1-12
O-23
1-7
1-31
8Month1-12
9Yearo-99
Binary Data ModeBCD Data Mode
$W-S3B
$W-$3B
$W-$3B
$01-$OC (AM) and $01-$12 (AM) and
$81-$8C (PM)
$CO-$17
$01-$OC (AM) and
$81-$8C (PM)$81-$92 (PM)
$W-$17$~-23
$01-$07
$01-$1F
$01-$oc
Range
$W-$59
$W-$59
$W-$59
$m-$59
$81-$92(PM)
$W-$23
$01-$12 (AMI and05
$01-$07
$01-$31
$01-$12,<P,$
$00-$63$m-$~+:$~Q’
)$;
‘J* ‘*’
Example’
Bina~
Data ModeData Mode
1521
1521
3A
3A56
BCD
0505~
05
,:ft<+;:t’~
,.
%,...\\.!:
>,,
“05
05 ~$+j
,. $~?..‘<i,)
!t. t$:i;~:;,,
<f@‘05
~\..+:t
.,jh ,.*,.,
$:&*$@’$’
‘t02
‘4F
56
~,~m,.,.),,.:,,, ~
,,,:s~~.,..V
%$ ,?@:
,>.,!’
15
02
79
.,
,1,,.y
$,
....
IS,.
“ ‘~,z
l.~:~:.*L~\,\.,,.l.,.,$..,
t,.,~ ,1...
~*:~\
,:::’~”,<$,+
,t,,,8t:i.,..
.!,.
A),,),,
.-
STATIC CMOS RAM
The % general purpose RAM bytes are not dedicated
within the MC140818A. They can be used by the processor
program, and are fully available during the update cycle.
When time and calendar informationmust use battery
back-up, very frequently there is other non-volatile data that
must be retained when main power is removed. The W u~~,,:
RAM bytes serve the need for low-power CMOS bat~y-’<~
backed storage, and extend the RAM available $&&@
M C148818AS maybe includedin th~$~~~~~.The
time/calendarfunctions may be disabl~~ ~:’b~ldingthe
DvO-DV2 dividers, in Register A, in th~~~es$.~hte by settin9
the SET bit in Register B or by re~ovagthe oscillator.
Holding the dividers in reset preve.~&~~&#~upts or SQW output from operating while set~&~}~&rS ET bit allows these
functions to occur. With the &~id~s clear, the available user
RAM is extended to 59+b~teS~hehigh-order bit of the
seconds byte, bit 7 of @~~fS~~A, and all bits of Registers C
and D cannot effecl~~~~ be’ used as general purpose RAM.
e. ~..h.,
t.$.:..!,;it,
,,, ;&:~JN~ERRUPTS
The RTC @wsJ%,@’~includes three separate fully automatic
sources of {~te~ptsto the processor. The alarm interrupt
may be@r~r%ti”med to occur at rates from once-per-second
to q~~~@aYThe periodic interruptmay be selected for
rate~;<(~~” half-a-second to 30.517 ps. The update-ended interru@f may be used to indicate to the program that an update cycle is completed. Each of these independent interrupt
conditions are described in greater detail in other sections.
The processor program selects which interrupts, if any, it
wishes to receive. Three bits in Register B enable the three
interrupts.Writing a “1” to a interrupt-enablebit permits
that interrupt to be initiated
when the event occurs. A “U’ in
the interrupt-enablebit prohibits the IRQ pin from being
asserted due to the interrupt cause.
If ~~’ intertuptflag is already set when the interrupt
“Y*<
be&%:j.enabled,the ~pin is immediately activated,
,,tq~u”$ the interrupt initiating the event may have occurred
.<,x,,~w{earlier. Thus, there are cases where the program
a,f~~uldclear such earlier initiated interruptsbefore first
“bnabling new interrupts.
,i~y
When an interrupt event occurs, a flag bit is set to a “l” in
Register C. Each of the three interrupt sources have separate
flag bits in Register C, which are set independent of the state
of the corresponding enable bits in Register B. The flag bit
may be used with or without enabling the corresponding
enable bits.
In the software scanned case, the program does not
enable the interrupt.The “interrupt”flag bit becomes a
status bit, which the software interrogates, when it wishes.
When the software detects that the flag is set, it is an indication to software that the “interrupt’’eventoccurred since the
bit was last read.
However,there is one precaution.The flag bits in
Register C are cleared (record of the interrupt event is eras-
ed) when Register C is read. Double latching is included with
Register C so the bits which are set are stable throughout the
read cycle. All bits which are high when read by the program
are cleared, and new interrupts (on any bits) are held after
the read cycle. One, two or three flag bits may be found to
be set when Register C is used. The program should inspect
ail utilized flag bits every time Register C is read to insure that
no interrupts are lost.
The second flag bit usage method is with fully enabled interrupts. When an interrupt-flagbit is set and the corresponding interrupt-enablebit is also set, the ~Q pin is
asserted low. ~Q is asserted as long as at least one of the
three interrupt sources has its flag and enables bits both set.
The IRQF bit in Register C is a “l” whenever the ~Q pin is
being driven low.
The processor program can determine that the RTC in-
itiated the interrupt by reading Register C. A “l”in bit 7
...
.
@
MOTOROLASemiconductorProducts Inc.
12
Page 13
(IRQF bit) indicates that one or more interrupts have been initiated by the part. The act of reading Register C clears all the
then-active flag bits, plus the IRQF bit. When the program
finds IRQF set, it should look at each of the individual flag
bits in the same byte whichhave the corresponding
interrupt-maskbits set and service each interrupt which is
set. Again, more than one interrupt-flagbit may be set.
DIVIDER STAGES
The MC146818A has 22 binary-divider stages following the
time base as shown in Figure 1. The output of the dividers is
a 1 Hz signal to the update-cyclelogic. The divers are
controlledby three divider bus (DV2, DVI, and DVO) in
Register A.
DIVIDER CONTROL
The divider-controlbits have three uses, as shown in
Table 4. Three usable operating time bases may be selected
(4.184304 MHz, 1.048576 MHz, or 32.768 kHz).
chain may be held at reset, which allows precision setting of
The divider
operating time base, the first update cycle is one-half second
later. The divider-controlbits are also used to facilitate
testing the MC146818A.
SQUARE-WAVE OUTPUT SELECTION
Fifteen of the 22 divider taps are made available to a
1-of-1 5 selector as shown in Figure 1. The first purpose of
selecting a divider tap is to generate a square-wave output
signal at the SQW pin. The RSO-RS3 bits in Register A
establish the square-wave frequency as listed in Table 5. The
SQW frequency selection shares the 1-of-15 selector,$~ith
periodic interrupts.
Once the frequency is selected, the output of th:~~~~pin
,~):/,
~~.~....,.
......
‘~~,?.,,,,,,,:?,,,
may be turned on and off under program coq:g~{,~tih the
square-wave output selection bits, or the&~,~~~outputenable bit may generate an asymmetricm~~format the
time of execution. The square-wave out~@~J~has a number
of potential uses. For example, it ~~ ~+m as a frequency
,../&>“i,;...<**
standard for external use, a freqyen~$~?nthesizer,or could
be used to generate one or m%,&~,dlo tones under
Pro9ram
TABLE 5 – PE~~Q&~,)~TERRUPTRATE AND SQUARE WAVE OUTPUT FREQUENCY
,,8s3
,.,. \*...
,> ~j$:
“‘J:{.*..,:\:\,.
!\)>32.768 kHz
,:ti ~‘$8, ~
<..:.,
..JX:{$:,*
.Ji+t,.,,>!,.:.
.-.~,s;.:-,
,,.,.:.’”*‘ ..~.\\\,o011
o010
o100244.141 #S
o101=.281PS
\,,\..
..$>,..
....
....
.
o110
0111
1000
1001
1
1
1100
1101125
1110
1111
L&’’”
!,,\”.
l’:
$s<.,
,,r.\\e:,$h,y,:~~...-
,$~$~~~jits
$~ #~iaterA
2RS1RSO
“*%
;;
Interrupt Rate
01015.625 m
01
1
4.1=or 1.046676 MHz
Tme Base
PeriodicPeriodic
tpl
3;;,s
61.035 PS
122.070 ~S
976.562
1.953125 ms512 HZ
3.90625 ms
7.8125 m
31,25 ms32 HZ
62.5 ms
250 ms
500 ms2 Hz
SQW
output
Frequency
None
16.384 kHz7.8125 ms
8.192 kHz
4.096 kHz
2.048 kHz
1.024 kHz976.562 BS
US
Interrupt Rate
I
I256 Hz3.90625 ms
HZ7,8125 ms
1s
1sR4 H7I 15.625 ms64 Hz
ms8 Hz
128
I
16
HZ62.5 ms
4 Hz250 ms
1
t
32.768 kHz
Time Base
tpl
None
3.90625
122.070
244.141
W.281
1.953125
31.25 ms
125 ms
500 ms2 Hz
SQW Output
Frequency
ms
~S8.192 kHz
flS4.@6 kHz
PS2.048 kHz
ms512 HZ
1
None
256 HZ
128
1.024
256
128
32
16
8
4 Hz
HZ
HZ
MOTOROLASemiconductorProducts Inc.
13
HZ
kHz
HZ
HZ
HZ
I
Page 14
PERIODIC INTERRUPT SELECTION
The periodic interrupt allows the ~pin to be triggered
from once every 5W ms to once every 30.517 ps. The
periodic interrupt is separate from the alarm interrupt which
may be output from once per second to once per day.
Table 5 shows that the periodic interrupt rate is selected
with the same Register A bits which select the square-wave
frequency. Changing one also changes the other. But each
function may be separately enabled so that a program could
switch between the two features or use both. The SQW pin
is enabled by the SQWE bit in Register B. Similarly the
periodic interrupt is enabled by the PIE bit in Register B.
Periodic interruptis usable by practically all real-time
systems. It can be used to scan for all forms of inputs from
contact closures to serial recieve bits or bytes. It can be used
in multiplexingdisplays or with softwarecounters to
measure inputs, create output intervals, or await the next
needed software function.
UPDATE CYCLE
The MC14~18Aexecutes an update cycle once per
second, assuming one of the proper time bases is in place,
the DVO-DV2 divider is not clear, and the SET bit in Register
B is clear. The SET bit in the “l” state permits the program
to initialize the time and calendar bytes by stopping an ex-
isting update and preventing a new one from occurring.
The primary function of the update cycle is to increment
the seconds byte, check for overflow, increment the minutes
byte when appropriate and so forth through to the year of
the century byte. The update cycle also compares each
alarm byte with the corresponding time byte and issues an
alarm if a match or if a “don’t care” code (1IXXXXXX)is
present in all three positions.
With a 4.19~MHz or 1.048576 MHz time base thq$~~~+~$
date cycle takes 248 ps while a 32.708 kHz time base~
cycle takes 1984 ps. During the update cycle, the t~~~’~endar, and alarm bytes are not accessible by the p~$~s~~ program. The MCI%818Aprotects the progra~>~~% reading
transitional data. This protectionis provid~>~~switching
the time, calendar, and alarm portion,~~*~~# RAM off the
microprocessorbus during the entir~ up~ate cycle. If the
processor reads these RAM loca,@%&W~ore the update is
(,.:,
~~~,&*&
complete, the output will be undefined. The update in pro-
gress (UIP) status bit is set during the interval.
A program which randomly accesses the time and date information finds data unavailable statistically once every 4032
attempts. Three methods of accommodatingnonavailability
during update are usable by the program. In discussing the
three methods, it is assumed that at random points user programs are able to call a subroutine to obtain the time o$$gay.
The first method of avoiding the update cycle, ~~,~$%e
update-ended interrupt. If enabled, an interrupt @~@kS*after
every update cycle which indicates that oveb;~w,;.&s are
available to read valid time and date inforrn~~&$’’Buringthis
time a display could be updated or the i~fqw$$bncould be
transferred to continuouslyavailablq,t.&~~$,*Beforeleaving
the interrupt service routine, the ~~~~$ bit in Register C
should be cleared.
The second method uses t$~wate-in-progressbit (UIP)
in Register A to determin~;ti~~~%~update cycle is in progress
or not. The UIP bit will ,~j%,,$hceper second.
the UIP bit will indiq$~;~~~ttime and date informationis
unavailable once ~,~ery‘~~~ attempts. After the UIP bit goes
high, the updat~$’~~~,begins 244 ps later. Therefore, if a low
is read on th~~l~$it,the user has at least 2~ ws before the
time/cale@&d~ta will be changed. If a “l”is read in the
UIP bit, {~~@$fie/calendardata may not be valid. The user
shou~,davb$~ interrupt service routines that would cause the
ti~)~tiededto read valid time/calendardata to exceed
,p%;>
<<,j~%$~#e third method uses a periodic interrupt to determine if
%$s-J%update cycle is in progress. The UIP bit in Register A is set
“’”$high between the setting of the PF bit in Register C (see
,..:,‘,.
.!
~:)::.
Figure 15), Periodic interrupts that occur at a rate of greater
than tBUC+tUCallow valid time and date information to be
read at each occurrence of the periodic interrupt. The reads
should be completed within (Tpl + 2) + tBUC to ensure that
data is not read during the update cycle.
To properly setup the internal counters for daylight savings time operation, the user must set the time at least two
seconds before the rollover will occur. Likewise, the time
must be set at least two seconds before the end of the 29th
or 30th day of the month.
‘$+
“~,>$;:,4
.$,.? \..
Statistically,
Periodic Interrupt Time Interval (500 ms, 250 ms, 125 ms, 62,5 ms, etc. per Table 5)
tpl =
tuc = Update Cycle Time (2W ps or lWps)
tBUC = Delay Time Before Update Cycle (2M KS)
m
MOTOROLASemiconductorProducts Inc.
14
Page 15
REGISTERS
The MC146818A has four registers which are accessible to
the processor program. The four registers arealsofullyac-
cessible during the update cycle.
REGISTER A ($OA)
MSBLSBRead/ Write
b7b6b5b4b3b2blbO
UIPDV2DV1DVO RS3RS2RS1RSO
UIP – The update in progress (UIP) bit is a status flag that
may be monitored by the program. When UIP is a “l”,the
update cycle is in progress or will soon begin. When UIP is a
“U’, the update cycle is not in progress and will not be for at
least 244 ps (for all time bases). This is detailed in Table 6.
The time, calendar, and alarm informationin RAM is fully
available to the program when the UIP bit is zero – it is not
in transition.The UIP bit is a read-only bit, and is not affected by Reset. Writing the SET bit in Register B to a “l”
inhibits any update cycle and then clears the UIP status bit.
TABLE 6 – UPDATE CYCLE TIMES
UIP Bit
1
11.046576 MHzZ& fls
132.766 kHzlw~s
o4.194304 MHz
o1.M576MHz
o32.766 kHz
Time Base
(Oscl)
4.lWWMHzZ@ ps
Update Cycle~me
(tuc)
—
—
—
Minimum Time
Before Update
Cycle (tBuC)
DV2, DVI, DVO – Three bits are used to permit the Dro-
gram to select various conditions of the 22-stage divider
chain. The divider selection bits identify which of the thre:~
time-base frequencies is in use. Table 4 shows that tJ,ti’&j2,
bases of 4.194304 MHz, 1.046576 MHz, and 32.7~ k~~)~~,‘“
be used. The divider selection bits are also used to$,~j&~,J~&
divider chain. When the time/calendaris first ini~~t~~:~~the
program may start the divider at the precise,~~$~&redin
the RAM, When the divider reset is removed;~~~:~wt update
cycle begins one-half second later. Thes%.th~e read/write
bits are not affected by RESET.~d’”: >~-
..
..:.,\~,
,{.,!$.~..$..*.,.>*,,,
~
;.i
RS3, RS2, RS1, RSO – The fo$~ ray selection bits select
one of 15 tapes on the 22-sta~.~W~~&@P,or disable the divider
output. The tap selected may ~.~hed to generate an output
square wave (SQW pin) ~i~or&periodic interrupt. The program may do one of ~~~~wing:1) enable the interrupt
with. the PIE bit, ~~~~~lethe SQW output pin with the
SQWE bit, 3) en@’~that the same time at the same rate,
or 4) enable n,g~w~~~”able 5 lists the periodic interrupt rates
and the sqq~re-.g%ve frequencies that may be chosen with
the RS ~j~%h@efour bits are readlwrite bits which are not
affecte,~Q~’%ES ET.
~,.,1,
$,,,,.)e~,{.,
REGl~EiB ($OB)
MSBLSB
b71b61b51b41b31b21blbO
I PIE I AIE ] UIEI SQWEI DM ] 24/12 I DSE
SET
SET – When the SET bit is a “O’, the update cycle functions normally by advancing the counts once-per-second.
When the SET bit is written to a “1”, any update cycle in
Register
except UIP
—
—
—
244 fis
244 ps
244 fis
Read/ Write
Register
progress is aborted and the program may initialize the time
and calendar bytes without an update occurring in the midst
of initializing. SET is a read/writebit which is not modified
by RESET or internal functions of the MC146818A.
PIE – The periodicinterruptenable (PIE) bit is a
read/writebit which allows the periodic-interruptflag (PF)
bit in Register C to cause the l~pinto be driven low. A program writes a “1” to the PIE bit in order to receive periodic
interrupts at the rate specified by the RS3, RS2, RSI, and
RSO bits in Register A, A zero in PIE blocks l~Q from being
initiated by a periodic interrupt, but the periodic flag (P~) bit
is still set at the periodic rate. PIE is not modified b~,a~&$~o-
AIE – The alarm interrupt enable (Al E) ~T$f&j&i$&ad/write
bit which when set to a “1” permits the @~rfl~~& (AF) bit in
Register C to assert IRQ. An alarm inte~~@’\$occurs for each
second that the three time bytes e~~~~~~&i?hree alarm bytes
(including a “don’t care” alarm &od&tQ~ binary 1IXXXXX).
When the AIE bit is a “U’, the ~~~jt does not initiate an ~Q
signal. The RESET pin cle~f~~s~~% “V’. The internal functions do not affect the ,~~,t~t~
UIE – The UIE (q~~~~~%%ded interrupt enable) bit is a
read/write bit which e’, ~7~s the updat%end flag (UF) bit in
Register C to a@~,,lfThe RESET pin going low or the
SET bit goin~~~~~c~ears the UIE bit.
.4,
%
:$,.
SQW~;~~&&nthe square-wave enable (SQWE) bit is set
to a “l’’k~~the program, a square-wave signal at the frequ~~y spefified in the rate selection bits (RS3 to RSO) ap-
W$S @ the SQW pin. When the SQWE bit is set to a zero
,,,,,~@e~QW pin is held low. The state of SQWE is cleared by
,,~,;~~~~”k ESET pin. SQWE is a read/write bit.
*$:=:,.,:.
+:,8 DM – The data mode (DM ) bit indicates whether time
.1,..,}
and calendar updates are to use binary or BCD formats. The
?’
DM bit is written by the processor program and maybe read
by the program, but is not modified by any internal functions
or RESET. A “l” in DM signifies binary data, while a “U’ in
DM specifies binary-coded-decimal(BCD) data.
24/12 – The 24/12 control bit establishes the format of
the hours bytes as either the 24hour mode (a “l”)or the
12-hour mode (a “U’), This is a read/write bit, which is affected on Iy by software.
DSE – The daylightsavings enable (DSE) bit is a
readlwritebit which allows the program to enable two
special updates (when DSE is a “1”). On the last Sunday in
April the time increments from 1:59:59 AM to 3:00:00 AM.
On the last Sunday in October when the time first reaches
1:59:59 AM it changes to 1:00:00 AM. These special updates
do not occur when the DSE bit is a ‘JO’. DSE is not changed
by any internal operations or reset.
REGISTER C ($OC)
MSB
b7/b61b51b4b3bbl I bO
IRQFIPFIAFIUFIOIOjOIO
LSB
Read-Only
IRQF – The interrupt request flag (IRQF) is set to a “l”
when one or more of the following are true:
PF=PIE=”I”
AF=AIE=”I”
UF=UIE=”I”
i.e., IRQF= PF*PIE+ AF*AIE+UF*UIE
Register
1—@MOTOROLA
SemiconductorProducts Inc.
15
Page 16
Any time the IRQF bit is a “l”,the 1~ pin is driven low.
All flag bits are cleared after Register C is read by the program or when the RESET pin is low.
PF – The periodicinterruptflag (PF) is a read-onlybit
which is set to a “l”when a particularedge is detected on
the selected tap of the divider chain. The RS3 to RSO bits
establish the periodic rate. PF is set to a “l”independentof
the state of the PIE bit. PF being a “l”initiates an ~signal
and sets the IRQF bit when PIE is also a “l”.The PF bit is
cleared by a RESET or a softwareread of Register C.
AF – A “l”in the AF (alarm interruptflag) bit indicates
that the current time has matched the alarm time. A “l”in
the AF causes the ~pin to go low, and a “l” to appear in
the IRQF bit, when the AIE bit also is a “1 .“ A RESET or a
read of Register C clears AF.
UF – The update-endedinterruptflag (UF) bit is set after
each update cycle. when the UIE bit is a “l”,the “l”in UF
causes the IRQF bit to be a “l”,asserting 1~.UF is cleared
by a Register C read or a RESET.
b3 TO bO – The unused bits of Status Register 1 are read
as “O’s”. They can not be written.
REGISTERD ($OD)
MSBLSB
b7b6b5
o0
VRT
VRT – The valid RAM and time (VRT) bit indicatesthe
conditionof the contentsof the RAM, providedthe power
sense (PS) pin is satisfactorilyconnected.A “O” appears in
the VRT bit when the power-sensepin is low. The processor
program can set the VRT bit when the time and calendar are
initializedto indicate that the RAM and time are valid. The
VRT is a read only bit which is not modifiedby the RES~T
pin. The VRT bit can only be set by reading Register Q:~?~,,
b4b3b2blbO
00000
FIGURE ~@~~:*l&18AINTERFACED WITH
MOTOROLA COM,,@~~J@& MULTIPLEXED BUS MICROPROCESSORS
Read Only
Register
.,\,.,
b6 TO bO – The remainingbits of Register D are unused.
They cannot be written,but are always read as “OS. ”
TYPICALINTERFACING
The MC146818Ais best suited for use with microproces-
sors which generatean address-then-datamultiplexedbus.
Figures 16 and 17 show typical interfacesto bus-compatible
processors.Theseinterfacesassumethatthe address
decodingcan be donequickly.However,if standard
metalgateCMOS gates are used, the C—Ssetup time may be
Thereis one methodof usin~.+~~~~@ultiplexedbus
MC146818Awith non-multiplexed*S ~pcessors.The interface uses availablebus control ~ign’&#’tomultiplexthe address and data bus togetherik’~:~~~
An example using eitha~t~b:~~otorolaM CWOO, MC6802,
MCW08,or MC6809 ~~a&$r,~essoris shown in Figure 20.
When the MC14681~/&~,~mappedas shown in Figures 19
and 20, the AS and D\%,~inputs should be left in a low state
when the part
descriptionJ@~l\~conditionswhichmust be met before
STBY ca~, ~~ r,~ognized,
Figur~~:? fl!~ftrates the subroutineswhich maybe used for
dat~jtrans%rsin a non-multiplexedsystem. The subroutines
:h~u~.beentered with the registers containingthe following
;&8f&; “t:
$Q,f$:?@~&cumulator A: The address of the RTC to be accessed.
‘~~~~> AccumulatorB: Write: The data to be written.
~~..~t
.:!A
l,-
The RTC is mapped to two consecutivememory locations–
This illustrates the use of CMOS gating for address decoding.
‘1
MOT
CKOUT
——
AS RIW IRQ
MC146818A
CKFS
A4I
~D
STBYSQW
EII
ADO-AD7
4. IW304 MHz
(Typ)
F
@
MOTOROLASemiconductorProducts Inc.
17
Page 18
FIGURE 19 – MCl~18AINTERFACED WITH THE PORTS OF A
.-—
TYPICAL SINGLE CHIP MICROCOMPUTER
4. 193W MHz (Tvp)
—
MC3870
MC6805
MC 146805
S2000
8021
t
I
I
I
L———
* NOTE: C= can be controlled by a port pin (ifJav}#able).
——
*.<$
a
DO-D7
@
AS
~ADo-AD7
Vss
MOTOROLASemiconductorProducts Inc.
18
STBY
Power
Failure
Circuit
fl_
(See STBY
Description)
—
Page 19
FIGURE 21 – SUBROUTINE FOR READING AND WRITING
THE MCl@18AWITH A NON-MULTIPLIEDBUS
READ
WRITE
STARTC
LDABRTC+ 1
RTS
STARTC
STABRTC+ 1
RTS
B
MOTOROLASemiconductorProducts Inc.
19
Page 20
PACKAGEDIMENSIONS
Motorolareserves the right to make changes without further notice to any products herein to improve reliability, function or design. Motorola does
not assume any liability arising out of the applicationor use of any product or circuit describedherein; neither does it convey any license under its
patent rights nor the rights of others. Motorola and @areregistered trademarks of Motorola,
Affirmative Action Employer.
m
MOTOROLASemiconductorProducts inc.
3501 ED BLUESTEIN BLVD., AUSTIN< TEXAS 78721 . A SUBSIDIARY OF MOTOROLA INC.
Inc. Motorola, Inc. is an Equal Employment Opportunity/
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.