EPSON RTC

http://www.spezial.cz - - - [email protected] - - - Hotlines: Tel (02) 2434 2200 - - - Fax (02) 2434 3200
CONTENTS
n Overview .............................................................................................................................................. 1
n Features............................................................................................................................................... 1
n Pin connections .................................................................................................................................. 1
n Block diagram ..................................................................................................................................... 1
n Pin functions ....................................................................................................................................... 1
n Characteristics .................................................................................................................................... 1
1. Absolute maximum ratings ........................................................................................................................ 1
2. Operating Conditions................................................................................................................................. 1
3. Frequency characteristics .......................................................................................................................... 1
4. DC characteristics ..................................................................................................................................... 1
5. AC characteristics ..................................................................................................................................... 1
6. Timing chart .............................................................................................................................................. 1
7. Data hold timing ........................................................................................................................................ 1
n Registers.............................................................................................................................................. 1
1. Register table ............................................................................................................................................ 1
2. Notes ........................................................................................................................................................ 1
n Register functions............................................................................................................................... 1
1. Date and time registers.............................................................................................................................. 1
2. Reset register (Control register D).............................................................................................................. 1
3. Reference signal (Control registers E and F) .............................................................................................. 1
n Package dimensions........................................................................................................................... 1
(1)RTC-58321 ............................................................................................................................................... 7
(2)RTC-58323 ............................................................................................................................................... 7
n Marking layout..................................................................................................................................... 1
n Application notes ................................................................................................................................ 1
EPSON
4BIT REAL TIME CLOCK MODULE with I/O CONNECTIONS
RTC-58321/58323
n Overview
The RTC-58321/58323 is a CMOS real time clock modules with perpetual calendar function developed for microcomputer applications.
It has a built-in 32.768 kHz quartz resonator, and provides clock and calendar registers for year, month, day, day-of-week, hours, minutes and
seconds, with 12-hour/24-hour selection, plus automatic leap-year correction with software selection for local calendars, and an additional
periodic reference signal output.
Being a CMOS device, it has a very low power consumption for battery back-up purposes.
n Features
l
l
l
l
l
l
l
l
l
Adjustment-free built-in quartz resonator keeps component count low.
Built-in clock and calendar registers for year, month, day, day-of-week, hours, minutes and seconds.
12-hour/24-hour selection.
Automatic leap-year correction, with software selection for local calendars.
Counter start, stop and reset functions.
Periodic reference signal output selectable: 1024 Hz, or 1 second, 1 minute or 1 hour intervals.
Data bus is 4-bit bidirectional, with memory-type reads and writes.
CMOS device, for very low power consumption, and long battery back-up period.
Compatible at pin and function levels with the MSM58321 RS.
n Pin connections
1. CS2
2. WRITE
3. READ
14 to 16. VDD
13. CS1
12. TEST
4. D0
11. STOP
5. D1
10 BUSY
9. ADDRESS WRITE
6. D2
7. D3
8. GND
* Connect power supply positive side to pin 16.
1 to 4. NC
18 to 24. VDD
5. CS2
17. CS1
6. WRITE
16. TEST
7. READ
15. STOP
8. D0
14. BUSY
9. D1
10. D2
11. D3
13. ADDRESS WRITE
12. GND
NC: Pins are fixed low.
* Connect power supply positive side to pin 24.
Page - 1
RTC-58321/58323
n Block diagram
1024Hz
32.768 kHz
quarts oscillator
DATA BUS
TEST
1/2 15
OSC
R
BUSY
R
1Hz
1/10|1/6
Seconds
BUSY
or
1/12|1/24
Hours
1/10|1/6
Minutes
1/7
Day-of week
1/10|1/3
Day
1/12
Month
1/10|1/10
Year
S10
N
D
1Hz
S1
1/60Hz
M11
M110
H1
H10
W
D1
D10
MO1 MO10
Y1
Y10
1/3600Hz
1024H
z
STOP
R1’
TEST
E, F
SWITCH
ADDRESS
LATCH
R1’
D10’
D11’
D12’
D13’
WRITE
R1’
READ
CS1
ADDRESS
WRITE
D0
D1
D2
D3
A1
A2
A3
R1’
CS2
A1'
TRI-STATE
CONTROL
R1’
R1’
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E-F
S1
S10
M11
M110
H1
H10
W
D1
D10
M01
M010
Y1
Y10
D
E-F
R1’
u Rp = 200KΩ TYP
n Pin functions
Pin numbers
Pin symbol
Input/output
Function
RTC-58321
RTC-58323
1
5
CS2
Input
Chip select. When high, device can be accessed.
2
6
WRITE
Input
Set high to write.
3
7
READ
Input
Set high to read.
4 to 7
8 to 11
D0 to D3
Both
Address/data bus.
8
12
GND
9
13
ADDRESS
WRITE
Input
10
14
BUSY
Output
11
15
STOP
Input
1 Hz on/off control pin. When high, the 1 Hz signal is disabled, and
the counter stopped.
12
16
TEST
Input
Increment pin for the counter. Normally this pin should be fixed low.
13
17
CS1
Input
Connect to power down detection circuit. (Fix high if there is no
power down detection circuit.) When CS1 is low, chip cannot be
accessed, regardless of state of CS2.
Negative power supply.
Address latch. Set high to latch address from D0 to D3.
1 Hz output pin.
*
1 to 4
NC
Fix low.
14 to 16
18 to 24
VDD
Positive power supply (normally +5 V).
* A bypass capacitor (minimum 0.01 µF) must be connected between VDD and VSS, as close as possible.
Page - 2
EPSON
n Characteristics
1. Absolute maximum ratings
Item
Symbol
Conditions (Pins)
Rated Value
Unit
Power supply voltage
VDD
Ta = 25°C, VDD-VSS
-0.3 to +7.0
V
Input voltages
VI
Ta = 25°C input pins
-0.3 to VDD +0.3
V
Output voltages
VO
D0 to D3
Storage temperature
TSTG
Temperature stored as
separate item.
-0.3 to VDD +0.3
V
Soldering temperature
TSOL
RTC-58321
Maximum 260°C for up to 10 seconds (pins);
package maximum 150°C.
RTC-58323
Maximum 260°C for up to 10 seconds (twice maximum), or
maximum 230°C for up to three minutes.
RTC-58321
-55 to +85
°C
RTC-58323
-55 to +125
°C
2. Operating Conditions
Item
Symbol
Min.
Typ.
Max.
Unit
Notes
Power supply
VDD
4.5
5.0
5.5
V
VDD-VSS
Data hold voltage *1
VDH
2.2
−
5.5
TOP
-10
−
70
-30
−
85
Operating
RTC-58321
temperature
RTC-58323
*1 Data hold voltage:
°C
This is the range of power supply voltage for which the internal operation of the clock is guaranteed.
I/O operations are not guaranteed.
3. Frequency characteristics
Item
Symbol
RTC-58321 A
Frequency
tolerance
RTC-58321 B
∆f/fO
Conditions
Max.
Ta = 25°C
± 10
VDD = 5.0V
fa
Ta = 25°C :VDD = 5.0V ; first year
±5
ppm/y
ppm
ppm
Temperature characteristics *2
tOP
VDD = 5.0V ; Ta = -10 to 70°C
+ 10/-120
Voltage characteristics
fV
VDD = 2.2 to 5.5V
Ta fixed, 5V reference
±2
*2 Deviation from the frequency at 25°C.
Notes
ppm
5 ± 20
RTC-58323
Aging
± 50
Unit
1. Frequency tolerance based on VDD = 5.0 V.
2. Frequency tolerance is value guaranteed on factory shipment.
Page - 3
RTC-58321/58323
4. DC characteristics
RTC-58321 (VDD = 5V ± 0.5V, Ta = -10 to 70°C)
RTC-58323 (VDD = 5V ± 0.5V, Ta = -30 to 85°C)
Item
Symbol
Conditions
Min.
High input voltage
VIH1 *1
3.6
V
VIH2 *2
VDD - 0.5
V
Low input voltage
VIL
Low output voltage
VOL
IOL = 1.6mA
Low output current
IOL
VOL = 0.4V
1.6
High input current
IIH *3
VIH = 5V
10
Typ.
Max.
Unit
0.8
V
0.4
V
mA
30
80
µA
Low input current
IIL *3
VIL = 0V
-1
µA
Input leakage current
ILIH
VIH = 5V
1
µA
Input off-state leakage current
ILIL
VIL = 0V
Input capacity
CI
f = 1MHz
Current consumption
IOP
VDD = 5V
VDD = 3V
Oscillation start time *6
tOSC
-1
5
pF
*4
100
500
*5
20
40
*4
15
30
*5
7
20
1.5
3.0
VDD = 5V
µA
sec.
Ta = 25°C
*1
*2
*3
Pins CS2, WRITE, READ, ADDRESS WRITE, STOP, TEST and D0 to D3
CS1
Pins CS1, CS2, WRITE, READ, ADDRESS WRITE, STOP and TEST
*4
CS1 and CS2 high, BUSY Open-circuit
*5
CS1, CS2 and BUSY Open-circuit
*6
Confirmed by BUSY
5. AC characteristics
Q
RTC-58321 (VDD = 5V ± 0.5V, Ta = -10 to 70°C)
RTC-58323 (VDD = 5V ± 0.5V, Ta = -30 to 85°C)
Item
Symbol
Conditions
Min.
Typ.
Max.
Unit
Chip select set-up time
tCS
−
0
−
−
µS
Address set-up time
tAS
−
0
−
−
µS
Address write pulse width
tAW
−
0.5
−
−
µS
Address hold time
tAH
−
0.1
−
−
µS
Data set-up time
tDS
−
0
−
−
µS
Write pulse width
tWW
−
2
−
−
µS
Data hold time
tDH
−
0
−
−
µS
Read inhibit time
tRI
−
0
−
−
µS
Read access time
tRA
−
−
−
Q
µS
Read delay time
tDD
−
−
−
1
µS
Chip select hold time
tCH
−
0
−
−
µS
tRA = 1µS + C×R×ln
C
R
VHmin
ln
V DD
V DD − V H min
: capacitance of data line
: pull-up resistance
: high voltage level of IC connected to data line
: natural logarithm
Page - 4
EPSON
6. Timing chart
CS1
CS2
Data invalid
tCS
tAS
tAW
tAH
tDS
tWW
tDH
tRI
tRA
D0 to D3
tDD
tCH
Data valid
High impedance
Address write
Write
Read
Address bus in IC
Data bus in IC
Address
Data-read
Data-write
7. Data hold timing
VDD
4.5V
4.5V
2.2 to 4.5V
tCDR
CS1
tR
VIH2
VIH2
VIL
IC can interact
with external circuit
CS1 ≤ 0.8V
Data hold mode
CS2 or WR must not be activated.
Page - 5
VIL
IC can interact
with external circuit
RTC-58321/58323
n Registers
1. Register table
Address
D3
D2
D1
D0
Register
(hexadecimal)
(A3)
(A2)
(A1)
(A0)
name
D3
DATA
0
0
0
0
0
S1
s8
s4
s2
s1
0 to 9
Seconds units register
1
0
0
0
1
S0
*
s40
s20
s10
0 to 5
Seconds tens register
2
0
0
1
0
MI1
mi8
mi4
mi2
mi1
0 to 9
Minutes units register
3
0
0
1
1
MI10
*
mi40
mi20
mi10
0 to 5
Minutes tens register
4
0
1
0
0
H1
h8
h4
h2
h1
0 to 9
Hours units register
5
0
1
0
1
H10
24/12
pm/am
h20
h10
0 to 1 or 0 to 2
Hours tens register
6
0
1
1
0
W
*
w4
w2
w1
0 to 6
Day-of-week register
7
0
1
1
1
D1
d8
d4
d2
d1
0 to 9
Day units register
8
1
0
0
0
D10
9
1
0
0
1
MO1
A
1
0
1
0
MO10
*
B
1
0
1
1
Y1
y8
C
1
1
0
0
Y10
y80
D
1
1
0
1
*
E
1
1
1
0
1hour
F
1
1
1
1
D2
Leap year select
mo8
Count value
D1
Notes
D0
d20
d10
0 to 3
Day tens register
mo2
mo1
0 to 9
Month units register
*
*
mo10
0 to 1
Month tens register
y4
y2
y1
0 to 9
Year units register
y40
y20
y10
0 to 9
Year tens register
*
*
*
mo4
1minute 1second
1024Hz
Reset register
Reference signal registers
2. Notes
(1) The device uses positive logic, and a logic high voltage corresponds to a 1 in a register bit.
(2) Do not set the clock to impossible dates (17:34 pm on February 30th, for example). The results are unpredictable.
(3) When the device is powered on, the initial settings of all bits are undefined.
n Register functions
1. Date and time registers
(1) The register values are in BCD, and used positive logic.
E.g.(S8, S4, S2, S1) = (1, 0, 0, 1) = 9 seconds
(2) Day-of-week register
The value is coded as 0 to 6, with Sunday = 0.
Code
Day
0
1
2
3
4
5
6
Sun.
Mon.
Tue.
Wed.
Thu.
Fri.
Sat.
(3) pm/am, h20 and h10 registers
The range of these values depends on whether the 12-hour or 24-hour clock is being used.
The pm/am bit is used only when the 12-hour clock is selected.
Set D3 to 1 for the 24-hour, and to 0 for the 12-hour clock.
Set D2 to 1 for pm and to 0 for am. Writing a 1 to bit D3 automatically resets bit D2 to 0.
Selection
Value range
12-hour clock
12:00 to 11:59 am and pm *
24-hour clock
00:00 to 23:59
* Note: 12:00 am represents 12:00 midnight, and 12:00 pm represents 12:00 noon.
(4) Y1 and Y10 Leap year selection
Bits D3 and D2 of the day tens register select the year value module 4 to be used for leap years.
Calendar
D3
D2
Value module 4 for leap year
Standard calendar
0
0
0
0
1
3
1
0
2
1
1
1
(5) Do not set the clock to impossible dates (17:34 pm on February 30th, for example). The results are unpredictable.
Page - 6
EPSON
2. Reset register (Control register D)
15
Select this register to reset the last five stages of the 1/2 divider, and the busy circuit.
Latch the hexadecimal value D using the ADDRESS LATCH pin, and set WRITE high to carry out the reset.
3. Reference signal (Control registers E and F)
Latch the hexadecimal value E or F using the ADDRESS LATCH pin, and set WRITE high to obtain the reference signal values on D0 to D3.
n Package dimensions
(1) RTC-58321
(Unit:mm)
(2) RTC-58323
Page - 7
RTC-58321/58323
n Marking layout
Frequency tolerance
RTC58321 B
EPSON 4162 C
Logo
Note:
The illustration is a general representation of the content and the location of information on the label, and is not a detailed
specification of the typeface, size or positioning of printing used on the label.
n Application notes
(1) In order to realize low-power operation, the device has a high impedance; the shaded portion in the figure below is highly susceptible to
inductance effects, and should be kept clear of signal lines.
16
15
14
13
12
11
10
9
RTC-58321
1
2
3
4
5
6
7
8
24 23 22 21 20 19 18 17 16 15 14 13
RTC-58323
1
2
3
4
5
6
7
8
9
10 11 12
(2) Power supply filter capacitor
To ensure stable operation against transients and noise, connect a bypass capacitor of at least 0.01 µF (ceramic) across the power supply,
close to the device.
(3) This device passes a drop test (from 75 cm onto a hard board), but it is possible for the crystal resonator to be damaged by the shocks
produced by some mounting equipment. It is important to confirm that the mounting conditions for the equipment being used do not
adversely affect performance. Re-check if any of the mounting conditions change.
(4) There is a possibility of damage to the crystal resonator during ultrasonic cleaning. Because of the wide variation of conditions in ultrasonic
cleaning equipment, the performance of this device is not guaranteed if it is subject to ultrasonic cleaning.
(5) This is a CMOS device, and the standard precautions against static electricity should be taken.
Page - 8