I2C-bus Serial Interface
Real Time Clock (8pin SSOP)
RS5C372B
■ OUTLINE
The RS5C372B is a CMOS type real-time c lock which is connected to the CPU via 2-wire and c apable of s erial
transmission of clock and calendar data to the CPU. The RS5C372B can generate various periodic interrupt
clock pulses lasting for long period (one m onth), and alarm interrupt can be m ade by days of the week, hours,
and minutes by two incorporated systems. Since an oscillation circuit is driven at a constant voltage, it
undergoes fluctuations of few voltage and consequently offers low current consum ption (0.5µ A at 3V). It also
provides an oscillator halt sensing function applicable for data validation at power-on and other occas ions and
32kHz clock output (CMOS output) for an external micro computer. The product also incorporates a time
trimming circuit that adjusts the clock with higher precision by adjusting any errors in crystal oscillator
frequencies based on signals from the CPU. The crystal oscillator may be selected between 32.768kHz or
32.000kHz types. Integrated into an ultra com pact and ultra thin 8 pin SSO P package, the RS5C372B is the
optimum choice for equipment requiring small sized and low power consuming products.
■ Features
● Time keeping voltage 1.45V to 6.0V
● Lowest supply current 0.5µA TYP (0.9µA MAX)
(0.9µA MAX) at 3V(-40 to +85°C)
● Connected to the CPU via only 2-wire (I
2
C-bus interface, max.400KHz, address 7bits)
● A clock counter (hours, minutes, and seconds) and a calendar counter (leap years, years, months, days,
and days of the week) in BCD codes
● Interrupt to the CPU (period of one month to half second, with interrupt flag, interrupt halt function)
(/INTR)
● Two systems of alarm functions (days of the week, hours, and minutes) (/INTR)
● Oscillation halt sensing to judge internal data validity
● Clock output of 32.768kHz(32.000kHz) ( output controllable via a register)
(32KOUT:CMOS push-pull output)
● Second digit adjustment by ±30 seconds
● Automatic leap year recognition up to the year 2099
● Oscillator of 32.768kHz or 32.000kHz may be used
● CMOS logic
● Package:8pin SSOP
2
*) I
C-bus is a trademark of PHILIPS ELECTRONICS N.V.
at 3V(25°C)
■ Block Diagram
32KOUT
OSCIN
OSCOUT
/INTR
32kHz OUTPUT
CONTROL
DIVIDER
CORREC
OSC
OSC
DETECT
-TION
DIV
INTERRUPT CONTROL
COMPARATOR_A
COMPARATOR_B
TIME COUNTER
(SEC,MIN,HOUR,WEEK,DAY,MONTH,YEAR)
ADDRESS
DECODER
SHIFT REGISTER
ALARM_A REGISTER
(WEEK,MIN,HOUR)
ALARM_B REGISTER
(WEEK,MIN,HOUR)
ADDRESS
REGISTER
- 1 -
VDD
VSS
SCL
I/O
CONTROL
SDA
RS5C372B
■ Pin Configuration
RS5C372B (8PIN SSOP)
32KOUT
SCL
SDA
VSS
1
2
3
45
8
7
6
VDD
OSCIN
OSCOUT
/INTR
TOP VIEW
■ Pin Description
SymbolPin NameDescription
SCL Shift clock input This pin is used to input shift clock pulses to synchronize data input/output to
and from the SDA pin with this clock. Up to 6V beyond VDD may be input.
SDA Serial input
output
This pin inputs and outputs written or read data in synchronization with shift
clock pulses from the SCL pin. Up to 6V beyond VDD may be input. This
pin functions as an Nch open drain output.
/INTR Interrupt
output
This pin outputs periodic interrupt pulses and alarm interrupt (ALARM_A,
ALARM_B) to the CPU. This pin is off when power is activated from 0V.
This pin functions as an Nch open drain output.
32KOUT 32K Clock
Output
This pin outputs 32.768kHz pulses (when 32.768kHz crystal is used),
It outputs 32.768kHz when power source is activated from 0V. This pin
functions as an CMOS push-pull output.
OSCIN
OSCOUT
Oscillator
circuit
input/output
These pins configure an oscillator circuit by connecting a 32.768kHz or
32.000kHz crystal oscillator between the OSCIN–OSCOUT pins.
(Any other oscillator circuit components are built into the RS5C372B.)
VDD
VSS
Positive power
supply input
Negative power
supply input
The VDD pin is connected to the positive power supply and Vss to the
ground.
- 2 -
■ Absolute Maximum Ratings
Symbol ItemConditionsRatingsUnit
VDD Supply Voltage -0.3 to +7.0V
VI Input Voltage SCL, SDA -0.3 to +7.0V
VO Output Voltage 1 SDA -0.3 to +7.0V
Output Voltage 2 /INTR -0.3 to +12.0
Output Voltage 3 32KOUT -0.3 to VDD+0.3
PD Power Dissipation Topt=25°C 300mW
Topt Operating Temperature -40 to +85°C
Tstg Storage Temperature -55 to +125°C
VPUP1 Pull up Voltage 1 SCL, SDA6.0V
VPUP2 Pull up Voltage 2 /INTR10.0V
RS5C372B
(VSS=0V)
(VSS=0V, Topt=-40 to +85°C)
kHz
or
32.000
- 3 -
RS5C372B
■ DC Characteristics
Unless otherwise specified: VSS=0V, VDD=3V, Topt=-40 to +85°C, Oscillation Frequency=32.768kHz or 32.000KHz(R1=30kΩ)
SymbolItemPin NameConditionsMIN.TYP.MAX.Unit
VIH “H” input Voltage SCL, SDA0.8
VIL “L” input voltage SCL, SDA-0.30.2
IOH “H” output current 32KOUT VOH=VDD-0.5V-0.5mA
IOL1 “L” output current /INTR, 32KOUT VOL1=0.4V1mA
IOL2 SDA VOL2=0.6V6
IILK Input leakage
current
IOZ Output off state
leakage current
IDD1 Standby current VDD VDD=3V, Topt=25°C0.50.9µA
IDD2 VDD VDD=3V,
IDD3 VDD VDD=6V0.82.0µA
SCL,SDA=6V
CG Internal oscillation
capacitance 1
CD Internal oscillation
capacitance 2
SCL VI=6V or VSS
VDD
-11µA
6.0V
VDD
V
VDD=6V
SDA, /INTR,
32KOUT
VO=6V or VSS
VDD=6V
-11µA
SCL,SDA=3V
Output=OPEN *)
1.0µA
Topt=-40 to +85°C
SCL,SDA=3V
Output=OPEN *)
Output=OPEN *)
OSCIN10pF
OSCOUT10pF
*) The mode outputs no clock pulses and output is open (output off state).
For consumption current (output: no load) when 32kHz pulses are output from 32KOUT, see "Typical
Characteristics Measurement ".
- 4 -
■ AC Characteristics
Unless otherwise specified: VSS=0V,Topt=-40 to +85°C
I/O Conditions: VIH=0.8×VDD,VIL=0.2×VDD,VOL=0.2×VDD,CL=50pF
SymbolItem
f
SCL
t
LOW
t
HIGH
t
HD;STA
SCL clock frequency01000400kHz
SCL clock “L” time4.71.3
SCL clock “H” time4.00.6
Hold time for a (repeated)
start condition
t
SU;STO
Set-up time for a stop
condition
t
SU;STA
Set-up time for a repeated
start condition
t
SU;DAT
t
HDH;DAT
t
HDL;DAT
t
PL;DAT
Data set-up time250100ns
“H” Data hold time00ns
“L” Data hold time3535ns
SDA low stable time after
falling of SCL
t
PZ;DAT
SDA off stable time after
falling of SCL
t
R
Rising time of SCL and
SDA (input)
t
F
Falling time of SCL and
SDA (input)
t
SP
Pulse width of spikes whic h
must be suppres sed by the
input Filter
Condi-
tions
RS5C372B
VDD≥2.0VVDD≥2.5V
MIN.TYP.MAX.MIN.TYP.MAX.
4.00.6
4.00.6
4.70.6
2.00.9
2.00.9
1000300ns
300300ns
5050ns
Unit
µs
µs
µs
µs
µs
µs
µs
SCL
SDA(IN)
SDA(OUT)
S
Sr
S
t
LOW
t
PL;DAT
t
SU;DAT
t
HD;STA
Start Condition
Repeated Start condition
SrP
t
HIGH
t
HDL;DAT
t
PZ;DAT
Stop Condition
P
*For detailed information refer to ”■Operation 1.2. I2C-BUS
transmission system”
t
HD;STAtSP
t
SU;STA
t
HDH;DAT
t
SU;STO
- 5 -
RS5C372B
0.05
■ Package Dimensions (Unit : mm)
● RS5C372B (8pin SSOP)
3.5±0.3
85
1
0.775TYP.
0.22±0.1
■ Selection Guide
Taping type can be designated as follows: (Standard type is E2)
RS5C372B-E1, RS5C372B-E2
■ Taping Specification
0 to 10
°
0.2
0.3
±
±
4.4
6.4
4
0.65
0.10.1
±
1.15
0.1
0.15
±
M
0.15
0.15
+0.1
-
0.3
±
0.5
T
T
2
A
0
B
6.73.912.0
E
P
0
P
2
F
W
B
0
E1
D
∅
0
A
0
P
1
E2
User Direction of F ee d
Unit:mm
0
WFEP1P
±0.3
5.5
±0.05
1.75
±0.1
8.0
±0.1
2
2.0
±0.05
P
0
4.0
±0.1
D
0
1.5
+0.1
TT
0.3
±0.1
2
2.7
Max
0
- 6 -
RS5C372B
■■■■ Outline Description
1. Interfacing with the CPU
The RS5C372B reads/writes data over I
Since the output of the I/O pin of SDA is open drain, data interfacing with a CPU with different supply
voltage is possible by applying pull-up resistance on the circuit board. The maximum clock frequency of
400kHz of SCL enables data transfer in I
2. Clock function
The clock func tion of the RS5C372B allows write/read data from lower two digits of the dominical year to
seconds to and from the CPU. When lower two digits of the dominical year are m ultiples of 4, the year is
recognized as a leap year automatically. Up to the year 2099 leap years will be automatically recognized.
*) The year 2000 is a leap year while the year 2100 is not.
3. Alarm function
The RS5C372B has an alarm function that outputs an interrupt s ignal from /INTR output pins to the CPU
when the day of the week, hour or minute corresponds to the setting. These two systems of alarms
(ALARM_A, ALARM_B), each may output interrupt s ignal separ ately at a spec if ied time. The alarm may be
selectable between on and off for each day of the week, thus allowing outputting alarm everyday or on a
specific day of the week.
The ALARM_A and ALARM_B is output from the /INTR pins. Polling is possible separately for each alarm
system.
4. High precision time trimming function
The RS5C372B has internal oscillation c ircuit capacitance CG and CD so that an oscillation circuit may be
configured simply by externally connecting a crystal. Either 32.768kHz or 32.000kHz may be selected as a
crystal oscillator by setting the internal register appropriately. The RS5C372B incorpor ates a tim e trim ming
circuit that adjusts gain or loss of the clock from the CPU up to approx. ±189ppm (±194ppm when 32.000kHz
crystal is used) by approximately 3ppm steps to cor rect discrepancy in oscillation frequency. (Error after
correction:±1.5ppm:25°C)
Thus by adjusting frequencies for each system,
• Clock display is possible at much higher precision than conventional real-time clock while using a
crystal with broader fluctuation in precision.
• Even seasonal frequency fluctuation may be corrected by adjusting seasonal clock error.
• For those systems that have temperature detection precision of clock function may be increased by
correcting clock error according to temperature fluctuations.
5. Oscillation halt sensing
The oscillation halt sensing function uses a register to store oscillation halt infor mation. This function may
be used to determine if the RS5C372B supply power has been booted from 0V and if it has been backed up.
This function is useful for deter-mining if clock data is valid or invalid.
6. Periodic interrupt
The RS5C372B can output periodic interrupt pulses in addition to alarm function from the /INTR pin. This
frequency may be selected from 2Hz (every 0.5 seconds), 1Hz (every second), 1/60Hz (every minute),
1/3600Hz (every hour) and monthly (1st of month).
Output wave form for periodic interrupt may be selected from regular pulse wave form (2Hz and 1Hz) and
wave forms (every second, every minute, every hour and every month) that are appropriate for CPU level
interrupt. The RS5C372B has polling function that monitors pin status in the register.
7. 32kHz clock output
The RS5C372B may output oscillation frequency from the 32KOUT pin. This clock output is set for output by
default, which is set to on or off by setting the register. This pin functions as an CMOS push-pull output.
2
C-bus interface via two signal lines: SDA (data) and SCL (clock).
2
C-bus high-speed mode.
- 7 -
RS5C372B
Notes:
The year-digit counter of RS5C372B counts only lower two digits of a year and no counter is supplied f or
upper two digits. When you are going to use this product in a system that must cope with “2000 year
problem” which shall be corrected by software.
Notes:
Purchase of I
2
C components of Ricoh Company, Ltd. conveys a license under the Philips I2C Patent Rights to
use these components in an I
Specification as defined by Philips.
2
C system, provided that the system comforms to the I2C Standard
E1 1 1 0 Control Register 1AALE BALE0 *5)0 *5)TESTCT2CT1CT0
F1 1 1 1 Control Register 2--/12⋅24ADJ
Contents Data *1)
P⋅/A
AP⋅/A
-AW6AW5AW4AW3AW2AW1 AW0
-of-
(Day
(Day
the-week Register)
-of-
the-week Register)
BP⋅/A
-BW6BW5BW4BW3BW2BW1 BW0
XSTP
*3),*4)
/CLEN CTFG AAFG BAFG
*1) All the listed data can be read and written except for ADJ/XSTP.
*2) The “–” mark indicates data which can be read only and set to “0” when read.
*3) The ADJ/XSTP bit of the control register2 is set to ADJ for write and XSTP for read operation.
The XSTP bit is set to “0” by writing data into the control register2 for normal oscillation.
*4) When XSTP is set to “1” the /XSL, F6 to F0, CT2 to CT0, AALE, BALE, /CLEN and TEST bits
are reset to “0”.
*5) These bits must be set to “0” in any case.
- 9 -
RS5C372B
2. Functions of Registers
2.1. Control Register 1 (Internal address at Eh)
D7D6D5D4D3D2D1D0
00000000Default *2)
*1) These bits must be set “0” in any case.
*2) The default means read values when XSTP=”1” by after initial power-on or supply voltage drop,etc.
2.1.1. AALE,BALEAlarm_A, Alarm_B enable bit
AALE,BALEDescription
The test bit is used for IC test. Set the TEST bit to 0 in ordinary operation
(For write operation)
(For read operation)
.
2.1.3. CT2,CT1,CT0 Periodic interrupt frequency select bit
CT2CT1CT0
Wave form
Description
Frequency and falling timing
mode
000-OFF(H)(Default)
001-Fixed at “L”
010Pulse mode2Hz(Duty50%)
011Pulse mode1Hz(Duty50%)
100Level modeEvery second (synchronized with second
count up)
101Level modeEvery minute (00 second of every minute)
110Level modeEvery hour ( 00 minute(s) 00 second(s) of
every hour )
111Level modeEvery month (the 1st day 00 AM 00
minute(s) 00 second(s) of every month )
1) Pulse mode: Outputs 2Hz, 1Hz clock pulses. For relationships with counting up of seconds, see the diagram
on the next page.
*) When 32000Hz crystal is used
In the 2Hz clock pulse mode, 0.496s clock pulses and 0.504s clock pulse are output alternately. Duty cycle for
1Hz clock pulses becomes 50.4% (“L” duration is 0.496s while “H” duration is 0.504s).
2) Level mode: One second, one minute or one month may be selected for an interrupt frequency. Counting up of
seconds is matched with falling edge of interrupt output.
3) When the clock error correction circuit is used, periodic interrupt frequency changes every 20 seconds.
Pulse mode: “L” duration of output pulses may change in the maximum range of ±3.784ms (±3.875ms when
32.000kHz crystal is used.) For example, Duty will be 50±0.3784% (or 50±0.3875% when 32.000kHz crystal is
used) at 1Hz.
Level mode: Frequency in one second may change in the maximum range of ±3.784ms (±3.875ms when
32.000kHz crystal is used.)
- 10 -
Pulse mode
Level mode
RS5C372B
CTFG bit
/INTR pin
Approx. 92µs (32.768KHz crystal is used)
Approx. 94µs (32.000KHz cristal is used)
(Counting up of seconds)
*) Since counting up of seconds and the fal ling edge has a time lag of approx. 92µs (at
32.768kHz) (approx. 94µs when 32.000kHz crystal is used), time with apparently
approx. one second of delay from time of the real-time clock may be read when time is
read in synchronization with the falling edge of output.
CTFG bit
/INTR pin
Write 0 to CTFG bit
(second count-up)
2.2. Control Register 2 ( Internal address at Fh )
D7D6D5D4D3D2D1D0
--/12⋅24ADJ/CLENCTFGAAFGBAFG
00/12⋅24XSTP/CLENCTFGAAFGBAFG
00unde-
10000Default (*)
fined
*)The default means read values when XSTP=”1” by after initial power-on or supply voltage drop,etc.
2.2.1. /12⋅24/12⋅24-hour Time Display Selection bit
/12⋅24
Description
012-hour time display system
124-hour time display system
Being set this bit at “0” indicates 12-hour display system while “1” indicates 24-hour system.
Write 0 to CTFG bit
(second count-up)(second count-up)
(For Write operation )
(For Read operation )
- 11 -
RS5C372B
*) Either the 12-hour or 24-hour time display system should be selected before writing time data.
• The following operations are performed by setting the second ADJ bit to 1.
1) For second digits ranging from “00” to “29” seconds:
Time counters smaller than seconds are reset and second digits are set to “00”.
2) For second digits ranging from “30” to “59” seconds:
Time counters smaller than seconds are reset and second digits are set to “00”. Minute digits
are incremented by 1.
• Second digits are adjusted within 122µs (within 125µs:when 32.000kHz crystal is used) from writing
operation to ADJ.
• The ADJ bit is for write only and allows no read operation.
2.2.3. XSTPOscillator Halt Sensing Bit
XSTPDescription
0Ordinary oscillation
1Oscillator halt sensing(Default)
The XSTP bit senses the oscillator halt.
• When oscillation is halted after initial power on from 0V or drop in supply voltage the bit is set to “1”
and which remains to be “1” after it is restarted. This bit may be used to judge validity of clock and
calendar count data after power on or supply voltage drop.
• When this bit is set to “1”, /XSL, F6-F0, CT2, CT1, CT0, AALE, BALE, /CLEN and TEST bits are
reset to “0”. /INTR will stop output and the 32KOUT outputs 32kHz clock pulses.
• The XSTP bit is set to "0" by setting some data to the control register 2 (address Fh) during ordinary
oscillation.
2.2.4. /CLEN32kHz Clock Output Bit
/CLENDescription
032kHz clock output enabled(Default)
132kHz clock output disabled
By setting this bit to “0”, output of clock pulses of the same frequency as the crystal oscillator from
32KOUT pin, is enabled.
- 12 -
Loading...
+ 27 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.