Epson RX801SJ Applications Manual

Real time clock module

Advertisement

Quick Links

ETM37E-06
l
Application Manua
Real Time Clock Module
RX8010SJ
Preliminary

Advertisement

Table of Contents
loading

Summary of Contents for Epson RX801SJ

  • Page 1 ETM37E-06 Application Manua Real Time Clock Module RX8010SJ Preliminary...
  • Page 2 The information about applied circuitry, software, usage, etc. written in this material is intended for reference only. Seiko Epson does not assume any liability for the occurrence of infringing on any patent or copyright of a third party. This material does not authorize the licensing for any patent or intellectual copyrights.
  • Page 3 ETM37E Revision History Rev No. Date Page Description ETM37E-01 14.Jul.2013 Release ETM37E-02 06.Sep.2013 Corrected a setting data of Flow chart Ex2 ETM37E-03 13.Sep.2013 Changed a 1. Overview. Deleted contents of a 8.1 DC characteristics. Corrected a fCLK to fSCL. Changed a comment of 8.2.1. AC characteristics. Deleted a comment of “Target spec”...
  • Page 4: Table Of Contents

    RX8010 SJ Contents 1. Overview ........................1 2. Block Diagram ....................... 1 3. Terminal description ..................... 2 4. External Dimensions ...................... 3 5. Absolute Maximum Ratings ................... 4 6. Recommended Operating Conditions ................4 7. Frequency Characteristics ..................... 4 8. Electrical Characteristics ....................5 9.
  • Page 5: Overview

    RX8010 SJ Low current consumption SERIAL-INTERFACE REAL TIME CLOCK MODULE RX8010 SJ • Built in frequency adjusted 32.768-kHz crystal unit. • Real-time clock function : Clock/calendar function,Long timer function, alarm interrupt function, etc. • User RAM : Built in 128 bit RAM •...
  • Page 6: Terminal Description

    RX8010 SJ 3. Terminal description 3.1. Terminal connections 1. N.C. 8. V 2. N.C. 7. / IRQ1 3. / IRQ2 6. SCL 4. GND 5. SDA SOP − 8pin 3.2. Pin Functions Signal Function name Input This is a shift clock input pin for serial data transmission. Input/Output This is the data input/output pin for serial data transfer.
  • Page 7: External Dimensions

    RX8010 SJ External Dimensions 4.1. External Dimensions ( SOP − 8 pin ) RX8010SJ • External dimensions ± 0° - 8° ± ± 0.22 2.65 Max. 1.27 Unit : mm Page − 3 ETM37E-06...
  • Page 8: Absolute Maximum Ratings

    RX8010 SJ 5. Absolute Maximum Ratings GND = 0 V Item Symbol Condition Rating Unit −0.3 ∼ +6.5 Supply voltage Between V and GND −0.3 ∼ +6.5 Input voltage SCL,SDA −0.3 ∼ V Output voltage 1 /IRQ2 +0.3 OUT1 −0.3 ∼ +6.5 Output voltage 2 SDA, /IRQ1 OUT2...
  • Page 9: Electrical Characteristics

    RX8010 SJ 8. Electrical Characteristics 8.1. DC characteristics *Unless otherwise specified, GND = 0 V , Ta = −40 °C to +85 °C 8.1.1. DC characteristics ( 1 ) ° ° = 1.6 V ∼ 5.5 V , Ta = −40 C ∼...
  • Page 10 RX8010 SJ 8.2. AC characteristics 8.2.1. AC characteristics(1) ° ° = 1.6 V ∼ 5.5 V , Ta = −40 C ∼ +85 Unless otherwise specified, GND = 0 V , V Standard-Mode Fast-Mode =100kHz) =400kHz) Item Symbol Unit Min. Max.
  • Page 11: Matters That Demand Special Attention On Use

    RX8010 SJ 9. Matters that demand special attention on use 9.1. Instructions in the power on 9.1.1. Characteristic for the fluctuation of the power supply ∗tR1 is restrictions to validate power-on reset. When cannot keep this standard, power-on reset does not work normally.
  • Page 12 RX8010 SJ 9.2. Restrictions on Access Operations during Power-on Initialization and Recovery from Backup • RTC-register operations are linked to the internal quartz oscillator's clock signal, so normal operation is not possible if there is no internal oscillation (= oscillation is stopped). Therefore, we recommend that the initial setting to be set during power-on initialization or backup and restore operations (i.e., when the power supply voltage is recovered after oscillation has stopped due to a voltage drop, etc.) should be "first start internal oscillation, then wait for the oscillation stabilization time (see tSTA standard) to...
  • Page 13: Reference Information

    RX8010 SJ 10. Reference information 10.1. Reference Data [ Finding the frequency stability ] (1) Example of frequency and temperature characteristics θ = +25 °C Typ. 1. Frequency and temperature characteristics can be × 10 α = -0.035 × 10 Typ.
  • Page 14: Application Notes

    RX8010 SJ 11. Application notes 1) Notes on handling This module uses a C-MOS IC to realize low power consumption. Carefully note the following cautions when handling. (1) Static electricity While this module has built-in circuitry designed to protect it against electrostatic discharge, the chip could still be damaged by a large discharge of static electricity.
  • Page 15: Overview Of Functions And Description Of Registers

    RX8010 SJ 12. Overview of Functions and Description of Registers Note: The initialization of the register is necessary about the unused function and Reserved bit 12.1. Overview of Functions 1) Clock functions This function is used to set and read out month, day, hour, date, minute, second, and year (last two digits) data. Any (two-digit) year that is a multiple of 4 is treated as a leap year and calculated automatically as such until the year 2099.
  • Page 16: Register Table

    ∗ Since the value of other registers is undefined at this time, be sure to reset all registers before using them. ∗2. The TEST, bit are Epson test bits. ∗ Be sure to write "0" by initializing before using the clock module. Afterward, be sure to set "0" when writing.
  • Page 17: Description Of Registers

    RX8010 SJ 12.3. Description of registers 12.3.1. Clock and calender counter ( Reg - 10[h] ∼ 16[h] ) This is counter registers from a second to year. ∗ Please refer to [13.1 Clock calendar explanation ] for the details. 12.3.2. RAM registers (Reg - 20[h] ∼ 2F[h] ) This RAM register is read/write accessible for any data in the range from 00 h to FF h.
  • Page 18 RX8010 SJ 12.3.6. Function-related register 2 ( Reg - 30[h] ∼ 32[h] ) 1)FOPIN1,FOPIN0 bit This bit selects destination (/IRQ1 or /IRQ2) of FOUT. 2)TMPIN bit This bit selects destination (/IRQ1 or /IRQ2) of fixed-cycle timer function. Reservedbit 12.3.7. The ' - ' mark has to write in specified fixed value in the case of initialization by all means. Writing data as follows.
  • Page 19: How To Use

    RX8010 SJ How to use 13.1. Clock calendar explanation At the time of a communication start, the Clock & Calendar data are fixed (hold the carry operation), and it is automatically revised at the time of the communication end. Therefore it recommends that the access to a clock calendar has continuous access by the auto increment function.
  • Page 20 RX8010 SJ 244.14 µs and 65535 hours. This function can stop at one time and is available as a accumulative timer. After the interrupt occurs, the /IRQ status is automatically cleared . 13.2.2. Related registers for function of fixed-cycle timer interrupt function Address [h] Function bit 7...
  • Page 21 RX8010 SJ Inside counter block diagram 4096Hz 64Hz Resister source Timer Counter 0 TSTP clock Timer Counter 1 selector 1/60Hz 1/3600Hz TST P 1/60 1/60 timer stop signal TSTP bit ∗ annot read the count value that is lower than a selected source clock. 3) TE bit ( Timer Enable ) When TE bit is "0", the default (preset) can be checked by reading this register.
  • Page 22 RX8010 SJ 7) TSTP bit ( Timer Stop ) This bit is used to stop fixed-cycle timer count down. operation STOP TSTP Description Writing a "0" to this bit cancels stop status (restarts timer count down). ∗The reopening value of the countdown is a stopping value Write Count stops.
  • Page 23 RX8010 SJ 13.2.5. Diagram of fixed-cycle timer interrupt function TMPIN[1:0] /IRQ1 TIE bit /IRQ2 Source clock TF Flag 4096 Hz 64 Hz 1 Hz 16 bit counter 1/60 Hz 1/3600 Hz Timer Control /tRTN Circuit TSEL[2:0] TF ( “0” Clear ) Fixed-cycle timer starts Fixed-cycle timer stops "...
  • Page 24: Alarm Interrupt Function

    RX8010 SJ 13.3. Alarm Interrupt Function The alarm interrupt function generates interrupt events for alarm settings such as date, day, hour, and minute settings. When an interrupt event occurs, the AF bit value is set to "1" and the /IRQ1 pin goes to low level to indicate that an event has occurred.
  • Page 25 RX8010 SJ 4) AIE bit ( Alarm Interrupt Enable ) This bit is used to control output of interrupt signals from the /IRQ1 pin when an Alarm interrupt event has occurred. Data Description 1) When an alarm interrupt event occurs, an interrupt signal is not generated or is canceled (/IRQ1 status remains Hi-z).
  • Page 26 RX8010 SJ 13.3.3. Diagram of alarm interrupt function MIN comparison result MIN AE HOUR comparison result HOUR AE WEEK comparison result AF Flag WEEK / DAY AE DAY comparison result WADA Internal MIN Update AF ( “0” Clear ) /IRQ1 "...
  • Page 27: Time Update Interrupt Function

    RX8010 SJ 13.4. Time Update Interrupt Function The time update interrupt function generates interrupt events at one-second or one-minute intervals, according to the timing of the internal clock. This /IRQ1 status is automatically cleared 13.4.1. Related registers for time update interrupt functions. Function bit 7 bit 6...
  • Page 28 RX8010 SJ 13.4.2. Time update interrupt function diagram UIE bit UF Flag /IRQ1 UF ( “0” Clear ) Carry Sec. Update Control /tRTN Carry Min. Circuit USEL bit F64Hz " 1 " UIE bit " 0 " Hi - z / IRQ1 output "...
  • Page 29: Frequency Stop Detection Function

    RX8010 SJ 13.5. Frequency stop detection function This flag bit indicates the retained status of clock operations or internal data. Its value changes from "0" to "1" when data loss occurs, such as due to a supply voltage drop. Once this flag bit's value is "1", its value is retained until a "0"...
  • Page 30: Flow-Chart

    RX8010 SJ 13.7. Flow-chart The following flow-chart is one instance. Mention for easy understanding takes precedence over others; therefore there are some inefficient cases for the actual processing. If you wish to take more efficient process, perform some processes at the same time or try to confirm and adjust some part where is no hindered from transposing of operation procedure.
  • Page 31 RX8010 SJ 2) An example of the initialization Ex.1 Initialize START • Reserved bits have to write in specified fixed value in the case Setting the reserved bits Reg − 17[h], 30[h]∼ 32[h] of initialization by all means. • Set TE bit to “0”. Reg −...
  • Page 32 RX8010 SJ Ex.2 This example is use only for clock functions. START • Reserved bits have to write in specified fixed value in the case Setting the reserved bits Reg − 17[h], 30[h]∼ 32[h] of initialization by all means. Reg − 1D[h] •...
  • Page 33 RX8010 SJ 4) The reading of a clock and calendar • Please complete access within 0.95 seconds Reading of the clock The STOP bit holds "0". (It causes the clock delay to set STOP bit to “1”) • At the time of a c ommunication start, the Clock & Calendar data are fixed Read clock (hold the carry operation), and it is automatically revised at the time of the communication end.
  • Page 34 RX8010 SJ 6) The setting example of the Alarm interrupt function START • Clear AIE bit to “0” to stop Alarm-interrupt function. Reg-1F[h] • Set alarm data. Reg − 18[h], 1A[h] • Select week or day in WADA bit Reg-1D[h] •...
  • Page 35: Reading/Writing Data Via The I C Bus Interface

    RX8010 SJ 13.8. Reading/Writing Data via the I C Bus Interface 13.8.1. Overview of I C-BUS The I C bus supports bi-directional communications via two signal lines: the SDA (data) line and SCL (clock) line. A combination of these two signals is used to transmit and receive communication start/stop signals, data transfer signals, acknowledge signals, and so on.
  • Page 36 RX8010 SJ 13.8.5. System configuration All ports connected to the I C bus must be either open drain or open collector ports in order to enable AND connections to multiple devices. SCL and SDA are both connected to the V line via a pull-up resistance.
  • Page 37 RX8010 SJ 13.8.6. I C bus protocol In the following sequence descriptions, it is assumed that the CPU is the master and the RX8010 is the slave. 1) Address specification write sequence Since the RX8010 includes an address auto increment function, once the initial address has been specified, the RX8010 increments (by one byte) the receive address each time data is transferred.
  • Page 38 RX8010 SJ 13.8.7. The example of the communication wave pattern 1) Address specification read sequence When write in A5h for address 20h: Slave address + 0(Write) Address (20h) Write data STOP START Write in A5h ACK signal from RX8010 ∗CPU release the SDA line 2) Address specification read sequence When read A5h from address 20h: Slave address + 0(Write)
  • Page 39 Unit 715-723 7/F Trade Square, 681 Cheung Sha Wan Road, Kowloon, Hong Kong Phone: (86) 755-2699-3828 (Shenzhen Branch) Fax: (86) 755-2699-3838 (Shenzhen Branch) http://www.epson.com.hk Epson Taiwan Technology & Trading Ltd. 14F, No.7, Song Ren Road, Taipei 110 Phone: (886) 2-8786-6688 Fax: (886)2-8786-6660 http://www.epson.com.tw/ElectronicComponent Epson Singapore Pte.

Table of Contents