RS5C62 APPLICATION MANUAL ELECTRONIC DEVICES DIVISION

Similar documents
RS5C313 ULTRA-COMPACT REAL-TIME CLOCK IC OUTLINE FEATURES NO.EA

R 5C338A 3-WIRE SERIAL INTERFACE REAL-TIME CLOCK ICS WITH VOLTAGE MONITORING FUNCTION OUTLINE FEATURES NO. EA

RV5C387A. I 2 C bus SERIAL INTERFACE REAL-TIME CLOCK IC WITH VOLTAGE MONITORING FUNCTION OUTLINE

LOW VOLTAGE DETECTOR

A variety of pagers day of a week, hour, minute and second. TV set and VCR CPU interface via three wires

Low-Current Consumption, Real-Time Clock IC (General-Purpose IC)

PT7C43190 Real-time Clock Module

S-35190A 3-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Package. Seiko Instruments Inc. 1

LOW NOISE 150mA L.D.O REGULATOR

R2221x R2223x. 2-wire Serial Interface Real Time Clock IC OUTLINE FEATURES NO.EA

XC2163 Series GENERAL DESCRIPTION APPLICATIONS FEATURES PIN ASSIGNMENT PIN CONFIGURATION /INH, Q0 PIN FUNCTION

S-35190A 3-WIRE REAL-TIME CLOCK. Features. Applications. Packages. ABLIC Inc., Rev.4.2_03

Low Power Consumption IPS009BL9_BL9A_BLAA AT Cut 32KHz SPXO

MOS INTEGRATED CIRCUIT

S-35390A 2-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Packages. Seiko Instruments Inc. 1

S-35392A 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.2_03

ACE5372. Low Power Real-Time Clock (RTC)

S-35390A 2-WIRE REAL-TIME CLOCK. Features. Applications. Packages. SII Semiconductor Corporation, Rev.4.

onlinecomponents.com

S-35390A H Series FOR AUTOMOTIVE 105 C OPERATION 2-WIRE REAL-TIME CLOCK. Features. Packages. ABLIC Inc., Rev.2.

SERIAL I/O REAL TIME CLOCK

HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM

ABLIC Inc., 2012 Rev.1.0_02

RayStar Microelectronics Technology Inc. Ver: 1.4

S-35399A03 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.1_03

SM8578BV Real-time Clock IC

APPLICATIONS GENERAL DESCRIPTION FEATURES PIN CONFIGURATION PIN ASSIGNMENT /INH, Q0 PIN FUNCTION

S-8423 Series. Rev.2.0 BATTERY BACKUP IC

Built-in LCD display RAM Built-in RC oscillator

Very Low Power 8-Bit 32 khz RTC Module with Digital Trimming and High Level Integration

78A207 MFR1 Receiver DATA SHEET DESCRIPTION FEATURES OCTOBER 2005

ASSP For Power Supply Applications

NT Output LCD Segment/Common Driver NT7703. Features. General Description. Pin Configuration 1 V1.0

XC2300 Series GENERAL DESCRIPTION APPLICATIONS FEATURES PIN CONFIGURATION PIN ASSIGNMENT /INH, Q0 PIN FUNCTION. Tri-State Buffer ICs 1/7

ST8016. Datasheet. 160 Output LCD Common/ Segment Driver IC. Version /05/25. Crystalfontz

NOT RECOMMENDED FOR NEW DESIGN. S-5843A Series TEMPERATURE SWITCH IC (THERMOSTAT IC) Features. Applications. Packages.

UNISONIC TECHNOLOGIES CO., LTD CD4541

ABLIC Inc., Rev.2.2_02

S-5814A Series : 2.5 C ( 30 C to 100 C) Ta = 30 C : V typ. Ta = 30 C : V typ. Ta = 100 C : V typ. 0.5% typ.

NOT RECOMMENDED FOR NEW DESIGN. S-5855A Series PWM OUTPUT TEMPERATURE SENSOR IC. Features. Application. Packages.

S-5855A Series PWM OUTPUT TEMPERATURE SENSOR IC. Features. Application. Packages. ABLIC Inc., Rev.1.

PACKAGE HIGH-PRECISION VOLTAGE DETECTOR

SC8560S. Silan Semiconductors DIGITAL ALARM CLOCK HANGZHOU SILAN MICROELECTRONICS CO.,LTD. DESCRIPTION FEATURES ORDERING INFORMATION

NT7605. Features. General Description

NT7603. Features. General Description

R/W address auto increment External Crystal kHz oscillator

SM8580AM Real-time Clock IC with 4-bit Interface and Built-in Temperature Sensor

IPS009 series IC CMOS SPXO

ETM45E-03. Application Manual. Real Time Clock Module RX8900SA / CE. Preliminary

XC61F Series GENERAL DESCRIPTION APPLICATIONS

ETM45E-05. Application Manual. Real Time Clock Module RX8900SA CE. Preliminary

Preliminary. Charge-pump DC/DC Converter & Voltage Regulator S1F75510 DESCRIPTION FEATURES

ICS Glitch-Free Clock Multiplexer

High Voltage CMOS Logic. <Logic Gate> General-purpose CMOS Logic IC Series (BU4S,BU4000B Series)

8-bit shift register and latch driver

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description.

IPS009 series IC CMOS SPXO

S Series FOR AUTOMOTIVE 125 C OPERATION 2-WIRE INTERVAL TIMER CONVENIENCE TIMER. Features. Application. Package.

2.5 C ( 55 C to 130 C) Ta = 30 C: V Typ. Ta = 30 C: V Typ. Ta = 130 C: V Typ. 0.4% Typ. ( 20 to 80 C)

HT1621. HT1621 RAM Mapping 32x4 LCD Controller for I/O MCU

S-5840B Series TEMPERATURE SWITCH IC (THERMOSTAT IC) WITH LATCH. Features. Applications. Package. ABLIC Inc., Rev.2.

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

XC61C Series GENERAL DESCRIPTION

XC62H Series GENERAL DESCRIPTION APPLICATIONS FEATURES TYPICAL PERFORMANCE CHARACTERISTICS TYPICAL APPLICATION CIRCUIT

Preliminary NT7070B Dot Matrix LCD Driver & Controller. Features. Descriptions. Applications

UNISONIC TECHNOLOGIES CO.,

DS1642 Nonvolatile Timekeeping RAM

MM58174A Microprocessor-Compatible Real-Time Clock

1.5 V to 5.5 V, selectable in 0.1 V step

DS1307ZN. 64 X 8 Serial Real Time Clock

S-8110C/8120C Series CMOS TEMPERATURE SENSOR IC. Features. Applications. Packages

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

MOS FIELD EFFECT TRANSISTOR 3SK252

NJ88C Frequency Synthesiser with non-resettable counters

Maintenance/ Discontinued

LC75857E LC75857W. SANYO Semiconductors DATA SHEET. Preliminary. Overview. Features. CMOS IC 1/3, 1/4 Duty LCD Display Drivers with Key Input Function

SN55451B, SN55452B, SN55453B, SN55454B SN75451B, SN75452B, SN75453B, SN75454B DUAL PERIPHERAL DRIVERS

Low Power Windowed Watchdog with Reset, Sleep Mode Functions. Features. Applications. Selection Table. Part Number V REF

S-19100xxxA Series FOR AUTOMOTIVE 125 C OPERATION VOLTAGE DETECTOR BUILT-IN DELAY CIRCUIT (EXTERNAL DELAY TIME SETTING) Features.

ADM6823. Low Voltage, Supervisory Circuit with Watchdog and Manual Reset in 5-Lead SOT-23. Data Sheet FUNCTIONAL BLOCK DIAGRAM FEATURES APPLICATIONS

DS1307/DS X 8 Serial Real Time Clock

Old Company Name in Catalogs and Other Documents

S-1142A/B Series HIGH-WITHSTAND VOLTAGE LOW CURRENT CONSUMPTION LOW DROPOUT CMOS VOLTAGE REGULATOR. Features. Application. Package.

S-L2980 Series HIGH RIPPLE-REJECTION AND LOW DROPOUT CMOS VOLTAGE REGULATOR. Features. Applications. Package

Built-in LCD display RAM Built-in RC oscillator

For Power Supply Applications. Switching Regulator Controller

Dual Processor Supervisors with Watchdog ADM13305

Block Diagram , E I F = O 4 ) + J H 6 E E C + E H? K E J +,, H E L A H * E = I + E H? K E J + + % 8,, % 8 +, * * 6 A. H A G K A? O

S-1132 Series HIGH RIPPLE-REJECTION AND LOW DROPOUT MIDDLE OUTPUT CURRENT CMOS VOLTAGE REGULATOR. Features. Applications. Packages.

Old Company Name in Catalogs and Other Documents

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

VDD Series. AnaSem. Low voltage, Low power, ±1% High detect accuracy CMOS Voltage Detector with Delay circuit. Analog Semiconductor IC.

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

Design Guide for the clock circuit with a crystal and Ricoh RTC IC

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description.

CCB is ON Semiconductor s original format. All addresses are managed by ON Semiconductor for this format.

HT82V73A 1500mW Audio Power Amp with Shutdown

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM

LSI/CSI LS7560N LS7561N BRUSHLESS DC MOTOR CONTROLLER

60 db typ. (1.25 V output product, f = 1.0 khz) Built-in overcurrent protection circuit: Limits overcurrent of output transistor.

Transcription:

REAL-TIME CLOCK ICs RP/ RS5C62 APPLICATION MANUAL ELECTRONIC DEVICES DIVISION NO.EA-2-998

NOTICE. The products and the product specifications described in this application manual 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 application manual 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 otherwise taking out of your country the products or the technical information described herein. 4. The technical information described in this application manual 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 application manual. 8. Please contact Ricoh sales representatives should you have any questions or comments concerning the products or the technical information. June 995

APPLICATION MANUAL CONTENTS OUTLINE... FEATURES... BLOCK DIAGRAM... PIN CONFIGURATION... 2 PIN DESCRIPTIONS... 2 ABSOLUTE MAXIMUM RATINGS... 3 RECOMMENDED OPERATING CONDITIONS... 3 DC ELECTRICAL CHARACTERISTICS... 4 AC ELECTRICAL CHARACTERISTICS... 5 TIMING CHART... 5 FUNCTIONAL DESCRIPTIONS... 6. Addressing... 6 2. Functions of Registers... 7 3. Functions of Counters... 5 USAGE... 7. Reading and Writing Operations... 7 2. Handling of CE Pin... 8 3. Configuration of Oscillatory Circuit... 9 4. Adjustment of Oscillation Frequencies... 2 5. Interrupts... 22 6. Timer... 23 7. Detection of Stop of Oscillation... 24 8. Typical Power Supply Circuit... 25 9. Typical Connection between RP/RF/RS5C62 and CPU... 26. Typical Characteristics... 27. Typical Software-controlled Processes... 29

QUESTIONS AND ANSWERS ON USE... 34 PACKAGE DIMENSIONS... 42 TAPING SPECIFICATIONS... 43

REAL-TIME CLOCK ICs RP/RS5C62 OUTLINE The RP/RF/RS5C62 are CMOS LSIs which serve microcomputers as real-time clocks providing time, calendar, and alarm functions in direct coupling with the data buses of CPUs such as 886 and 68. A built-in timer counter acts as a watchdog timer or interrupt timer. They are available in three different types of packages: the DIP type, the SOP type, and the SSOP type. FEATURES Directly connected to CPU, enabling fast access. 4bit bidirectional data bus, and 4bit address bus. The oscillator is driven by a constant voltage, so the oscillation frequency is stable even when the power supply voltage fluctuates. Built-in timer counter using internal clock. Generates cyclic CPU interrupts, and generates alarm-match interrupts. Interrupt flag and interrupt inhibit. Clock (hour, minute, second), calendar (leap year, year, month, day, day-of-the-week), alarm (hour, minute). 2-or 24-hour mode is selectable. Recognizes leap years automatically. All clock and alarm data expressed in BCD codes. ±3 seconds adjustment function. Determines whether clock data is valid or invalid. Consumes very low power due to CMOS technology, so it can be backed up by batteries. Power supply voltage between 3. to 5.V. Time keeping supply voltage between 2. to 6.V. Package : 8pin DIP for RP5C62, 8pin SOP for RF5C62, 2pin SSOP for RS5C62. BLOCK DIAGRAM OSCIN OSCOUT OSC DIV OSC DETECT WATCH & CALENDAR INTERRURT CONTROL INTR COMPARATOR CE CS RD ALARM REGISTER TIMER TMOUT WR CONTROL REGISTER DATA BUS CONTROL ADDRESS BUS CONTROL ADDRESS DECODER VDD VSS DDD2D3 AAA2A3

PIN CONFIGURATION RP5C62 (8pin DIP) RF5C62 (8pin SOP) RS5C62 (2pin SSOP) CS CE TMOUT A A A2 A3 RD VSS 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 VDD OSCOUT OSCIN INTR D3 D2 D D WR CS CE TMOUT A A A2 A3 RD VSS 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 Discontinued VDD CS OSCOUT CE OSCIN TMOUT NC INTR A D3 A D2 A2 D A3 D RD WR VSS 2 3 4 5 6 7 8 9 2 9 8 7 6 5 4 3 2 VDD OSCOUT OSCIN NC INTR D3 D2 D D WR NOTE Take Care not to use the RF5C62 (8-pin SOP), which is now discontinued. PIN DESCRIPTIONS Pin No. Symbol Name CS Chip select input 2 CE Chip enable input 3 TMOUT Timer output 4 7 A A3 Address input 8 RD Read control input WR Write control input Function CS and CE are used when interfacing external devices. They may be accessed when CS is low and CE is high. CE is connected to an output of power down detector on the system power supply side, and CS is connected to the microcomputer address bus. Timer output may be used as an interrupt free-run timer or watchdog timer. When CE is low (running on battery backup), operation stops (there is no output). It is N-ch open drain output. Address input is connected to the CPU address bus. It is gated internally with CE. When RD falls from high to low, the contents of the counters or registers specified by A to A3 are output to D to D3. It is valid when CS is low and CE is high. It is CMOS input. When WR falls from high to low or rises from low to high, the contents of D to D3 are written to registers or counters specified by A to A3. WR is valid when CS is low and CE is high. It is CMOS input. 4 D D3 Bi-directional data bus D to D3 are connected to the CPU data bus. The input section is gated internally with CE. It is CMOS input/output. 5 INTR Interrupt output INTR outputs cyclic interrupts or alarm interrupts to CPU. It also operates when CE is low (at battery backup). It is N-ch open drain output. 2

Pin No. Symbol Name 6 OSCIN Oscillator circuit 7 OSCOUT input/output Function VCrystal oscillator of 32.768kHz must be connected between OSCIN and OSCOUT. Capacitance is connected externally between VDD and OSCIN and VDD and OSCOUT, forming the oscillator circuit. 8 VDD 9 VSS Power supply VDD connects to +5V or +3V and VSS to ground. ) The pin numbers marked in the above table indicate the pins on the 8pin packages. ABSOLUTE MAXIMUM RATINGS VSS=V Symbol Item Conditions Ratings Unit VDD Supply Voltage.3 to +7. V VI Input Voltage.3 to +VDD+.3 V VO Output Voltage INTR, TMOUT.3 to +2. V Output Voltage 2 Except INTR, TMOUT.3 to +VDD+.3 V PD Maximum Power Dissipation TA=25 C 3 mw Topt Operating Temperature 2 to +7 C Tstg Storage Temperature 4 to +25 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 VSS=V, Topt= 2 to +7 C Symbol Item Conditions Limits MIN. TYP. MAX. Unit VDD Supply Voltage 2.7 5. 6. V VCLK Time Keeping Supply voltage 2. 6. V fxt Crystal Oscillation Frequency 32.768 khz VPUP Pull-up Voltage for INTR, TMOUT pin INTR, TMOUT V 3

DC ELECTRICAL CHARACTERISTICS Unless Noted, VSS=V, VDD=5V±%, Topt= 2 to +7 C, X'tal=32.768kHz, (R 35kΩ), CG=pF, CD=pF Symbol Item Pin Name Conditions Limits MIN. TYP. MAX. Unit VIH H input voltage A to A3, D to D3 2.2 VDD+.3 V VIL L input voltage CS, RD, WR.3.8 V VIH2 H input voltage.8 VDD VDD+.3 V CE VIL2 L input voltage.3.2 VDD V VOH H output voltage IOH= 4µA 2.4 V D to D3 VOL L output voltage IOL=2mA.4 V VOL2 L output voltage INTR, TMOUT IOL2=2mA.4 V IILK Input leak current A to A3, CE, CS, RD, WR VILK=VDD or VSS µa IOZ D to D3 VOZ=VDD or VSS 5 5 µa IOZ2 Output off leak current INTR, TMOUT VOZ2=VDD 2 2 µa IOZ3 INTR, TMOUT VOZ3=V 5 5 µa IDD Consumption current for back-up VDD VDD=2.5V, CE=L Others : OPEN 3 µa IDD2 Consumption current for stand-by VDD=5.5V, CE=H, CS=H, VDD Output : OPEN 8 µa Input : VDD or VSS f Oscillation frequency OSCIN VDD=2.5 to 5.5V drift for voltage drift OSCOUT Topt=25 C ppm 4

AC ELECTRICAL CHARACTERISTICS VSS=V, Topt= 2 to +7 C Symbol Item VDD=5V±% VDD=3V±% VDD=5V±2% MIN. MAX. MIN. MAX. MIN. MAX. Unit tces CE Setup Time 5, 5 ns tceh CE Hold Time 5, 5 ns tas (RD) Address Setup Time (For Read) 2 2 2 ns tas (WR) Address Setup Time (For Write) 2 2 2 ns tah (RD) Address Hold Time (For Read) ns tah (WR) Address Hold Time (For Write) ns trr Output Data Delay Time (CL=pF) 2 295 5 ns trz Output Data Floating Time 7 95 75 ns tw Write Pulse Width 2 95 5 ns tds Input Data Setup Time 6 95 75 ns tdh Input Data Hold Time ns TIMING CHART CE tces tceh A to A3 tas(rd) tah(rd) Read CS RD or RD CS D to D3 (Read Data) trr Valid trz tas(wr) tw tah(wr) Write CS WR or WR CS D to D3 (Write Data) tds Valid tdh ) The diagonally shaded sections marked in the above timing chart indicate the allowable high or low levels of the CS, RD, and WR pin inputs. Input/Output Conditions (VDD= 5V±%) (VDD= 3V±%) (VDD= 5V±2%) VIH = 2.2V VIH =.8 VDD VIH = 2.4V VIL =.8V VIL =.2 VDD VIL =.4V VOH= 2.2V VOH=.8 VDD VOH= 2.4V VOL =.8V VOL =.2 VDD VOL =.4V 5

FUNCTIONAL DESCRIPTIONS. Addressing Address Bus BANK (BANK=) BANK (BANK=) A3 A2 A A Description D3 D2 D D Description D3 D2 D D sec. Counter R/W S8 S4 S2 S Cyclic interrupt select Reg. W/O CT3 CT2 CT CT sec. Counter R/W S4 S2 S Adust Reg. W/O ADJ 2 min. Counter R/W M8 M4 M2 M min. alarm Reg. R/W AM8 AM4 AM2 AM 3 min. Counter R/W M4 M2 M min. alarm Reg. R/W AM4 AM2 AM 4 hour Counter R/W H8 H4 H2 H hour alarm Reg. R/W AH8 AH4 AH2 AH 5 hour Counter R/W P/A or H2 H hour alarm Reg. R/W AP/A or AH2 AH 6 day-of-the-week Counter R/W W4 W2 W 7 day Counter R/W D8 D4 D2 D 8 day Counter R/W D2 D 9 month Counter R/W MO8 MO4 MO2 MO A month Counter R/W MO 2/24 select Reg. W/O 2/24 B year Counter R/W Y8 Y4 Y2 Y Leap Year Reg. R/O LY LY R/W LYE C year Counter R/W Y8 Y4 Y2 Y Timer Clock Select Reg. R/W TM3 W/O TM2 TM TM R/O TMFG D Control Reg. W/O WTEN ALEN TMR BANK Control Reg. W/O WTEN ALEN TMR BANK E Control Reg. 2 R/O BSY R/O BSY Control Reg. 2 R/W CTFG ALFG XSTP R/W CTFG ALFG XSTP F Control Reg. 3 W/O TSTA TSTB WTRST Control Reg. 3 W/O TSTA TSTB WTRST ) R/W bits can be read and written. R/O bits can only be read. W/O bits can only be written. 2) It is no problem to attempt writing to R/O bits and blank bits, but the attempt will fail. 3) If W/O bits and blank bits are read, the returned value is. 4) The control registers, 2, and 3 have the same address assignment for BANK and BANK. 6

2. Functions of Registers 2. Control Register (Bank/ at Dh ) D3 D2 D D WTEN ALEN TMR BANK (For write operation) (For read operation) Bank switching bit BANK Function Specifies selection of BANK in the address table. Specifies selection of BANK in the address table. Timer resetting bit 2 TMR Function Specifies no change. Specifies resetting of the timer conditional on restart. Alarm operation setting bit 3 ALEN Function Disables an alarm interrupt. Enables an alarm interrupt. Time count operation setting bit 4 WTEN Function Disables a carry to the -second time digit. Enables a carry to the -second time digit. ) The BANK bit is intended for only write operation and always read as. 2) The timer frequency can be set by the timer clock selection register. 3) Setting the ALEN bit to during output of an alarm interrupt from the INTR pin (while it is held low) turns off the INTR pin. Setting the ALEN bit to in matching between clock time and alarm time drives the INTR pin low within a maximum of 6.µs. 4) A -second carry with the WTEN bit set to increments the second digit by upon setting of the WTEN bit to. This bit will automatically be set to upon driving low the CE pin. 7

2.2 Control Register 2 (BANK/ at Eh ) D3 D2 D D CTFG ALFG XSTP (For write operation) BSY CTFG ALFG XSTP (For read operation) Oscillation stop detection bit 2 XSTP Function Indicates the progress of oscillation. Intended for setting to. Indicates the stop of oscillation. Not intended for setting to. Alarm time match indication bit 3 ALFG Function Indicates an alarm interrupt is disabled or indicates mismatching between clock time and alarm time (upon turning off the INTR pin). Intended for setting to. Indicates matching between clock time and alarm time (upon driving low the INTR pin). Not intended for setting to. Cyclic interrupt indication bit 4 CTFG Function Indicates that the INTR pin is turned off. Intended for setting to in the level mode. Indicates that the INTR pin is driven low. Not intended for setting to. Time/calendar counter state indication bit 5 BSY Function Indicates the normal state of the time and calendar counters (no carry or no reset pulse). Indicates the busy state of the time and calendar counters (a carry or a reset pulse generated). ) The BSY bit is intended for only read operation and is not intended for write operation. 2) The XSTP bit is used to detect the stop of the crystal oscillator. The XSTP bit is set to upon the stop of oscillation and held at after the restart of oscillation. Upon detection of the stop of oscillation, the built-in timer counter is reset (because the TM3 bit in the timer clock selection register is reset). 3) When the ALEN bit is set to, the ALFG bit is also set to upon output of an alarm interrupt from the INTR pin (while it is held low). 8

ALFG INTR Alarm time match Alarm time match Setting the ALFG bit to Alarm time match 4) The CTFG bit is set to upon output of a cyclic interrupt from the INTR pin (while it is held low). (A cyclic interrupt may occur in the pulse mode and the level mode.) Pulse mode (The CT3 bit is set to.) (The CTFG bit is not intended for write operation.) CTFG INTR Preset interrupt cycle Level mode CTFG (The CT3 bit is set to.) (The CTFG bit is intended for setting to only.) INTR Interrupt Interrupt Setting the CTFG bit to 5) When the BSY bit is set to, write operation must not be performed upon the time and calendar counters which are being updated. Normally, read operation must be performed from the counters upon setting the BSY bit to. Reading from them without checking the BSY bit requires separate software for preventing reading errors. The BSY bit is set to in the four cases below: (I) Adjustment by ±3 seconds MAX.22.µs Setting the ADJ bit to Completion of adjustment (II) Correction by + (when there is a -second carry in transition of the WTEN bit from to ) Setting the WTEN bit to MAX.22.µs Completion of correction by + (III) Normal -second carry 9.6µs 3.5µs Completion of pulse for carry to second digit (IV) Counter resetting (setting of WTRST bit) (Resetting the to 8Hz dividers) Setting the WTRST bit to MAX.22.µs Completion of reset 9

2.3 Control Register 3 (BANK/ at Fh ) D3 D2 D D TSTA TSTB WTRST (For write operation) (For read operation) 2 Bit for resetting lower-order counter than the second counter. 3 WTRST Function Specifies normal operation. Specifies resetting of - to 8-Hz dividers conditional on restart. Test mode setting bits 4 TSTA,TSTB Function Specifies setting of the test mode. Specifies setting of normal operation. ) The bit marked with is not intended for write operation. 2) This bit is intended for only write operation and always read as. 3) When set to, the WTRST bit specifies resetting of the lower-order counter than the second counter ranging from 8Hz and 4Hz to 2Hz and Hz conditional on restart. The WTRST bit is used to adjust the lower-order counter than the second counter. After the WTRST bit is set to, the BSY bit is set to for a maximum of 22.µs. 4) Both the TSTA and TSTB bits must be set to to specify normal operation and will automatically be set to upon driving low the CE pin. 2.4 Adjustment Register (BANK at h ) D3 D2 D D ADJ (For write operation) (For read operation) 2 Second digit adjustment bit 3 ADJ Function Specifies normal operation. Specifies adjustment of second digit. ) The bits marked with are not intended for write operation. 2) This bit is intended for only write operation and always read as. 3) The ADJ bit is used to correct the second digit. When set to, the ADJ bit functions as follows: ) For digits ranging from seconds to 29 seconds Resets the lower-order counter than the second counter (in the same manner as the WTRST bit) and sets the second digit to. 2) For digits ranging from 3 seconds to 59 seconds Resets the second and lower-order counters (in the same manner as the WTRST bit), sets the second digit to and increments the minute digit by. The BSY bit is set to for a maximum of 22.µs after the ADJ bit is set to.

2.5 Interrupt Cycle Selection Register (BANK at h ) D3 D2 D D CT3 CT2 CT CT (For write operation) (For read operation) Interrupt cycle/output mode selection bits 2 ) These bits are intended for only write operation and always read as. 2) The CT3 to CT bits are used to set interrupt cycles and output modes as shown in the table below: CT3 CT2 CT CT INTR Remarks OFF Disable a cyclic interrupt. 248Hz Specify a cycle (T) of.488ms (/248Hz). 24Hz Specify a cycle (T) of.977ms (/24Hz). 28Hz Specify a cycle (T) of 7.83ms (/28Hz). 6Hz Specify a cycle (T) of 62.5ms (/6Hz). Hz Specify a cycle (T) of s (/Hz). /6Hz Specify a cycle (T) of 6s (//6Hz). ON Specify the fixed low level of the INTR pin output. Pulse mode Specify a duty cycle of 5%. See below. Level mode See below. ) The bits marked with are set to or. Pulse mode (The CT3 bit is set to.) (The CTFG bit is not intended for write operation.) CTFG INTR Preset interrupt cycle Level mode (The CT3 bit is set to.) (The CTFG bit is intended for setting to only.) CTFG INTR Interrupt (Interrupt) Setting the CTFG bit to Relationship between INTR pin output and upward second count () Pulse mode (when Hz or /6Hz is selected) INTR 3.5µs Upward second count Upward second count (2) Level mode (when Hz or /6Hz is selected) INTR 3.5µs Upward second count Upward second count

2.6 Alarm Register (-minute, -minute, -hour, and -hour) (BANK at 2h to 5h ) D3 D2 D D AM8 AM4 AM2 AM (For read and write operations) -minute alarm digit (at 2h ) AM4 AM2 AM (For read and write operations) -minute alarm digit (at 3h ) AH8 AH4 AH2 AH (For read and write operations) -hour alarm digit (at 4h ) AP/A or AH2 AH (For read and write operations) -hour alarm digit (at 5h ) ) The bits marked with are always read as and not intended for write operation. 2) When enabling an alarm interrupt, non-existent minute and hour alarm digits must not be left (to prevent mismatching between clock time and alarm time). 3) Alarm minute and hour settings are exemplified in the table below: 2-hour time scale 24-hour time scale Alarm minute and hour setting -hour -hour -minute -minute -hour -hour -minute -minute digit digit digit digit digit digit digit digit : a.m. 2 : 3 a.m. 3 3 : 59 a.m. 5 9 5 9 : p.m. 3 2 2 : 3 p.m. 2 3 3 3 : 59 p.m. 3 5 9 2 3 5 9 4) In the the 2-hour time scale, the hour digits of 2 and 32 indicate o'clock a.m. and o'clock p.m., respectively. 2.7 2/24-hour Time Scale Selection Register (BANK at Ah ) D3 D2 D D 2/24 (For write operation) (For read operation) 2 2/24-hour time scale selection bit 3,4 2/24 Function Selects the 2-hour time scale with a.m. and p.m. indications. Selects the 24-hour time scale. ) The bits marked with are not intended for write operation. 2) These bits are intended for only write operation and always read as. 3) The time digits are indicated in binary-coded decimal (BCD) notation as shown in the table below: 2

24-hour time scale 2-hour time scale 2-hour time scale 24-hour time scale 2 (AM2) 2 32 (PM2) (AM ) 3 2 (PM ) 2 2 (AM 2) 4 22 (PM 2) 3 3 (AM 3) 5 23 (PM 3) 4 4 (AM 4) 6 24 (PM 4) 5 5 (AM 5) 7 25 (PM 5) 6 6 (AM 6) 8 26 (PM 6) 7 7 (AM 7) 9 27 (PM 7) 8 8 (AM 8) 2 28 (PM 8) 9 9 (AM 9) 2 29 (PM 9) (AM) 22 3 (PM) (AM) 23 3 (PM) 4) The 2-hour or 24-hour time scale must be selected before time of day adjustment or alarm time setting (e.g. at the time of initialization after power-on from V) 2.8 Leap Year Indication Register (BANK at Bh ) D3 D2 D D LYE LYE LY LY (For write operation) (For read operation) Leap year indication bits (intended for only read operation) 2 (LY,LY) (,) Any other value Function Specifies leap year indication (including February 29) (when the LYE bit is set to. Specifies normal year indication (not including February 29). Leap year indication selection bit 3,4 LYE Function Enables leap year indication. Disables leap year indication. ) The bits marked with are not intended for write operation. 2) The LY and LY bits cycle from via and to with the passage of years. 3) Upon setting the LYE bit to, automatic correction is made for leap years in the years 9 to 299 (e.g. 992, 996, and 2). Upon setting the LYE bit to, leap year indication is disabled (counting up to February 28). 4) Writing to the -year or -year counter enables leap year indication (sets the LYE bit to ). 3

2.9 Timer Clock Selection Register (BANK at Ch ) D3 D2 D D TM3 TM2 TM TM (For write operation) TM3 TMFG (For read operation) Timer counter cycle setting bit (TM3 to TM) 2 Timer output indication bit (TMFG) 3 ) Only the TM3 bit is intended for read operation. The D bit is always read as TMFG. The D2 and D bits are always read as. 2) The TM3 to TM bits are used to set cycles for the counters as shown in the table below. TM3 TM2 TM TM T T2 T3 (Watchdog timer cycle) (Output time after timer resetting) (Free-running timer cycle) Timer output disabled Timer output disabled Timer output disabled (TMOUT pin output turned off) (TMOUT pin output turned off) (TMOUT pin output turned off) 562ms 562 to 626ms 625ms 28ms 28 to 33ms 32.5ms 4ms 4 to 57ms 56.3ms 7.3ms 7.3 to 78.2ms 78.3ms 35.ms 35. to 39.ms 39.6ms 7.5ms 7.5 to 9.6ms 9.53ms 8.78ms 8.78 to 9.77ms 9.766ms 4.39ms 4.39 to 4.89ms 4.883ms T : Maximum time during which timer output is disabled after timer resetting. (Timer reset occurs upon setting the TMR bit to in the control register.) (Timer output occurs upon driving low the TMOUT pin output.) T2 : Time between timer output and cycle setting during timer resetting (upon setting the TM3 bit to ), or timer resetting, or transition of the CE pin input from its low to high levels. T3 : Timer output cycle without timer reset. 4

3) Relationship between TMFG Bit and TMOUT pin output TMOUT TMFG.244ms MAX.T T2 T3 Setting the TMR bit to Setting the TMR bit to 4) The timer is stopped (the TMOUT pin output is turned off) upon driving low the CE pin input, but restarted upon driving high the CE pin input. 5) Timer output is disabled (the TMOUT pin output is turned off) upon resetting the TM3 bit to when the stop of oscillation is detected (setting the XSTP bit to ). 6) Timer output is turned off (the TMOUT pin output is turned off) upon setting the TMR bit to in the control register during timer output (while the TMOUT pin is held low). 3. Functions of Counters 3. Time Counter (BANK at h to 5h ) D3 D2 D D S8 S4 S2 S (For read and write operations) -second time digit (at h ) S4 S2 S (For read and write operations) -second time digit (at h ) M8 M4 M2 M (For read and write operations) -minute time digit (at 2h ) M4 M2 M (For read and write operations) -minute time digit (at 3h ) H8 H4 H2 H (For read and write operations) -hour time digit (at 4h ) P/A or H2 H (For read and write operations) -hour time digit (at 5h ) ) The bits marked with are always read as and not intended for write operation. 3) The time digits are indicated in BCD notation as shown below: 2) Upon setting the WTEN bit to in the control register, a carry to the -second time digit from the second counter is disabled. Second digit: Ranges from to 59 and carried to the minute digit in transition from 59 to. Minute digit: Ranges from to 59 and carried to the hour digit in transition from 59 to. Hour digit: Ranges as shown in 2. 7 2/24-hour Time Scale Selection Register and carried to the day or day-of-the-week digit in transition from p.m. to 2 a.m. or from 23 to. 4) A carry from any non-existent time digit must be avoided because it may cause malfunction in the time counter. 5

3.2 Day-of-the-week Counter (BANK at 6h ) D3 D2 D D W4 W2 W (For read and write operations) Day-of-the-week counter ) The bits marked with are always read as and not intended for write operation. 2) The day-of-the-week counter is incremented by in a carry to the -day calendar digit. 3) Days of the week written to the W4, W2, and W bits are counted up in septimal notation as shown below : () ()... () () The correspondence between days of the week and readings of the day-of-the-week counter is user-definable (e.g. Sunday=) 4) The W4, W2, and W bits must not be all set to. 3.3 Calendar Counter (BANK at 7h to Ch ) D3 D2 D D D8 D4 D2 D (For read and write operations) -day calendar digit (at 7h ) D2 D (For read and write operations) -day calendar digit (at 8h ) MO8 MO4 MO2 MO (For read and write operations) -month calendar digit (at 9h ) MO (For read and write operations) -month calendar digit (at Ah ) Y8 Y4 Y2 Y (For read and write operations) -year calendar digit (at Bh ) Y8 Y4 Y2 Y (For read and write operations) -year calendar digit (at Ch ) ) The bits marked with are always read as and not intended for write operation. 2) The calendar digits are indicated in BCD notation by the automatic calendar function as shown below: Day digit : Ranges from to 3 (in January, March, May, July, August, October, and December) Ranges from to 3 (in April, June, September, and November) Ranges from to 29 (in February in leap years) Ranges from to 28 (in February in normal years) Carried to the month digit in transition back to. Month digit : Ranges from to 2 carried to the year digit in transition back to. Year digit : Ranges from to 99 including leap years of, 4, 8, - - - - - -, 92, and 96 (when leap year indication is enabled by setting the LYE bit in the leap year indication register to ). 3) A carry from any non-existent calendar digit must be avoided because it may cause malfunction in the calendar counter. 6

USAGE. Reading and Writing Operations CE A3 to A Address RD Reading operation CS Writing operation WR D3 to D Data bus Upon driving high the CE pin, the interfacing input/output pins are enabled, establishing equivalence in logic between the RD and CS pin inputs during read operation and between the WR and CS pin inputs during write operation. Upon driving low the CE pin, the interfacing input/output pins are disabled, preventing occurrence of invalid leak current due to their floating. The CE pin must always be driven either high or low and must never be left floating.. Reading Operation The requirements for reading data from the internal registers and counters are: [] holding the CE pin high, [2] performing the process of addressing through the A3 to A pin inputs, then [3] driving low the CS pin, [4] causing the RD pin to transition from its high to low levels, and thereby [5] causing the D3 to D pins to output read data. The reading timing is shown in the chart below. [] CE A to A3 tces [2] tceh tas(rd) tah(rd) CS RD or RD CS D to D3 (Read Data) [3] [4] trr [5] Valid trz ) The CS and RD pin inputs are interchangeable. The diagonally shaded sections marked in the above timing chart may be set to both high and low levels. (Consequently, the CS and RD pin inputs may be caused to transition from their high to low levels before the process of addressing.) 2) tas (RD) indicates the time required to perform the process of addressing before the start of read operation at which both the RD and CS pin inputs are driven low. 3) tah (RD) indicates the time required to maintain the result of addressing after the completion of read operation at which either the RD or CS pin input is driven high. 7

.2 Writing Operation The requirements for writing data to the internal registers and counters are: [] holding the CE pin high, [2] performing the process of addressing through the A3 to A pin inputs, then [3] driving low the CS pin, [4] causing the WR pin to transition from its high to low to high levels, and thereby [5] causing the D3 to D pins to input data to be written. The writing timing is shown in the chart below. [] CE A to A3 tces [2] tceh tas(wr) tw tah(wr) CS WR or WR CS D to D3 (Write Data) [3] [4] tds [5] Valid tdh ) The CS and WR pin inputs are interchangeable. The diagonally shaded sections marked in the above timing chart may be set to both high and low levels. (Consequently, the CS and WR pin inputs may be caused to transition from their high to low levels before the process of addressing.) 2) tas (WR) indicates the time required to perform the process of addressing before the start of write operation at which both the WR and CS pin inputs are driven low. 3) tah (WR) indicates the time required to maintain the result of addressing after the completion of write operation at which either the WR or CS pin input is driven high. 2. Handling of CE Pin Normally, the CE pin is connected to the supply voltage detection circuit of the system power supply. In switching the system power supply (see the typical power supply circuit), the CE pin must be driven low before the voltage across the system power supply drops below the lower limit to the operating voltage of the CPU (at the point ([]) in the timing chart below) and then driven high after the supply voltage rises above the lower limit to the operating voltage of the CPU (at the point ([2]) in the timing chart below). VDD CE Voltage across system power supply.2vdd Lower limit to operating voltage of CPU [] [2] Battery voltage.2vdd MIN.µs MIN.µs ) The CE pin must be driven as low as the VSS pin whenever possible in order to minimize battery consumption in battery backup (while the CE pin is held low). 8

3. Configuration of Oscillatory Circuit Typical external components: RP/RF/RS5C62 RF RD VDD OSCOUT CD 32kHz OSCIN CG A VDD X'tal : 32.768 khz R 35kΩ CG=5pF to 35pF CD=5pF to 35pF Standard values of internal elements: RF=2MΩ RD=6kΩ In the oscillatory circuit, which is driven by a constant voltage of about 2V relative to the VDD pin, either one end of the oscillatory capacitors CG and CD must be connected to the VDD pin without exception. Reference When either one end of the oscillatory capacitors CG and CD is connected to the VSS pin instead of the VDD pin, the oscillatory circuit is still operational but subject directly to fluctuations in the voltage of the system power supply. Under sharp fluctuations between 5V and battery voltage in particular, the oscillatory circuit may be brought to a temporary stop. Thus, it is not recommendable to connect either one end of the oscillatory capacitors CG and CD to the VSS pin. < Considerations in Installing Components Surrounding Oscillatory Circuit > ) Install the oscillatory capacitors CG and CD in the closest possible proximity to the IC. 2) Avoid laying any signal or power line in the proximity of the oscillatory circuit (particularly in the area marked with A in the above figure). 3) Apply the highest possible insulation resistance between the OSCIN or OSCOUT pin and the printed circuit board (PCB). 4) Avoid using any long parallel line to wire the OSCIN and OSCOUT pin. 5) Take extreme care not to cause condensation, which leads to various problems such as failure of the crystal oscillators. < Other Relevant Considerations > ) When applying an external input of clock pulses (32.768kHz) to the OSCIN pin: DC coupling...prohibited due to mismatching input levels. AC coupling...permissible except that unpredictable results may occur upon detection of the stop of oscillation if any error occurs in such detection due to such factors as noises. Timer operation is prohibited upon detection of the stop of oscillation. 2) Avoid using the oscillator output of the RP/RF/RS5C62 (from the OSCOUT pin) to drive any other IC for the purpose of ensuring stable oscillation characteristics. 9

4. Adjustment of Oscillation Frequencies 4. Measurement of Oscillation Frequency The oscillation frequency can be measured by using the INTR pin output (a cyclic interrupt). Note that its measurement is affected by and cannot therefore be obtained with accuracy by the OSCIN pin input and the OSCOUT pin output, which are directly measured by such means as a probe. VDD OSCOUT OSCIN INTR CD CG 3 2 VDD Frequency counter ) Use a frequency counter with 6 or more readout digits in order to ensure an accuracy on the order of ±ppm. 2) Pull up the INTR pin to the VDD and set the CE pin to high. 3) Connect either one end of the oscillatory capacitors CG and CD to the VDD pin. Power-on from V Control register 3 Ch 4 4) Set both the TSTA and TSTB bits to in the control register 3 to disable the test circuit. Control register h 5 5) Set the ALEN bit to and the BANK bit to in the control register to disable an alarm interrupt. Control register 2 h 6 6) Set both the CTFG and ALFG bits to in the control register 2 to disable an alarm interrupt and a cyclic interrupt. Interrupt cycle selection register 5h 7 7) Set a cyclic interrupt to Hz (or any other cycle) in the pulse mode. Read frequency counter 8 8) An error of ±ppm for every Hz amounts to a time lag of approximately 2.6 seconds per month. [Example of monthly time lag calculation given an error of ±ppm for every Hz. ±ppm x 6 seconds x 6 minutes x 24 hours x 3 days = 2.592 = approx. 2.6 seconds per month ] 2

4.2 Adjustment of Oscillation Frequencies Select crystal oscillators Select CG and CD < Unless adjustment needs to be made to oscillation frequencies: > < If adjustment needs to be made to oscillation frequencies: > Fix CG and CD Replace CG with trimmer capacitor 2 Change ranking of oscillation frequencies Fix trimmer capacitor 4 NO Optimize CG and CD 3 Change ranking of oscillation frequencies YES END Optimize CD YES NO 3 Make fine adjustment to oscillation frequencies END ) In selecting crystal oscillators, inquire of their suppliers. Check how the selected crystal oscillators match the RP/RF/RS 5C62 and determine the ranking of oscillation frequencies (load capacitance (CL) in general and equivalent series resistance (R).) 2) The oscillatory capacitor CD can be replaced with a trimmer capacitor to adjust oscillation frequencies. 3) Optimize the oscillatory capacitors CG and CD to adjust oscillation frequencies to desired values (on the actual PCB in consideration of possible influences by floating capacitance). Note that the greater capacitance of the oscillatory capacitors CG and CD tend to result in increased current con- sumption and prolonged oscillation start time. As a guide, their recommendable capacitance ranges from 5 pf to 2 pf ( pf to -odd pf in particular). (See the typical characteristic measurement.) 4) Set the rotational angle of the trimmer capacitor slightly below the central value in its adjustment range (to ensure matching between the central values of the rotational angle and oscillation frequencies in consideration of the fact that smaller capacitance lead to greater frequency variations). Oscillation frequencies are subject to variations due to possible fluctuations in ambient temperature and supply voltage (see Typical Characteristics ). Reference A 32kHz crystal oscillator causes a clock delay above or below the central temperature range of 2 C to 25 C. It is therefore recommended to adjust or set oscillation frequencies in such a manner as to become slightly high in room temperature. 2

5. Interrupts Interrupts are available in the following two types: ) Alarm interrupt: Requested upon driving low (turning on) the INTR pin in matching between preset alarm time (in minutes and hours) and time indicated by the time counter (in minutes and hours). 2) Cyclic interrupt: Requested upon driving low (turning on) the INTR pin with a preset cycle. To output an alarm interrupt and a cyclic interrupt, the INTR pin is configured as shown in the figure below: Alarm interrupt Cyclic interrupt INTR ) When an alarm interrupt and a cyclic interrupt are generated in combination, their logical sum (OR) is output from the INTR pin. In this event, they can be distinguished from each other by reading the ALFG and CTFG bits of the control register 2. 2) The INTR pin output has indefinite states at power-on from V. 3) An alarm interrupt and a cyclic interrupt are both enabled whether the CE pin input is held high or low. Interrupt Registers Alarm-time... Alarm register (See 2. 6 Alarm Register.) ALEN bi (See 2. Control Register.) ALFG bit (See 2. 2 Control Register 2.) Cyclic... Cyclic interrupt select register (See 2. 5 Control Register 2.) CTFG bit (See 2. 2 Control Register 2.) 5. Alarm Interrupt Desired alarm time (in minutes and hours) can be preset in the alarm digits of the alarm register with the ALEN bit set to and then to in the control register. Upon matching between the preset alarm time and the time indicated by the time counter, the INTR pin is driven low (turned on) to output a request for an alarm interrupt. The INTR pin output can be controlled by using the ALEN bit in the control register and the ALFG bit in the control register 2. Alarm time match period: minute INTR MAX.6.µs ALEN= Alarm time match ALEN= ALEN= ALEN= Alarm time match INTR ALEN= Alarm time match ALFG= Alarm time match ) The above figure assumes that an alarm interrupt occurs in the absence of a cyclic interrupt. 2) The ALFG bit has an inverse logic from that of the INTR pin output. 22

5.2 Cyclic Interrupt A desired interrupt cycle can be preset in the bits in the interrupt cycle selection register. With the preset interrupt cycle, the INTR pin is driven low (turned on) to output an request for a cyclic interrupt. A cyclic interrupt can be output from the INTR pin in the pulse mode and the level mode. In the level mode in particular, a cyclic interrupt can be disabled by setting the CTFG bit to in the control register 2. Available interrupt cycles: 6 types (.488ms,.977ms, 7.83ms, 62.5ms, s, and 6s) Available output modes: 2 types (pulse mode and level mode) Pulse mode (The CT3 bit is set to.) (The CTFG bit is not intended for write operation.) Level mode (The CT3 bit is set to.) (The CTFG bit is intended for setting to only.) CTFG INTR CTFG INTR Preset interrupt cycle Interrupt (Interrupt) Setting the CTFG bit to ) A preset interrupt cycle can be canceled by setting the bits to in the interrupt cycle selection register. 2) The above figure assumes that a cyclic interrupt occurs in the absence of an alarm interrupt. 3) The CTFG bit has an inverse logic from that of the INTR pin output. Cyclic Interrupt Interrupt cycle selection register (See 2.5 Interrupt Cycle Selection Register ) CTFG bit (See 2.2 Control Register 2 ) 6. Timer Upon lapse of time preset in the timer clock selection register, cyclic pulses are output from the TMOUT pin. The timer counter can be reset conditional on restart by setting the TMR bit to in the control register. (It can act as a watchdog timer.) TMOUT TMFG.244ms MAX.T T2 T3 Setting the TMR bit to Setting the TMR bit to ) The timer is stopped upon driving low the CE pin input, but restarted upon driving high the CE pin input. 2) Timer output is disabled upon resetting the TM3 bit to when the stop of oscillation is detected. 3) The T3 to T bits are described in 2. 9 Timer Clock Selection Register. 4) Timer output is turned off upon setting the TMR bit to in the control register during timer output. 23

Reference It is recommended to update the settings of the timer clock selection register at regular time intervals to improve the stability of timer operation. Elements Involved in Timer Timer clock selection register and TMFG bit (See 2.9 Timer Clock Selection Register ) TMR bit (See 2. Control Register ) 7. Detection of Stop of Oscillation The stop of oscillation can be detected by monitoring the XSTP bit in the control register 2. Namely, the XSTP bit is switched from to upon detection of the stop of oscillation. This principle can be used to check the validity of time data. (The stop of oscillation can also be detected by using the software-controlled processes described in..2 Initialization Subject to Setting of XSTP Bit. Initialization at Power-on.) XSTP Power-on from V Setting the XSTP bit to (During oscillation) Stop of oscillation Restart of oscillation 2 ) The XSTP bit is set to at power-on from V. Note that the XSTP bit may be locked at instantaneous power disconnection. 2) Once the stop of oscillation has been detected, the XSTP bit is kept at even after the restart of oscillation. Considerations in Using XSTP Bit Ensure error-free detection of the stop of oscillation by: ) Preventing the VDD pin input from making instantaneous power disconnection. 2) Preventing the crystal oscillators causing condensation. 3) Preventing the crystal oscillators from causing noises on the PCB. 4) Preventing the individual pins from being impressed with voltage exceeding the maximum rating. 24

8. Typical Power Supply Circuit RP/RF/RS5C62 INTR OSCIN OSCOUT VDD VSS A B Voltage of system power supply ) Connect either one end of the oscillatory capacitors CG and CD to the VDD pin. 2) Install the by-pass capacitors for both high and low frequencies in close proximity to the IC in such a manner as to form a parallel arrangement. 3) Connect the pull-up resistor of the INTR pin to different points depending on whether it is used while the CE pin is held low (in battery backup). (I) Connect the pull-up resistor to Point A in the left circuit diagram unless it is used while the CE pin is held low. (II) Connect the pull-up resistor to Point B in the left circuit diagram if it is used while the CE pin is held low. 25

9. Typical Connection between RP/RF/RS5C62 and CPU RP/RF/RS5C62 and CPU Z8 RP/RF/RS5C62 and CPU 689 Z8 A4 to A5 IORQ A3 to A Address Decoder RP/RF/RS5C62 CS A3 to A 689 A4 to A5 BS BA A3 to A Address Decoder RP/RF/RS5C62 CS A3 to A D3 to D D3 to D D3 to D D3 to D RD WR RD WR R/W E RD WR Powerdown Detector CE Powerdown Detector CE RP/RF/RS5C62 and CPU 886 RP/RF/RS5C62 and CPU 68 886 Address Decoder RP/RF/RS5C62 CS 68 A to A23 BG Address Decoder RP/RF/RS5C62 CS ALE A to A9 BHE AD to 5 RD WR A to A9 BHE Latch A3 to A D3 to D RD WR D3 to D R/W LDS WR A3 to A D3 to D RD WR Powerdown Detector CE Powerdown Detector CE 26

. Typical Characteristics VDD CD=pF, CG=pF VDD OSCOUT CD X'tal : RL 35kΩ Topt=25 C A X tal Input pin : VDD or VSS Output pin : Open OSCIN VSS CG INTR Frequency counter. Current Consumption vs. CD.2 Current Consumption vs. CG Current Consumption IDD(µA) 4 3 2 CD= 5pF CD=pF CD=2pF CD=3pF CD=39pF VDD=3V Current Consumption IDD(µA) 4 3 2 VDD=3V CD= 5pF CD=pF CD=2pF CD=3pF CD=39pF 2 3 4 CD(pF) 2 3 4 CG(pF).3 Current Consumption vs. VDD.4 Current Consumption vs. Temperature 4 Topt=25 C CG=CD=pF 4 VDD=3V CG=CD=pF Current Consumption IDD(µA) 3 2 2 3 4 5 6 VDD(V) Current Consumption IDD(µA) 3 2 4 2 2 4 6 8 Temperature Topt( C) 27

.5 Oscillation Frequency vs. CG.6 Oscillation Frequency vs. CD 8 f:cg=cd=pf VDD=3V 8 f:cg=cd=pf VDD=3V 6 6 4 4 f/fo(ppm) 2 2 4 CD= 5pF CD=pF f/fo(ppm) 2 2 4 CD= 5pF CD=pF 6 8 CD=3pF CD=2pF 2 3 4 CG(pF) 6 8 CD=3pF CD=2pF 2 3 4 CD(pF).7 Oscillation Frequency vs. VDD.8 Oscillation Frequency vs. Temperature f:vdd=4v CG=CD=pF f:topt=22.5 C VDD=3V,CG=CD=pF f/fo(ppm) 2 f/fo(ppm) 2 3 4 3 5 6 4 2 3 4 5 6 VDD(V) 7 2 2 4 6 8 Topt( C).9 Oscillation Start Time vs. CG. Nch Open Drain Output IDS vs.vds 3 VDD=3V 35 Oscillation start time (s) 2.5 2.5.5 CD= 5pF CD=pF CD=2pF CD=3pF CD=39pF IDS(mA) 3 25 2 5 5 VDD=5V VDD=3V 4 2 3 4 CG(pF).5.5 2 VDS(V) 28

. Typical Software-controlled Processes. Initialization at Power-on At power-on from V, the internal registers and the output pins have indefinite states and therefore require initialization. The process of initialization differs as exemplified below depending on whether the XSTP bit (oscillation stop detection bit) is set in the control register 2. In the latter typical process of initialization below, the XSTP bit is used to check the validity of internal time data and the presence or absence of the initial routine..- Initialization Subject to No Setting of XSTP Bit Start Power-on from V ) At power-on from V, the internal registers and the output pins have indefinite states. Control register 3 Fh 2 2) Set both the TSTA and TSTB bits and the WTRST bit to in the control register 3 and thereby set the BSY bit to in the control register 2. Control register Control register 2 3h h 3 4 3) Set the WTEN bit to (clock operation disabled), the ALEN bit to and TMR bit to ( turn off the output pins) and the BANK bit to in the control register. Timer clock selection register h 4) Drive high (turn off) the INTR and TMOUT pin outputs. Interrupt cycle selection register h 5) Check the BSY bit in the control register 2 for the dual purpose of confirming the absence of a carry and confirming the start of oscillation. This requires additional time to wait for the start of the crystal oscillators. Fur- BSY=? YES Set 2-hour or 24-hour time scale, time and calendar counters, interrupt cycles, and timer output cycles 5 NO Wait ther, assign a time-out period to exit from the loop for checking the BSY bit. 6) Start both the clock and alarm functions. 7) This typical process of initialization is applied at power-on from V and not required at start-up from the backup battery. Control register Fh 6 29

.-2 Initialization Subject to Setting of XSTP Bit Start ) At power-on from V, the internal registers and the output pins have indefinite states. Power-on from V 2) Check the validity of internal time data. In using the XSTP bit, ensure error-free detection of the stop of oscilla- YES XSTP=? NO Control register 3 Fh 2 3 tion by: ) Preventing the crystal oscillators causing condensation. 2) Preventing the VDD pin input from making instantaneous power disconnection. 3) Preventing the crystal oscillators from causing noises on the PCB (by such means as signal line isolation). Control register 3h 4 4) Preventing the individual pins from being impressed with voltage exceeding the maximum rating. Interrupt cycle selection register h 5 3) Set both the TSTA and TSTB bits and the WTRST bit to in the control register 3 and thereby set the BSY bit to in the control register 2. 9 BSY=? YES 6 NO Wait 4) Set the WTEN bit to (clock operation disabled), the ALEN bit to and TMR bit to ( turn off the output pins) and the BANK bit to in the control register. Control register 2 h 7 5) Drive high (turn off) the INTR pin output. Set 2-hour or 24-hour time scale, time and calendar counters, interrupt cycles, and timer output cycles 6) Wait for the start of the crystal oscillators to confirm the start of oscillation as well as the absence of a carry. Further, assign a time-out period to exit from the loop for checking the BSY bit. 7) Set the XSTP bit to in the control register 2. Control register Fh 8 8) Start both the clock and alarm functions. 9) This route is applied at start-up from the backup battery when the process of initialization is omitted, assuming no internal time data destruction. 3

.2 Writing to or Reading from Time and Calendar Counters Writing to the time and calendar counters must be performed in the absence of a carry. In particular, correct writing to the time and calendar counters requires stopping time count operation (by setting that the WTEN bit to in the control register ) and confirming the absence of a carry (by checking that the BSY bit to in the control register 2). On the other hand, reading from the time and calendar counters may be performed by stopping time count operation, generating a cyclic interrupt, or dual reading..2- Writing to or Reading from Time and Calendar Counters by Stopping Time Count Operation (by Setting WTEN and checking BSY bits) ) Set the 2- or 24-hour time scale once before writing to the time and calendar counters (at the time of initialization after power-on from V). Set 2- or 24-hour time scale 2) Set the WTEN bit to in the control register to stop the second and higher-order digits. 3) When the BSY bit is set to in the control register 2, continue reading from the time and calendar counters until it is set to or wait for 22. µs or more. When the BSY bit is set to, it is kept at until the WTEN bit is set to again in the control register. 5 WTEN BANK BSY=? YES Write to or read from time and calendar counters 2 3 NO 4 WTEN 6 Wait 4) Writing to the -year or -year counter automatically enables leap year indication. To disable leap year indication, write 4h (set the LYE bit to ) in the leap year indication register after setting the time and calendar counters. Note that leap year indication is continued without correction until the year 299. 5) When reading from the time and calendar counters, ensure that this route lasts within second. If this route lasts within second, the -second digit is incremented by to correct a -second carry occurring during read operation upon setting the WTEN bit to again in the control register. Note that the -second digit is also incremented by to correct more than one -second carry while the WTEN bit is kept at, resulting in a clock delay. 6) Restart time count operation. (The WTEN bit will automatically be set to in the control register upon driving low the CE pin.) 7) When writing to the time and calendar counters, be sure to check the BSY bit in the control register 2 by disabling a carry (by setting the WTEN bit to ). 3