RV-4162 Application Manual

RV-4162
Application Manual
Date: January 2014
Headquarters:
Micro Crystal AG
Mühlestrasse 14
CH-2540 Grenchen
Switzerland
Tel.
Fax
Internet
Email
Revision N°: 2.1
1/39
+41 32 655 82 82
+41 32 655 82 83
www.microcrystal.com
[email protected]
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
TABLE OF CONTENTS
1. OVERVIEW ........................................................................................................................................................ 4
1.1. GENERAL DESCRIPTION ......................................................................................................................... 4
1.2. APPLICATIONS ......................................................................................................................................... 4
2. BLOCK DIAGRAM ............................................................................................................................................. 5
2.1. PINOUT ...................................................................................................................................................... 6
2.2. PIN DESCRIPTION .................................................................................................................................... 6
2.3. FUNCTIONAL DESCRIPTION ................................................................................................................... 6
2.4. DEVICE PROTECTION DIAGRAM ........................................................................................................... 7
3. REGISTER ORGANIZATION ............................................................................................................................ 8
3.1. REGISTER ACCESS ................................................................................................................................. 8
3.2. BUFFER / TRANSFER REGISTERS ......................................................................................................... 9
3.3. REGISTER OVERVIEW ........................................................................................................................... 10
3.4. CLOCK SECTION .................................................................................................................................... 11
3.5. CONTROL SECTION ............................................................................................................................... 13
3.6. DATA FLOW OF TIME AND DATE FUNCTION ..................................................................................... 15
3.7. REGISTER RESET VALUE ..................................................................................................................... 15
4. DETAILED FUNCTIONAL DESCRIPTION ..................................................................................................... 16
4.1. CLKOUT FREQUENCY SELECTION ..................................................................................................... 16
4.2. FREQUENCY OFFSET COMPENSATION ............................................................................................. 17
4.2.1. FREQUENCY OFFSET COMPENSATION METHOD ..................................................................... 18
4.2.2. DEFINING FREQUENCY COMPENSATION VALUE ...................................................................... 19
4.3. WATCHDOG TIMER ................................................................................................................................ 20
4.4. ALARM FUNCTION ................................................................................................................................. 21
4.5. CENTURY BITS ....................................................................................................................................... 22
4.6. LEAP YEAR ............................................................................................................................................. 22
4.7. OSCILLATOR STOP DETECTION .......................................................................................................... 23
4.8. OUTPUT DRIVER PIN ............................................................................................................................. 23
2
5. CHARACTERISTICS OF THE I C BUS .......................................................................................................... 24
5.1. BIT TRANSFER ....................................................................................................................................... 24
5.2. START AND STOP CONDITIONS .......................................................................................................... 24
5.3. SYSTEM CONFIGURATION.................................................................................................................... 25
5.4. ACKNOWLEDGE ..................................................................................................................................... 25
2
6. I C BUS PROTOCOL ....................................................................................................................................... 26
6.1. ADDRESSING .......................................................................................................................................... 26
6.2. CLOCK AND CALENDAR READ AND WRITE CYCLES ...................................................................... 26
6.2.1. WRITE MODE ................................................................................................................................... 26
6.2.2. READ MODE AT SPECIFIC ADDRESS ........................................................................................... 27
6.2.3. READ MODE ..................................................................................................................................... 27
2/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
7. ELECTRICAL CHARACTERISTICS ............................................................................................................... 28
7.1. ABSOLUTE MAXIMUM RATINGS .......................................................................................................... 28
7.2. OPERATING AND AC MEASUREMENTS CONDITIONS ...................................................................... 28
7.3. CAPACITANCE ........................................................................................................................................ 28
7.4. FREQUENCY CHARACTERISTICS ........................................................................................................ 29
7.5. FREQUENCY VS. TEMPERATURE CHARACTERISTICS .................................................................... 29
7.6. STATIC CHARACTERISTICS ................................................................................................................. 30
2
7.7. I C INTERFACE TIMING CHARACTERISTICS ...................................................................................... 31
8. APPLICATION INFORMATION ....................................................................................................................... 32
8.1. RECOMMENDED REFLOW TEMPERATURE (LEADFREE SOLDERING) .......................................... 33
9. PACKAGES ..................................................................................................................................................... 34
9.1. DIMENSIONS AND SOLDERPADS LAYOUT ........................................................................................ 34
9.2. MARKING AND PIN #1 INDEX ................................................................................................................ 35
10. PACKING INFORAMTION ............................................................................................................................... 36
10.1. CARRIER TAPE ....................................................................................................................................... 36
10.2. PARTS PER REEL ................................................................................................................................... 37
10.3. REEL 7 INCH FOR 12 mm TAPE ............................................................................................................ 37
10.4. HANDLING PRECAUTIONS FOR CRYSTALS OR MODULES WITH EMBEDDED CRYSTALS ........ 38
11. DOCUMENT REVISION HISTORY .................................................................................................................. 39
3/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
RV-4162
Ultra Small Real Time Clock / Calendar Module with I2C Interface
1. OVERVIEW















RTC module with built-in “Tuning Fork” crystal oscillating at 32.768 kHz
Serial RTC with alarm functions:
2
- 400 kHz I C serial interface
- Memory mapped registers for seconds, minutes, hours, day, date, month, year and century
- Tenths / hundredths of seconds register
350 nA timekeeping current at 3.0 V
Timekeeping down to 1.0 V
2
1.3 V to 4.4 V I C bus operating voltage
Low operating current of 35 A (fSCL = 400 kHz)
32.768 kHz square wave output available at power-up, suitable for driving a uC in low power mode (can be
disabled)
Programmable 1 Hz to 32.768 kHz square wave output
Programmable alarm with interrupt function
Oscillator stop detection monitors clock operation
Accurate programmable watchdog: 62.5 ms to 31 min timeout
Software clock calibration, can adjust timekeeping within +/-2 ppm
Automatic leap year compensation
Operating temperature range: -40°C to +85°C
Ultra small and compact C7 package size, RoHS-compliant and 100% leadfree: 3.2 x 1.5 x 0.8 mm
1.1. GENERAL DESCRIPTION
The RV-4162 is a low power serial Real Time Clock (RTC) module with built-in 32.768 kHz crystal (no external
components are required for the oscillator). Eight registers are used for the clock / calendar function and are
configured in binary coded decimal (BCD) format. An additional 8 registers provide status / control of alarm,
calibration, programmable square wave output and watchdog functions. Addresses and data are transferred
2
serially via a two line, bidirectional I C interface. The built-in address register is incremented automatically after
each WRITE or READ data byte.
Functions available to the user include a time-of-day clock / calendar, alarm interrupts, programmable square wave
output, and watchdog. The eight clock address locations contain the century, year, month, date, day, hour, minute,
second and tenths / hundredths of a second in 24-hour BCD format. Corrections for 28, 29 (leap year), 30 and 31
day months are made automatically.
1.2. APPLICATIONS
The RV-4162 RTC module combines standard RTC functions in high reliable, ultra-small ceramic package:


Smallest RTC module (embedded XTAL) in an ultra-small 3.2 x 1.5 x 0.8 mm leadfree ceramic package.
Price competitive
The unique size and the competitive pricing make this product perfectly suitable for many applications:







Automotive: Navigation & Tracking Systems / Dashboard / Tachometers / Car Audio & Entertainment
Systems
Metering:
E-Meter / Heating Counter / Smart Meters / PV Converter
Outdoor:
ATM & POS systems / Ticketing Systems
Medical:
Glucose Meter / Health Monitoring Systems
Safety:
Security & Camera Systems / Door Lock & Access Control
Consumer: Gambling Machines / TV & Set Top Boxes / White Goods
Automation: Data Logger / Home & Factory Automation / Industrial and Consumer Electronics
4/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
2. BLOCK DIAGRAM
32.768 KHz
CRYSTAL
OSC
CLKOUT
2
DIVIDER
10th/100th Second
FREQUENCY-OFFSET
COMPENSATION
CLKOUT OUTPUT
CONTROL
OSCILLATOR FAIL
DETECTION
Seconds
00
Minutes
Hours
Day
Date
Month / Century
INT
SCL
SDA
INT CONTROL
6
Years
Freq. Compensation
Watchdog
8
I2C-BUS
WATCHDOG
INTERFACE
ADDRESS REGISTER
1
Month Alarm
Date Alarm
Hour Alarm
Minute Alarm
Second Alarm
Flags
VDD
VSS
5
0F
POWER UP RESET
3
5/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
2.1. PINOUT
C7 Package:
#8
#5
#1
SDA
#8
SCL
#2
CLKOUT
#7
N.C.
#3
VSS
#6
INT
#4
N.C.
#5
VDD
4162
#1
#4
2.2. PIN DESCRIPTION
Symbol
Pin #
Description
SDA
CLKOUT
VSS
N.C.
VDD
1
2
3
4
5
Serial Data; open-drain; requires pull-up resistor
Clock Output
Ground
Not Connected
Power Supply Voltage
INT
N.C.
SCL
6
Interrupt Output; open-drain; requires pull-up resistor; active low
7
8
Not Connected
Serial Clock Input; requires pull-up resistor
2.3. FUNCTIONAL DESCRIPTION
The RV-4162 is a low power CMOS Real-Time Clock / Calendar module with built-in “Tuning-Fork” crystal with the
nominal frequency of 32.768 kHz; no external components are required for the oscillator circuitry.
The oscillator frequency on all devices is tested not to exceed a time deviation of ± 20 ppm (parts per million) at
25°C, which equates to about ± 52 seconds per month.
This time accuracy can be further improved to ± 2 ppm at 25°C or better by individually measuring the frequencydeviation in the application and programming a correction value into the frequency compensation register.
The CMOS IC contains 16 8-bit RAM registers; the address counter is automatically incremented after each written
or read data byte. All sixteen registers are designed as addressable 8-bit parallel registers, although, not all bits are
implemented.
6/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
2.4. DEVICE PROTECTION DIAGRAM
SDA
CLKOUT
VSS
NC
1
8
2
7
3
6
4
5
SCL
NC
INT
VDD
7/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
3. REGISTER ORGANIZATION
The RV-4162 user interface consists of 16 memory mapped registers which include clock, calibration, alarm,
watchdog, flags, and square wave control.
First 8 registers are the Clock Section at address 00h through 07h. These registers are accessed indirectly via a
set of transfer registers.
Clock Section (addresses 00h through 07h):
These registers are coded in BCD format and contain the century, year, month, day / date, hours, minutes,
seconds and tenths / hundredths of seconds in 24-hour format. Corrections for 28, 29 (leap year), 30 or 31 day of
months are made automatically. These registers are accessed indirectly through transfer registers.
Next 8 registers are the control section at address 08h through 0Fh.
Control Section (addresses 08h through 0Fh):
These registers are coded in binary format and provide status, frequency compensation, alarm and control of the
peripheral functions including the programmable clock output and watchdog functions.
The CMOS IC contains 16 8-bit RAM registers. These registers are carried out double: internal counters and
external user accessible registers.
All sixteen registers are designed as addressable 8-bit parallel registers, although, not all bits are implemented.
The address counter is automatically incremented after each written or read data byte.
The internal registers keeping track of the time based on the 32.768 kHz clock oscillator and the divider chain. The
external registers are independent of the internal counters except that they are updated periodically by the
simultaneous transfer of the incremented internal data. To prevent data transition during Interface access, the
content of the external register is kept stable whenever the address being read is a clock address (00h to 07h).
The update of the external register will resume either when the address-pointer increments to a non-clock address
or Interface communication is terminated by sending a “STOP condition”.
After “WRITE” to the external register, when the “STOP condition” terminates the Interface communication, the
content of the modified external registers is copied into the corresponding internal registers. The divider chain of
the 32.768 kHz oscillator will be reset upon the completion of a “WRITE” to any clock address (00h to 07h).
3.1. REGISTER ACCESS
During normal operation when the user is not accessing the device, the transfer registers are kept updated with a
copy of the Clock Counter data.
2
At the start of an I C read or write cycle, the updating is halted and the present time & date is frozen in the transfer
2
registers. Halting the updates at the start of an I C access is to ensure that all the time & date data transferred out
during a read sequence comes from the same instant in time.
2
When writing to the device, each bit is shifted into the RV-4162's I C Interface on the rising edge of the SCL signal.
2
On the 8th clock cycle, each byte is transferred from the I C block into the register addressed by the address
pointer.
Data written to the Clock Registers (addresses 00h - 07h) is held in the transfer registers until the address pointer
2
increments to 08h, or when STOP condition from I C Interface is received. At which time the data in the transfer
registers are simultaneously copied into the Clock Counters and then the clock is restarted.
8/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
3.2. BUFFER / TRANSFER REGISTERS
32.768 kHz
OSCILLATOR
1
ad
Re
Write
2
Clock Section 00h to 07h
DIVIDE BY 32768
10th/100th Second
COUNTER
1 Hz
Seconds
COUNTER
Minutes
Hours
COUNTER
Day
Date
Month / Century
COUNTER
COUNTER
Years
SCL
I2C
INTERFACE
COUNTER
SDA
COUNTER
Control Section 08h to 0Fh
Freq.Compensation
3
Clock Counters
Watchdog
...
Flags
“Clock Counter Registers” containing time & date information are accessed indirectly through transfer registers.
1
At start of Read command, data from “Clock Counter Registers” are copied into “Transfer Register” and
2
the present time & date is frozen. The I C Interface reads the frozen data from Transfer Register, the
internal Clock Counter continuous to be updated by the 1 second ticks.
2
When Write to the “Clock Counter Registers”, data are written to the “Transfer Register” and internally
transferred to the “Clock Counter Registers” when address pointer increments to 08h or when STOP
2
condition from I C Interface is received.
3
2
Non clock registers of the Control Section 08h to 0Fh are directly accessed from I C Interface.
9/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
3.3. REGISTER OVERVIEW
Clock Section (addresses 00h through 07h):
These registers are coded in BCD format and contain the century, year, month, day / date, hour, minute, second
and tenths/hundredths of a second in 24-hour format. Corrections for 28, 29 (leap year), 30 or 31day months are
made automatically. These registers are accessed indirectly through transfer registers.
Control Section (addresses 08h through 0Fh):
These registers are coded in binary format and provide status, frequency compensation, alarm and control of the
peripheral functions incl. the programmable clock-output and watchdog functions.
Address
Function
00h
10th / 100th Second
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
Seconds
Minutes
Hours
Day
Date
Month / Century
Years
Freq. Compensation
Watchdog
Month Alarm
Date Alarm
Hour Alarm
Minute Alarm
Second Alarm
Flags
Bit 7
8
OS
OFIE
0
FD3
0
CB1
80
OUT
WD2
AFE
ARM4
ARM3
ARM2
ARM1
WDF
Bit 6
Bit 5
10th of Second
4
2
40
20
40
20
0
20
FD2
FD1
0
20
CB0
0
40
20
0
Mode
WDM4
WDM3
CLKOE
0
ARM5
20
0
20
40
20
40
20
AF
0
Bit 4
1
10
10
10
FD0
10
10
10
16
WDM2
10
10
10
10
10
0
Bit 3
8
8
8
8
0
8
8
8
8
WDM1
8
8
8
8
8
0
Bit 2
Bit 1
Bit 0
100th of Second
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
WDM0
WD1
4
2
4
2
4
2
4
2
4
2
OF
0
1
1
1
1
1
1
1
1
1
WD0
1
1
1
1
1
0
Bit positions labelled with 0 should always be written with logic “0”.
10/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
3.4. CLOCK SECTION
th
th
10 / 100 Second (address 00h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
8
4
2
1
8
4
2
1
00h
10th / 100th of seconds1)
Bit
Symbol
Value
10th of second
100th of second
0 to 9
0 to 9
7 to 4
3 to 0
Description
This register hold the current 10th of second coded in BCD format
This register hold the current 100th of second coded in BCD format
1)
Generation of 100th and 10th of second is derived from the internal clock source 32.768 kHz divided by 328 = 0.010009766 second. A WRITE
to any register of the Clock Section 00h to 07h will reset the divider chain of the 32.768 kHz clock and set the 10th / 100th of second = “00”.
Values other than “00” cannot be written to this register.
Seconds (address 01h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
01h
Seconds
OS
40
20
10
8
4
2
1
Bit
Symbol
Value
7
6 to 0
OS
Seconds
0
1
0 to 59
Description
32.768 kHz oscillator is enabled and starts within Tstart  1 sec.
32.768 kHz oscillator is disabled (stopped)
This register holds the current seconds coded in BCD format
Minutes (address 02h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
02h
Minutes
OFIE
40
20
10
8
4
2
1
Bit
Symbol
Value
0
7
6 to 0
OFIE
Minutes
1
0 to 59
Description
Oscillator fail interrupt is disabled
Oscillator fail interrupt is enabled; an interrupt will be issued when an
oscillator failure is detected
This register holds the current minutes coded in BCD format
Hours (address 03h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
20
10
8
4
2
1
03h
Hours
Bit
Symbol
Value
X
Hours
0
0 to 23
7 to 6
5 to 0
Description
Unused; must be set to “0”
This register holds the current hours coded in BCD format
11/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
Day (address 04h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
04h
Day
FD3
FD2
FD1
FD0
0
4
2
1
Bit
Symbol
7 to 4
FD0 to FD3
3
2 to 0
X
Weekday
Weekday
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
1)
Value
0000
to
1111
0
1 to 7
Description
Reference
FD0 to FD3 bits control CLKOUT frequency
0000 no frequency at CLKOUT
See section 4.1
0001 to 1111 select the CLKOUT frequency
Unused; must be set to “0”
This register holds the current weekday coded in BCD format1)
Bit 7
X
X
X
X
X
X
X
Bit 6
X
X
X
X
X
X
X
Bit 5
X
X
X
X
X
X
X
Bit 4
X
X
X
X
X
X
X
Bit 3
0
0
0
0
0
0
0
Bit 2
0
0
0
1
1
1
1
Bit 1
0
1
1
0
0
1
1
Bit 0
1
0
1
0
1
0
1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
20
10
8
4
2
1
These bits may be re-assigned by the user.
Date (address 05h…bits description)
Address
Function
05h
Date
Bit
Symbol
Value
X
Date
0
0 to 31
7 to 6
5 to 0
Description
Unused; must be set to “0”
This register holds the current date coded in BCD format
Month / Century (address 06h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
06h
Month / Century
CB1
CB0
0
10
8
4
2
1
Bit
Symbol
Value
CB1
7 to 6
Century
5
4 to 0
X
Month
Months
January
February
March
April
May
June
July
August
September
October
November
December
0
0
1
1
0
1 to 12
Bit 7
X
X
X
X
X
X
X
X
X
X
X
X
Description
Leap Year
CB0
0
Century 20xx (year 2000 – 2099)
2000 = yes
1
Century 21xx (year 2100 – 2199)
2100 = no
0
Century 22xx (year 2200 – 2299)
2200 = no
1
Century 23xx (year 2300 – 2399)
2300 = no
Unused; must be set to “0”
This register holds the current month coded in BCD format
Bit 6
X
X
X
X
X
X
X
X
X
X
X
X
Bit 5
0
0
0
0
0
0
0
0
0
0
0
0
Bit 4
0
0
0
0
0
0
0
0
0
1
1
1
Bit 3
0
0
0
0
0
0
0
1
1
0
0
0
Bit 2
0
0
0
1
1
1
1
0
0
0
0
0
Bit 1
0
1
1
0
0
1
1
0
0
0
0
1
Bit 0
1
0
1
0
1
0
1
0
1
0
1
0
12/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
Years (address 07h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
80
40
20
10
8
4
2
1
07h
Years
Bit
Symbol
Value
Years
0 to 99
7 to 0
Description
This register holds the current year coded in BCD format
3.5. CONTROL SECTION
Frequency Compensation (address 08h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
08h
Freq. Compensation
OUT
0
Mode
16
8
4
2
1
Bit
Symbol
Value
7
X
5
Mode
4 to 0
0
When OFIE, AFE and Watchdog register are not set to generate an
1
interrupt, the INT pin 6 becomes logic output reflecting the content of
this bit 7 “OUT”; See section 4.8
OUT
6
Calibration value
Description
0
0
1
0 to 31
Unused; must be set to “0”
Negative calibration; See section 4.2
Positive calibration; See section 4.2
This register holds the calibration value coded in binary format
Watchdog (address 09h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
09h
Watchdog
WD2
WDM4
WDM3
WDM2
WDM1
WDM0
WD1
WD0
Bit
Symbol
7, 1, 0
WD2 / WD1 / WD0
6 to 2
WDM4 to WDM0
Value
000
100
0 to 31
Description
Watchdog Timer Clock Source: 16Hz / 4Hz / 1 Hz / ¼ Hz / 1/60 Hz
This register holds the binary coded Watchdog Multiplier value
Month Alarm (address 0Ah…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Ah
Month Alarm
AFE
CLKOE
0
10
8
4
2
1
Bit
Symbol
7
AFE
6
CLKOE
5
4 to 0
X
Month alarm
Value
0
1
0
1
0
1 to 12
Description
Disables Alarm Flag
Enables Alarm Flag
Disables CLKOUT (clock output pin 2)
Enables CLKOUT (clock output pin 2)
Unused; must be set to “0”
This register holds the month alarm coded in BCD format
Date Alarm (address 0Bh…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Bh
Date Alarm
ARM4
ARM5
20
10
8
4
2
1
Bit
Symbol
Value
ARM4 – ARM5
Date alarm
00 to 11
7 to 6
5 to 0
1 to 31
Description
Alarm repeat mode; See section 4.4
This register holds the date alarm coded in BCD format
13/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
Hour Alarm (address 0Ch…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Ch
Hour Alarm
ARM3
0
20
10
8
4
2
1
Bit
Symbol
Value
ARM3
X
Hour alarm
0/1
0
0 to 23
7
6
5 to 0
Description
Alarm repeat mode; See section 4.4
Unused; must be set to “0”
This register holds the hour alarm coded in BCD format
Minute Alarm (address 0Dh…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Dh
Minute Alarm
ARM2
40
20
10
8
4
2
1
Bit
Symbol
Value
ARM2
Minute alarm
0/1
0 to 59
7
6 to 0
Description
Alarm repeat mode; See section 4.4
This register holds the Minutes Alarm coded in BCD format
Second Alarm (address 0Eh…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Eh
Second Alarm
ARM1
40
20
10
8
4
2
1
Bit
Symbol
Value
ARM1
Second alarm
0/1
0 to 59
7
6 to 0
Description
Alarm repeat mode; See section 4.4
This register holds the second alarm coded in BCD format
Flags (address 0Fh…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Fh
Flags
WDF
AF
0
0
0
OF
0
0
Bit
Symbol
Value
7
WDF
6
AF
5 to 3 and 1 to 0
2
1)
X
OF
0
1
0
1
0
0
1
Description
No watchdog timer timeout error detected
Watchdog timer timeout error detected, an interrupt will be generated
No matching alarm condition detected
Alarm flag set when watch matches Alarm settings
If AIE = 1, an alarm interrupt will be generated
Unused; must be set to “0”
No oscillator failure timeout error detected
Oscillator failure timeout error detected
If OFIE = 1, an oscillator fail interrupt will be generated
WDF and AF are read only bits, will be automatically cleared when read.
14/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
3.6. DATA FLOW OF TIME AND DATE FUNCTION
32.768kHz
Oscillator
Divider
Chain
10th / 100th
SECOND
SECONDS
MINUTES
HOURS
LEAP YEAR
CALCULATION
DAYS / DATE
WEEKDAY
MONTHS
YEARS
CENTURY
3.7. REGISTER RESET VALUE
Address
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
Function
10th / 100th Second
Seconds
Minutes
Hours
Day
Date
Month / Century
Years
Freq. Compensation
Watchdog
Month Alarm
Date Alarm
Hour Alarm
Minute Alarm
Second Alarm
Flags
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X
0
0
X
0
X
X
X
1
0
0
X
X
X
X
X
X
X
X
X
0
X
X
X
X
0
1
X
X
X
X
X
X
X
X
X
0
X
X
X
X
0
X
X
X
X
X
X
X
X
X
X
1
X
X
X
X
0
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
0
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
0
X
X
X
X
X
1
X
X
X
X
X
X
X
X
X
0
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
0
X
X
X
X
X
X
Bit positions labelled as “X” are undefined at power-on and unchanged by subsequent resets.
15/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
4. DETAILED FUNCTIONAL DESCRIPTION
4.1. CLKOUT FREQUENCY SELECTION
The RV-4162 offers the user a programmable square wave clock which is available at CLKOUT pin 2. CLKOUT
frequency is programmable by bits FD3 - FD0 (bit 7 - 4 in register Day 04h) according to below table:
CLKOUT frequency selection (address 04h…FD3 - FD0 bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
04h
Day
FD3
FD2
FD1
FD0
0
4
2
1
Bit
Symbol
FD3
FD2
FD1
FD0
Frequency
Units
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
None
32.768
8.192
4.096
2.048
1.024
512
256
128
64
32
16
8
4
2
1
kHz
kHz
kHz
kHz
kHz
Hz
Hz
Hz
Hz
Hz
Hz
Hz
Hz
Hz
Hz
7 to 4
FD3 to FD0
Values
CLKOUT
CLKOUT pin 2 is push-pull output and can be disabled either by setting bits FD3 - FD0 = “0000” or by setting bit
CLKOE (bit 6 in register Month Alarm 0Ah) = “0”.
CLKOUT frequency enable / disable (address 0Ah…CLKOE bit description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Ah
Month Alarm
AFE
CLKOE
0
10
8
4
2
1
Bit
Symbol
Value
CLKOE
0
1
6
Description
Disables CLKOUT (clock output pin 2)
Enables CLKOUT (clock output pin 2)
Default setting at initial power-up is CLKOUT enabled with the frequency of 32.768 kHz. It is recommended to
disable CLKOUT when not used by the application to minimize current consumption of the device.
16/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
4.2. FREQUENCY OFFSET COMPENSATION
The frequency offset compensation function gives the end user the ability to calibrate the clock and to improve the
time accuracy of the RV-4162.
The RTC is clocked by an oscillator operating a quartz crystal resonator with a nominal frequency of 32.768 kHz.
The oscillator frequency on all devices is laser-trimmed and tested not to exceed a time deviation of ±20 ppm at
25°C, which equates to about ±52 seconds per month.
The RV-4162 employs periodic clock counter correction. By properly setting the frequency calibration register in the
application, it can improve its time accuracy to typically ±2 ppm at 25 °C. The frequency compensation is made by
adding or subtracting clock correction counts from the oscillator divider chain at 128 Hz (“divide by 256 stage”),
thereby changing the period of a single second.
The number of clock pulses which are subtracted (negative calibration) or added (positive calibration) depends
upon the value loaded into the five compensation bits (bit 0 to bit 4) of the Frequency Compensation Register.
Adding counts speeds the clock up; subtracting counts slows the clock down.
The frequency offset compensation is controlled by the Frequency Compensation Register 08h. The calibration
value occupies the five LSB’s (bit 4 - 0). These bits can be set to represent any value between 0 and 31 in binary
format. Bit 5 “Mode” is a sign bit; “1” indicates positive calibration and speeds up the time, “0” indicates negative
calibration and slows down the time
Freq. Compensation (address 08h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
08h
Calibration Register
OUT
0
Mode
16
8
4
2
1
Bit
Symbol
Value
0
5
Mode
1
4 to 0
Positive
Negative
Bit 5
1)
Calibration value
0 to 31
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
1
1
1
1
1
1
1
0
0
0
0
1
1
0
0
0
1
1
0
0
0
1
1
1
0
0
1
1
0
1
0
1
0
1
1
0
0
1
1
:
0
0
0
1
1
:
0
0
0
0
0
0
1
0
Description
Negative calibration; compensates time deviation when 32.768 kHz clock is
too fast
Positive calibration; compensates time deviation when 32.768kHz clock is too
slow
This register holds the calibration value coded in binary format
Compensation
Value in
Decimal
+31
+30
:
+2
+1
01)
-1
-2
:
-30
-31
Frequency Compensation Event
Time correction
Compensation event
[ppm]
st
nd
-63.054
1 - 62 minute, 1 event each minute
-61.02
1st - 60th minute, 1 event each minute
:
-4.068
1st - 4th minute, 1 event each minute
-2.034
1st & 2nd minute, 1 event each minute
0
No correction
+4.068
1st & 2nd minute, 1 event each minute
+8.138
1st  4th minute, 1 event each minute
:
+122.04
1st - 60th minute, 1 event each minute
+126.108
1st- 62nd minute, 1 event each minute
Default mode at power-up.
17/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
4.2.1. FREQUENCY OFFSET COMPENSATION METHOD
The frequency compensation itself occurs within a 64 minute cycle. Each binary coded calibration value will trigger
two compensation events; compensation events are applied once per minute until the programmed calibration
value has been implemented. If, for example a binary “1” is loaded into the Frequency Compensation Register, only
the first 2 minutes in the 64 minute cycle will contain one compensation event each. If a binary ‘6’ is loaded, the first
12 minutes will be affected, and so on.
Each compensation event either shortens one second by 7.8 ms (256 x 32.768 kHz oscillator clock cycles) or
lengthened it by 3.9 ms (128 x 32.768 kHz oscillator clock cycles). Therefore, each calibration value triggers two
compensation events resulting in a time adjustment of -2.034 ppm (slower by -0.175 seconds per day) or +4.068
ppm (faster by +0.351 seconds per day) for each of the 31 values of the calibration value.
The maximum calibration value (31d) defines the compensation range of -63.054 ppm (slower by -5.449 seconds
per day) or +126.108 ppm (faster by +10.899 seconds per day).
Oscillator
32.768 kHz
Clock
32.768 kHz Clock
Frequency
Divider
Chain
256 Hz Clock
128 Hz Clock
1
2
+7.8 ms
+2.034 ppm
2
Positive Compensation Event
128 Hz +1 Clock
1
4
3
2
3
4
-3.9 ms
-1.017 ppm
Negative Compensation Event
128 Hz -1 Clock
1
2
1
1
2
3
4
Negative compensation (when 32.768 kHz clock too fast):
Then for each compensation event, a clock pulse at the 128 Hz divider stage is suppressed to
compensate the frequency deviation of the 32.768 kHz clock.
Positive compensation (when 32.768 kHz clock too slow):
Then for each compensation event a clock pulse at the 128 Hz divider stage is added to compensate the
frequency deviation of the 32.768 kHz clock.
Note that frequency compensation events do not affect the frequency at CLKOUT pin 2.
18/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
4.2.2. DEFINING FREQUENCY COMPENSATION VALUE
The simplest method for ascertaining the frequency deviation a given RV-4162 is to measure the frequency
deviation at CLKOUT pin 2. The measured frequency deviation, then, is transformed into an individual
compensation value for this device and programmed into the Frequency Compensation Register (08h).
For test purpose, the following configuration will establish a 32.768 kHz clock at CLKOUT pin 2:



Bit OS = “0” (bit 7 in register Seconds 01h): enables 32.768 kHz oscillator
Bits FD3 – FD0 = “0001” (bits 7 - 4 in register Day 04h): select 32.768 kHz CLKOUT frequency
Bit CLKOE = “1” (bit 6 in register Month Alarm 0Ah): enables CLKOUT pin 2
Please note that this is the default setting at power-up.
The frequency deviation on 32.768000 kHz CLKOUT indicates the degree and direction of time deviation for this
device. A frequency deviation of +0.032768 Hz equals to +1 ppm.
For example, a reading of 32.768650 kHz indicates a frequency deviation of +20 ppm (faster by +1.73 seconds per
day), requiring negative compensation value of “-10d” (xx001010) to be loaded into the Frequency Compensation
Register (08h) for frequency compensation.
It’s important to define the frequency compensation value at an ambient temperature (around 25°C) because of the
crystal’s frequency vs. temperature characteristics shown on page 29.
19/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
4.3. WATCHDOG TIMER
The Watchdog Timer can be used to detect an out-of-control microprocessor or deadlock of the Interface
communication. The function of the Interface Watchdog Timer is based on internal Timer / Counter which is
periodically reset by the internal control logic. If the control logic does not reset the Watchdog Timer within the
programmed time-out period, the RV-4162 detects an Interface time-out and sets Watchdog Flag (WDF = 1, bit 7,
in register Flags 0Fh) and generates an interrupt on INT pin 6.
The user programs the Watchdog Timer by setting the desired amount of time-out into the Watchdog register at
address 09h, a value of 00h will disable the watchdog function until it is again programmed to a new value.
The amount of time-out is then determined by selecting a Watchdog Timer Source Clock WD2 - WD0 and the
multiplication with the Watchdog Multiplier value WDM4 - WDM0.
 Bits WDM4 - WDM0 store a binary coded Watchdog Multiplier value.
 Bits WD2 - WD0 select the Watchdog Timer Clock Source.
For example: writing 00001110 in the Watchdog register = 3 x 1 second or 3 seconds.
Watchdog (address 09h…bits description)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
09h
Watchdog
WD2
WDM4
WDM3
WDM2
WDM1
WDM0
WD1
WD0
Bit
Symbol
Value
7 to 0
Watchdog
A value of 00h disables Watchdog Timer function
7, 1, 0
WD2 / WD1 / WD0
6 to 2
WDM4 to WDM0
00h
000
100
0 to 31
Description
Setting “00000” with any combination of WD2 - WD0, other than “000”, will
result in an immediate watchdog time-out
WDM4
WDM3
WDM2
WDM1
WDM0
Value
0
0
0
0
0
00h
0
0
0
1
1
1
1
1
0
…
1
1
1
1
0
1
01d
…
30d
31d
WD2
0
0
0
0
1
1
1
1
WD1
0
0
1
1
0
0
1
1
WD0
0
1
0
1
0
1
0
1
Description
Watchdog Timer Clock Source: 16Hz / 4Hz / 1 Hz / ¼ Hz / 1/60 Hz
This register holds the binary coded Watchdog Multiplier value
Defines binary coded Watchdog Multiplier value
Value
000
001
010
011
100
101
110
111
Timer Clock Source
Time
16 Hz
62.5ms
4 Hz
250 ms
1 Hz
1 second
¼ Hz
4 seconds
1
/60 Hz
1 minute
Invalid combination, will not enable Watchdog Timer
Invalid combination, will not enable Watchdog Timer
Invalid combination, will not enable Watchdog Timer
2
The Watchdog time-out period starts when the I C interface communication is initiated. If the control logic does not
reset the Watchdog Timer within the programmed time-out period, the RV-4162 detects an Interface time-out and
sets the Watchdog Flag (WDF = 1, bit 7, in register Flags 0Fh) and generates an interrupt on INT pin 6.
The Watchdog Timer can only be reset by having the microprocessor perform a WRITE to the Watchdog Register
09h. The time-out period then starts over.
Should the Watchdog Timer time-out, any value may be written to the watchdog register in order to clear the INT
pin 6. A value of 00h will disable the watchdog function until it is again programmed to a new value. A READ of the
flags register will reset the Watchdog Flag (bit 7; register 0Fh). The watchdog function is automatically disabled
upon power-up, and the Watchdog Register is cleared.
Note: A WRITE to any clock register will restart the Watchdog Timer.
20/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
4.4. ALARM FUNCTION
Addresses locations 0Ah-0Eh contain the alarm settings. The alarm can be configured to go off at a prescribed
time on a specific month, date, hour, minute, or second, or repeat every year, month, day, hour, minute, or second.
Bits ARM5 - ARM1 put the alarm in the repeat mode of operation. The table below shows the possible
configurations. Codes not listed in the table default to the once per second mode to quickly alert the user of an
incorrect alarm setting.
When the clock information matches the alarm clock settings based on the match criteria defined by ARM5 ARM1, the AF (alarm flag) is set. If AFE (alarm flag enable) is also set, the alarm condition activates the INT pin 6.
To disable the alarm, write “0” to the Date Alarm register and to ARM5 - ARM1.
Note: If the address pointer is allowed to increment to the flag register address, an alarm condition will not cause
the interrupt / flag to occur until the address pointer is moved to a different address. It should also be noted that if
the last address written is the Second Alarm, the address pointer will increment to the flag address, causing this
situation to occur.
The INT is cleared by a READ to the Flags register as shown in figure below. A subsequent READ of the Flags
register is necessary to see that the value of the alarm flag has been reset to “0”.
Alarm interrupt reset waveform:
INT
Alarm Repeat Mode Settings (addresses 0Bh to 0Eh, ARM5 to ARM1…bits description)
Address
0Bh
0Ch
0Dh
0Eh
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Date Alarm
Hour Alarm
Minute Alarm
Second Alarm
ARM4
ARM3
ARM2
ARM1
ARM5
0
40
40
20
20
20
20
10
10
10
10
8
8
8
8
4
4
4
4
2
2
2
2
1
1
1
1
ARM5
ARM4
ARM3
ARM2
ARM1
1
1
1
1
1
0
1
1
1
1
0
0
1
1
1
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
Alarm setting
Once per second
Once per minute
Once per hour
Once per day
Once per month
Once per year
21/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
4.5. CENTURY BITS
The two century bits, CB1 and CB0, are bits 7 and 6, respectively, in the Month / Century register at address 06h.
Together, they comprise a 2-bit counter which increments at the turn of each century. CB1 is the most significant
bit.
The user may arbitrarily assign the meaning of CB1:CB0 to represent any century value, but the simplest way of
using these bits is to extend the Years register (07h) by mapping them directly to bits 9 and 8 (the reader is
reminded that the year register is in BCD format). Higher order year bits can be maintained in the application
software.
Century bits CB1 and CB0:
4.6. LEAP YEAR
Leap year occurs every four years, in years which are multiples of 4. For example, 2012 was a leap year. An
exception to that is any year which is a multiple of 100. For example, the year 2100 is not a leap year. A further
exception is that years which are multiples of 400 are indeed leap years. Hence, while 2100 is not a leap year,
2400 is.
During any year which is a multiple of 4, the RV-4162 RTC will automatically insert leap day, February 29.
Therefore, the application software must correct for this during the exception years (2100, 2200, etc.) as noted
above.
22/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
4.7. OSCILLATOR STOP DETECTION
If the oscillator fail (OF) bit is internally set to a “1”, this indicates that the oscillator has either stopped, or was
stopped for some period of time and can be used to judge the validity of the clock and date data. This bit will be set
to “1” any time the oscillator stops.
In the event the OF bit is found to be set to “1” at any time other than the initial power-up, the STOP bit (OS) should
be written to a “1”, then immediately reset to “0”. This will restart the oscillator.
The following conditions can cause the OF bit to be set:
 The first time power is applied (defaults to a “1” on power-up)
Note: if the OF bit cannot be written to “0” four (4) seconds after the initial power-up, the STOP bit (OS)
should be written to a “1”, then immediately reset to “0”.
 The voltage present on VDD or battery is insufficient to support oscillation
 The OS bit is set to “1”
If the oscillator fail interrupt enable bit (OFIE) is set to a “1”, the INT pin 6 will also be activated. The INT output is
cleared by resetting the OFIE or OF bit to “0” (NOT by reading the Flag register).
The OF bit will remain set to “1” until written to logic “0”. The oscillator must start and have run for at least 4
seconds before attempting to reset the OF bit to “0”. If the trigger event occurs during a power-down condition, this
bit will be set correctly.
4.8. OUTPUT DRIVER PIN
When the OFIE bit, AFE bit, and Watchdog register are not set to generate an interrupt, the INT pin 6 becomes an
output driver that reflects the contents of bit 7 (OUT bit) of the Freq. Compensation register. In other words, when
bit 7 (OUT bit) is a “0”, then the INT pin 6 will be driven low.
Note: The INT pin 6 is an open-drain which requires an external pull-up resistor.
23/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
5. CHARACTERISTICS OF THE I2C BUS
2
The I C bus is for bidirectional, two-line communication between different ICs or modules. The two lines are a
Serial DAta line (SDA) and a Serial CLock line (SCL). Both lines are connected to a positive supply via pull-up
resistors. Data transfer is initiated only when the bus is not busy.
5.1. BIT TRANSFER
One data bit is transferred during each clock pulse. The data on the SDA line remains stable during the HIGH
period of the clock pulse, as changes in the data line at this time are interpreted as a control signals. Data changes
should be executed during the LOW period of the clock pulse (see figure below).
Bit transfer:
5.2. START AND STOP CONDITIONS
Both data and clock lines remain HIGH when the bus is not busy. A HIGH-to-LOW transition of the data line, while
the clock is HIGH, is defined as the START condition (S). A LOW-to-HIGH transition of the data line, while the clock
is HIGH, is defined as the STOP condition (P) (see figure below).
Definition of START and STOP conditions:
For this device, a repeated START is not allowed. Therefore, a STOP has to be released before the next START.
24/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
5.3. SYSTEM CONFIGURATION
2
2
Since multiple devices can be connected with the I C bus, all I C bus devices have a fixed and unique device
number built-in to allow individual addressing of each device.
2
The device that controls the I C bus is the Master; the devices which are controlled by the Master are the Slaves. A
device generating a message is a Transmitter; a device receiving a message is the Receiver. The RV-4162 acts as
a Slave-Receiver or Slave-Transmitter.
2
Before any data is transmitted on the I C bus, the device which should respond is addressed first. The addressing
is always carried out with the first byte transmitted after the start procedure. The clock signal SCL is only an input
signal, but the data signal SDA is a bidirectional line.
System configuration:
5.4. ACKNOWLEDGE
The number of data bytes transferred between the START and STOP conditions from transmitter to receiver is
unlimited. Each byte of 8 bits is followed by an acknowledge cycle.
•
•
•
•
A slave receiver, which is addressed, must generate an acknowledge cycle after the reception of each byte
Also a master receiver must generate an acknowledge cycle after the reception of each byte that has been
clocked out of the slave transmitter
The device that acknowledges must pull-down the SDA line during the acknowledge clock pulse, so that
the SDA line is stable LOW during the HIGH period of the related acknowledge clock pulse (set-up and
hold times must be considered)
A master receiver must signal an end of data to the transmitter by not generating an acknowledge cycle on
the last byte that has been clocked out of the slave. In this event, the transmitter must leave the data line
HIGH to enable the master to generate a STOP condition
2
Acknowledgement on the I C bus is shown on the figure below.
2
Acknowledgement on the I C bus:
25/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
6. I2C BUS PROTOCOL
6.1. ADDRESSING
2
2
One I C bus slave address (1101000) is reserved for the RV-4162. The entire I C bus slave address byte is shown
in the table below:
2
I C salve address byte:
Slave address
6
7
Bit
5
4
3
2
1
0
MSB
LSB
1
1
0
1
0
0
0
R/ W
2
After a START condition, the I C slave address has to be sent to the RV-4162 device.
The R/ W bit defines the direction of the following single or multiple byte data transfer. In the write mode, a data
transfer is terminated by sending either the STOP condition or the START condition of the next data transfer.
6.2. CLOCK AND CALENDAR READ AND WRITE CYCLES
6.2.1. WRITE MODE
Master transmits to Slave-Receiver at specified address. The Word Address is 8-bit value that defines which
register is to be accessed next. The upper four bits of the Word Address are not used. After reading or writing one
byte, the Word Address is automatically incremented by 1.
Master sends out the “Start Condition”.
Master sends out the “Slave Address”, D0h for the RV-4162; the R/ W bit in write mode.
Acknowledgement from the RV-4162.
Master sends out the “Word Address” to the RV-4162.
Acknowledgement from the RV-4162.
Master sends out the “data” to write to the specified address in step 4).
Acknowledgement from the RV-4162.
Steps 6) and 7) can be repeated if necessary. The address will be incremented automatically in the RV-4162.
Master sends out the “Stop Condition”.
1
2
S
SLAVE ADDRESS
3
0 A
R/W
1)
2)
3)
4)
5)
6)
7)
8)
9)
4
5
6
7
8
WORD ADDRESS
A
DATA
A
DATA
9
A
P
Acknowledge from RV-4162
26/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
6.2.2. READ MODE AT SPECIFIC ADDRESS
Master reads data after setting Word Address:
Master sends out the “Start Condition”.
Master sends out the “Slave Address”, D0h for the RV-4162; the R/ W bit in write mode.
Acknowledgement from the RV-4162.
Master sends out the “Word Address” to the RV-4162.
Acknowledgement from the RV-4162.
Master sends out the “Re-Start Condition” (“Stop Condition” followed by “Start Condition”)
Master sends out the “Slave Address”, D1h for the RV-4162; the R/ W bit in read mode.
Acknowledgement from the RV-4162.
At this point, the Master becomes a Receiver, the Slave becomes the Transmitter.
9) The Slave sends out the “data” from the Word Address specified in step 4).
10) Acknowledgement from the Master.
11) Steps 9) and 10) can be repeated if necessary.
The address will be incremented automatically in the RV-4162.
12) The Master, addressed as Receiver, can stop data transmission by not generating an acknowledge on the
last byte that has been sent from the Slave-Transmitter. In this event, the Slave-Transmitter must leave the
data line HIGH to enable the Master to generate a stop condition.
13) Master sends out the “Stop Condition”.
1)
2)
3)
4)
5)
6)
7)
8)
1
3
0 A
SLAVE ADDRESS
4
5
WORD ADDRESS
A
6
P
7
S
SLAVE ADDRESS
8
1 A
9
10
11
DATA
A
DATA
12 13
A
P
R/W
R/W
S
2
Acknowledge from Master
Acknowledge from RV-4162
No acknowledge
6.2.3. READ MODE
Master reads Slave-Transmitter immediately after first byte:
1) Master sends out the “Start Condition”.
2) Master sends out the “Slave Address”, D1h for the RV-4162; the R/ W bit in read mode.
3) Acknowledgement from the RV-4162.
At this point, the Master becomes a Receiver, the Slave becomes the Transmitter
4) The RV-4162 sends out the “data” from the last accessed Word Address incremented by 1.
5) Acknowledgement from the Master.
6) Steps 4) and 5) can be repeated if necessary.
The address will be incremented automatically in the RV-4162.
7) The Master, addressed as Receiver, can stop data transmission by not generating an acknowledge on the
last byte that has been sent from the Slave-Transmitter. In this event, the Slave-Transmitter must leave the
data line HIGH to enable the Master to generate a stop condition.
8) Master sends out the “Stop Condition”.
2
3
S
SLAVE ADDRESS
1 A
4
5
DATA
A
6
DATA
7
8
A
P
R/W
1
Acknowledge from RV-4162
Acknowledge from Master
No acknowledge
27/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
7. ELECTRICAL CHARACTERISTICS
7.1. ABSOLUTE MAXIMUM RATINGS
In accordance with the Absolute Maximum Rating System IEC 60134
PARAMETER
1)
2)
SYMBOL
Supply voltage
Input voltage
VDD
VI
Output voltage
Output current
Power dissipation
Operating ambient temperature range
Storage temperature range
VO
IO
PD
TOPR
TSTO
Electro Static Discharge voltage
VESD
CONDITIONS
>GND / <VDD
Stored as bare product
HBM1) TA = 25°C
MM2) TA = 25°C
MIN.
MAX.
UNIT
GND -0.3
GND -0.2
+5.0
VDD +0.3
V
V
GND -0.2
VDD +0.3
20
1
+85
+125
>1500
>1000
V
mA
W
°C
°C
V
V
-40
-55
HBM: Human Body Model, according to JESD22-A114.
MM: Machine Model, according to JESD22-A115.
These data are based on characterization results, not tested in production.
Stresses above these listed maximum ratings may cause permanent damage to the device. Exposure beyond
specified operating conditions may affect device reliability or cause malfunction.
7.2. OPERATING AND AC MEASUREMENTS CONDITIONS
PARAMETER1)
RV-4162
Supply voltage (VDD)
Operating ambient temperature (TA)
Load capacitance (CL)
Input rise and fall times
Input pulse voltages
Input and output timing ref. voltages
1)
UNIT
1.3 to 4.4
-40 to +85
50
5
0.2 VDD to 0.8 VDD
0.3 VDD to 0.7 VDD
V
°C
pF
ns
V
V
Output Hi-Z is defined as the point where data is no longer driven.
7.3. CAPACITANCE
PARAMETER1) 2)
Input capacitance
Output capacitance
Low-pass filter input time constant (SDA and SCL)
1)
2)
3)
SYMBOL
CIN
COUT3)
tLP
MIN.
MAX.
-
7
10
50
UNIT
pF
pF
ns
Effective capacitance measured with power supply at 3.6 V; sampled only, not 100% tested.
At 25°C, f = 1 MHz.
Outputs deselected.
28/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
7.4. FREQUENCY CHARACTERISTICS
Tamb= +25°C; fOSC= 32.768 kHz
PARAMETER
SYMBOL
CONDITIONS
Frequency accuracy
Frequency vs. temperature
characteristics
Turnover temperature
Aging first year max.
Oscillator start-up voltage
Oscillator start-up time
Δf/f
Tamb = +25°C
Δf/TOPR
MIN.
ppm
TOPR = -40°C to +85°C
TO
Δf/f
VStart
TStart
TYP.
-0.035
/°C2
ppm
(TOPR-T0) (+/-10%)
+25
CLKOUT duty cycle
UNIT
+/-20
2
20 - 30
+/-3
Tamb = +25°C
10 seconds
VDD = 3.0V
FCLKOUT = 32.7678 kHz
TAMB = +25°C
MAX.
1
°C
ppm
V
s
40/60
%
1.5
50
ppm
7.5. FREQUENCY VS. TEMPERATURE CHARACTERISTICS
20.0
T0 = 25°C (±5°C)
0.0
-20.0
ΔF/F [ppm]
-40.0
-60.0
-0.035 * (T-T0)2 ppm (±10%)
-80.0
-100.0
-120.0
-140.0
-160.0
-180.0
-60
-40
-20
0
20
40
60
80
100
T [°C]
29/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
7.6. STATIC CHARACTERISTICS
Valid for Tamb= -40°C to +85°C; VDD= 1.3 V to 4.4 V (except where noted)
PARAMETER
Supply voltage
SYMBOL
CONDITIONS
VDD1)
Clock
I2C bus (400 kHz)
MIN.
TYP.
1.0
1.3
VDD = 4.4 V
SCL = 400 kHz
(no load)
50
35
30
20
VDD = 3.6 V
Supply current
IDD1
VDD = 3.0 V
VDD = 2.5 V
VDD = 2.0 V
VDD = 4.4 V
Supply current (standby)
SCL = 0 Hz
CLKOUT off
All inputs VDD - 0.2 V / VSS + 0.2 V
375
350
310
270
VDD = 3.6 V
IDD2
VDD = 3.0 V at 25°C
VDD = 2.0 V at 25°C
VDD = 1.0 V at 25°C
LOW level input voltage
HIGH level input voltage
VIL
VIH
HIGH level output voltage
VOH
LOW level output voltage
VOL
-0.2
0.7 VDD
VDD = 4.4 V
IOH = -1.0 mA (push-pull)
VDD = 4.4 V; IOL = 3.0 mA
(SDA)
VDD = 4.4 V; IOL = 1.0 mA
(SQW, INT )
Pull-up supply voltage
(open drain)
Input leakage current
Output leakage current
1)
ILI
ILO
MAX.
UNIT
4.4
4.4
100
70
V
V
µA
µA
µA
µA
µA
nA
nA
nA
nA
nA
V
V
950
700
500
450
400
0.3 VDD
VDD +0.3
2.4
V
0.4
V
0.4
INT
4.4
V
0 V  VIN  VDD
0 V  VOUT  VDD
±1
±1
µA
µA
Oscillator start-up guaranteed at 1.5 V only.
30/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
7.7. I2C INTERFACE TIMING CHARACTERISTICS
Valid for Tamb = -40°C to +85°C; VDD= 1.3 V to 4.4 V (except where noted)
1)
PARAMETER
SYMBOL
SCL Clock Frequency
Start Condition Set-up Time
(only relevant for a repeated start condition)
Start Condition Hold Time
(after this period the first clock pulse is generated)
Data Set-up Time1)
Data Hold Time
Stop Condition Set-up Time
Bus Free Time between STOP and START condition
SCL “LOW time”
SCL “HIGH time”
SCL and SDA Rise Time
SCL and SDA Fall Time
Watchdog Output Pulse Width
fSCL
MIN
MAX
UNIT
0
400
kHz
tSU ; STA
600
ns
tHD ; STA
600
ns
tSU ; DAT
tHD ; DAT
tSU ; STO
tBUF
tLOW
tHIGH
tr
tf
trec
100
0
600
1.3
1.3
600
ns
µs
ns
µs
µs
ns
ns
ns
ms
96
300
300
98
Transmitter must internally provide a hold time to bridge the undefined region (300 ns max) of the falling edge of SCL.
31/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
8. APPLICATION INFORMATION
Operating RV-4162:
VDD
1
2
10 nF
VDD
SDA
SDA
SCL
SCL
μ Controller
RV-4162
INT
INT
CLKOUT
VSS
1
2
3
3
VSS
A 10 nF decoupling capacitor is recommended close to the device.
Interface lines SCL, SDA and INT are open drain and require pull-up resistor to VDD.
CLKOUT offers selectable frequencies 1 Hz to 32.768 kHz for application use. If not used, it is
recommended to disable CLKOUT for optimized current consumption.
Operating RV-4162 with SuperCap backup supply voltage:
VDD
5
6
VDD
4
1F
SDA
SDA
SCL
SCL
RV-4162
INT
CLKOUT
VSS
4
5
6
μ Controller
INT
VSS
A SuperCap combined with a low Vf diode can be used to operate the RV-4162 in stand-by or backup
supply voltage mode.
If a SuperCap is used, it is recommended using a Schottky diode due to its low forward voltage Vf.
If application requires, the INT pull-up resistor can be tied to the backup supply voltage, in order to
generate an interrupt even when main supply voltage VDD is off.
32/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
8.1. RECOMMENDED REFLOW TEMPERATURE (LEADFREE SOLDERING)
Maximum Reflow Conditions in accordance with IPC/JEDEC J-STD-020C “Pb-free”
Temperature Profile
Average ramp-up rate
Ramp down Rate
Time 25°C to Peak Temperature
Preheat
Temperature min
Temperature max
Time Tsmin to Tsmax
Soldering above liquidus
Temperature liquidus
Time above liquidus
Peak temperature
Peak Temperature
Time within 5°C of peak temperature
Symbol
(Tsmax to Tp)
Tcool
Tto-peak
Condition
3°C / second max
6°C / second max
8 minutes max
Unit
°C / s
°C / s
m
Tsmin
Tsmax
ts
150
200
60 - 180
°C
°C
Sec
TL
tL
217
60 – 150
°C
sec
Tp
tp
260
20 - 40
°C
sec
33/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
9. PACKAGES
9.1. DIMENSIONS AND SOLDERPADS LAYOUT
C7 Package:
Package dimensions (bottom view):
Recommended solderpad layout:
All dimensions in mm typical.
34/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
9.2. MARKING AND PIN #1 INDEX
C7 Package:
35/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
10.PACKING INFORAMTION
10.1. CARRIER TAPE
12 mm Carrier-Tape:
Material:
Polystyrene / Butadine or Polystyrol black, conductive
Cover Tape:
Base Material:
Adhesive Material:
Peel Method:
Polyester, conductive 0.061 mm
Pressure-sensitive Synthetic Polymer
Middle part removed, sticky sides remain on carrier
C7 Package:
User Direction of Feed
Tape Leader and Trailer: 300 mm minimum.
All dimensions in mm.
36/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
10.2. PARTS PER REEL
C7 Package:
Reels:
Diameter
7”
7”
Material
Plastic, Polystyrol
Plastic, Polystyrol
RTC’s per reel
1’000
5’000
10.3.REEL 7 INCH FOR 12 mm TAPE
Reel:
Diameter
7”
Material
Plastic, Polystyrol
37/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
10.4. HANDLING PRECAUTIONS FOR CRYSTALS OR MODULES WITH EMBEDDED CRYSTALS
The built-in tuning-fork crystal consists of pure Silicon Dioxide in crystalline form. The cavity inside the package is
evacuated and hermetically sealed in order for the crystal blank to function undisturbed from air molecules,
humidity and other influences.
Shock and vibration:
Keep the crystal / module from being exposed to excessive mechanical shock and vibration. Micro Crystal
guarantees that the crystal / module will bear a mechanical shock of 5000g / 0.3 ms.
The following special situations may generate either shock or vibration:
Multiple PCB panels - Usually at the end of the pick & place process the single PCBs are cut out with a router.
These machines sometimes generate vibrations on the PCB that have a fundamental or harmonic frequency
close to 32.768 kHz. This might cause breakage of crystal blanks due to resonance. Router speed should be
adjusted to avoid resonant vibration.
Ultrasonic cleaning - Avoid cleaning processes using ultrasonic energy. These processes can damages
crystals due to mechanical resonance of the crystal blank.
Overheating, rework high temperature exposure:
Avoid overheating the package. The package is sealed with a seal ring consisting of 80% Gold and 20% Tin. The
eutectic melting temperature of this alloy is at 280°C. Heating the seal ring up to >280°C will cause melting of the
metal seal which then, due to the vacuum, is sucked into the cavity forming an air duct. This happens when using
hot-air-gun set at temperatures >300°C.
Use the following methods for rework:


Use a hot-air- gun set at 270°C.
Use 2 temperature controlled soldering irons, set at 270°C, with special-tips to contact all solder-joints from
both sides of the package at the same time, remove part with tweezers when pad solder is liquid.
38/39
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-4162
11.DOCUMENT REVISION HISTORY
Date
Revision #
Revision Details
April 2010
1.2
First release
December 2013
2.0
New version
January 2014
2.1
Static characteristics corrections
Information furnished is believed to be accurate and reliable. However, Micro Crystal assumes no
responsibility for the consequences of use of such information nor for any infringement of patents or other
rights of third parties which may result from its use . In accordance with our policy of continuous
development and improvement, Micro Crystal reserves the right to modify specifications mentioned in this
publication without prior notice. This product is not authorized for use as critical component in life support
devices or systems.
39/39