Appl. Manual

RV-8063-C7
Application Manual
Date: May 2015
Headquarters:
Micro Crystal AG
Mühlestrasse 14
CH-2540 Grenchen
Switzerland
Tel.
Fax
Internet
Email
Revision N°: 1.0
1/54
+41 32 655 82 82
+41 32 655 82 83
www.microcrystal.com
sales@microcrystal.com
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
TABLE OF CONTENTS
1.
OVERVIEW ..................................................................................................................................................... 4
1.1. GENERAL DESCRIPTION ......................................................................................................................... 4
1.2. APPLICATIONS ......................................................................................................................................... 5
2.
BLOCK DIAGRAM ......................................................................................................................................... 6
2.1. PINOUT ...................................................................................................................................................... 7
2.2. PIN DESCRIPTION .................................................................................................................................... 7
2.3. FUNCTIONAL DESCRIPTION ................................................................................................................... 8
2.4. DEVICE PROTECTION DIAGRAM ........................................................................................................... 9
3.
REGISTER ORGANIZATION ....................................................................................................................... 10
3.1. REGISTER OVERVIEW ........................................................................................................................... 10
3.2. CONTROL REGISTERS .......................................................................................................................... 11
3.3. TIME AND DATA REGISTERS................................................................................................................ 14
3.4. ALARM REGISTERS ............................................................................................................................... 17
3.5. TIMER REGISTERS ................................................................................................................................. 20
3.6. REGISTER RESET VALUES SUMMARY ............................................................................................... 21
4.
DETAILED FUNCTIONAL DESCRIPTION .................................................................................................. 22
4.1. POWER ON RESET (POR)...................................................................................................................... 22
4.2. SOFTWARE RESET ................................................................................................................................ 22
4.3. OSCILLATOR STOP FLAG ..................................................................................................................... 23
4.4. SETTING AND READING THE TIME ...................................................................................................... 24
4.5. INTERRUPT OUTPUT ............................................................................................................................. 25
4.6. ALARM FUNCTION ................................................................................................................................. 26
4.6.1. ALARM INTERRUPT ........................................................................................................................ 26
4.7. COUNTDOWN TIMER FUNCTION .......................................................................................................... 27
4.7.1. TIMER FLAG TF ............................................................................................................................... 27
4.7.2. TIMER INTERRUPT MODE TI_TP ................................................................................................... 27
4.7.3. PULSE GENERATOR 2 .................................................................................................................... 27
4.7.4. USE OF THE COUNTDOWN TIMER ............................................................................................... 28
4.8. MINUTE AND HALF MINUTE INTERRUPT FUNCTION ........................................................................ 30
4.8.1. PULSE GENERATOR 1 .................................................................................................................... 30
4.9. FREQUENCY OFFSET COMPENSATION ............................................................................................. 31
4.9.1. OFFSET COMPENSATION CALCULATION WORKFLOW ............................................................. 32
4.10. COMPENSATION INTERRUPT FUNCTION ........................................................................................... 34
4.10.1. COMPENSATION PULSES WHEN MODE = 0 (NORMAL MODE) ................................................. 34
4.10.2. COMPENSATION PULSES WHEN MODE = 1 (FAST MODE) ....................................................... 35
4.11. CLKOUT FREQUENCY SELECTION ..................................................................................................... 36
4.12. STOP BIT FUNCTION .............................................................................................................................. 37
5.
SPI INTERFACE ........................................................................................................................................... 39
2/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
5.1. SERIAL BUS READ / WRITE EXAMPLES ............................................................................................. 40
6.
ELECTRICAL SPECIFICATIONS ................................................................................................................ 41
6.1. ABSOLUTE MAXIMUM RATINGS .......................................................................................................... 41
6.2. OPERATING PARAMETERS .................................................................................................................. 42
6.3. OSCILLATOR PARAMETERS ................................................................................................................ 45
6.3.1. XTAL FREQUENCY VS. TEMPERATURE CHARACTERISTICS ................................................... 45
6.4. SPI-BUS CHARACTERISTICS ................................................................................................................ 46
7.
APPLICATION INFORMATION ................................................................................................................... 47
7.1. OPERATING RV-8063-C7 ....................................................................................................................... 47
7.2. OPERATING RV-8063-C7 WITH BACKUP CAPACITOR ...................................................................... 48
8.
RECOMMENDED REFLOW TEMPERATURE (LEAD-FREE SOLDERING) ............................................. 49
9.
PACKAGE .................................................................................................................................................... 50
9.1. DIMENSIONS AND SOLDER PAD LAYOUT .......................................................................................... 50
9.2. MARKING AND PIN #1 INDEX ................................................................................................................ 50
10.
PACKING INFORMATION ........................................................................................................................... 51
10.1. CARRIER TAPE ....................................................................................................................................... 51
10.2. PARTS PER REEL ................................................................................................................................... 51
10.3. REEL 7 INCH FOR 12 mm TAPE ............................................................................................................ 52
10.4. HANDLING PRECAUTIONS FOR CRYSTALS OR MODULES WITH EMBEDDED CRYSTALS ........ 53
11.
DOCUMENT REVISION HISTORY .............................................................................................................. 54
3/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
RV-8063-C7
Ultra Small Real Time Clock / Calendar Module with SPI Interface
1. OVERVIEW
















RTC module with built-in “Tuning Fork” crystal oscillating at 32.768 kHz
Counters for seconds, minutes, hours, date, weekday, month and year
Programmable Offset register for frequency adjustment
Automatic leap year calculation (2000 to 2099)
Alarm Interrupts for second, minutes, hour, date and weekday settings
Countdown Timer Interrupt function
Minute and Half Minute Interrupt
Oscillator stop detection function
Internal Power-On Reset (POR)
Programmable Clock Output for peripheral devices (32.768 kHz, 16.384 kHz, 8.192 kHz, 4.096 kHz, 2.048
kHz, 1.024 kHz and 1 Hz) with enable/disable function (CLKOE)
3 line SPI-bus with a maximum data rate of 7 Mbit/s
Wide operating voltage range: 0.9 V to 5.5 V
Wide interface operating voltage: 1.8 to 5.5 V
Very low current consumption: 190 nA (VDD = 3.0 V, TA = 25°C)
Operating temperature range: -40 to +85°C
Ultra small and compact C7 package size, RoHS-compliant and 100% lead-free: 3.2 x 1.5 x 0.8 mm
1.1. GENERAL DESCRIPTION
The RV-8063-C7 is a CMOS real-time clock/calendar module optimized for low power consumption. An Offset
register allows to compensating the frequency deviation of the 32.768 kHz clock. All addresses and data are
transferred serially via a Serial Peripheral Interface (SPI-bus) with a maximum data rate of 7 Mbit/s. The register
address is incremented automatically after each written or read data byte.
This ultra small RTC module has been specially designed for miniature and cost sensitive high volume
applications.
4/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
1.2. APPLICATIONS
The RV-8063-C7 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 lead-free ceramic package
 Price competitive
The unique size and the competitive pricing make this product perfectly suitable for many applications:
 Communication: IoT / Wearables / Wireless Sensors and Tags / Handsets
 Automotive:
M2M / Navigation & Tracking Systems / Dashboard / Tachometers / Engine Controller
Car Audio & Entertainment Systems
 Metering:
E-Meter / Heating Counter / Smart Meters / PV Converter
 Outdoor:
ATM & POS systems / Surveillance & Safety systems / Ticketing Systems
 Medical:
Glucose Meter / Health Monitoring Systems
 Safety:
DSLR / Security & Camera Systems / Door Lock & Access Control
 Consumer:
Gambling Machines / TV & Set Top Boxes / White Goods
 Automation:
DSC / Data Logger / Home & Factory Automation / Industrial and Consumer Electronics
5/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
2. BLOCK DIAGRAM
VDD
VSS
SCL
SDIO
CE
5
2
POWER
CONTROL
7
1
8
SPI-BUS
INTERFACE
FREQUENCY
OFFSET
COMPENSATION
XTAL
OSC
CLKOUT
CLKOE
6
3
4
INPUT
OUTPUT
CONTROL
DIVIDER
SYSTEM
CONTROL
LOGIC
Control1
Control2
Offset
RAM
Seconds
Minutes
Hours
Date
Weekdays
Months
Years
Seconds Alarm
Minutes Alarm
Hours Alarm
Date Alarm
Weekday Alarm
Timer Value
Timer Mode
00
11
INT
RESET
6/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
2.1. PINOUT
C7 Package: (top view)
#8
#5
#1
SDIO
#8
CE
#2
VSS
#7
SCL
#3
CLKOE
#6
CLKOUT
#4
̅̅̅̅̅
INT
#5
VDD
8063
#1
#4
2.2. PIN DESCRIPTION
Symbol
Pin #
SDIO
1
VSS
2
CLKOE
3
̅̅̅̅̅
INT
4
VDD
5
CLKOUT
6
SCL
CE
7
8
Description
Serial Data Input and Output.
Input:
When CE is LOW, input may float.
Output: Push-pull output; drives from VSS to VDD; is high-impedance when not driving.
Ground.
Input to enable the CLKOUT pin. If CLKOE is active HIGH, the CLKOUT pin is in output mode.
When CLKOE is tied to Ground, the CLKOUT pin is LOW.
Interrupt Output; open-drain; active LOW; requires pull-up resistor; Used to output alarm, minute,
half minute, countdown timer and compensation Interrupt signals.
Power Supply Voltage.
Clock Output; push-pull; controlled by CLKOE. If CLKOE is active HIGH, the CLKOUT pin drives
the square wave of 32.768 kHz, 16.384 kHz, 8.192 kHz, 4.096 kHz, 2.048 kHz, 1.024 kHz or 1 Hz
(Default value is 32.768 kHz). When CLKOE is tied to Ground, the CLKOUT pin is LOW.
Serial Clock Input. When CE is LOW, this input may float.
Chip Enable Input; when LOW, the interface is reset; may not be wired permanently HIGH.
7/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
2.3. FUNCTIONAL DESCRIPTION
The RV-8063-C7 is a low power CMOS real-time clock/calendar module with embedded 32.768 kHz Crystal. The
CMOS IC contains 18 8-bit registers with an auto-incrementing register address, a frequency divider which
provides the source clock for the Real Time Clock (RTC), a programmable clock output, and SPI-bus with a
maximum data rate of 7 Mbit/s. An Offset register allows to digitally compensating the frequency deviation of the
32.768 kHz oscillator.
The built-in address register will increment automatically after each read or write of a data byte up to the register
11h. After register 11h, the auto-incrementing will wrap around to address 00h (see following Figure).
Handling address registers:
Address
00h
wrap around
01h
02h
03h
autoincrement
:
0Fh
10h
11h
All registers (see REGISTER OVERVIEW) are designed as addressable 8-bit parallel registers although not all bits
are implemented.
 The first two registers (memory address 00h and 01h) are used as control and status register.
 The register at address 02h is an Offset register allowing the compensation of time deviation.
 The register at address 03h is a free User RAM byte.
 The addresses 04h through 0Ah are used as counters for the clock function (seconds up to years
counters).
 Address locations 0Bh through 0Fh contain alarm registers which define the conditions for an alarm.
 The registers at 10h and 11h are for the timer function.
The Seconds, Minutes, Hours, Days, Months, and Years as well as the corresponding alarm registers are all coded
in Binary Coded Decimal (BCD) format. When one of the RTC registers is written or read, the contents of all time
counters are frozen. Therefore, faulty writing or reading of the clock and calendar during a carry condition is
prevented for up to 1 second.
8/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
2.4. DEVICE PROTECTION DIAGRAM
SDIO
VSS
CLKOE
INT
1
8
2
7
3
6
4
5
CE
SCL
CLKOUT
VDD
9/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
3. REGISTER ORGANIZATION
Registers are accessed by selecting a register address and then performing read or write operations. Multiple
reads or writes may be executed in a single access, with the address automatically incrementing after each byte.
18 registers (00h – 11h) are available. The time registers are encoded in the Binary Coded Decimal format (BCD)
to simplify application use. Other registers are either bit-wise or standard binary format. When one of the RTC
registers is written or read, the contents of all time counters are frozen for up to 1 second. Therefore, faulty writing
or reading of the clock and calendar during a carry condition is prevented.
3.1. REGISTER OVERVIEW
After reset, all registers are set according to Table in section REGISTER RESET VALUES SUMMARY.
Address
Function
Bit 7
Bit 6
Bit 5
00h
01h
02h
03h
04h
05h
Control1
Control2
Offset
RAM
Seconds
Minutes
TEST
AIE
MODE
SR
AF
STOP
MI
OS
X
40
40
06h
Hours
X
X
07h
08h
09h
0Ah
0Bh
0Ch
Date
Weekdays
Months
Years
Seconds Alarm
Minutes Alarm
X
X
X
80
AE_S
AE_M
X
X
X
40
40
40
0Dh
Hours Alarm
AE_H
X
0Eh
0Fh
10h
11h
Date Alarm
Weekday Alarm
Timer Value
Timer Mode
AE_D
AE_W
128
X
X
X
64
X
20
20
20
AMPM
20
X
X
20
20
20
20
AMPM
20
X
32
X
Bit 4
Bit 3
SR
TF
OFFSET
RAM data
10
8
10
8
10
8
10
8
10
8
X
X
10
8
10
8
10
8
10
8
10
8
10
8
10
8
X
X
16
8
TD
Bit 2
Bit 1
Bit 0
CIE
12_24
FD
CAP
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
TE
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
TIE
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
TI_TP
HMI
Bit positions labelled as X are not implemented and will return a 0 when read.
The bit position labelled with 0 should always be written with logic 0.
10/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
3.2. CONTROL REGISTERS
00h - Control1
Control and status register 1.
Addresses
Function
Bit 7
Bit 6
Bit 5
00h
Control1
Reset
TEST
0
SR
0
STOP
0
Bit
Symbol
Value
7
TEST
6
SR
5
STOP
4:3
SR
2
CIE
1
12_24
0
CAP
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
CIE
0
12_24
0
CAP
0
SR
0
Description
0
1
Normal mode.
External clock test mode. Do not use.
Software Reset (see SOFTWARE RESET)
0
No software reset.
Initiate software reset; this bit always returns a 0 when read. For a software
1
reset, 01011000 (58h) must be sent to register Control1.
STOP bit (see STOP BIT FUNCTION)
0
RTC clock runs.
RTC clock is stopped; the upper part of the RTC divider chain flip-flops
1
(prescaler F2 to F14) are asynchronously set logic 0. The CLKOUT
frequencies 32.768 kHz, 16.384 kHz and 8.192 kHz are still available.
Software Reset (see SOFTWARE RESET)
00
No software reset.
Initiate software reset; this bits always returns a 0 when read. For a
11
software reset, 01011000 (58h) must be sent to register Control1.
Compensation Interrupt Enable (see FREQUENCY OFFSET COMPENSATION)
0
No compensation interrupt will be generated.
Compensation interrupt pulses will be generated on pin ̅̅̅̅̅
INT at every
1
compensation cycle.
12 or 24 hour mode (see TIME AND DATA REGISTERS and ALARM REGISTERS)
0
24 hour mode is selected (0 to 23).
1
12 hour mode is selected (1 to 12).
0
Must always be written with logic 0.
11/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
01h - Control2
Control and status register 2.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
01h
Control2
Reset
AIE
0
AF
0
MI
0
HMI
0
TF
0
Bit
Symbol
Value
7
AIE
6
AF
5
MI
4
HMI
3
TF
2:0
FD
FD
000
001
010
011
100
101
110
111
Bit 2
0
Bit 1
FD
0
Bit 0
0
Description
Alarm Interrupt Enable (see ALARM FUNCTION and INTERRUPT OUTPUT)
0
Disabled
1
Enabled
Alarm Flag (see ALARM FUNCTION and INTERRUPT OUTPUT)
Read: Alarm Flag inactive
0
Write: Alarm Flag is cleared
Read: Alarm Flag active
1
Write: Alarm Flag remains unchanged
Minute Interrupt Enable (see MINUTE AND HALF MINUTE INTERRUPT FUNCTION
and TIMER FLAG TF)
0
Disabled
1
Enabled
Half Minute Interrupt Enable (see MINUTE AND HALF MINUTE INTERRUPT
FUNCTION and TIMER FLAG TF)
0
Disabled
1
Enabled
Timer Flag (see COUNTDOWN TIMER FUNCTION, INTERRUPT OUTPUT and
TIMER FLAG TF)
0
No timer interrupt generated
1
Flag set when timer interrupt generated
000 to
CLKOUT Frequency (see CLKOUT FREQUENCY SELECTION)
111
CLKOUT Frequency
32.768 kHz – Default value
16.384 kHz
8.192 kHz
4.096 kHz
2.048 kHz
1.024 kHz
1 Hz (1)
CLKOUT = LOW
(1) 1 Hz clock pulses are affected by compensation pulses (see FREQUENCY OFFSET COMPENSATION).
12/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
02h – Offset Register
This register holds the OFFSET value to digitally compensate the initial frequency deviation of the 32.768 kHz
oscillator or for aging adjustment (see FREQUENCY OFFSET COMPENSATION).
Addresses
Function
Bit 7
02h
Offset
Reset
MODE
0
Bit
Symbol
Value
7
6:0
MODE
0
1
-64 to
+64
OFFSET
Bit 6
0
Bit 5
0
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
OFFSET
0
0
0
0
Description
Offset Mode
Normal Mode: Offset is made once every two hours.
Fast Mode: Offset is made every 4 minutes.
Offset value.
For MODE = 0, each LSB introduces an offset of 4.34 ppm. For MODE = 1,
each LSB introduces an offset of 4.069 ppm. The values of 4.34 ppm and
4.069 ppm are based on a nominal 32.768 kHz clock. The offset value is
coded in two’s complement giving a range of +63 LSB to -64 LSB (see
FREQUENCY OFFSET COMPENSATION).
OFFSET
OFFSET compensation value
in decimal
Compensation pulses
in steps
0111111
0111110
:
0000001
0000000
63
62
:
1
0
63
62
:
1
0
1111111
1111110
:
1000001
1000000
127
126
:
65
64
-1
-2
:
-63
-64
CLKOUT frequency
offset in ppm(1)
Normal Mode
Fast Mode
MODE = 0
MODE = 1
273.420
256.347
269.080
252.278
:
:
4.340
4.069
0
0
-4.340
-8.680
:
-273.420
-277.760
-4.069
-8.138
:
-256.347
-260.416
(1) The frequency offset measured at CLKOUT pin can be compensated by computing the compensation value OFFSET and writing it into
the Offset register (see OFFSET COMPENSATION CALCULATION WORKFLOW).
03h - RAM
Free RAM byte, which can be used for any purpose, for example, status byte of the system.
Address
Function
03h
RAM
Reset
Bit
Symbol
7:0
RAM
Bit 7
0
Value
00h to
FFh
Bit 6
0
Bit 5
0
Bit 4
Bit 3
RAM data
0
0
Bit 2
Bit 1
Bit 0
0
0
0
Description
User RAM
13/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
3.3. TIME AND DATA REGISTERS
04h - Seconds
This register holds the count of seconds, in two binary coded decimal (BCD) digits. Values will be from 00 to 59.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
04h
Seconds
Reset
OS
1
40
0
20
0
10
0
8
0
4
0
2
0
1
0
Bit
Symbol
Value
7
OS
0
1
6:0
Seconds
00 to 59
Description
Oscillator Stop (see OSCILLATOR STOP FLAG)
Clock integrity is guaranteed.
Clock integrity is not guaranteed; oscillator has stopped or has been
interrupted. – Default value
Holds the count of seconds, coded in BCD format.
05h - Minutes
This register holds the count of minutes, in two binary coded decimal (BCD) digits. Values will be from 00 to 59.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
05h
Minutes
Reset
X
0
40
0
20
0
10
0
8
0
4
0
2
0
1
0
Bit
Symbol
Value
7
6:0
X
Minutes
0
00 to 59
Description
Unused
Holds the count of minutes, coded in BCD format.
14/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
06h - Hours
This register holds the count of hours, in two binary coded decimal (BCD) digits. Values will be from 00 to 23 if the
12_24 bit (see CONTROL REGISTERS, 00h - Control1) is clear. If the 12_24 bit is set, the AMPM bit will be 0 for
AM hours and 1 for PM hours, and hour values will range from 1 to 12.
Hours Register (24 Hour Mode)
Address
Function
06h
Hours
Reset
Bit
Symbol
7:6
5:0
X
Hours
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X
0
X
0
20
0
10
0
8
0
4
0
2
0
1
0
Value
0
00 to 23
Description
Unused
Holds the count of hours, coded in BCD format.
Hours Register (12 Hour Mode)
Address
Function
06h
Hours
Reset
Bit
Symbol
7:6
X
5
AMPM
4:0
Hours
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X
0
X
0
AMPM
0
10
0
8
0
4
0
2
0
1
0
Value
0
0
1
01 to 12
Description
Unused
AM hours.
PM hours.
Holds the count of hours, coded in BCD format.
07h – Date
This register holds the current date of the month, in two binary coded decimal (BCD) digits. Values will range from
01 to 31. Leap years are correctly handled from 2000 to 2099.
Addresses
Function
07h
Date
Reset
Bit
Symbol
7:6
X
5:0
Date
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X
0
X
0
20
0
10
0
8
0
4
0
2
0
1
1
Value
Description
0
Unused
Holds the current date of the month, coded in BCD format. – Default value
= 01
01 to 31
15/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
08h - Weekdays
This register holds the current day of the week. Each value represents one weekday that is assigned by the user.
Values will range from 0 to 6.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
08h
Weekdays
Reset
X
0
X
0
X
0
X
0
X
0
4
1
2
1
1
0
Bit
Symbol
Value
7:3
2:0
X
Weekdays
0
0 to 6
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
0
0
1
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
Weekday
Bit 7
Weekday 1
Weekday 2
Weekday 3
Weekday 4
Weekday 5
Weekday 6
Weekday 7 – Default value
0
Description
Unused
Holds the weekday counter value.
Bit 6
0
Bit 5
0
Bit 4
0
09h - Months
This register holds the current month, in two binary coded decimal (BCD) digits. Values will range from 01 to 12.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X
0
X
0
10
0
8
0
4
0
2
0
1
1
09h
Months
Reset
X
0
Bit
Symbol
Value
7:5
4:0
X
Months
0
01 to 12
Months
Bit 7
January – Default value
February
March
April
May
June
July
August
September
October
November
December
0
Description
Unused
Holds the current month, coded in BCD format.
Bit 6
0
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
0Ah - Years
This register holds the current year, in two binary coded decimal (BCD) digits. Values will range from 00 to 99.
Leap years are correctly handled from 2000 to 2099.
Addresses
Function
0Ah
Years
Reset
Bit
Symbol
7:0
Years
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
80
0
40
0
20
0
10
0
8
0
4
0
2
0
1
0
Value
00 to 99
Description
Holds the current year, coded in BCD format.
16/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
3.4. ALARM REGISTERS
0Bh – Seconds Alarm
This register holds the Seconds Alarm Enable bit AE_S and the alarm value for seconds, in two binary coded
decimal (BCD) digits. Values will range from 00 to 59.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Bh
Seconds Alarm
Reset
AE_S
1
40
0
20
0
10
0
8
0
4
0
2
0
1
0
Bit
Symbol
Value
7
6:0
AE_S
Seconds Alarm
0
1
00 to 59
Description
Seconds Alarm Enable bit (see ALARM FUNCTION)
Enabled
Disabled – Default value
Holds the alarm value for seconds, coded in BCD format.
0Ch – Minutes Alarm
This register holds the Minutes Alarm Enable bit AE_M and the alarm value for minutes, in two binary coded
decimal (BCD) digits. Values will range from 00 to 59.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Ch
Minutes Alarm
Reset
AE_M
1
40
0
20
0
10
0
8
0
4
0
2
0
1
0
Bit
Symbol
Value
7
6:0
AE_M
Minutes Alarm
0
1
00 to 59
Description
Minutes Alarm Enable bit (see ALARM FUNCTION)
Enabled
Disabled – Default value
Holds the alarm value for minutes, coded in BCD format.
17/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
0Dh - Hours Alarm
This register holds the Hours Alarm Enable bit AE_H and the alarm value for hours, in two binary coded decimal
(BCD) digits. Values will range from 00 to 23 if the 12_24 bit (see CONTROL REGISTERS, 00h - Control1) is clear.
If the 12_24 bit is set, the AMPM bit will be 0 for AM hours and 1 for PM hours, and hour values will be from 1 to
12.
Hours Alarm Register (24 Hour Mode)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Dh
Hours Alarm
Reset
AE_H
1
X
0
20
0
10
0
8
0
4
0
2
0
1
0
Bit
Symbol
Value
7
6
5:0
AE_H
X
Hours Alarm
0
1
0
00 to 23
Description
Hours Alarm Enable bit (see ALARM FUNCTION)
Enabled
Disabled – Default value
Unused
Holds the alarm value for hours, coded in BCD format.
Hours Alarm Register (12 Hour Mode)
Address
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Dh
Hours Alarm
Reset
AE_H
1
X
0
AMPM
0
10
0
8
0
4
0
2
0
1
0
Bit
Symbol
Value
7
AE_H
6
X
5
AMPM
4:0
Hours Alarm
0
1
0
0
1
01 to 12
Description
Hours Alarm Enable bit (see ALARM FUNCTION)
Enabled
Disabled – Default value
Unused
AM hours.
PM hours.
Holds the alarm value for hours, coded in BCD format.
18/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
0Eh - Date Alarm
This register holds the Date Alarm Enable bit AE_D and the alarm value for the date, in two binary coded decimal
(BCD) digits. Values will range from 01 to 31.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Eh
Date Alarm
Reset
AE_D
1
X
0
20
0
10
0
8
0
4
0
2
0
1
0
Bit
Symbol
Value
7
6
5:0
AE_D
X
Date Alarm
0
1
0
01 to 31
Description
Date Alarm Enable bit (see ALARM FUNCTION)
Enabled
Disabled – Default value
Unused
Holds the alarm value for the date, coded in BCD format.
0Fh – Weekday Alarm
This register holds the Weekday Alarm Enable bit AE_W and the alarm value for the weekday, in two binary coded
decimal (BCD) digits. Values will range from 0 to 6.
Addresses
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0Fh
Weekday Alarm
Reset
AE_W
1
X
0
X
0
X
0
X
0
4
0
2
0
1
0
Bit
Symbol
Value
7
6:3
2:0
Function
AE_W
X
Weekday Alarm
0
1
0
0 to 6
Description
Weekday Alarm Enable bit (see ALARM FUNCTION)
Enabled
Disabled – Default value
Unused
Holds the weekday alarm value, coded in BCD format.
19/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
3.5. TIMER REGISTERS
10h – Timer Value
This register holds the current value of the Countdown Timer. It may be loaded with the desired starting value when
the Countdown Timer is stopped.
Addresses
Function
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
10h
Timer Value
Reset
128
0
64
0
32
0
16
0
8
0
4
0
2
0
1
0
Bit
Symbol
7:0
Timer Value
Value
00h to
FFh
Description
Countdown Timer Value (see COUNTDOWN TIMER FUNCTION)
Countdown Period in seconds:
Countdown Period =
Timer Value
Timer Clock Frequency
11h – Timer Mode
This register controls the Countdown Timer function.
Addresses
Function
11h
Timer Mode
Reset
Bit
Symbol
7:5
X
4:3
TD
2
TE
1
TIE
0
TI_TP
Bit 7
Bit 6
Bit 5
X
0
X
0
X
0
Value
0
00
01
10
11
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
1
TE
0
TIE
0
TI_TP
0
TD
1
Description
Unused
Timer Clock Frequency (see COUNTDOWN TIMER FUNCTION)(1)
4.096 kHz
64 Hz(2)
1 Hz(2)
1/60 Hz – Default value(2)
Timer Enable
0
Disabled – Default value
1
Enabled
Timer Interrupt Enable
0
No interrupt generated from timer. – Default value
1
Interrupt generated from timer.
Timer Interrupt Mode.
̅̅̅̅̅ pulse generation is
How the setting of TI_TP and the Timer Flag TF can affect the INT
explained in sections COUNTDOWN TIMER FUNCTION and MINUTE AND HALF
MINUTE INTERRUPT FUNCTION.
0
Interval Mode. Interrupt follows Timer Flag TF. – Default value
1
Pulse Mode. Interrupt generates a pulse.
(1) When not in use, the TD field is recommended to be set to 11 (1⁄60 Hz) for power saving.
(2) Time periods can be affected by compensation pulses (64 Hz only in MODE = 1), (see FREQUENCY OFFSET COMPENSATION).
20/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
3.6. REGISTER RESET VALUES SUMMARY
Address
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h
11h
Function
Control1
Control2
Offset
RAM
Seconds
Minutes
Hours
Date
Weekdays
Months
Years
Seconds Alarm
Minutes Alarm
Hours Alarm
Date Alarm
Weekday Alarm
Timer Value
Timer Mode
RV-8063-C7 resets to:
Time (hh:mm:ss)
Date (YY-MM-DD)
Weekday
Mode
Pins
Offset
Alarms
Timer
Interrupts
=
=
=
=
=
=
=
=
=
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
0
1
0
0
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
00:00:00
00-01-01
Weekday 7
RTC clock runs, 24 h mode
CLKOUT Frequency = 32.768 kHz (when CLKOE is HIGH)
0
disabled
disabled, Timer Clock Frequency = 1/60 Hz
disabled
21/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4. DETAILED FUNCTIONAL DESCRIPTION
4.1. POWER ON RESET (POR)
The power on reset (POR) is generated at start-up. All registers including the Counter Registers are initialized to
their reset values (see REGISTER RESET VALUES SUMMARY).
4.2. SOFTWARE RESET
Beside the POR a reset can also be initiated with the software reset command. Software reset command requires a
combination of the bits 6, 4, and 3 in register Control1 (00h) set to 1 and all other bits to 0 by sending the bit
sequence 01011000 (58h), see following Figure.
Software reset command:
R/W
SDIO
b7
0
SA
Addr 00h
Software reset 58h
b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0
0 1
0
0 0
0
0
0
1 0
1
1
0
0 0
SCL
CE
(1)
internal
reset signal
(1)
When CE is inactive, the interface is reset.
In reset state all registers are set according to the Table in section REGISTER RESET VALUES SUMMARY and
the address pointer points to no address.
22/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.3. OSCILLATOR STOP FLAG
When the oscillator of the RV-8063-C7 is stopped, the Oscillator Stop flag OS is set. The oscillator is considered to
be stopped between power up and stable crystal oscillation (start-up time tSTART). This time can be in a range of
typical 200 ms to maximal 2 s depending on temperature and supply voltage.
The flag remains set until cleared by command (see following Figure). If the flag cannot be cleared, then the
oscillator is not running. This method can be used to monitor the oscillator and to determine if the supply voltage
has reduced to the point where oscillation fails.
OS flag:
backup
supply
power up
main
supply
VDD
VDDmin
oscillation
1
OS flag
2
3
tSTART
OS = 1 and flag cannot be cleared
1
Oscillation now stable.
2
OS flag cleared by software.
3
OS flag set when oscillator stops.
OS = 1 and flag can be cleared
23/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.4. SETTING AND READING THE TIME
The following Figure shows the data flow and data dependencies starting from the 1 Hz clock tick.
Data flow for the time function:
1 Hz tick
SECONDS
MINUTES
12_24 hour mode
HOURS
LEAP YEAR
CALCULATION
DAYS
WEEKDAY
MONTHS
YEARS
During read/write operations, the time counting registers (memory locations 04h through 0Ah) are frozen for 1
second.
The freezing prevents:
 Faulty reading of the clock and calendar during a carry condition
 Incrementing the time registers during the read cycle
When the read/write access has been terminated within 1 second (t < 1 s), the time circuit is de-frozen immediately
and any pending request to increment the time counters that occurred during the read/write access is correctly
applied. Maximal one 1 Hz tick can be handled.
When the read/write access last longer than 1 second, the time circuit is de-frozen automatically after 1 second in
order not to miss 1 Hz ticks and the lost 1 Hz ticks cannot be handled completely. Therefore, each interface
communication has to be correctly terminated within 1 second (see following Figure).
Access time for read/write operations:
SDIO
COMMAND
DATA
DATA
≈
t<1s
DATA
CE
Because of this method, it is very important to make a read or write access in one go, that is, setting or reading
seconds through to years should be made in one single access. Failing to comply with this method could result in
the time becoming corrupted.
24/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.5. INTERRUPT OUTPUT
The interrupt pin ̅̅̅̅̅
INT can be triggered by four different functions:
 ALARM FUNCTION
 COUNTDOWN TIMER FUNCTION
 MINUTE AND HALF MINUTE INTERRUPT FUNCTION
 COMPENSATION INTERRUPT FUNCTION
Interrupt scheme:
HMI
0
1
SECONDS COUNTER
HMI
HMI/MI
SET
0
1
MINUTES COUNTER
MI
0
CLEAR
MI
PULSE
GENERATOR 1
TRIGGER
0
1
1
CLEAR
from interface:
clear TF
TI_TP
TIMER FLAG
SET TF
to interface:
read TF
CLEAR
TE
TIE
0
SET
COUNTDOWN COUNTER
INT
PULSE
GENERATOR 2
TRIGGER
0
1
1
CLEAR
set alarm flag AF
ALARM FLAG
AF
SET
to interface:
read AF
AIE
0
1
CLEAR
from interface:
clear AF
offset circuit:
add/subtract pulse
CIE
PULSE
GENERATOR 3
TRIGGER
0
1
CLEAR
from interface:
clear CIE
25/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.6. ALARM FUNCTION
By clearing the alarm enable bit (AE_x) of one or more of the alarm registers, the corresponding alarm condition(s)
̅̅̅̅̅).
are active. When an alarm occurs, AF is set logic 1. The asserted AF can be used to generate an interrupt (INT
The AF is cleared by command.
The registers at addresses 0Bh through 0Fh contain alarm information. When one or more of these registers is
loaded with second, minute, hour, date or weekday, and its corresponding AE_x is logic 0, then that information is
compared with the current second, minute, hour, date, and weekday. When all enabled comparisons first match,
the Alarm Flag (AF in CONTROL REGISTERS, 01h – Control2) is set logic 1.
Alarm function block diagram:
check now signal
AE_S
SECOND ALARM
=
SECOND TIME
1
0
AE_M
to interface:
read AF
MINUTE ALARM
=
MINUTE TIME
1
0
AIE
AE_H
HOUR ALARM
=
HOUR TIME
1
0
ALARM
CONTROL
ALARM FLAG
AF
(1)
SET
0
1
INT
CLEAR
AE_D
DATE ALARM
=
DATE TIME
1
0
from interface:
clear AF
AE_W
WEEKDAY ALARM
=
WEEKDAY TIME
(1)
1
0
Only when all enabled alarm settings are matching.
It is only on increment to a matched case that the Alarm Flag is set.
4.6.1.ALARM INTERRUPT
̅̅̅̅̅ pin
The generation of interrupts from the alarm function is controlled via bit AIE. If bit AIE is enabled, the INT
follows the condition of bit AF. AF remains set until cleared by command. Once AF has been cleared, it will only be
set again when the time increments to match the alarm condition once more. Alarm registers which have their AE_x
bit at logic 1 are ignored.
26/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.7. COUNTDOWN TIMER FUNCTION
4.7.1.TIMER FLAG TF
The Timer Flag (bit TF) is set logic 1 on the first trigger of the Countdown Timer or the MI and HMI Interrupt. The
purpose of the flag is to allow the controlling system to interrogate what caused the interrupt: Timer/MI/HMI or
Alarm. The flag can be read and cleared by command.
The status of the Timer Flag TF can affect the ̅̅̅̅̅
INT pulse generation depending on the setting of TI_TP (see TIMER
REGISTERS, 11h – Timer Mode):
4.7.2.TIMER INTERRUPT MODE TI_TP
When Interrupt is in Interval Mode (TI_TP = 0):
 only one Interrupt after the first countdown when TF is not cleared
 the ̅̅̅̅̅
INT generation follows the TF flag
 TF stays set until it is cleared
 If TF is not cleared before the next coming interrupt, no ̅̅̅̅̅
INT is generated
When Interrupt is in Timer Pulse Mode (TI_TP = 1):
 the Countdown Timer runs in a repetitive loop and keeps generating periodic interrupts
 an ̅̅̅̅̅
INT pulse is generated independent of the status of the Timer Flag TF
 TF stays set until it is cleared.
 TF does not affect ̅̅̅̅̅
INT
4.7.3.PULSE GENERATOR 2
When the Timer Pulse Mode is activated (TI_TP = 1) the Pulse Generator 2 for the Countdown Timer Interrupt
uses an internal clock and is dependent on the selected Timer Clock Frequency for the countdown timer and on the
Timer Value. As a consequence, the width of the interrupt pulse varies (see following Table). The pulse widths are
not affected by the Offset Mode (bit MODE). TF and ̅̅̅̅̅
INT become active simultaneously.
̅̅̅̅̅
INT pulse width when using Countdown Timer:
Timer Clock Frequency
4.096 kHz
64 Hz
1 Hz
1/60 Hz
̅̅̅̅̅
INT pulse width
Timer Value = 1(1)
122 µs
7.812 ms
15.625 ms
15.625 ms
Timer Value > 1(1)
244 µs
15.625 ms
15.625 ms
15.625 ms
(1) Timer Value = loaded countdown value. Timer stops when Timer Value = 0.
27/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.7.4.USE OF THE COUNTDOWN TIMER
The timer has four selectable source clocks allowing for countdown periods in the range from 244 µs to 4 hours 15
min. For periods longer than 4 hours, the alarm function can be used.
Timer Clock Frequency and timer periods:
Period
TD
Timer Clock Frequency(1)
00
01
10
11
4.096 kHz
Minimum Period,
Timer Value = 1
244 µs
15.625 ms
1s
60 s
64 Hz(2)
1 Hz(2)
1/60 Hz(2)
Maximum Period,
Timer Value = 255
62.256 ms
3.984 s
255 s
4 hours 15 min
(1) When not in use, the TD field is recommended to be set to 11 (1⁄60 Hz) for power saving.
(2) Time periods can be affected by compensation pulses (64 Hz only in MODE = 1), (see FREQUENCY OFFSET COMPENSATION).
Note that all timings are generated from the 32.768 kHz oscillator and therefore, based on the frequency
characteristics specified for the device, have a temperature profile with a parabolic frequency deviation which can
result in a change of up to 150 ppm across the entire operating temperature range of -40°C to 85°C (max. ± 20
ppm at 25°C).
The timer counts down from the software-loaded 8-bit binary Timer Value in register 10h. Timer Values from 1 to
255 are valid. Loading the counter with 0 stops the timer.
When the counter decrements from 1, the Timer Flag (bit TF in register Control2) is set and the counter
automatically re-loads and starts the next timer period.
General countdown timer behavior:
Timer Value
xx
03
xx
03
Timer Clock
Countdown counter
02
01
03
02
01
03
02
01
03
TE
TF
INT
period
period
The first period has an uncertainty.
See table "First period duration for Timer Value n"
In this example, it is assumed that the Timer Flag TF is cleared before the next countdown period expires and
̅̅̅̅̅ is set to Pulse Mode (TI_TP bit = 1).
that the pin INT
If a new Timer Value is written before the end of the current timer period, then this value takes immediate effect. It
is not recommended changing the Timer Value without first disabling the counter by setting bit TE logic 0. The
update of the Timer Value is asynchronous to the Timer Clock.
Therefore changing it without setting bit TE logic 0 may result in a corrupted value loaded into the countdown
counter. This results in an undetermined countdown period for the first period. The Timer Value will, however, be
correctly stored and correctly loaded on subsequent timer periods.
28/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
̅̅̅̅̅ is generated if this mode is enabled. See Section INTERRUPT
When the TF flag is set, an interrupt signal on INT
OUTPUT for details on how the interrupt can be controlled.
When starting the timer for the first time, the first period has an uncertainty. The uncertainty is a result of the enable
instruction being generated from the interface clock which is asynchronous from the Timer Clock Frequency.
Subsequent timer periods do not have such deviation. The amount of deviation for the first timer period depends on
the chosen source clock, see following Table.
First period duration for Timer Value n(1):
Timer Clock Frequency
4.096 kHz
64 Hz
1 Hz
1/60 Hz
First period duration
Minimum Period
Maximum Period
(n – 1) * 244 µs
(n – 1) * 15.625 ms
(n – 1) * 1 s + 265 ms
(n – 1) * 60 s + 59.212 s
n * 244 µs
n * 15.625 ms
(n – 1) * 1 s + 280 ms
(n – 1) * 60 s + 59.216 s
(1) Timer Values n from 1 to 255 are valid. Loading the counter with 0 stops the timer.
At the end of every countdown, the timer sets the countdown Timer Flag (bit TF in register Control2). Bit TF can
only be cleared by command. The asserted bit TF can be used to generate an interrupt at pin ̅̅̅̅̅
INT. The interrupt
may be generated as a pulsed signal every countdown period or as a permanently active signal which follows the
condition of bit TF. Bit TI_TP is used to control this mode selection and the interrupt output may be disabled with bit
TIE (see TIMER REGISTERS, 11h – Timer Mode; and Figure “General countdown timer behavior” above).
When reading the Timer Value, the current countdown value is returned and not the initial Timer Value. Since it is
not possible to freeze the countdown timer counter during read back, it is recommended to read the register twice
and check for consistent results.
The Timer Clock Frequencies 64 Hz (only in MODE = 1), 1 Hz and 1⁄60 Hz can be affected by the Offset register.
The duration of a programmed period varies according to when the offset is initiated (OFFSET not 00h). For
example, if a 100 s timer is set using the 1 Hz clock as source, then some 100 s periods will contain compensation
pulses and therefore be longer or shorter depending on the setting of the Offset register (see FREQUENCY
OFFSET COMPENSATION).
29/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.8. MINUTE AND HALF MINUTE INTERRUPT FUNCTION
The Minute Interrupt (bit MI) and Half Minute Interrupt (bit HMI) are pre-defined timers for generating interrupt
pulses on pin ̅̅̅̅̅
INT (see following Figure). The timers are running in sync with the seconds counter (see TIME AND
DATA REGISTERS, 04h - Seconds).
The minute and half minute interrupts must only be used when the frequency offset is set to normal mode (MODE =
̅̅̅̅̅ are 15.625 ms
0), see FREQUENCY OFFSET COMPENSATION. In normal mode, the interrupt pulses on pin INT
wide.
When starting MI, the first interrupt will be generated after 1 second to 59 seconds. When starting HMI, the first
interrupt will be generated after 1 second to 29 seconds.
Subsequent periods do not have such a delay. The timers can be enabled independently from one another.
However, a Minute Interrupt enabled on top of a Half Minute Interrupt is not distinguishable.
00
11
12
01
≈
TF when MI enabled
00
≈ ≈ ≈ ≈ ≈
INT when MI enabled
59
≈
minutes counter
59
≈ ≈ ≈ ≈ ≈
58
≈
seconds counter
≈ ≈ ≈ ≈ ≈
̅̅̅̅̅
INT example for MI:
̅̅̅̅̅ is set to Pulse Mode
In this example, the TF flag is not cleared after an interrupt and the pin INT
(TI_TP bit = 1).
̅̅̅̅̅ generation:
Effect of bits MI and HMI on INT
Minute Interrupt (bit MI)
Half Minute Interrupt (bit HMI)
0
1
0
1
0
0
1
1
Result
No interrupt generated
Interrupt every minute
Interrupt every 30 seconds
The duration of the timer is affected by the register Offset (see CONTROL REGISTERS, 02h – Offset Register).
Only when OFFSET has the value 00h the periods are consistent.
4.8.1.PULSE GENERATOR 1
When the Timer Pulse Mode is activated (TI_TP = 1) the Pulse Generator 1 for the HMI and MI Interrupt Function
uses an internal clock.
The minute and half minute interrupts must only be used when the frequency offset is set to normal mode (MODE =
̅̅̅̅̅ are 15.625 ms wide. TF and INT
̅̅̅̅̅ become active simultaneously.
0). In normal mode, the interrupt pulses on pin INT
30/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.9. FREQUENCY OFFSET COMPENSATION
The RV-8063-C7 incorporates an Offset register (see CONTROL REGISTERS, 02h – Offset Register) which can
be used by customer to compensate the frequency offset of the 32.768 kHz oscillator which allows implementing
functions, such as:
 Improve time accuracy
 Aging compensation
02h – Offset Register:
Addresses
Function
Bit 7
02h
Offset
Reset
MODE
0
Bit
Symbol
Value
7
6:0
MODE
0
1
-64 to
+64
OFFSET
Bit 6
0
Bit 5
0
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
OFFSET
0
0
0
0
Description
Offset Mode
Normal Mode: Offset is made once every two hours.
Fast Mode: Offset is made every 4 minutes.
Offset value.
For MODE = 0, each LSB introduces an offset of 4.34 ppm. For MODE = 1,
each LSB introduces an offset of 4.069 ppm. The values of 4.34 ppm and
4.069 ppm are based on a nominal 32.768 kHz clock. The offset value is
coded in two’s complement giving a range of +63 LSB to -64 LSB.
OFFSET
OFFSET compensation value
in decimal
Compensation pulses
in steps
0111111
0111110
:
0000001
0000000
63
62
:
1
0
63
62
:
1
0
1111111
1111110
:
1000001
1000000
127
126
:
65
64
-1
-2
:
-63
-64
CLKOUT offset value
in ppm(1)
Normal Mode
Fast Mode
MODE = 0
MODE = 1
273.420
256.347
269.080
252.278
:
:
4.340
4.069
0
0
-4.340
-8.680
:
-273.420
-277.760
-4.069
-8.138
:
-256.347
-260.416
(1) The frequency offset measured at CLKOUT pin can be compensated by computing the compensation value OFFSET and writing it into
the Offset register (see OFFSET COMPENSATION CALCULATION WORKFLOW).
The compensation is made by adding or subtracting clock compensation pulses. The affects to the different
frequencies are listed below.
CLKOUT frequencies:
 1 Hz can be affected
 1.024 kHz to 32.768 kHz are not affected
Timer Clock frequencies:
 MODE = 0 (Normal Mode):
o 1/60 Hz and 1 Hz can be affected
o 64 Hz and 4.096 kHz are not affected
 MODE = 1 (Fast Mode):
o 1/60 Hz, 1 Hz and 64 Hz can be affected
o 4.096 kHz is not affected
31/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.9.1.OFFSET COMPENSATION CALCULATION WORKFLOW
Offset compensation calculation workflow:
Example
Measure the frequency on pin CLKOUT:
fCLKOUT
32768.48 Hz
Compute the CLKOUT offset value in ppm:
Offset [ppm] = ((fCLKOUT – 32768) / 32768) * 1’000’000
14.648 ppm
Compute the CLKOUT offset value in compensation
pulses:
MODE = 0 (Normal Mode):
Pulses = Offset [ppm] / 4.34 ppm
MODE = 1 (Fast Mode):
Pulses = Offset [ppm] / 4.069 ppm
3.375 à 3 compensaton pulses
are needed
or
3.600 à 4 compensaton pulses
are needed
Compute the OFFSET compensation value:
If Pulses > +63 or < -64, fCLKOUT is out of range to be
corrected.
Else if 0 ≤ Pulses ≤ 63, set OFFSET = Pulses.
OFFSET = 3 (MODE = 0)
= 4 (MODE = 1)
Else if -64 ≤ Pulses ≤ -1, set OFFSET = Pulses + 128.
32/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
Result of the offset compensation (Example):
(2)
(1)
-6
-4
-2
0
2
Reachable
accuracy zone
4
6
8
10
12
14
16
Offset [ppm]
Measured/calculated
Offset [ppm] ≙ 14.648 ppm
(32768.48 Hz)
With the offset compensation the accuracy of ±2.17 ppm (0.5 * offset per LSB) can be reached (see CONTROL
REGISTERS, 02h – Offset Register).
±1 ppm corresponds to a time deviation of 0.0864 seconds per day.
MODE = 0: Deviation after compensation = Offset [ppm] – compensation pulses * 4.34 ppm
= 14.648 ppm – 3 * 4.34 ppm = +1.628 ppm
(2) MODE = 1: Deviation after compensation = Offset [ppm] – compensation pulses * 4.069 ppm
= 14.648 ppm – 4 * 4.069 ppm = -1.628 ppm
(1)
33/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.10. COMPENSATION INTERRUPT FUNCTION
It is possible to monitor when compensation pulses are applied. To enable Compensation Interrupt generation, bit
CIE (register Control1) has to be set logic 1. At every compensation cycle a pulse is generated on pin ̅̅̅̅̅
INT by the
Pulse Generator 3. The pulse width depends on the Offset Mode (MODE bit). If multiple compensation pulses are
applied, an interrupt pulse is generated for each compensation pulse applied.
4.10.1. COMPENSATION PULSES WHEN MODE = 0 (NORMAL MODE)
The compensation is triggered once every two hours and then compensation pulses are applied once per minute
until the programmed offset value has been compensated.
Compensation pulses when MODE = 0:
Compensation pulses
in steps
Update every nth hour
Compensation pulses on
̅̅̅̅̅
INT per minute(1)
Minute
+1 or -1
+2 or -2
+3 or -3
:
+59 or -59
+60 or -60
2
00
2
00 and 01
2
00, 01, and 02
:
:
2
00 to 58
2
00 to 59
2
00 to 59
+61 or -61
2nd and next hour
00
2
00 to 59
+62 or -62
2nd and next hour
00 and 01
2
00 to 59
+63 or -63
2nd and next hour
00, 01, and 02
2
00 to 59
-64
2nd and next hour
00, 01, 02, and 03
(1) When MODE = 0, the compensation pulses on pin ̅̅̅̅̅
INT are 15.625 ms wide.
1
1
1
:
1
1
1
1
1
1
1
1
1
1
In MODE = 0, CLKOUT and Timer Clock frequencies < 64 Hz are affected by the compensation pulses.
Effect of compensation pulses on frequencies when MODE = 0:
Frequency
Effect of compensation
32.768 kHz
16.384 kHz
8.192 kHz
4.096 kHz
2.048 kHz
1.024 kHz
1 Hz
no effect
no effect
no effect
no effect
no effect
no effect
Frequency affected
4.096 kHz
64 Hz
1 Hz
1/60 Hz
no effect
no effect
Periods affected
Periods affected
CLKOUT
Timer Clock
34/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.10.2. COMPENSATION PULSES WHEN MODE = 1 (FAST MODE)
The compensation is triggered once every four minutes and then compensation pulses are applied once per
second up to a maximum of 60 pulses. When compensation values greater than 60 pulses are used, additional
th
compensation pulses are made in the 59 second.
Clock compensation is made more frequently in MODE = 1; resulting in slightly higher power consumption.
Compensation pulses when MODE = 1:
Compensation pulses
in steps
Update every nth minute
Second
Compensation pulses on
̅̅̅̅̅
INT per second(1)
+1 or -1
+2 or -2
+3 or -3
:
+59 or -59
+60 or -60
4
4
4
:
4
4
4
4
4
4
4
4
4
4
00
00 and 01
00, 01, and 02
:
00 to 58
00 to 59
00 to 58
59
00 to 58
59
00 to 58
59
00 to 58
59
1
1
1
:
1
1
1
2
1
3
1
4
1
5
+61 or -61
+62 or -62
+63 or -63
-64
(1) When MODE = 1, the compensation pulses on pin INT
̅̅̅̅̅ are 977 µs wide. For multiple pulses, they are repeated at an interval of 1.953 ms.
In MODE = 1, CLKOUT or Timer Clock frequencies < 1.024 kHz are affected by the compensation pulses.
Effect of compensation pulses on frequencies when MODE = 1:
Frequency
Effect of compensation
32.768 kHz
16.384 kHz
8.192 kHz
4.096 kHz
2.048 kHz
1.024 kHz
1 Hz
no effect
no effect
no effect
no effect
no effect
no effect
Frequency affected
4.096 kHz
64 Hz
1 Hz
1/60 Hz
no effect
Periods affected
Periods affected
Periods affected
CLKOUT
Timer Clock
35/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.11. CLKOUT FREQUENCY SELECTION
A programmable square wave is available at pin CLKOUT. Operation is controlled by the FD field in the register
Control2. Frequencies of 32.768 kHz (default) down to 1 Hz can be generated for use as a system clock,
microcontroller clock, input to a charge pump, or for calibration of the crystal oscillator.
Pin CLKOUT is a push-pull output and enabled at power-on. CLKOUT can be disabled by setting the FD field to
111 or by setting CLKOE LOW. When disabled, the CLKOUT is LOW.
The duty cycle of the selected clock is not controlled. However, due to the nature of the clock generation, all are 50
: 50 except the 32.768 kHz frequency.
The STOP bit function can also affect the CLKOUT signal, depending on the selected frequency. When the STOP
bit is set logic 1, the CLKOUT pin generates a continuous LOW for those frequencies that can be stopped (for more
details, see STOP BIT FUNCTION).
FD
CLKOUT Frequency
Typical duty cycle
Effect of STOP bit
000
001
010
011
100
101
110
111
32.768 kHz – Default value
16.384 kHz
8.192 kHz
4.096 kHz
2.048 kHz
1.024 kHz
50 ±10 %
50 %
50 %
50 %
50 %
50 %
50 %
-
no effect
no effect
no effect
CLKOUT = LOW
CLKOUT = LOW
CLKOUT = LOW
CLKOUT = LOW
1 Hz (1)
CLKOUT = LOW
-
(1) 1 Hz clock pulses are affected by compensation pulses (see FREQUENCY OFFSET COMPENSATION).
36/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
4.12. STOP BIT FUNCTION
The function of the STOP bit is to allow for accurate starting of the time circuits.
The STOP bit function causes the upper part of the prescaler (F2 to F14) to be held in reset and thus no 1 Hz ticks
are generated. The STOP bit function will not affect the CLKOUT of 32.768 kHz, 16.384 kHz and 8.192 kHz (see
also CLKOUT FREQUENCY SELECTION).
STOP bit functional diagram:
F2
RESET
2 Hz
1
0
4.096 kHz
8.192 kHz
F1
≈
F0
setting the OS flag
≈
OSCILLATOR
16.384 kHz
32.768 kHz
OSCILLATOR STOP
DETECTOR
F13
F14
RESET
RESET
1 Hz tick
STOP
The time circuits can then be set and do not increment until the STOP bit is released (see following Table and
Figure).
First increment of time circuits after STOP bit release:
STOP bit
Prescaler bits 1)
F0F1-F2 to F14
1 Hz tick
Time
hh:mm:ss
Comment
Clock is running normally
0
01-0 0001 1101 0100
12:45:12
Prescaler counting normally
STOP bit is activated by user. F0F1 are not reset and values cannot be predicted externally
1
XX-0 0000 0000 0000
12:45:12
Prescaler is reset; time circuits are frozen
New time is set by user
1
XX-0 0000 0000 0000
08:00:00
Prescaler is reset; time circuits are frozen
STOP bit is released by user
08:00:00
0
XX-0 0000 0000 0000
Prescaler is now running
08:00:00
XX-1 0000 0000 0000
08:00:00
0.499878
XX-0 1000 0000 0000
to
08:00:00
XX-1 1000 0000 0000
0.500000 s
:
:
:
≈
11-1 1111 1111 1110
08:00:00
00-0 0000 0000 0001
08:00:01
0 to 1 transition of F14 increments the time circuits
10-0 0000 0000 0001
08:00:01
≈
:
:
:
11-1 1111 1111 1111
08:00:01
1.000000 s
00-0 0000 0000 0000
08:00:01
10-0 0000 0000 0000
08:00:01
:
:
:
≈
11-1 1111 1111 1110
08:00:01
00-0 0000 0000 0001
08:00:02
0 to 1 transition of F14 increments the time circuits
10-0 0000 0000 0001
08:00:02
1)
F0 is clocked at 32.768 kHz.
The lower two stages of the prescaler (F 0 and F1) are not reset. And because the SPI-bus is asynchronous to the
crystal oscillator, the accuracy of restarting the time circuits is between zero and one 8.192 kHz cycle (see following
Figure).
37/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
STOP bit release timing:
8192 Hz
stop released
0 µs to 122 µs
The first increment of the time circuits is between 0.499878 s and 0.500000 s after STOP bit is released. The
uncertainty is caused by the prescaler bits F0 and F1 not being reset (see Table above) and the unknown state of
the 32 kHz clock.
38/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
5. SPI INTERFACE
Data transfer to and from the device is made via a 3-wire SPI-bus (see following Table). The chip enable signal is
used to identify the transmitted data. Each data transfer is a byte, with the Most Significant Bit (MSB) sent first (see
following Figure).
SPI Serial interface:
Symbol
CE
SCL
Function
Description
Chip Enable Input
When LOW, the interface is reset; may not be wired permanently HIGH.
Serial Clock Input
When CE is LOW, this input may float.
Serial Data Input and Output
Input
When CE is LOW, input may float; input data is sampled on the rising edge of SCL.
SDIO
Push-pull output; drives from VSS to VDD; output data is changed on the falling edge of SCL; is highimpedance when not driving.
Output
SCL edges:
SDIO
SCL
The transmission is controlled by the active HIGH chip enable signal CE. The first byte transmitted is the command
byte. Subsequent bytes are either data to be written or data to be read. Data is sampled on the rising edge of the
clock and transferred internally on the falling edge. Therefore SCL in idle mode shall be LOW.
SDIO
COMMAND
DATA
DATA
≈
Data transfer overview:
DATA
CE
The command byte defines the address of the first register to be accessed and the read/write mode. The address
counter will auto increment after every access and will roll over to zero after the last register is accessed (see
Figure in FUNCTIONAL DESCRIPTION). The R/W bit defines whether the following bytes are read or write
information.
Command byte definition:
Bit
Symbol
Value
Description
Data read or data write selection
7
R/W
6:5
SA
4:0
RA
0
1
01
0h to
11h
Write data
Read data
Subaddress; other codes will cause the device to ignore data transfer.
Register address range; other addresses will be ignored.
39/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
5.1. SERIAL BUS READ / WRITE EXAMPLES
SPI-bus write example: The register Seconds is set to 45 seconds and the register Minutes is set to 10 minutes.
R/W
b7
0
SA
Addr 04h
Seconds data 45BCD
Minutes data 10BCD
b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0
0 1
0
0 1
0
0 0
1 0
0
0
1
0 1
0
0 0
1
0
0
0 0
SCL
SDIO
CE
address
counter
xxh
04h
05h
06h
SPI-bus read example: The Months and Years registers are read.
R/W
b7
1
SA
Addr 09h
Months data 11BCD
Years data 06BCD
b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0
0 1
0
1 0
0
1
0
0 0
1
0
0
0 1
0
0 0
0
0
1
1 0
SCL
SDIO
CE
address
counter
xxh
09h
0Ah
0Bh
40/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
6. ELECTRICAL SPECIFICATIONS
6.1. ABSOLUTE MAXIMUM RATINGS
The following Table lists the absolute maximum ratings.
Absolute Maximum Ratings according to IEC 60134:
SYMBOL
PARAMETER
VDD
IDD
VI
VO
II
IO
PTOT
Power supply voltage
Power supply current
Input voltage
Output voltage
Input current
Output current
Total power dissipation
VESD
Electrostatic discharge
Voltage
ILU
TOPR
TSTO
TPEAK
Latch-up current
Operating temperature
Storage temperature
Maximum reflow condition
CONDITIONS
At any input
At any output
HBM
CDM
MIN
MAX
UNIT
-0.5
-50
-0.5
-0.5
-10
-10
6.5
50
6.5
6.5
10
10
300
±5000
±2000
200
85
125
265
V
mA
V
V
mA
mA
mW
V
V
mA
°C
°C
°C
(1)
(2)
(3)
Stored as bare product
JEDEC J-STD-020C
-40
-55
(1) HBM:
Human Body Model, according to JESD22-A114.
Charged-Device Model, according to JESD22-C101.
(3) Latch-up testing, according to JESD78, at maximum ambient temperature (T
A(max))
(2) CDM:
41/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
6.2. OPERATING PARAMETERS
For this Table, VDD = 0.9 to 5.5 V; VSS = 0V; TA = -40 °C to +85 °C; fOSC= 32.768 kHz; TYP values at 25 °C and 3.0
V; unless otherwise indicated.
Operating Parameters:
SYMBOL
PARAMETER
CONDITIONS
MIN
TYP
MAX
UNIT
Supplies
VDD
IDD
IDD
Power supply voltage
VDD supply current timekeeping.
CLKOUT disabled;
Interface inactive, fSCL = 0 Hz (2)
VDD supply current timekeeping.
CLKOUT disabled;
Interface active, fSCL = 1 MHz
Inputs
VI
VIL
VIH
Input voltage
LOW level input voltage
HIGH level input voltage
ILEAK
Input leakage current
CI
Input capacitance
Outputs
VOH
VOL
HIGH level output voltage
LOW level output voltage
IOH
HIGH level output current
Time-keeping mode; interface
(1)
inactive; fSCL = 0 Hz
Interface active; fSCL = 1 MHz (1)
VDD = 3.0 V, TA = 25°C
VDD = 3.0 V, TA = 50°C
VDD = 3.0 V, TA = 85°C
0.9
5.5
1.8
5.5
(3)
VDD = 3.0 V
190
230
450
600
40
180
µA
VDD +0.5
0.3 VDD
VDD
+0.15
V
V
V
µA
µA
7
pF
VDD
0.2 VDD
V
V
VSS -0.5
VSS
0.7 VDD
VI = VSS or VDD
VI = VSS or VDD, post ESD event
On pins SDIO, SCL, CE and
(4)
CLKOE
On pins SDIO, CLKOUT
̅̅̅̅̅, CLKOUT
On pins SDIO, INT
On pin SDIO,
VOH = 2.6 V, VDD = 3.0 V
On pin CLKOUT,
VOH = 2.6 V, VDD = 3.0 V
V
nA
0
-0.15
0.8 VDD
VSS
Output source current
2
5
mA
1
3
mA
2
6
mA
1
3
mA
Output sink current
̅̅̅̅̅
On pins SDIO, INT
IOL
LOW level output current
VOL = 0.4 V, VDD = 3.0 V
On pin CLKOUT
VOL = 0.4 V, VDD = 3.0 V
(1) For reliable oscillator start at power on: V
DD(po)min = VDDmin + 0.3 V.
(2) Timer source clock = 1⁄60 Hz; level of pins CE, SDIO, and SCL is V or V .
DD
SS
(3) Tested on sample basis.
(4) Implicit by design.
42/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
SPI active. Typical IDD with respect to fSCL:
800
IDD
[µA]
600
(1)
400
200
(2)
0
0
(1)
(2)
1000
2000
3000
5000
6000
fSCL [kHz]
4000
TA = 25 °C; CLKOUT disabled.
VDD = 5.5 V.
VDD = 3.0 V.
Timekeeping mode. Typical IDD as a function of temperature:
800
IDD
[nA]
600
400
(1)
(2)
200
0
-50
(1)
(2)
-30
-10
10
30
50
70
Temperature [°C]
90
CLKOUT disabled.
VDD = 5.5 V.
VDD = 3.0 V.
43/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
Timekeeping mode. Typical IDD with respect to VDD:
300
IDD
[nA]
250
200
150
100
50
0
0
1
2
3
4
5
4
5
VDD [V]
6
TA = 25 °C; timer clock frequency = 1/60 Hz; CLKOUT disabled.
Oscillator frequency variation with respect to VDD:
4
∆f/V
[ppm] 3
2
1
0
-1
-2
-3
-4
0
1
2
3
6
VDD [V]
TA = 25 °C, normalized to VDD = 3 V
44/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
6.3. OSCILLATOR PARAMETERS
For this Table, VDD = 0.9 to 5.5 V; VSS = 0V; TA = -40 °C to +85 °C; fOSC= 32.768 kHz; TYP values at 25 °C and 3.0
V; unless otherwise indicated.
Oscillator Parameters:
SYMBOL
PARAMETER
Xtal General
f
tSTART
Crystal Frequency
Oscillator start-up time
δCLKOUT
CLKOUT duty cycle
CONDITIONS
MIN
FCLKOUT = 32.768 kHz
TA = 25°C
TYP
MAX
UNIT
32.768
0.2
2
kHz
s
60
%
±20
ppm
40
Xtal Frequency Characteristics
Δf/f
F = 32.768 kHz
TA = 25°C, VDD = 3.0 V
Frequency accuracy
Frequency vs. voltage
Δf/V
characteristics
Frequency vs. temperature
Δf/fTOPR
characteristics
T0
Turnover temperature
Δf/f
Aging first year max.
Frequency Offset Compensation
OFFSET value when MODE = 0:
Δt/t
Min. comp. step (LSB) and
Max. comp. range
OFFSET value when MODE = 1:
Δt/t
Min. comp. step (LSB) and
Max. comp. range
Δt/t
±10
±1
TOPR = -40°C to +85°C
VDD = 3.0 V
ppm
-0.035
ppm/V
2
(TOPR-T0) ±10%
ppm
30
±3
°C
ppm
20
TA = 25°C, VDD = 3.0 V
TA = -40°C to +85°C
±4.34
+273.4/
-277.8
ppm
TA = -40°C to +85°C
±4.069
+256.3/
-260.4
ppm
-2.17
+2.17
ppm
Calibrated at an initial
temperature and voltage
Achievable time accuracy
/°C2
6.3.1.XTAL FREQUENCY VS. TEMPERATURE CHARACTERISTICS
20
T0 = 25°C (± 5°C)
0
-20
∆f/f [ppm]
-40
-60
-80
-0.035 * (T-T0)2 ppm (±10%)
-100
-120
-140
-160
-180
-50
-40
-30
-20
-10
0
10
20
30
40
50
60
70
80
90
Temperature [°C]
45/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
6.4. SPI-BUS CHARACTERISTICS
VDD = 1.8 V to 5.5 V; VSS = 0 V; TA = -40°C to +85°C; fOSC= 32.768 kHz; unless otherwise specified. All timing
values are valid within the operating supply voltage and temperature range and referenced to VIL and VIH with an
input voltage swing of VSS to VDD.
SPI-bus timing:
t w(CE)
CE
tr
t SCL
t clk(H)
t clk(L)
tf
80%
SCL
t rec(CE)
t h(CE)
≈
t su(CE)
≈
20%
WRITE
t su
≈
SA2
RA0
b6
b7
b0
≈
R/W
≈
SDI
≈
th
≈
Hi Z
≈
SDO
≈
READ
b6
b0
Hi Z
t dis(SDO)
t d(R)SDO
b7
b0
b6
≈
≈
SDO
t t(SDI-SDO)
≈
≈
b7
≈
SDI
SPI-bus parameters:
SYMBOL
PARAMETER
fSCL
tSCL
tclk(H)
tclk(L)
tr
tf
tsu(CE)
th(CE)
trec(CE)
SCL clock frequency
SCL time
Clock HIGH time
Clock LOW time
Rise time
Fall time
CE set-up time
CE hold time
CE recovery time
tw(CE)
CE pulse width
tsu
th
td(R)SDO
Set-up time
Hold time
SDO read delay time
tdis(SDO)
SDO disable time
tt(SDI-SDO)
Transition time from SDI to SDO
CONDITIONS
VDD = 1.8 V
to 3.0 V
MIN
MAX
VDD > 3.0 V
to 5.5 V
MIN
MAX
5
200
80
110
For SCL signal
For SCL signal
100
100
15
10
50
Measured after valid subaddress
is received
Set-up time for SDIO data
Hold time for SDIO data
Bus load = 50 pF
No load value; bus will be held
up by bus capacitance; use RC
time constant with application
values
To avoid bus conflict; on pin
SDIO
7
140
80
60
100
100
15
10
50
0.99
MHz
ns
ns
ns
ns
ns
ns
ns
ns
0.99
s
110
60
ns
ns
ns
50
50
ns
5
50
0
UNIT
5
20
0
ns
46/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
7. APPLICATION INFORMATION
7.1. OPERATING RV-8063-C7
100 nF
1
2
VDD
RV-8063-C7
VDD
INT
INT
CE
CE
SCL
SCL
SDIO
SDIO
CLKOE
GPIO
VDD
MCU
VSS
VSS
1
2
3
CLKOUT
3
A 100 nF decoupling capacitor is recommended close to the device.
The ̅̅̅̅̅
INT output is an open drain and requires a pull-up resistor to VDD.
CLKOUT offers selectable frequencies from 32.768 kHz to 1 Hz for application use. If not used, it is
recommended to disable CLKOUT for optimized current consumption by setting FD to 111b or by pulling
CLKOE LOW. When disabled, the CLKOUT is LOW.
Further current minimization can be achieved by turn off the timer (TE = 0) and setting the timer clock
frequency to 1/60 Hz (TD = 11b)
47/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
7.2. OPERATING RV-8063-C7 WITH BACKUP CAPACITOR
An external diode-circuitry can be wired to ensure standby or back-up supply. With the RTC in its minimum power
configuration (see OPERATING RV-8063-C7) the RTC with a supercapacitor may operate for weeks and with a
battery for years.
6
5
4
Backup
Supercap
or Battery
7
100 nF
CLKOE
VDD_RTC
RV-8063-C7
VDD
INT
INT
CE
CE
SCL
SDIO
VDD
MCU
SCL
SDIO
VSS
VSS
4
5
6
7
CLKOUT
Supercapacitor (e.g. 1 farad), primary battery or secondary battery LMR (respect manufacturer
specifications for constant charging voltage).
When using a supercapacitor, a resistor is used to limit the inrush current into the supercapacitor at
power-on. E.g. to comply with the maximum forward current of the schottky diode.
or
When using a battery, a resistor is used to limit the maximum current in case of a short circuit.
Schottky diode. This low VF diode (less than 0.3 V) is needed to not exceed the specified maximum voltage
at the inputs of the RV-8063-C7 when normal supply voltage VDD is present (VI_MAX = VDD_RTC +0.5V).
Schottky diodes have considerable leakage currents. To optimize backup time it is recommended to select
a low leakage Schottky (e.g. BAS70-05).
If the clock signal (pin CLKOUT) and/or the interrupt signal (pin ̅̅̅̅̅
INT) are required in backup mode (VDD_RTC)
̅̅̅̅̅ pin have to be connected to VDD_RTC.
the CLKOE pin and/or the pull-up resistor for the INT
48/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
8. RECOMMENDED REFLOW TEMPERATURE (LEAD-FREE SOLDERING)
Maximum Reflow Conditions in accordance with IPC/JEDEC J-STD-020C “Pb-free”
tP
TP
Critical Zone
TL to TP
Temperature
Ramp-up
TL
tL
Tsmax
Tsmin
Ramp-down
ts
Preheat
25
t 25°C to Peak
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
Time
Symbol
(Tsmax to TP)
Tcool
Tto-peak
Condition
3°C / second max
6°C / second max
8 minutes max
Unit
°C / s
°C / s
min
Tsmin
Tsmax
ts
150
200
60 – 180
°C
°C
sec
TL
tL
217
60 – 150
°C
sec
Tp
tp
260
20 – 40
°C
sec
49/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
9. PACKAGE
9.1. DIMENSIONS AND SOLDER PAD LAYOUT
C7 Package:
Package dimensions (bottom view):
Recommended solder pad layout:
3,2
0,9
0,9
0,5
4
8
7
6
5
0,4
0,8
2,0
3
0,5
2
1,5
1
0,8
0,9
0,9
3,2
0,1
max.0,80
0,4
All dimensions in mm typical.
9.2. MARKING AND PIN #1 INDEX
C7 Package: (top view)
Production Date Code
#8
#5
M 503 A 1
8063
#1
Pin 1 Index
#4
Part Designation
50/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
10. PACKING INFORMATION
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
Ø1
±0,1
±0,02
1,75
5,5 ±0,05
,5
±0
,1
Ø1
,5
2 ±0,1
0,3
±0,2
3,45
±0,1
4 ±0,1
±0
,1
C7 Package:
12
8063
8063
4 ±0,1
1,75
±0,1
0.9
±0,1
User Direction of Feed
Tape Leader and Trailer: 300 mm minimum.
All dimensions in mm.
10.2. PARTS PER REEL
C7 Package:
Reels:
Diameter
7”
7”
Material
Plastic, Polystyrol
Plastic, Polystyrol
RTC’s per reel
1’000
3’000
51/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
10.3. REEL 7 INCH FOR 12 mm TAPE
ø 10
60
60
°
°
1,8
ø 178
ø 61,5
min.12,4
max.17
Reel:
Diameter
7”
Material
Plastic, Polystyrol
52/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
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.
53/54
Micro Crystal
Ultra Small Real Time Clock / Calendar Module
RV-8063-C7
11. DOCUMENT REVISION HISTORY
Date
Revision #
Revision Details
May 2015
1.0
First release
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.
54/54