rs5c338a RICOH Co.,Ltd., rs5c338a Datasheet

no-image

rs5c338a

Manufacturer Part Number
rs5c338a
Description
3-wire Serial Interface Real-time Clock Ics With Voltage Monitoring Function
Manufacturer
RICOH Co.,Ltd.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
rs5c338a-E2
Manufacturer:
NS
Quantity:
1 044
Part Number:
rs5c338a-E2
Manufacturer:
RICOH
Quantity:
1 000
Part Number:
rs5c338a-E2
Manufacturer:
RICOH/理光
Quantity:
20 000
R
OUTLINE
The R
(Serial Clock), and SIO (Serial Input/Output), and configured to perform serial transmission of time and calendar
data to the CPU. These models incorporate different functional circuits. The periodic interrupt circuit is configured
to generate interrupt signals with six selectable interrupts ranging from 0.5 seconds to 1 month. The 2 alarm
circuits generate interrupt signals at preset times. The oscillation circuit is driven under constant voltage so that
fluctuations in oscillation frequency due to voltage are small and supply current is also small (TYP. 0.35µA at 3
volts). The oscillation halt sensing circuit can be used to judge the validity of internal data in such events as power-
on. The supply voltage monitoring circuit is configured to record a drop in supply voltage below two selectable
supply voltage monitoring threshold settings. The 32-kHz clock output function is intended to output sub-clock
pulses for the external microcomputer. The oscillation adjustment circuit is intended to adjust time counts with
high precision by correcting deviations in the oscillation frequency of the crystal oscillator. These models come in
an ultra-compact 10-pin SSOP (RS5C338A with a height of 1.25mm and a pin pitch of 0.5mm)and 10-pin SSOP-G
(RV5C338A with a height of 1.2mm and a pin pitch of 0.5mm).
FEATURES
• Timekeeping supply voltage ranging from 1.45 to 5.5 volts
• Low supply current: TYP. 0.35µA (MAX. 0.8µA) at 3 volts (at 25˚C)
• Only three signal lines (SCLK, SIO, and CE) required for connection to the CPU.
• Time counters (counting hours, minutes, and seconds) and calendar counters (counting years, months, days, and
• 1900/2000 identification bit for Year 2000 compliance
• Interrupt circuit configured to generate interrupt signals (with interrupts ranging from 0.5 seconds to 1 month) to
• 2 alarm circuits (Alarm_W for week , hour , and minute alarm settings and Alarm_D for hour and minute alarm
• 32-kHz clock circuit (CMOS output, equipped with a control pin)
• Oscillation halt sensing circuit which can be used to judge the validity of internal data
• Supply voltage monitoring circuit with two supply voltage monitoring threshold settings
• Automatic identification of leap years up to the year 2099
• Selectable 12-hour and 24-hour mode settings
• High precision oscillation adjustment circuit
• Ultra-compact 10-pin SSOP (RS5C338A with a height of 1.25mm and size of 6.4
Maximum clock frequency of 2 MHz (with V
weeks) (in BCD format)
the CPU and provided with an interrupt flag and an interrupt halt circuit
settings)
Ultra-compact 10-pin SSOP-G (RV5C338A with a height of 1.20mm and size of 4.0
×
×
5C338A
5C338A are CMOS real-time clock ICs connected to the CPU by three signal lines CE (Chip Enable), SCLK
3-WIRE SERIAL INTERFACE REAL-TIME CLOCK IC
DD
WITH VOLTAGE MONITORING FUNCTION
of 5 volts)
• Built-in oscillation stabilization capacitors (C
• CMOS process
×
3.5mm)
×
2.9mm)
NO.EA-053-0208
G
and C
D
)
S
1

Related parts for rs5c338a

rs5c338a Summary of contents

Page 1

... The oscillation adjustment circuit is intended to adjust time counts with high precision by correcting deviations in the oscillation frequency of the crystal oscillator. These models come in an ultra-compact 10-pin SSOP (RS5C338A with a height of 1.25mm and a pin pitch of 0.5mm)and 10-pin SSOP-G (RV5C338A with a height of 1.2mm and a pin pitch of 0.5mm). ...

Page 2

R 5C338A BLOCK DIAGRAM 32KOUT 32kHz OUTPUT CLKC CONTROL OSCIN DIVIDER OSC CORREC -TION OSCOUT OSC DETECT INTR APPLICATIONS • Communication devices (multi function phone, portable phone, PHS or pager) • OA devices (fax, portable fax) • Computer (desk-top ...

Page 3

PIN DESCRIPTIONS Pin No. Symbol Name 4 CE Chip Enable Input 2 SCLK Serial Clock Input 3 SIO Serial Input/Output 6 INTR Interrupt Output 1 32KOUT 32-kHz Clock Output 7 CLKC Clock Control Input 9 OSCIN Oscillation Circuit 8 OSCOUT ...

Page 4

R 5C338A ABSOLUTE MAXIMUM RATINGS Symbol Item V Supply Voltage DD Input Voltage Input Voltage 2 Output Voltage Output Voltage 2 P Power Dissipation D Topt Operating Temperature Tstg Storage Temperature Absolute Maximum ...

Page 5

DC ELECTRICAL CHARACTERISTICS Symbol Item V “H” Input Voltage IH1 V “H” Input Voltage IH2 V “L” Input Voltage IL I “H” Output Current OH I OL1 ”L” Output Current I OL2 I Input Leakage Current SCLK IL R Pull-down ...

Page 6

R 5C338A AC ELECTRICAL CHARACTERISTICS Symbol Item t CE Set-up Time CES t CE Hold Time CEH t CE Recovery Time CR f SCLK Clock Frequency SCLK t SCLK Clock “H” Time CKH t SCLK Clock “L” Time CKL ...

Page 7

GENERAL DESCRIPTION 1. Interface with CPU × The R 5C338A are connected to the CPU by three signal lines CE (Chip Enable), SCLK (Serial Clock), SIO (Serial Input/Output), through which it reads and write data from and to the CPU. ...

Page 8

R 5C338A 5. Oscillation Halt Sensing Function and Supply Voltage Monitoring Function × The R 5C338A incorporate an oscillation halt sensing circuit equipped with internal registers configured to record any past oscillation halt, thereby identifying whether they are powered ...

Page 9

FUNCTIONAL DESCRIPTIONS 1. Address Mapping Address Second Counter Minute Counter Hour Counter ...

Page 10

R 5C338A 2. Register Settings 2.1 Control Register 1 (at Address Eh WALE DALE 12/24 WALE DALE 12/ Default settings: Default value means read/written values when the XSTP bit is set to ...

Page 11

CLEN2 32-kHz Clock Output Bit 2 CLEN2 0 Enabling the 32-kHz clock circuit 1 Disabling the 32-kHz clock circuit × For the R 5C338A, setting the CLEN2 bit or the CLEN1 bit (D3 in the control register 2) to ...

Page 12

R 5C338A 2) Level Mode : periodic interrupt signals are output with selectable interrupt cycle settings of 1 second, 1 minute, 1 hour, and 1 month. The increment of the second counter is synchronized with the falling edge of ...

Page 13

Control Register 2 (at Address Fh VDSL VDET SCRATCH XSTP VDSL VDET SCRATCH XSTP Default settings: Default value means read/written values when the XSTP bit is set to “1” due ...

Page 14

R 5C338A 2.2-4 XSTP Oscillator Halt Sensing Bit XSTP 0 Sensing a normal condition of oscillation 1 Sensing a halt of oscillation The XSTP bit is for sensing a halt in the oscillation of the crystal oscillator. The oscillation ...

Page 15

WAFG and DAFG Alarm_W Flag Bit and Alarm_D Flag Bit WAFG, DAFG 0 Indicating a mismatch between current time and preset alarm time 1 Indicating a match between current time and preset alarm time The WAFG and DAFG bits ...

Page 16

R 5C338A 2.3 Time Counters (at Addresses 0h to 2h) · Time digit display (BCD format) as follows: The second digits range from and are carried to the minute digit in transition from 59 to 00. ...

Page 17

Day-of-week Counter (at Address 3h — — — Default settings: Default value means read/written values when the XSTP bit is set to “1” due to power-on from 0 volts ...

Page 18

... RS5C338A 2.5-3 Year Counter (at Address 6h Indefinite Indefinite Indefinite ) Default settings: Default value means read/written values when the XSTP bit is set to “1” due to power-on from 0 volts or supply voltage drop. * 2.6 Oscillation Adjustment Register (at Address 7h) ...

Page 19

An increase of two clock pulses once per 20 seconds causes a time count loss of approximately 3ppm (2 / (32768 × 20=3.051ppm). Conversely, a decrease of two clock pulses once per 20 seconds causes a time count gain of ...

Page 20

R 5C338A Example of Alarm Time Setting Sun. Mon. Tue. Wed. Thu. Fri. Preset alarm time WW 00:00 a.m. on all days 1 01:30 a.m. on all days 1 11:59 a.m. on all days 1 00:00 p. ...

Page 21

USAGES 1. Data Transfer Formats 1.1 Timing Between CE Pin Transition and Data Input/Output × The R 5C338A adopt a 3-wire serial interface by which it uses the CE (Chip Enable), SCLK (Serial Clock), and SIO (Serial Input/Output), pins to ...

Page 22

R 5C338A 1.2 Data Transfer Formats Data transfer is commenced in the low to high transition of the CE pin input and completed in its high to low transition. Data transfer is conducted serially in multiple units of 1 ...

Page 23

Burst Writing Data Transfer Format The second type of writing data transfer format is designed to transfer a sequence of data serially and can be selected by specifying in the address pointer a head address with which writing data ...

Page 24

R 5C338A 1.4-2 Burst Reading Data Transfer Format The second type of reading data transfer format is designed to transfer a sequence of data serially and can be selected by specifying in the address pointer a head address with ...

Page 25

Considerations in Reading and Writing Time Data Any carry to the second digits in the process of reading or writing time data may cause reading or writing erroneous time data. For example, suppose a carry out of 13:59:59 into ...

Page 26

R 5C338A Good Example Time span of 31µs or more CE F4h SIO Specifying Fh in the address pointer Writing 4h to the transfer format register Bad Example (1) (Where the CE pin is once driven low in the ...

Page 27

Configuration of Oscillation Circuit and Correction of Time Count Deviations 2.1 Configuration of Oscillating Circuit × R 5C338A VDD 10 OSCIN OSCOUT The oscillation circuit is driven at ...

Page 28

R 5C338A 2.2 Measurement of Oscillation Frequency × R 5C338A VDD OSCIN 32.768kHz OSCOUT CLKC 32KOUT V SS × 1) The R 5C338A are configured to generate 32.768-kHz clock pulses for output from the 32KOUT pin at power-on conditionally ...

Page 29

Course (A) When the time count precision of each real-time clock is not to be adjusted, the crystal oscillator intended for use with that real-time clock may have any C frequency variations which are selectable within the allowable range of ...

Page 30

R 5C338A Another advisable way to select a crystal oscillator having an optimum C crystal oscillator intended for use with the R Incidentally, the high oscillation frequency of the crystal oscillator can also be adjusted by adding an external ...

Page 31

When Oscillation Frequency is Equal to Target Frequency (There is Neither a Time Count Gain nor a Time Count Loss) Writing the oscillation adjustment value setting of “0”, “+1”, “–64”, or “–63” to the oscillation adjustment register disables the ...

Page 32

R 5C338A 3. Oscillation Halt Sensing and Supply Voltage Monitoring The oscillation halt sensing circuit is configured to record a halt in the oscillation of 32.768-kHz clock pulses. The supply voltage monitoring circuit is configured to record a drop ...

Page 33

Considerations in Using Oscillation Halt Sensing Circuit Be sure to prevent the oscillation halt sensing circuit from malfunctioning by preventing the following: 1) Instantaneous power-down on the V 2) Condensation on the crystal oscillator 3) On-board noise to the crystal ...

Page 34

R 5C338A 4. Alarm and Periodic Interrupt The R × 5C338A incorporate the alarm circuit and the periodic interrupt circuit that are configured to generate alarm signals and periodic interrupt signals, respectively, for output from the INTR pin as ...

Page 35

Alarm Interrupt The alarm circuit is controlled by the enable bits (i.e. the WALE and DALE bits in the control register 1) and the flag bits (i.e. the WAFG and DAFG bits in the control register 2). The enable ...

Page 36

R 5C338A 4.2 Periodic Interrupt Setting of the periodic selection bits (CT modes: pulse mode and level mode. In the pulse mode, the output has a waveform duty cycle of around 50%. In the level mode, the output is ...

Page 37

Relation Between the Mode Waveform and the CTFG Bit • Pulse mode CTFG bit INTR pin (Increment of second counter the pulse mode, the increment of the second counter is delayed by approximately 92 µs from the falling ...

Page 38

R 5C338A 6. Typical Applications 6.1 Typical Power Circuit Configurations Sample circuit configuration 1 × R 5C338A OSCIN 32.768kHz OSCOUT VDD 1 * VSS Sample circuit configuration 2 × R 5C338A OSCIN 32.768kHz OSCOUT VDD VSS 38 1) Install ...

Page 39

Connection of INTR Pin The INTR pin follows the N-channel open drain output logic and contains no protective diode on the power supply side. As such, it can be connected to a pull-up resistor 5.5 volts ...

Page 40

R 5C338A 6.4 Connection of CE Pin Observe the following precautions when you connect the CE pin. 1) The CE pin is configured to enable the oscillation halt sensing circuit only when driven low. As such, it should be ...

Page 41

Typical Characteristics Test Circuit • × R 5C338A VDD OSCIN 32.768kHz OSCOUT 32KOUT SS V 7.1 Timekeeping Current vs. Supply Voltage (with no 32-kHz clock output) (CE=Open, Output=Open, Topt=25˚C) 1 0.8 0.6 0.4 0 ...

Page 42

R 5C338A 7.5 Oscillation Frequency Deviation vs. External C External –5 –10 –15 –20 –25 –30 –35 – External C 7.7 Oscillation Frequency Deviation vs. Operating Temperature (V DD Topt=25˚C as standard) 20 ...

Page 43

Typical Software-based Operations 8.1 Initialization at Power-on Start Power-on XSTP=1? YES Set Oscillation Adjustment Register and Control Registers 1 and 2, etc. 1) After power-on from 0 volts, the start of oscillation and the process of internal initialization require ...

Page 44

R 5C338A 8.3 Reading Time and Calendar Data 8.3-1 Ordinary Process of Reading Time and Calendar Data Wait for 31µs * Read from Time Counter and Calendar Counter 8.3-2 Basic Process of Reading Time and Calendar Data Synchronized with ...

Page 45

Applied Process of Reading Time and Calendar Data Synchronized with Periodic Interrupt Function Time data need not be read from all the time counters when used for such ordinary purposes as time count indication. This applied process can be ...

Page 46

R 5C338A 8.4 Interrupt Process 8.4-1 Periodic Interrupt Set Periodic Interrupt Cycle Selection Bits Generate Interrupt to CPU CTFG=1? YES Periodic Interrupt Process Write “×,1,×,1,×,0,1,1” to Control Register 2 8.4-2 Alarm Interrupt WALE or DALE=0 Set Alarm Minute, Hour, ...

Related keywords