REAL-TIME CLOCK WITH INTERNAL RAM NO. EK-086-9804 RP/RF5C01A OUTLINE The RP/RF5C01A are real-time clocks for microcomputers that can be connected directly to buses of microcom- puters with such CPUs as the 8085A or Z80 and allow setting or reading of the clock with the same procedures as for the Read/Write operation for memory. These products have various features such as clock and calendar counters, alarm functions, and 26 ´ 4bits RAM which can be backed up by batteries. They can then be used as non-volatile RAM. FEATURES • Connected directly to CPU • 4bit bidirectional data bus : D0 - D3 • 4bit address input : A0 - A3 • Built-in clock counter (hour, minute, second) and calendar counter (leap year, year, month, day, day-of-the-week) • Supports both 12-hour AM/PM clock and 24-hour clock • All clock data expressed in BCD codes • ±30 second adjustment function • Backed up by batteries (minimum:2.2V) • Built-in 26 ´ 4bits RAM • Outputs alarm signals or timing pulse of 16Hz or 1Hz. • Packages : 18pin DIP (RP5C01A) ; 18pin SOP(RF5C01A) BLOCK DIAGRAM 1Hz,16Hz, S2 S3 S4 S5 S6 S7 S8 OSCIN 4 3 4 2 3 4 2 OSC 1/215 OSCOUT T-RESET ALARM REGISTER RD.WR. MODE01 A-RESET COMPARATOR ALARM ALARM ALARM RD. WR. OUTPUT ADJ MODE 00 CS LEAP WEEK CS CLOCK SECONDS MINUTES HOURS DAYS MONTHS YEARS HOLD YEARS 1 RD /10 1/6 1/10 1/6 1/12 1/24 1/7 1 /28-1/31 1 /12 1 /10 1/10 1/4 WR S1 S2 S3 S4 S5 S6 S7 S8 S9 SA SB SC RD.WR. ADJ S0 4 3 4 3 4 2 3 4 2 4 1 4 4 2 MODE10,MODE11 HOLD 4 SO-SC 4 SO CONTROLLER ADDRESS BUS INTERNAL 26 ´ 4bits DECODER CONTROL BUS RAM SD SF BUFFER -SF A0 A1 A2 A3 D0 D1 D2 D3 1 RP/RF5C01A PIN CONFIGURATIONS • RP5C01A • RF5C01A CS 1 18 Vcc CS 2 17 OSCOUT ADJ 3 16 OSCIN CS 1 18 Vcc A0 4 15 ALARM CS 2 17 OSCOUT A1 5 14 D3 ADJ 3 16 OSCIN A2 6 13 D2 A0 4 15 ALARM A1 5 14 D3 A3 7 12 D1 A2 6 13 D2 RD 8 11 D0 A3 7 12 D1 RD 8 11 D0 GND 9 10 WR 9 10 GND WR PIN DESCRIPTION Pin No. Symbol Function The CS and CS are used to interface with external devices. Enabled when CS =“H” and 1,2 CS,CS CS=“L”. The CS is connected to the power down detector in the system power supply while the CS is connected to the microcomputer. The ADJ can easily correct seconds without using the CPU. When this pin is set to “H” the 3 ADJ second digits ranging from 00 to 29 are set to 0, the second digits ranging from 30 to 59 are set to 0 and minute digits are incremented by 1. 4,5,6,7 A0 to A3 Input pin for the address signal. These pins are connected to the CPU address bus. Input pin for I/O control. The RD is set to “L” when data is transferred from the 8 RD RP/RF5C01A to the CPU. 9 GND Ground pin for the power supply of 0V. Input pin for I/O control. The WR is set to “L” when data is transferred from the CPU to 10 WR the RP/RF5C01A. 11,12,13,14 D0 to D3 Bidirectional data bus. Connected to the data bus of the CPU. The ALARM pin outputs alarm signals and 16Hz and 1Hz clock pulses. 15 ALARM This pin is an open drain output. 16,17 OSCIN,OSCOUT The OSCIN and OSCOUT are connected to the crystal oscillator of 32.768kHz 18 VCC Input pin for the power supply of +5V. 2 RP/RF5C01A ABSOLUTE MAXIMUM RATINGS Symbol Item Conditions Ratings Unit VCC Supply Voltage –0.3 to 7.0 V VI Input Voltage Referenced at GND pin –0.3 to VCC+0.3 V VO Output Voltage –0.3 to VCC+0.3 V Pd Maximum Power Dissipation Ta=25˚C 700 mW Topr Operating Temperature 0 to 70 ˚C Tstg Storage Temperature –40 to 125 ˚C ABSOLUTE MAXIMUM RATINGS Absolute Maximum ratings are threshold limit values that must not be exceeded even for an instant under any conditions. Moreover, such values for any two items must not be reached simultaneously. Operation above these absolute maximum ratings may cause degradation or permanent damage to the device. These are stress ratings only and do not necessarily imply functional operation below these limits. RECOMMENDED OPERATING CONDITIONS (Unless otherwise specified, Ta=0 to 70˚C) Symbol Item Conditions MIN. TYP. MAX. Unit VCC Supply Voltage 4.75 5 5.25 V VDH Data Preservation Voltage 2.2 5.25 V fXT Crystal Oscillation Frequency 32.768 kHz DC ELECTRICAL CHARACTERISTICS (Unless otherwise specified, Ta=0 to 70˚C, Vcc=5V±10%) Symbol Item Conditions MIN. TYP. MAX. Unit “H” Input Voltage (excluding OSCIN) 2.0 Vcc V VIH “H” Input Voltage (OSCIN) 4.0 Vcc V “L” Input Voltage (excluding OSCIN) –0.3 0.8 V VIL “L” Input Voltage (OSCIN) –0.3 0.5 V VOH “H” Output Voltage IOH=–400µA 2.4 V VOL “L” Output Voltage IOL=2mA 0.4 V II Input Voltage VI=0 to 5.25V ±10 µA IOZ Output Off-state Leakage Current ±10 µA ICC1 Supply Current for backup fXT=32.768kHz, Vcc=2.2V 15 µA ICC2 Operating Supply Current fXT=32.768kHz, Vcc=5.0V*2 250 µA *1) Plus (without sign) direction of current is assumed to be the direction flowing into IC. *2) When connected to CPU (Read/Write cycle 10µs) 3 RP/RF5C01A AC ELECTRICAL CHARACTERISTICS (Vcc=5V±5%) (Ta=0 to 70˚C) Symbol Item Conditions MIN. TYP. MAX. Unit tAC Address–RD/WR Delay Time 170 ns tcc RD/WR Pulse Width 400 10000 ns Address Effective Time after rising tCA 10 ns of RD/WR tRD Data Delay Time after falling of RD 340 ns tRDH Data Hold Time after rising of RD 0 ns tWDL Data Delay Time after falling of WR 40 ns tWD Data Hold Time after rising of WR 20 ns AC ELECTRICAL CHARACTERISTICS (Vcc=5V±10%) (Ta=0 to 70˚C) Symbol Item Conditions MIN. TYP. MAX. Unit tAC Address–RD/WR Delay Time 170 ns tcc RD/WR Pulse Width 450 10000 ns Address Effective Time after rising tCA 10 ns of RD/WR tRD Data Delay Time after falling of RD 400 ns tRDH Data Hold Time after rising of RD 0 ns tWDL Data Delay Time after falling of WR 40 ns tWD Data Hold Time after rising of WR 20 ns TIMING CHART • Write Cycle (CS=“H”) CS * tCA A0 to A3 tWD D0 to D3 tAC WR * tWDL tCC *) The RP/RF5C01A accept WR signals only when CS=“L” and CS=“H”. Although CS timing is not specified for the RP/RF5C01A, substitute WR signals shown above with CS · WR signals to be applicable to the RP/RF5C01A configuration. 4 RP/RF5C01A • Read Cycle (CS=“H”) CS * tCA A0 to A3 tRDH D0 to D3 tAC tRD RD * tCC *) The RP/RF5C01A accept RD signals only when CS=“L” and CS=“H” as in the case of WR signals. Thus, substitute RD signals shown above, as in the case of WR signals, with CS · RD signals to be applicable to the RP/RF5C01A configuration. ADDRESS MAPPING MODE MODE 00 MODE 01 10 11 Descrip- Descrip- A3 to A0 Description D3 D2 D1 D0 Description D3 D2 D1 D0 tion tion 0 1-second counter ´ ´ ´ ´ 1 10-second counter ´ ´ ´ ´ ´ 2 1-minute counter 1-minute alarm register 3 10-minute counter ´ 10-minute alarm register ´ 4 1-hour counter 1-hour alarm register RAM RAM 5 10-hour counter ´ ´ 10-hour alarm register ´ ´ 4bits´13 4bits´13 6 Day-of-the-week counter ´ Day-of-the-week alarm register ´ BLOCK BLOCK 10 11 7 1-day counter 1-day alarm register 8 10-day counter ´ ´ 10-day alarm register ´ ´ 9 1-month counter ´ ´ ´ ´ A 10-month counter ´ ´ ´ 12/24 select register ´ ´ ´ B 1-year counter Leap year counter ´ ´ C 10-year counter ´ ´ ´ ´ Timer Alarm MODE register Timer Alarm MODE register D MODE register EN EN M1 M0 EN EN M1 M0 ditto ditto E TEST register Test 3 Test 2 Test 1 Test 0 Test 3 Test 2 Test 1 Test 0 ditto ditto 1Hz 16Hz Timer Timer 1Hz 16Hz Timer Alarm F RESET controller, etc. ON ON RESET RESET ON ON RESET RESET *) “x” means “Don't care” for Write; always “0” for Read. 5 RP/RF5C01A • MODE register (Address Dh) D3 D2 D1 D0 Timer EN Alarm EN M1 M0 ¯ ¯ 0 0 MODE00 : Setting and read out of time 0 1 MODE01 : Setting and read out of alarm, 12-hour/24-hour and leap year 1 0 Read and Write of RAM of BLOCK10 1 1 Read and Write of RAM of BLOCK11 1 : Alarm output enabled 0 : Alarm output disabled (Note that 16Hz or 1Hz signals are not affected.) 1 : Counting time starts; 0 : the 1-second counter and higher-order than the 1-second counter stop *) When the Timer EN is set to 0, the 1-second counter and higher-order counters than the 1-second counter stop . If any carrying occurs in the lower-order counters than the 1 second counter while the Timer EN is 0, carrying will be held and avoided when the Timer EN changes from 0 to 1. Thus, no appar- ent delay is produced when the duration of the Timer EN = 0 is less than one second. • 12/24 select register (MODE01, Address Ah) D0=1 sets to 24-hour system ; D0=0 sets to 12-hour system. Set the 10-hour counter as D1=1 for p.m., D1=0 for a.m. • Leap year counter (MODE01, Address Bh) (D1, D0)=(0, 0) sets the counter for leap years. The counter value changes in order of (0, 0) (0, 1) (1, 0) (1, 1) (0, 0) repeatedly in the same timing as the year counter. • RESET controller/16Hz · 1Hz clock register. (Address Fh) D0=1 : Resets all alarm registers. D1=1 : Resets divider stages for seconds or smaller units. D2=0 : 16Hz clock pulse ON. D3=0 : 1Hz clock pulse ON. *) Addresses 0h to Dh are applicable both for Read and Write. *) Addresses Eh to Fh are applicable only for Write. 6 RP/RF5C01A OSCILLATOR CIRCUIT • When the oscillator circuit is to be configured using crystal oscillators: The oscillator circuit is configured as shown in Figure 1. External components include: a resistor, a capacitor and a trimmer capacitor for fine tuning of the frequency. Adjust the trimmer capacitor (16Hz or 1Hz signal output from the ALARM pin is used) to correct oscillation fre- quency. Correction with 16Hz signal: Set addresses (A3, A2, A1, A0)=(1, 1, 1, 1). Set Data (D3, D2, D1, D0)=(1, 0, 0, ´). Correction with 1Hz signal: Set addresses (A3, A2, A1, A0)=(1, 1, 1, 1). Set Data (D3, D2, D1, D0)=(0, 1, 0, ´). In each case, set addresses (A3, A2, A1, A0)=(1, 1, 0, 1), and set data (D3, D2, D1, D0)=(´, 0, ´, ´) to disable ALARM output before setting 16Hz or 1Hz signal. RP/RF5C01A C1 OSCIN 16 C1=5pF to 30pF C2=30pF R R=100kW 17 (Crystal from Nihon Denpa Kogyo : MX38T) C2 OSCOUT GND *) Values of C1, C2 and R are not absolute conditions but are indicated for reference only. Regard those C1, C2 and R values shown above as our optimum values in our experiments which employed MX38T. Difference between the RP5C01 and the RP/RF5C01A Since the RP5C01 and the RP/RF5C01A have different oscillator circuit characteristics, approximately 12 to 19ppm (31 to 41 seconds/month) of difference will result if the RP/RF5C01A are used with an external value that has been set to the RP5C01 oscillating characteristics. Therefore, determine a new external value for the RP/RF5C01A. 7 RP/RF5C01A PACKAGE DIMENSIONS • RP5C01A (18pin DIP) 22.86max. 0.900max. 18 10 6.3±0.20 0.248±0.008 1 9 7.62 5.08max. 1.3±0.35 0.300 0.051±0.014 0.200max. 0.51min. 0.020min. 0˚ to 15 1 ˚ +0.105 0.25 –0. 04 +0.0 0 .002 2.54min. 0.48±0.10 0.25(0.010) M 0.01 –0 0.019±0.004 2.54 0.100min. 0.100 mm (Unit : inch ) • RP5C01A (18pin SOP) 11.63typ. 0.458typ. 18 10 10.31±0.3 0.406±0.012 7.47typ. 1 9 2.34typ. 0.294typ. 0.25 +0.1 0.010 +0.004 0.092typ. –0.05 –0.002 0.66±0.2 1.27typ. 0.2±0.1 0.026±0.008 0.050typ. 0.41 +0.1 –0.05 0.008±0.004 mm (Unit : inch ) 0.016 +0.004 –0.002 8 NOTICE 1. The products and the product specifications described in this document are subject to change or discontinuation of production without notice for reasons such as improvement. Therefore, before deciding to use the products, please refer to Ricoh sales representatives for the latest information thereon. 2. This document may not be copied or otherwise reproduced in whole or in part without prior written consent of Ricoh. 3. Please be sure to take any necessary formalities under relevant laws or regulations before exporting or other- wise taking out of your country the products or the technical information described herein. 4. The technical information described in this document shows typical characteristics of and example application circuits for the products. The release of such information is not to be construed as a warranty of or a grant of license under Ricoh's or any third party's intellectual property rights or any other rights. 5. The products listed in this document are intended and designed for use as general electronic components in standard applications (office equipment, computer equipment, measuring instruments, consumer electronic products, amusement equipment etc.). Those customers intending to use a product in an application requiring extreme quality and reliability, for example, in a highly specific application where the failure or misoperation of the product could result in human injury or death (aircraft, spacevehicle, nuclear reactor control system, traffic control system, automotive and transportation equipment, combustion equipment, safety devices, life support system etc.) should first contact us. 6. We are making our continuous effort to improve the quality and reliability of our products, but semiconductor products are likely to fail with certain probability. In order prevent any injury to persons or damages to property resulting from such failure, customers should be careful enough to incorporate safety measures in their design, such as redundancy feature, fire-containment feature and fail-safe feature. We do not assume any liability or responsibility for any loss or damage arising from misuse or inappropriate use of the products. 7. Anti-radiation design is not implemented in the products described in this document. 8. Please contact Ricoh sales representatives should you have any questions or comments concerning the prod- ucts or the technical information. June 1995 RICOH COMPANY, LTD. ELECTRONIC DEVICES DIVISION HEADQUARTERS 13-1, Himemuro-cho, Ikeda City, Osaka 563-8501, JAPAN Phone 81-727-53-1111 Fax 81-727-53-6011 YOKOHAMA OFFICE (International Sales) 3-2-3, Shin-Yokohama, Kohoku-ku, Yokohama City, Kanagawa 222-8530, JAPAN Phone 81-45-477-1697 Fax 81-45-477-1694 • 1695 http://www.ricoh.co.jp/LSI/english/ RICOH CORPORATION ELECTRONIC DEVICES DIVISION SAN JOSE OFFICE 3001 Orchard Parkway, San Jose, CA 95134-2088, U.S.A. Phone 1-408-432-8800 Fax 1-408-432-8375 http://www.ricoh-usa.com/semicond.htm