MSM 6242 B
MSM 6242 B
MSM6242B
DIRECT BUS CONNECTED CMOS REAL TIME CLOCK/CALENDAR
DESCRIPTION
The MSM6242B is a silicon gate CMOS Real (STANDARD PULSE) output utilizing Con-
Time Clock/Calendar for use in direct bus- trol Register inputs T0, T1 and the ITRPT/
connection Microprocessor/Microcomputer STND (INTERRUPT/STANDARD). Mask-
applications. An on-chip 32.768 kHz crystal ing of the interrupt output (STD.P) can be
oscillator time base is divided to provide ad- accomplished via the MASK bit. The
dressable 4-bit I/O data for SECONDS, MIN- MSM6242B can operate in a 12/24 hour for-
UTES, HOURS, DAY OF WEEK, DATE, mat and Leap Year timing is automatic.
MONTH and YEAR. Data access is controlled
by 4-bit address, chip selects (CS0, CS1), The MSM6242B normally operates from a 5 V
WRITE, READ, and ALE. Control Registers ±10% supply at –40 to +85°C. Battery backup
D, E and F provide for 30 SECOND error operation down to 2.0 V allows continuation
adjustment, INTERRUPT REQUEST (IRQ of time keeping when main power is off. The
FLAG) and BUSY status bits, clock STOP, MSM6242B is offered in a 18-pin plastic DIP
HOLD, and RESET FLAG bits, 4 selectable and a 24-pin plastic Small Outline package.
INTERRUPTS rates are available at the STD.P
FEATURES
23:59:59 12 31 80 7
1/23
FEDL6242B-02
XT
1 Hz
32.768 kHz XT OSC COUNTER
30 sec
ADJ bit 24/12 bit
D3
D2
GATE
WR
GATE
A3
GATE & LATCH
64 Hz STD.P
DECODER
A2 S1
1-sec carry
A1 S CD CE CF 1-min carry
A0 CF 1-hour carry
CS0
ALE
PIN CONFIGURATION
2/23
FEDL6242B-02
C 1 1 0 0 W * w4 w2 w1 0 to 6 Week register
30
IRQ
D 1 1 0 1 CD sec. BUSY HOLD — Control Register D
FLAG
ADJ
ITRPT/
E 1 1 1 0 CE t1 t0 MASK — Control Register E
STND
REST = RESET
ITRPT/STND = INTERRUPT/STANDARD
Note 1) Bit * does not exist (unrecognized during a write and held at "0" during a read).
Note 2) Be sure to mask the AM/PM bit when processing 10's of hour's data.
Note 3) BUSY bit is read only. The IRQ FLAG bit can only be set to a "0". Setting the IRQ FLAG to a "1" is done by
hardware.
Note 4) PM at 1 and AM at 0 for PM/AM bit.
3/23
FEDL6242B-02
0 1
Ta = 25°C
0
∆f/f (PPM)
∆f/f (PPM)
–1
–50
–2
5V –3
2V
–100 –4
–60 –40 –20 0 20 40 60 80 0 1 2 3 4 5 6
Ta (°C) VDD (V)
Figure 2 Frequency Deviation (PPM) vs Temperature Figure 3 Frequency Deviation (PPM) vs Voltage
Note: 1. The graghs above showing frequency deviation vs temperature/voltage are primarily characteristic of the
MSM6242B with the oscillation circuit described below.
XT XT
Crystal: Type N0, P3 by kinseki (32.768 kHz)
4/23
FEDL6242B-02
OPERATING CONDITIONS
DC Characteristics
(VDD = 5 V ±10%, Ta = –40 to +85)
Applicable
Parameter Symbol Condition Min. Typ. Max. Unit
Terminal
"H" Input Voltage VIH1 — 2.2 — — All input termin-
V
"L" Input Voltage VIL1 — — — 0.8 als except CS1, XT
Input terminals
Input Leak Current ILK1 — — 1/–1 other than
VI = VDD/0 V µA D0 to D3, XT
SWITCHING CHARACTERISTICS
(1) WRITE mode (ALE = VDD)
(VDD = 5 V ±10% Ta = –40 to +85°C)
Parameter Symbol Condition Min. Max. Unit
CS1 Set up Time tC1S — 1000 —
CS1 Hold Time tC1H — 1000 —
Address Stable before
tAW — 20 —
WRITE
Address Stable after
tWA — 10 —
WRITE ns
CS1 VIH2 –
tC1S tC1H
A0 to A3 VIH1 –
CS0 VIL1 – VIH1 = 2.2 V
tAW tWW tWA VIL1 = 0.8 V
VIH1 –
WR tRCV VIH2 = 4/5VDD
tDS tDH VIL2 = 1/5VDD
D0 to D3 VIH1 –
(INPUT) VIL1 –
6/23
FEDL6242B-02
tC1S
CS1 VIH2 –
tAS tC1H
A0 to A3 VIH1 –
CS0 VIL1 – VIH1 = 2.2 V
tAH VIL1 = 0.8 V
VIH1 –
ALE VIH2 = 4/5VDD
VIL1 –
tAW tALW tWAL VIL2 = 1/5VDD
VIH1 – tWW tRCV
WR
VIL1 – tDH
tDS
D0 to D3 VIH1 –
(INPUT) VIL1 –
7/23
FEDL6242B-02
CS1 VIH2 –
tC1S tAR tRA tC1H VIH1 = 2.2 V
A0 to A3 VIH1 –
VIL1 = 0.8 V
CS0 VIL1 – VIH2 = 4/5VDD
VIH1 – tRCV VIL2 = 1/5VDD
RD VIL1 – VOH = 2.2 V
tRD tDR
D0 to D3 VOH – VOL = 0.8 V
"Z"
(OUTPUT) VOL –
8/23
FEDL6242B-02
— — ns
ALE before READ tALR 10
9/23
FEDL6242B-02
PIN DESCRIPTION
Pin No.
Name Description
RS GS-K
D0 14 19
Data Input/Output pins to be directly connected to a microcontroller bus for
D1 13 16
reading and writing of the clock/calendar's registers and control registers. D0 = LSB
D2 12 15 and D3 = MSB.
D3 11 14
A0 4 5 Address input pin for use by a microcomputer to select internal clock/calendar's
A1 5 7 registers and control registers for Read/Write operations (See Function Table
A2 6 9 Figure 1). Address input pins A0-A3 are used in combination with ALE for
A3 7 10 addressing registers.
Address Latch Enable pin. This pin enables writing of address data when ALE = 1
ALE 3 4 and CS0 = 0; address data is latched when ALE = 0 Microcontroller/Micro-
processors having an ALE output should connect to this pin; otherwise it should
be connected at VDD
Writing of data is performed by this pin.
WR 10 13 When CS1 = 1 and CS0 = 0, D0 to D3 data is written into the register at the rising
edge of WR.
Reading of register data is accomplished using this pin. When CS1 = 1, CS0 = 0
RD 8 11 and RD = 0, the data of this register is output to D0 to D3. If both RD and WR are
set at 0 simaltaneously, RD is to be inhibited.
CS0 2 2 Chip Select pins. These pins enable/disable ALE, RD and WR operation. CS0
and ALE work in combination with one another, while CS1 work independent
CS1 15 20 with ALE. CS1 must be connected to power failure detection as shown in Figure
18.
Output pin of N-CH OPEN DRAIN type. The output data is controlled by the
STD.P 1 1 D1 data content of CE register. This pin has a priority to CS0 and CS1.
Refer to Figure 9 and FUNCTIONAL DESCRIPTION OF REGISTERS.
RFB 5 MW VDD
XT
X'tal
C1 32.768 kHz STD.P OUTPUT
10/23
FEDL6242B-02
S1, S10, MI1, MI10, H1, H10, D1, D10, MO1, MO10, Y1, Y10, W
Table 1
w4 w2 w1 Day of Week
0 0 0 Sunday
0 0 1 Monday
0 1 0 Tuesday
0 1 1 Wednesday
1 0 0 Thursday
1 0 1 Friday
1 1 0 Saturday
11/23
FEDL6242B-02
Reading Method 2 when Not Using HOLD Bit Reading Method 3 when Not Using HOLD Bit
Initialization only at power ON Initialization only at power ON
• *1 and *2 represent the minimum required • *1 and *2 represent the minimum required
time out. time unit.
t1 *1 t1 *1
t0 *2 For example t0 *2 For example
ITRPT/STND 1 t1 = 0 and t0 = 1 when required to a ITRPT/STND 1 t1 = 0 and t0 = 1 when required to a
MASK 0 unit of second; MASK 0 unit of second;
t1 = 1 and t0 = 0 when required to a t1 = 1 and t0 = 0 when required to a
unit of minute; and CPU senses the unit of minute; and
t1 = 1 and t0 = 1 when required to a interruption. t1 = 1 and t0 = 1 when required to a
0 unit of hour; unit of hour;
IRQ FLAG
REGISTER CD READ
WAIT t
See Note NO
below Retried the reading, since a IRQ FLAG = 1
carry occurred during the The other IC causes
TIME DATA READ
operation. YES the interruption.
The interruption is caused by
REGISTER CD READ WAIT t this IC due to the occurrence
of a carry.
a) HOLD (D0) – Setting this bit to a "1" inhibits the 1Hz clock to the S1 counter, at which
time the Busy status bit can be read. When Busy = 0, register's S1 to W
can be read or written. During this procedure if a carry occurs the S1
counter will be incremented by 1 second after HOLD = 0 (this condition
is guaranteed as long as HOLD = 1 does not exceed 1 second in
duration). If CS1 = 0 then HOLD = 0 irrespective of any condition.
b) BUSY (D1) – Status bit which shows the interface condition with microcontroller/
microprocessors. As for the method of writing into and reading from
S1 to W (address φ to C), refer to the flow chart described in Figure 10.
c) IRQ FLAG (D2) – This status bit corresponds to the output level of the STD.P output.
When STD.P = 0, then IRQ = 1; when STD.P = 1, then IRQ = 0. The IRQ
FLAG indicates that an interrupt has occurred to the microcomputer if
IRQ = 1. When D0 of register CE (MASK) = 0, then the STD.P output
changes according to the timing set by D3 (t1) and D2 (t0) of register E.
When D1 of register E (ITRPT/STND) = 1 (interrupt mode), the STD.P
output remains low until the IRQ FLAG is written to a "0". When IRQ
= 1 and timing for a new interrupt occurs, the new interrupt is ignored.
When ITRPT/STND = 0 (Standard Pulse Output mode) the STD.P
output remains low until either "0" is written to the IRQ FLAG;
otherwise, the IRQ FLAG automatically goes to "0" after 7.8125 ms.
When writing the HOLD or 30 second adjust bits of register D, it is
necessary to write the IRQ FLAG bit to a "1".
d) ±30 ADJ (D3) – When 30-second adjustment is necessary, a "1" is written to bit D3
during which time the internal clock registers should not be read from
or written to 125 µs after bit D3 = 1 it will automatically return to a "0",
and at that time reading or writing of registers can occur.
12/23
FEDL6242B-02
START START
30-SECOND 30-SECOND
ADJ BIT = 1 ADJ BIT = 1
READ 30-SECOND
ADJ BIT NO
125 µs PASS?
NO YES
30-SECOND
ADJ BIT = 0?
END
YES (B)
END
(A)
Figure 11 Writing 30-Second Adj. bit (Two Ways A, B)
a) MASK (D0) – This bit controls the STD.P output. When MASK = 1, then STD.P
= 1 (open); when MASK = 0, then STD.P = output mode. The
relationship between the MASK bit and STD.P output is shown
Figure 12.
b) ITRPT/STND (D1) – The ITRPT/STND input is used to switch the STD.P output
between its two modes of operation, interrupt and Standard
timing waveforms. When ITRPT/STND = 0 a fixed cycle wave-
form with a low-level pulse width of 7.8125 ms is present at the
STD.P output. At this time the MASK bit must equal 0, while the
period in either mode is determined by T0 (D2) and T1 (D3) of
Register E.
c) T0 (D2), T1 (D3) – These two bits determine the period of the STD.P output in both
interrupt and Fixed timing waveform modes. The tables below
show the timing associated with the T0, T1 inputs as well as their
relationship to INTRPT/STND and STD.P.
Figure 12
Table 2
Duty CYCLE of "0" level when
t1 t0 Period
ITRPT/STND bit is "0".
0 0 1/64 second 1/2
0 1 1 second 1/128
1 0 1 minute 1/7680
1 1 1 hour 1/460800
13/23
FEDL6242B-02
PM12:00 PM1:00
OPEN
WHEN ITRPT/STND
BIT is "1" STD.P OUTPUT LOW LEVEL
d) The low-level pulse width of the fixed cycle waveform (ITRPT/STND = 0) is 7.8125 ms
independent of T0/T1 inputs.
e) The fixed cycle waveform mode can be used for adjustment of the oscillator frequency time
base. (See Figure 14).
f) During ±30 second adjustment a carry can occur that will cause the STD.P output to go low
when T0/T1 = 1, 0 or 1, 1. However, when T1/T0 = 0, 0 and ITRPT/STND = 0, carry does
not occur and the STD.P output resumes normal operation.
g) The STD.P output is held (frozen) at the point at which STOP = 1 while ITRPT/STND = 0.
h) No STD.P output change occurs as a result of writing data to registers S1 to H1.
a) REST (D0) – This bit is used to clear the clock's internal divider/counter of less than a
"RESET" second. When REST = 1, the counter is Reset for the duration of REST. In
order to release this counter from Reset, a "0" must be written to the REST
bit. If CSI = 0 then REST = 0 automatically.
b) STOP (D1) – The STOP FLAG Only inhibits carries into the 8192 Hz divider stage.
There may be up to 122 µs delay before timing starts or stops after
changing this flag; 1 = STOP/0 = RUN.
TIMING OF
"CARRY"
TO 8192 Hz
"CARRY" EXECUTED
Figure 13
c) 24/12 (D2) – This bit is for selection of 24/12 hour time modes. If D2 = 1–24 hour mode
is selected and the PM/AM bit is invalid. If D2 = 0–12 hour mode is
selected and the PM/AM bit is valid.
"24/HOUR/ Setting of the 24/12 hour bit is as follows:
12 HOUR" 1) REST bit = 1
2) 24/12 hour bit = 0 or 1
3) REST bit = 0
* REST bit must = 1 to write to the 24/12 hour bit.
d) TEST (D3) – When the TEST flag is a "1", the input to the SECONDS counter comes
from the counter/divider stage instead of the 15th divider stage. This
makes the SECONDS counter count at 5.4163 kHz instead of 1 Hz. When
TEST = 1 (Test Mode) the STOP & REST (Reset) flags do not inhibit internal
counting. When Hold = 1 during Test (Test = 1) internal counting is
inhibited; however, when the HOLD FLAG goes inactive (Hold = 0)
counter updating is not guaranteed.
14/23
FEDL6242B-02
AD3 D3 A/D D3
AD2 D2 D2
AD1 D1 A8 to A12 D1
AD0 D0 D0
A3 A3
A2 A8 to A15 A2
DECODER
DECODER
A8 to A15
S1 A1 S1 A1
S0 A0 S0 A0
IO/M CS0 IO/M CS0
Figure 15
D3 D3 BUS3 D3
D2 D2 BUS2 D2
D1 D1 BUS1 D1
D0 D0 BUS0 D0
A3 A3 A3
A2 A2 A2
A1 A1 A1
A0 A0 A0
DECODER DECODER
A4 to A15 CS0
VDD BUS 4-7 CS0
IORQ
ALE
MREQ G1 ALE ALE
RD RD RD RD
WR WR WR WR
G2
Note : It depends upon the switching
characterisrics decided by a X'tal used
for a Z80 that either of IORQ and MREQ
is used.
Figure 16 Figure 17
15/23
FEDL6242B-02
100 µF
3.9 V ★
4.7 µF (tantalum)
LITHIUM
BATTERY
★ (VFWD ≤ 0.3 V)
★ i.e. GERMANIUM
26 DIODE
18 kW 18
22 pF VDD VDD 17 15 pF
2 6 1
X1 INT SDT.P XT
11 3
ALE ALE
4.553 kHz 8 8 32.768 kHz
RD RD
3 10 10 16
X2 WR WR XT
22 pF MSM MSM 5 to 35 pF
80C49RS 6242BRS
12 4/14
DB0 A/D0
40 13 5/13
VCC DB1 A/D1
14 6/12
DB2 A/D2
15 7/11
DB3 A/D3
1 19 2
T0 DB7 CS0
38 15
P27 CS1
34 TR1 10 9
P17 VSS
kW
VSS 820
W
20
5.2 V
Figure 18
16/23
FEDL6242B-02
START VDD = 5 V
STD.P
Power On
Output = undifined
TEST Bit ← 0
REST Bit ← 0 1* = 2*
24/12 Bit ← 1* (1 or 0)
STOP Bit ← 1
REST Bit ← 0
24/12 Bit ← 2*
HOLD Bit ← 0
STOP Bit ← 0
Start Operation
2. Adjustment of Frequency
VDD
Screwdriver
18 17 16
VDD XT XT
CD, CF = (0, 0, 0, 0)
CE = (t1, t0, 0, 0)
SDT.P
VDD 1 2 3 d c
b 0.1 INCH
Frequency
counter 2 1
Eye
17/23
FEDL6242B-02
4 to 6 V
VDD 4V 4V
2 to 4 V 2 µs (MIN)
2 µs (MIN)
CS1 2V 4V
DD DD
5 1 5
V
5 DD
CS0 : H
or WR : H
MASK BIT ← 0
ITRPT/STND BIT ← 1
t1, t0 ← 1
Start interruption
CPU Activation
Read Register CD
NO
D2 = 1?
YES
NO
AM 9:00?
18/23
FEDL6242B-02
RIPPLE
OPERATING: 20 mV P-P
VCE (SAT.) = 0.1 V
BATTERY BACKUP: 0 mV RL
+5 V +5 V
RL M
22 4.7 µF C 100 Ω
µF
VDD 4.7
µF VDD
51 kΩ 10 kΩ 100 Ω MSM B
6242B 1.5 ¥ 2 = 3 V MSM
1.2 ¥ 3 = 3.6 V 6242B
DRY CELLS
Ni – Cd VSS
VSS
10 kΩ
Figure 19 Figure 20
220 Ω
~ 6.5 V
VDD 100 Ω D1
MSM RL +5 V
4.7 µF
6242B
1.2 ¥ 3 = 3.6 V
VSS Ni – Cd
Figure 21
4.7 µF: tantalum
SUPPLEMENTARY DESCRIPTION
• When "0" is written to the IRQ FLAG bit, the IRQ FLAG bit is cleared. However, if "0" is
assigned to the IRQ FLAG bit when written to the other bits, the 30-sec ADJ bit and the
HOLD bit, the IRQ FLAG = 1 and was generated before the writing and IRQ FLG = 1
generated in a moment then will be cleared. To avoid this, always set "1" to the IRQ
FLAG unless "0" is written to it intentionally. By writing "1" to it, the IRQ FLAG bit
does not become "1".
• Since the IRQ FLAG bit becomes "1" in some cases when rewriting either of the t1, t0, or
ITRPT/STND bit of register CE, be sure to write "0" to the IRQ FLAG bit after writing to
make valid the IRQ FLAG = 1 to be generated after it.
* The relationship between SDT.P OUT and IRQ FLAG bit is shown below:
open
STD.P OUT "L"
IRQ FLAG bit 1
0
approx. 1.95 ms
19/23
FEDL6242B-02
PACKAGE DIMENSIONS
(Unit : mm)
DIP18-P-300-2.54
20/23
FEDL6242B-02
(Unit : mm)
SOP24-P-430-1.27-K
Mirror finish
The SOP, QFP, TSOP, TQFP, LQFP, SOJ, QFJ (PLCC), SHP, and BGA are surface mount type
packages, which are very susceptible to heat in reflow mounting and humidity absorbed in
storage. Therefore, before you perform reflow mounting, contact Oki’s responsible sales person
on the product name, package name, pin number, package code and desired mounting
conditions (reflow method, temperature and times).
21/23
FEDL6242B-02
REVISION HISTORY
Page
Document
Date Previous Current Description
No.
Edition Edition
— Apr. 1995 — — First edition
FEDL6242B-02 Jun. 17, 2002 1 1 Partially changed contents of "Package" of
the FEATURES section.
— 20 Added the Package Dimensions section and
— 21 the Contents.
22/23
FEDL6242B-02
NOTICE
1. The information contained herein can change without notice owing to product and/or
technical improvements. Before using the product, please make sure that the information
being referred to is up-to-date.
2. The outline of action and examples for application circuits described herein have been
chosen as an explanation for the standard action and performance of the product. When
planning to use the product, please ensure that the external conditions are reflected in the
actual circuit, assembly, and program designs.
3. When designing your product, please use our product below the specified maximum
ratings and within the specified operating ranges including, but not limited to, operating
voltage, power dissipation, and operating temperature.
5. Neither indemnity against nor license of a third party’s industrial and intellectual
property right, etc. is granted by us in connection with the use of the product and/or the
information and drawings contained herein. No responsibility is assumed by us for any
infringement of a third party’s right which may result from the use thereof.
6. The products listed in this document are intended for use in general electronics equipment
for commercial applications (e.g., office automation, communication equipment,
measurement equipment, consumer electronics, etc.). These products are not authorized
for use in any system or application that requires special or enhanced quality and
reliability characteristics nor in any system or application where the failure of such system
or application may result in the loss or damage of property, or death or injury to humans.
Such applications include, but are not limited to, traffic and automotive equipment, safety
devices, aerospace equipment, nuclear power control, medical equipment, and
life-support systems.
7. Certain products in this document may need government approval before they can be
exported to particular countries. The purchaser assumes the responsibility of determining
the legality of export of these products and will take appropriate and necessary steps at
their own expense for these.
8. No part of the contents contained herein may be reprinted or reproduced without our
prior permission.