background image

RTC - 8564 JE/NB 

 

 

Page - 6 

MQ - 322 - 04 

 

 
8.2.2. Control register 2 

 

Address 

Function 

bit 7 

bit 6 

bit 5 

bit 4 

bit 3 

bit 2 

bit 1 

bit 0 

01 Control 

0   

×

  

TI / TP 

AF 

TF 

AIE 

TIE 

 

 TI/TP ( Interrupt Signal Output Mode Select. Interrupt / Periodic ) 

If this bit is set to 0, when the timer counts down in the single operation mode and becomes zero, it sets the TF 
flag and then stops. If this bit is set to 1, when the timer in the repeat mode becomes zero, it sets the TF flag, 
and it furthermore reload the initial value and repeat to count down. As long as the TF flag is not cleared, the 
set is maintained. 

 

 AF ( Alarm Flag ) 

This is a flag bit which goes into the set state when an alarm occurs. 

 

 TF ( Timer Flag ) 

This is a flag bit which goes into the set state when the timer counts down within the specified cycle and 
becomes zero.  

 

 AIE ( Alarm Interrupt Enable ) 

This bit determines whether to output the alarm flag state to the /INT pin. When it is set to 1, AF=1 then  /INT 
becomes LOW. When it is set to 0, the information is not output to the /INT pin. 

 

 TIE ( Timer Interrupt Enable ) 

This bit determines whether to output the Timer flag state to the /INT pin. When it is set to 1, TF=1 then  /INT 
becomes LOW. When it is set to 0, the information is not output to the /INT pin. 

 

(Note) 

The /INT pin outputs the logical sum of the respective signal of alarm interrupt and timer interrupt. When an 
interrupt occurs, the AF/TF flag is read out. Therefore, be sure to check to see which interrupt event has 
occurred.When alarm and timer are both prohibited . The /INT pin will not become LOW active. If all hardware 
interrupts cannot be used due to system constraints, after the above setup, be sure to use the software to 
monitor the interrupt flags for AF and TF. 

 
8.2.3. Clock and calendar registers, and VL bit and century bit 

 

Address 

Function 

bit 7 

bit 6 

bit 5 

bit 4 

bit 3 

bit 2 

bit 1 

bit 0 

02 

Seconds 

VL 40 20 10  8  4  2  1 

03 Minutes 

×

 

40 20 10  8  4  2  1 

04 Hours 

×

 

×

 

20 

10 8 4 2 1 

05 Days 

×

 

×

 

20 

10 8 4 2 1 

06 Weekdays 

×

 

×

 

×

 

×

 

×

 

4 2 1 

07 

Months / Century 

×

 

×

 

10 8 4 2 1 

08 

Years 

80 40 20 10  8  4  2  1 

 

If data and time are set to impossible values, the clock cannot operate correctly. Therefore pay attention when 
handling them. 

 

 VL ( Voltage Low bit ) 

This is the bit for detecting low voltage. When the power source's voltage drops below VLOW[V]*, this flag is 
set to 1.  
After the initial power-on, it is set to 1. If this flag is set to 1 after recovery from the backup state, this means 
during the backup the power was low, and all data need to be initialized. 
But this bit is intended to detect the situation when V

DD

 is decreasing slowly for example under battery 

operation. 
In other words, chattering doesn't detect it. 
However, because this bit is write cleared regardless of the data, before performing a write to this register, be 
sure to read out its value.  

See the description on DC electrical characteristics. 

V

LOW

GND

V

DD

(1) VL=”1”

(2) VL=”0”

(3) VL=”1”

(1) VL="1" as result of initial supply of power
(2) When the power supply is low but voltage not dropping to V

LOW

, VL remains at "0"

with no change

(3) When the power supply is low and voltage dropping below V

LOW

, VL becomes "1".

  The value of the VL bit in (2) and (3) need to be zero cleared in (1).

GND=0 V

 

Summary of Contents for Q41856470000100

Page 1: ...MQ322 04 Application Manual Real Time Clock Module RTC 8564JE NB Model Product Number RTC 8564JE Q41856470000100 RTC 8564NB Q41856490000200 ...

Page 2: ...intellectual property rights is granted by implication or otherwise and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party This material of portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade La...

Page 3: ...8 2 2 Control register 2 6 8 2 3 Clock and calendar registers and VL bit and century bit 6 8 2 4 Alarm registers 7 8 2 5 CLKOUT frequency selection and timer registers 7 8 3 Access procedure 8 8 3 1 Characteristic of the I 2 C BUS 8 8 3 2 Bit transfer 8 8 3 3 Start condition and stop condition 8 8 3 4 Slave address 8 8 3 5 System structure 9 8 3 6 Acknowledge 9 8 3 7 I 2 C BUS protocol 10 8 4 Typi...

Page 4: ...is module is a serial interface real time clock that has a built in crystal oscillator The module offers many functions such as calendar clock alarm and timer All of them can be controlled with a two 2 lines interface Also the regular frequency output can be selected from programs Because this module has multiple features packaged in the same surface it is ideally suited for applications such as m...

Page 5: ...ram The pin is an C MOS terminal When initial power is supplied power supply starting from 0 V the power on reset function causes 32 768 kHz to be output When output stops the CLKOUT pin goes to LOW Control of CLKOE pin is necessaryto control this function justly SCL 6 6 Input For input of the serial clock SDA 7 5 Bi Directional This pin synchronizes with a serial clock and input output address da...

Page 6: ...characteristics Top Ta 10 to 70 C VDD 3 0 V Reference at 25 C 10 120 10 6 Oscillation startup up time tSTA Ta 25 C VDD 1 8 V 3 Max s Aging fa Ta 25 C VDD 3 0 V first year 5 Max 10 6 year 1 Equivalent to 1 minute of monthly deviation excluding offset 7 Electrical characteristics 7 1 DC electrical characteristics If not specifically indicated GND 0 V VDD 1 8 V to 5 5 V Ta 40 C to 85 C Parameter Symb...

Page 7: ...SU STO 0 6 µs Bus free time between a STOP and START condition tBUF 1 3 µs SCL L time tLOW 1 3 µs SCL H time tHIGH 0 6 µs SCL and SDA rise time tr 0 3 µs SCL and SDA fall time tf 0 3 µs Tolerance spike time on bus tSP 50 ns Timing chart tHD DAT tSU DAT tHD STA tLOW tHIGH 1 fSCL tr tf tSU STA SDA SCL START CONDITION S BIT 7 MSB A7 BIT 6 A6 ACK A Protocol tBUF tSU STO STOP CONDITION P START CONDITIO...

Page 8: ... mode is a special operation mode that is used by EPSON for testing devices Be sure not to set it to 1 If it is set to the test mode all operations of the device will not be guaranteed Therefore be careful when access to address 00 3 Be sure to set bit 0 of address 00 01 Control1 2 to zero 4 All count data at address 02 through 05 and 08 through 0B is in the BCD format 5 Write to bit is not possib...

Page 9: ... timer are both prohibited The INT pin will not become LOW active If all hardware interrupts cannot be used due to system constraints after the above setup be sure to use the software to monitor the interrupt flags for AF and TF 8 2 3 Clock and calendar registers and VL bit and century bit Address Function bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 02 Seconds VL 40 20 10 8 4 2 1 03 Minutes 40...

Page 10: ...et When all of the bits are set to AE no alarm will occur Additional information on the alarm function Even when the alarm is turned on for a long time this device clears the flag when the alarm occurs once and so no more further alarm will occur under the same condition This means in the same day when the alarm condition is met once the alarm flag is cleared and the alarm becomes unmatched the al...

Page 11: ...rt condition After that actual data transfer is executed When SCL is at HIGH and when SDA changes from LOW to HIGH this is defined as a stop condition SDA SCL S P Start condition Stop condition 8 3 4 Slave address The I 2 C BUS devices do not have any chip select pins with the usual logic devices All I 2 C BUS devices have a fixed unique device number for each device built into them The chip selec...

Page 12: ...as received the data Because the acknowledge bit is LOW active the transmitter sets the SDA line to HIGH and sends out a clock pulse for the acknowledge bit If the receiver can correctly receive the 8 bit data from the transmitter it will set the SDA line to LOW when the clock for the last bit is finished Because the I 2 C BUS lines are pulled up the SDA line of transmitter also turns to LOW At th...

Page 13: ...d out from the 8564 5 Confirm acknowledge from the 8564 6 The CPU sends out the start condition stop condition is not sent 7 The CPU sends out the slave address of the 8564 and the R W bit in read mode 8 Confirm acknowledge from the 8564 From here on the CPU acts as a receiver and the 8564 as a transmitter 9 Data at the address specified in step 4 is sent out from the 8564 10 The CPU sends out ack...

Page 14: ... 8564 JE NB Page 11 MQ 322 04 8 4 Typical connection to micro computers device SCL SDA GND VDD Master VDD SCL SDA tr R CBUS Pull up Registor RTC 8564 SCL SDA GND VDD SLAVE ADRS 1010001 I C BUS 2 I C BUS 2 ...

Page 15: ...Soldering pattern 1 3 0 1 0 125 0 1 Unit mm 6 3 Max 5 0 0 2 4 8 0 5 0 2 1 22 14 11 14 0 3 11 1 22 0 8 P 0 5 10 5 0 1 4 0 5 5 25 0 25 0 7 0 75 0 25 0 8 0 7 4 0 0 7 0 7 1 11 22 14 1 The cylinder of the crystal oscillator can be seen in this area back and front but it has no affect on the performance of the device 2 In this area At a parts side of electronic base you must not do layout any signal lin...

Page 16: ...ge 3 How to find the date difference Date Difference f f 86400 Sec For example f f 11 574 10 6 is an error of approximately 1 second day 1 Example of frequency and temperature characteristics 150 100 50 0 50 0 50 100 Temperature C Frequency f T 10 6 θT 25 C Typ α 0 035 10 6 Typ 2 Example of frequency and voltage characteristics 3 2 Frequency f v 10 6 3 0 3 4 5 Condition 3 V as reference Ta 25 C Su...

Page 17: ... level and malfunctions due to noise Therefore pull up or pull down resistors should be provided for all unused input pins 11 2 Notes on packaging 1 Soldering temperature conditions If the temperature within the package exceeds 260 the characteristics of the crystal oscillator will be degraded and it may be damaged Therefore always check the mounting temperature before mounting this device Also ch...

Page 18: ... 0 1344 381700 Fax 44 0 1344 381701 FRENCH Branch Office LP 915 Les Conquérants 1 Avenue de l Atlantique Z A de Courtaboeuf 2 91976 Les Ulis Cedex France Phone 33 0 1 64862350 Fax 33 0 1 64862355 ASIA EPSON CHINA CO LTD 23F Beijing Silver Tower 2 North RD DongSangHuan ChaoYang District Beijing China Phone 86 10 6410 6655 Fax 86 10 6410 7319 http www epson com cn 4F Bldg 27 No 69 Gui Qing Road Cao ...

Reviews: