RICOH R2221T, R2221L, R2223T, R2223L Technical data

R2221T/L R2223T/L
2-wire Serial Interface Real Time Clock IC
NO.EA-227-110822
OUTLINE
The R2221T/L,R2223T/L is a CMOS real-time clock IC connected to the CPU by two signal lines, SCL, SDA, and configured to perform serial transmission of time and calendar data to the CPU. The periodic interrupt circuit is configured to generate interrupt signals with six selectable interrupts ranging from 0.5 seconds to 1 month. The 2 alarm interrupt circuits generate interrupt signals at preset times. As the oscillation circuit is driven under constant voltage, fluctuation of the oscillator frequency due to supply voltage is small, and the time keeping current is small (TYP. 0.18μA at 3V). The oscillation halt sensing circuit can be used to judge the validity of internal data in such events as power-on; the supply voltage monitoring circuit is configured to record a drop in supply voltage below supply voltage monitoring threshold settings. The 32.768kHz clock output function (CMOS output with control pin) is intended to output sub-clock pulses for the external microcomputer. The oscillation adjustment circuit is intended to adjust time counts with high precision by correcting deviations in the oscillation frequency of the crystal oscillator. Since the package for these ICs are TSSOP10G (4.0x2.9x1.0:R2221T,R2223T) or QFN018018-12 (1.8x1.8x0.43: R2221L, R2223L), high density mounting of ICs on boards is possible.
FEATURES
Minimum Timekeeping supply voltage TYP:0.6 to 5.5v (Worst: 0.9V to 5.5v); VDD pin
Ultra low power consumption 0.18μA TYP at V
Two signal lines (SCL, SDA) required for connection to the CPU.
Time counters (counting hours, minutes, and seconds) and calendar counters (counting years, months, days,
and weeks) (in BCD format)
Interrupt circuit configured to generate interrupt signals (w ith interrupts ranging from 0.5 seconds to 1 month) to the CPU and provided with an interrupt flag and an interrupt halt
2 alarm interrupt circuits (Alarm_W for week, hour, and minute alarm settings and Alarm_D for hour and minute alarm settings)
With Power-on flag to prove that the power supply starts from 0V
32-kHz clock output pin (CMOS push-pull output with control pin)
Supply voltage monitoring circuit with supply voltage monitoring threshold settings
Automatic identification of leap years up to the year 2099
Selectable 12-hour and 24-hour mode settings
High precision oscillation adjustment circuit
Built-in oscillation stabilization capacitors (CG and CD)
Package TSSOP10G (4.0mm x 2.9mm x 1.0mm: R2221T, R2223T)
QFN018018-12 (under development) (1.8mm x 1.8mm x 0.43mm: R2221L, R2223L)
CMOS process
DD=3V (0.65μA MAX.)
1
R2221L/T, R2223L/T (Preliminary)
A
R
A
A
R
PIN CONFIGURATION
R2221T(TSSOP10G)
32KOUT
SCL
SDA
ECO
1 2
3 4 56
TOP VIEW
R2223T(TSSOP10G)
32KOUT
SCL
SDA
INTRB
1 2
3 4 56
10
9 8 7
10
9 8 7
VDD OSCIN OSCOUT CLKC
INTR VSS
VDD OSCIN OSCOUT CLKC
INTRAVSS
R2221L(QFN018018-12:underdevelopment)
SCL
SD
10 11 12
32KOUT
9
NC
1
VSS
VDD
7
8
6
OSCIN
5
OSCOUT
4
2
CLKC ECO
3
NC
INT
TOP VIEW
R2223L(QFN018018-12:
SCL
SD
10 11 12
32KOUT
under development)
VDD
NC
1
VSS
7
8
6 5
4
2
3
NC
9
INTR
OSCIN OSCOUT CLKC INTRB
TOP VIEW
BLOCK DIAGRAM
32KOUT
CLKC
*2) ECO
OSCIN
OSCOUT
INTRA INTR
*1)
INTRB
*1) As an interrupt pin, the R2221L/T has
INTRB
*2) The R2221L/T has
OSC
pin.
32kHz
OUTPUT
CONTROL
DIVIDER
CORREC
OSC
DETECT
-TION
INTERRUPT CONTROL
ECO
pin. The R2223L/T can set ECO mode with the internal resister.
DIV
TOP VIEW
COMPARATOR_W
COMPARATOR_D
TIME COUNTER
(SEC,MIN,HOUR,WEEK,DAY,MONTH,YEAR)
ADDRESS DECODER
SHIFT REGISTER
INT
, the R2223L/T has
ALARM_W REGISTER
(MIN,HOUR, WEEK)
ALARM_D REGISTER
(MIN,HOUR)
ADDRESS
REGISTER
INTRA
VDD
VOLTAGE
DETECT
POWER_ON
RESET
VSS
I/O
CONTROL
SCL SDA
pin. The R2221T does not have
2
R2221L/T, R2223L/T (Preliminar
y)
CO
SELECTION GUIDE
In the R2221L/T, R2223L/T, users can select the IC with designating the package, function version according to the application. The designation can be made by part number as below: Part Number is designated as follows: R2221T-E2 ←Part Number R2223T-E2Part Number ↑ ↑ ↑ ↑ R2221a-bb R2223a-bb
Code Description
Designation of the package.
a bb Designation of the taping type. Only E2 is available.
T: TSSOP10G L:QFN018018-12 (under development)
PIN DESCRIPTION
Symbol Item Description
SCL Serial Clock
Line
SDA Serial Data Line The SDA pin is used to input and output data intended for writing and
32KOUT 32kHz Clock
Output
CLKC Clock Control The CLKC pin is used to control output of the 32KOUT pin. The clock
INTRA
(R2223L/T)
INTRB
(R2223L/T)
INTR
(R2221L/T)
ECO
(R2221L/T)
VDD VSS OSCIN OSCOUT
NC No connection
Interrupt Output A
Interrupt Output B
Interrupt Output
Oscillator mode select pin
Positive/Negative Power Supply Input
Oscillation Circuit Input / Output
The SCL pin is used to input clock pulses synchronizing the input and output of data to and from the SDA pin. Allows a maximum input voltage of
5.5v regardless of supply voltage. reading in synchronization with the SCL pin. Allows a maximum input
voltage of 5.5v regardless of supply voltage. Nch. open drain output. The 32KOUT pin is used to output 32.768-kHz clock pulses. The pin is CMOS push-pull output. The output is disabled and held “L” when CLKC pin is set to “L” or open, or certain register setting. This pin is enabled at power-on from 0v. Allows a maximum input voltage of 5.5v regardless of supply voltage.
output is disabled and held “L” when this pin is set to “L” or open. Incorporated pull down register.
INTRA
The interrupt signals to the CPU. Disabled at power-on from 0V. N-channel open drain output. Allows a maximum pull-up voltage of 5.5v regardless of supply voltage.
INTRB
The Disabled at power-on from 0V. N-channel open drain output. Allows a maximum pull-up voltage of 5.5v regardless of supply voltage.
INTR
The periodic interrupt signals to the CPU. Disabled at power-on from 0V. N-channel open drain output. Allows a maximum pull-up voltage of 5.5v regardless of supply voltage. Ultra low consumption oscillator mode (ECO mode) select pin
When the oscillator mode. In the actual usage, set this pin at ”L” or ”H”. (R2223L/T realizes the ultra low consumption oscillator mode by resister. ) For further information to know the technical notes, refer to the item "ECO mode" at P.30. The VDD pin is connected to the power supply. The VSS pin is grounded.
The OSCIN and OSCOUT pins are used to connect the 32.768-kHz crystal oscillator (with all other oscillation circuit components built into the R2221L/T, R2223L/T).
pin is used to output alarm interrupt (Alarm_D) and periodic
pin is used to output alarm interrupt (Alarm_W) to the CPU.
pin is used to output alarm interrupt (Alarm_DAlarm_W) and
E
pin is “L”, the oscillator becomes ultra low consumption
3
R2221L/T, R2223L/T (Preliminary)
R
R
R
ABSOLUTE MAXIMUM RATINGS
(VSS=0V)
Symbol Item Pin Name Description Unit
VDD Supply Voltage VDD -0.3 to +6.5 V VI Input Voltage 1 SCL, SDA, CLKC,
ECO
*1)
VO
PD Power Dissipation Topt Operating Temperature -40 to +85 Tstg Storage Temperature -55 to +125
*1)R2221L/T:
Output Voltage 1
Output Voltage 2 32KOUT -0.3 to V
ECO ,INT
R2223L/T:
SDA,
Topt = 25°C
INTRA,INTRB
INTRB
INTRA
INT
,
,
*1)
.
-0.3 to +6.5 V
-0.3 to +6.5
DD + 0.3
300 mW
V
°C °C
RECOMMENDED OPERATING CONDITIONS
(VSS=0V, Topt=-40 to +85°C)
Symbol Item Pin Name Min, Typ. Max. Unit
Vaccess Supply Voltage Power supply voltage
for interfacing with CPU
VCLK Time keeping Voltage VCLKL Minimum Time keeping
Voltage
Vxstp Oscillation halt sensing
Voltage
fXT Oscillation Frequency 32.768 kHz VPUP Pull-up Voltage
*1) CGout is connected between OSCIN and VSS, CDout is connected between OSCOUT and VSS.
R2221L//T, R2223L/T incorporates the capacitors between OSCIN and VSS, between OSCOUT and VSS. Then normally, CGout and CDout are not necessary. For more detail, refer to the item named “Cofiguration of Oscillation Circuit, ECO mode, and Correction of
Time
Count Deviations” on P.29.
*2) Quartz crystal unit: CL (load capacity)=6 to 12.5pF, R1 (equivalent series resistance)=under 75 to
80KΩ(Max.) The adjustment method depends on the CL value, R1 value, use or unuse of ECO mode. For more detail, “Cofiguration of Oscillation Circuit, ECO mode, and Correction of Time Count Deviations” on
P.29. *3) XSTP is the crystal oscillation halt sensing flag. When the crystal oscillation halts, XSTP=1. *4)R2221L/T:
ECO ,INT
. R2223L/T:
CGout,CDout=0pF *1), *2) CGout,CDout=0pF *1), *2) power supply which satisfies the condition XSTP=1 *3) CGout=CDout=0pF *1)*2)
INTRA
INTR
INTRA, INTRB
INTRB
, *4)
,
1.5 5.5 V
0.9 5.50
0.6 0.9
0.6 0.9 V
5.5 V
V
4
R2221L/T, R2223L/T (Preliminar
y)
R
R
R
DC ELECTRICAL CHARACTERISTICS
(Unless otherwise specified: VSS=0V, VDD=3.0V, Topt=-40 to +85°C, Crystal oscillator 32768Hz)
Symbol Item Pin Name Conditions Min. Typ. Max. Unit
VIH “H” Input Voltage 0.8x
SCL, SDA, CLKC,
VIL “L” Input Voltage IOH “H” Output
ECO
*1)
32KOUT VOH=VDD-0.5V -0.5 mA
DD=1.5 to 5.5V
V
VDD
-0.3 0.2x
Current IOL1 32KOUT 0.5 IOL2
IOL3 IIL Input Leakage
ICLKC Pull-down Resister
“L” Output
Current
Current
INTRA INTRB
INT
*1) SDA SCL,
ECO
*1) CLKC VI=5.5V 0.2 1.00
OL=0.4V
V
I=5.5V or VSS
V VDD=5.5V
2.0
3.0
-0.2 0.2
Input Leakage Current
IOZ
Output Off-state Current
IDD1 Time Keeping Current
(ECO mode =ON)
SDA,
INTRA INTRB
INT
VDD
, ,
*1)
O=5.5V or VSS
V VDD=5.5V
VDD=3V, Topt=-40 to +85°C
-0.2 0.2
*2) *3) *4)
DD=3V,
V
0.18 0.5 Topt=-30 to +70°C *2) *3) *4)
IDD2 Time Keeping Current
(ECO mode =OFF)
VDD
VDD=3V, Topt=-40 to +85°C
0.35 0.9 *2) *3) *5)
DD=3V,
V
0.35 0.75 Topt=-30 to +70°C *2) *3) *5)
VDET Supply Voltage
Monitoring Voltage
VDD
Topt=-30 to +70°C
1.20 1.35 1.50 V
5.5 V
VDD
mA
μA
μA
μA
0.18 0.65
μA μA
μA
μA
*1) R2221L/T:
ECO ,INT
R2223L/T:
INTRA, INTRB
*2) CGout,CDout=0pFFor time keeping current when outputting 32.768kHz from the 32KOUT pin, see “P.44
TYPICAL CHARACTERISTICS”. For time keeping current when CGOUT, CDOUT is not equal to 0pF, see
“P.31 Adjustment of oscillation frequency”. *3) VDD=3V,SCL=SDA=0V, CLKC=0V(32KOUT=OFF), OUTPUT=OPEN, CGout=CDout=0pf *4) R1 of Crystal=30kΩ *5) R1 of Crystal=55kΩ
5
R2221L/T, R2223L/T (Preliminary)
AC ELECTRICAL CHARACTERISTICS
Unless otherwise specified: VSS=0V,Topt=-40 to +85°C Input and Output Conditions: V
Sym
-bol
f
SCL Clock Frequency 400 kHz
SCL
t
SCL Clock Low Time 1.3
LOW
t
SCL Clock High Time 0.6
HIGH
t
Start Condition Hold Time 0.6
HD;STA
t
Stop Condition Set Up Time 0.6
SU;STO
t
Start Condition Set Up Time 0.6
SU;STA
t
Data Set Up Time 100 ns
SU;DAT
t
Data Hold Time 0 ns
HD;DAT
t
SDA “L” Stable Time
PL;DAT
After Falling of SCL
t
SDA off Stable Time
PZ;DAT
After Falling of SCL
tR Rising Time of SCL and SDA
(input)
tF Falling Time of SCL and SDA
(input)
tSP Spike Width that can be
removed with Input Filter
t
Recovery Time from Stop
RCV
Condition to Start Condition *)
*) For , Recovery Time see “P.28 Interfacing with the CPU Data Transmission under Special Conditions”.
S
IH=0.8×VDD,VIL=0.2×VDD,VOH=0.8×VDD,VOL=0.2×VDD,CL=50pF
Item Condi-
Tions
Min. Typ. Max.
DD≥1.5V *1)
V
0.9
0.9 300 ns 300 ns 50 ns 31
Sr P
Unit
μs μs μs μs μs
μs μs
μs
S
SCL
SDA(IN)
SDA(OUT)
Sr
t
LOW
t
HD;STA
Start Condition
Repeated Start Condition
t
SU;DAT
t
PL;DAT
PS
t
HIGH
t
HD;DAT
t
PZ;DAT
Stop Condition
t
HD;STA
t
SU;STA
tSP
t
SU;STO
t
RCV
6
y)
PACKAGE DIMENSIONS
R2221L, R2223L(under development)
1.8±0.05
1PIN INDEX
1.8±0.05
12
R2221L/T, R2223L/T (Preliminar
1
1
12
0.4
(BOTTOM VIEW)
0.43Max
unit: mm
7
R2221L/T, R2223L/T (Preliminary)
M
R2221T, R2223T
2.9±0.2
10
6
0 to 10
2.8±0.2
4.0±0.2
°
0.55±0.2
1
5
0.5
0.13
+0.1
-0.05
(0.75)
0.1
0.2±0.1
0.15
-0.05
+0.1
0.1
0.85±0.15
unit: mm
8
R2221L/T, R2223L/T (Preliminar
y)
R
GENERAL DESCRIPTION
Interface with CPU
The R2221L/T,R2223L/T is connected to the CPU by two signal lines, SCL and SDA, through which it reads and writes data from and to the CPU. Since the I/O pin of SDA is open drain, data interfacing with a CPU different supply voltage is possible by applying pull-up resistors on the circuit board. The maximum clock frequency of 400kHz (at VDD1.5V) of SCL enables data transfer in I
Clock and Calendar Function
The R2221L/T, R2223L/T reads and writes time data from and to the CPU in units ranging from seconds to the last two digits of the calendar year. The calendar year will automatically be identified as a leap year when its last two digits are a multiple of 4. Consequently, leap years up to the year 2099 can automatically be identified as such.
*) The year 2000 is a leap year while the year 2100 is not a leap year.
Alarm Function
The R2221L/T, R2223L/T incorporates the alarm interrupt circuit configured to generate interrupt signals to the CPU at preset times. The alarm interrupt circuit allows two types of alarm settings specified by the Alarm_W registers and the Alarm_D registers. The Alarm_W registers allow week, hour, and minute alarm settings including combinations of multiple day-of-week settings such as "Monday, Wednesday, and Friday" and "Saturday and Sunday". The Alarm_D registers allow hour and minute alarm settings. In case of R2221L/T the Alarm outputs
INT
from pin. Each alarm function can be checked from the CPU by using a polling function.
In case of R2223L/T the Alarm_W outputs from
High-precision Oscillation Adjustment Function
2
C bus fast mode.
INTRB
pin, and the Alarm_D outputs from
INTRA
The R2221L/T, R2223L/T has built-in oscillation stabilization capacitors (CG and CD), which can be connected to an external crystal oscillator to configure an oscillation circuit. Two kinds of accuracy for this function are alternatives. To correct deviations in the oscillator frequency of the crystal, the oscillation adjustment circuit is configured to allow correction of a time count gain or loss (up to ±1.5ppm or ±0.5ppm at 25°C) from the CPU. The maximum range is approximately ±189ppm (or ±63ppm) in increments of approximately 3ppm (or 1ppm). Such oscillation frequency adjustment in each system has the following advantages: * Allows timekeeping with much higher precision than conventional RTCs while using a crystal oscillator with a wide range of precision variations. * Corrects seasonal frequency deviations through seasonal oscillation adjustment. * Allows timekeeping with higher precision particularly with a temperature sensing function out of RTC, through oscillation adjustment in tune with temperature fluctuations.
Power-on Reset, Oscillation Halt Sensing Function and Supply Voltage Monitoring Function
The R2221L/T, R2223L/T incorporates an oscillation halt sensing circuit equipped with internal registers configured to record any past oscillation halt. Power on reset function reset the control resisters when the system is powered on from 0V. At the same time, the fact is memorized to the resister as a flag, thereby identifying whether they are powered on from 0V or battery backed-up. The R2221L/T, R2223L/T also incorporates a supply voltage monitoring circuit equipped with internal registers configured to record any drop in supply voltage below a certain threshold value. Supply voltage monitoring threshold is V The oscillation halt sensing circuit and the power-on reset flag are configured to confirm the established invalidation of time data in contrast to the supply voltage monitoring circuit intended to confirm the potential invalidation of time data. Further, the supply voltage monitoring circuit can be applied to battery supply voltage monitoring.
DET
.
9
R2221L/T, R2223L/T (Preliminary)
Periodic Interrupt Function
The R2221L/T, R2223L/T incorporates the periodic interrupt circuit configured to generate periodic interrupt signals aside from interrupt signals generated by the alarm interrupt circuit for output from the
INTRA seconds), 1 Hz (once per 1 second), 1/60 Hz (once per 1 minute), 1/3600 Hz (once per 1 hour), and monthly (the first day of every month). Further, periodic interrupt signals also have two selectable waveforms, a normal pulse form (with a frequency of 2 Hz or 1 Hz) and special form adapted to interruption from the CPU in the level mode (with second, minute, hour, and month interrupts). The condition of periodic interrupt signals can be monitored with using a polling function.
(R2223L/T) pin. Periodic interrupt signals have five selectable frequency settings of 2 Hz (once per 0.5
INTR
(R2221L/T) or
32kHz Clock Output
The R2221L/T, R2223L/T incorporates a 32-kHz clock circuit configured to generate clock pulses with the oscillation frequency of a 32.768kHz crystal oscillator for output from the 32KOUT pin. The 32KOUT pin is CMOS push-pull output and the output is enabled and disabled when the CLKC pin is held high, and low or open, respectively. The 32-kHz clock output can be disabled by certain register settings but cannot be disabled without manipulation of any two registers with different addresses to prevent disabling in such events as the runaway of the CPU. The 32-kHz clock circuit is enabled at power-on, when the CLKC pin is held high.
ECO mode
In the case that the equivalent series resistance of the crystal oscillator:R1 is small, approximately, R1 equal or less than 60kΩ to 65kΩ, by the pin or setting of the resister, ECO mode can be active, and time keeping consumption current can be reduced. ECO mode is realized by pin as for the R2221L/T, by the resister as for the R2223L/T. In terms of the R2223L/T, if the power supply starts up from 0V, ECO mode turns off. If ECO mode is inactive, if the equivalent series resistance of the crystal oscillator: R1 is large, (approximately equal or less than R1=75 kΩ to 80kΩ), it is possible to use with. When the ECO mode is inactive, time keeping current increases a little. And the oscillation frequency might change slightly whether the ECO mode being turned on or turned off.
10
R2221L/T, R2223L/T (Preliminar
y)
A
A
A
Address Mapping
Address Register Name D a t a
[A3:A0] D7 D6 D5 D4 D3 D2 D1 D0
0 [0000] Second Counter -
*2) 1 [0001] Minute Counter - M40 M20 M10 M8 M4 M2 M1 xxh 2 [0010] Hour Counter - - H20
3 [0011] Day-of-week
Counter
4 [0100] Day-of-month
Counter
5 [0101] Month Counter
and Century Bit 6 [0110] Year Counter Y80 Y40 Y20 Y10 Y8 Y4 Y2 Y1 xxh 7 [0111] Oscillation
Adjustment
Register *3) 8 [1000] Alarm_W
(Minute Register) 9 [1001] Alarm_W
(Hour Register) A [1010] Alarm_W
(Day-of-week
Register) B [1011] Alarm_D
(Minute Register)
C [1100] Alarm_D
(Hour Register)
D [1101] User RAM RAM7 RAM6 RAM5 RAM4 RAM3 RAM2 RAM1 RAM0 00h E [1110] Control Register
1 *3)
F [1111] Control Register
2 *3)
Notes: * 1) All the data listed above accept both reading and writing. * 2) The data marked with "-" is invalid for writing and reset to 0 for reading. * 3) When the PON bit is set to 1 in Control Register 2, all the bits are reset to 0 in Oscillation Adjustment
Register, Control Register 1 and Control Register 2 excluding the XSTP bit and VDET bit.
* 4) When DEV=0, the oscillation adjustment circuit is configured to allow correction of a time count gain or loss
up to ±1.5ppm. When DEV=1, the oscillation adjustment circuit is configured to allow correction of a time
count gain or loss up to or ±0.5ppm. * 5) PON is a power-on-reset flag. * 6) R2221L/T=SCRATCH, R2223L/T=ECO * 7) Default value means read / written values when the PON bit is set to “1” due to VDD power-on from 0 volt.
“xxh” means indifinite.
- - - - - W4 W2 W1 xxh
- - D20 D10 D8 D4 D2 D1 xxh
- - - MO10 MO8 MO4 MO2 MO1 xxh
DEV
*4)
- WM40 WM20 WM10 WM8 WM4 WM2 WM1 xxh
- - WH20
- WW6 WW5 WW4 WW3 WW2 WW1 WW0 xxh
- DM40 DM20 DM10 DM8 DM4 DM2 DM1 xxh
- - DH20
WALE DALE
ECO
*6)
S40 S20 S10 S8 S4 S2 S1 xxh
H10 H8 H4 H2 H1 xxh
P/
F6 F5 F4 F3 F2 F1 F0 00h
WH10 WH8 WH4 WH2 WH1 xxh
WP/
DH10 DH8 DH4 DH2 DH1 xxh
DP/
12
VDET XSTP PON
/24
CLEN2
*5)
TEST CT2 CT1 CT0 00h
CLEN1
CTFG WAFG DAFG 70h
Default
*7)
11
R2221L/T, R2223L/T (Preliminary)
Register Settings
Control Register 1 (ADDRESS Eh)
D7 D6 D5 D4 D3 D2 D1 D0
WALE DALE WALE DALE
0 0 0 0 0 0 0 0 Default Settings *)
*) Default settings: Default value means read / written values when the PON bit is set to “1” due to VDD
power-on from 0 volt.
12 12
/24 /24
CLEN2 CLEN2
(1) WALE, DALE Alarm_W Enable Bit, Alarm_D Enable Bit
WALE,DALE Description
0 Disabling the alarm interrupt circuit (under the control of the settings
of the Alarm_W registers and the Alarm_D registers).
1 Enabling the alarm interrupt circuit (under the control of the settings
of the Alarm_W registers and the Alarm_D registers)
12
(2)
(3)
/24
12
/24
0 Selecting the 12-hour mode with a.m. and p.m. indications. (Default) 1 Selecting the 24-hour mode
Setting the
Setting the
CLEN2
Setting the specifies generating clock pulses with the oscillation frequency of the 32.768-kHz crystal oscillator for output from the 32KOUT pin. Conversely, setting both the specifies disabling (”L”) such output.
12
/24 bit to 0 and 1 specifies the 12-hour mode and the 24-hour mode, respectively.
24-hour mode 12-hour mode 24-hour mode 12-hour mode
00 12 (AM12) 12 32 (PM12) 01 01 (AM 1) 13 21 (PM 1) 02 02 (AM 2) 14 22 (PM 2) 03 03 (AM 3) 15 23 (PM 3) 04 04 (AM 4) 16 24 (PM 4) 05 05 (AM 5) 17 25 (PM 5) 06 06 (AM 6) 18 26 (PM 6) 07 07 (AM 7) 19 27 (PM 7) 08 08 (AM 8) 20 28 (PM 8) 09 09 (AM 9) 21 29 (PM 9) 10 10 (AM10) 22 30 (PM10) 11 11 (AM11) 23 31 (PM11)
12
/24 bit should precede writing time data
32kHz Clock Output Bit 2
CLEN2
CLEN2
0 Enabling the 32-kHz clock circuit (Default) 1 Disabling the 32-kHz clock circuit
12
/24-hour Mode Selection Bit
Description
bit or the
CLEN1
bit (D3 in the control register 2) to 0, and the CLKC pin to high
(4) TEST Test Bit
TEST Description
0 Normal operation mode. (Default) 1 Test mode.
The TEST bit is used only for testing in the factory and should normally be set to 0.
TEST CT2 CT1 CT0 (For Writing) TEST CT2 CT1 CT0 (For Reading)
(Default)
Description
CLEN1
and
CLEN2
bit to 1 or CLKC pin to low
12
R2221L/T, R2223L/T (Preliminar
y)
A
R
(5) CT2, CT1, and CT0 Periodic Interrupt Selection Bits
Description CT2 CT1 CT0
Wave form
mode
0 0 0 - OFF(H) (Default) 0 0 1 - Fixed at “L” 0 1 0 Pulse Mode
*1)
0 1 1 Pulse Mode
*1)
1 0 0 Level Mode
*2)
1 0 1 Level Mode
*2)
1 1 0 Level Mode
*2)
1 1 1 Level Mode
*2)
* 1) Pulse Mode: 2-Hz and 1-Hz clock pulses are output in synchronization with the increment of the second counter as illustrated in the timing chart below.
Interrupt Cycle and Falling Timing
2Hz (Duty50%) 1Hz (Duty50%) Once per 1 second (Synchronized with
second counter increment) Once per 1 minute (at 00 seconds of every minute) Once per hour (at 00 minutes and 00 seconds of every hour) Once per month (at 00 hours, 00 minutes, and 00 seconds of first day of every month)
INTRA Pin INTR for the R2221L/T
CTFG Bit
(Increment of second counter)
pprox. 46μs
Rewriting of the second counter
In the pulse mode, the increment of the second counter is delayed by approximately 46 μs from the falling edge of clock pulses. Consequently, time readings immediately after the falling edge of clock pulses may appear to lag behind the time counts of the real-time clocks by approximately 1 second. Rewriting the second counter will reset the other time counters of less than 1 second, driving the
INTRA
INTR
(
) pin low.
* 2) Level Mode: Periodic interrupt signals are output with selectable interrupt cycle settings of 1 second, 1 minute, 1 hour, and 1 month. The increment of the second counter is synchronized with the falling edge of periodic interrupt signals. For example, periodic interrupt signals with an interrupt cycle setting of 1 second are output in synchronization with the increment of the second counter as illustrated in the timing chart below.
CTFG Bit
INTRA Pin
(INTR)
Setting CTFG bit to 0
Setting CTFG bit to 0
(Increment of second counter)
(Increment of second counter)
(Increment of second counter)
At the level mode, the moment right after writing CT2-CT0,
INTRA
INT
(
) pin becomes "L" in very
short moment. In such a case, ignore it or confirm it by CTFG bit.
*1), *2) When the oscillation adjustment circuit is used, the interrupt cycle will fluctuate once per 20sec. or 60sec. as follows: Pulse Mode: The “L” period of output pulses will increment or decrement by a maximum of ±3.784 ms. For example, 1-Hz clock pulses will have a duty cycle of 50 ±0.3784%. Level Mode: A periodic interrupt cycle of 1 second will increment or decrement by a maximum of ±3.784 ms.
13
R2221L/T, R2223L/T (Preliminary)
Control Register 2 (Address Fh)
D7 D6 D5 D4 D3 D2 D1 D0
ECO or Scratch ECO or Scratch
0 1 1 1 0 0 0 0 Default Settings *) *) Default settings: Default value means read / written values when the PON bit is set to “1” due to VDD power-on from 0 volt.
(1) ECO(R2223L/T),SCRATCH(R2221L/T) Oscillation Mode Selection Bit
When “1” is written on this bit, the IC mode becomes ultra low consumption current oscillation mode (ECO mode). In terms of the selection of ECO mode, refer to the item “ECO mode” on P.30. This bit is available only for the R2223L/T. As for the R2221L/T, “write” and “read” on this bit is possible just same as RAM, but the result has no influence on any function, or SCRATCH bit.
(2) VDET Supply Voltage Monitoring Result Indication Bit
Once the VDET bit is set to 1, the supply voltage monitoring circuit will be disabled while the VDET bit will hold the setting of 1. The VDET bit accepts only the writing of 0, which restarts the supply voltage monitoring circuit. Conversely, setting the VDET bit to 1 causes no event.
(3) XSTP Oscillation Halt Sensing Monitor Bit
The XSTP bit will be set to “1” when the oscillation halt is detected. Once this bit becomes “1”, unless otherwise “0” is written, this bit never return to “0”. If “1” is written, nothing will change.
(4) PON Power-on-reset Flag Bit
The PON bit is for sensing power-on reset condition.
* The PON bit will be set to 1 when VDD power-on from 0 volt. The PON bit will hold the setting of 1 even after power-on. * When the PON bit is set to 1, all bits will be reset to 0, in the Oscillation Adjustment Register, Control Regist1, and Control Register 2, except PON,XSTP and VDET . As a result, the R2221L/T) pin stops outputting. * The PON bit accepts only the writing of 0. Conversely, setting the PON bit to 1 causes no event.
VDET XSTP PON VDET XSTP PON
ECO Description
0 Normal mode (Default) 1 Low current mode.
VDET Description
0 Indicating supply voltage above the supply voltage monitoring
threshold settings.
1 Indicating supply voltage below the supply voltage monitoring
threshold settings.
XSTP Description
0 Sensing a normal condition of oscillation 1 Sensing a halt of oscillation (Default)
PON Description
0 Normal condition 1 Detecting VDD power-on -reset (Default)
CLEN1 CLEN1
CTFG WAFG DAFG (For Writing) CTFG WAFG DAFG (For Reading)
(Default)
INTRA
INTRB(INTR
and
for
14
R2221L/T, R2223L/T (Preliminar
y)
A
A
CLEN1
(5)
Setting the specifies generating clock pulses with the oscillation frequency of the 32.768-kHz crystal oscillator for output from the 32KOUT pin. Conversely, setting both the specifies disabling (”L”) such output.
(6) CTFG Periodic Interrupt Flag Bit
The CTFG bit is set to 1 when the periodic interrupt signals are output from the R2221L/T) pin (“L”). The CTFG bit accepts only the writing of 0 in the level mode, which disables (“H”) the
INTRA
setting the CTFG bit to 1 causes no event.
(7) WAFG,DAFG Alarm_W Flag Bit and Alarm_D Flag Bit
The WAFG and DAFG bits are valid only when the WALE and DALE have the setting of 1, which is caused approximately 15μs after any match between current time and preset alarm time specified by the Alarm_W registers and the Alarm_D registers. The WAFG (DAFG) bit accepts only the writing of 0.
INTRA
INTRA setting the WAFG and DAFG bits to 1 causes no event. The WAFG and DAFG bits will have the reading of 0 when the alarm interrupt circuit is disabled with the WALE and DALE bits set to 0. The settings of the WAFG and DAFG bits are synchronized with the output of the pin as shown in the timing chart below.
32kHz Clock Output Bit 1
CLEN1
0 Enabling the 32-kHz clock circuit (Default) 1 Disabling the 32-kHz clock circuit
CLEN1
bit or the
CLEN2
bit (D4 in the control register 1) to 0, and the CLKC pin to high
CTFG Description
0 Periodic interrupt output = “H” (Default) 1 Periodic interrupt output = “L”
INTR
(
for the R2221L/T) pin until it is enabled (“L”) again in the next interrupt cycle. Conversely,
WAFG,DAFG Description
0 Indicating a mismatch between current time and preset alarm time (Default) 1 Indicating a match between current time and preset alarm time
INTRB
/
INTRB
/
(
INTR
(
INTR
for the R2221L/T) pin outputs off (“H”) when this bit is set to 0. And
for the R2221L/T) pin outputs “L” again at the next preset alarm time. Conversely,
pprox. 15μs
Description
CLEN1
and
pprox. 15μs
CLEN2
INTRA
bit to 1 or CLKC pin to low
INTRB
/
INTR
(
INTRA
INTR
(
for the R2221L/T)
for the
WAFG(DAFG) Bit
INTRB / INTRA Pins INTR pin for the R2221L/T
Writing of 0 to
WAFG(DAFG) bit (Match between current time and preset alarm time)
(Match between current time and preset alarm time)
Writing of 0 to
(Match between current time and preset alarm time)
WAFG(DAFG) bit
15
R2221L/T, R2223L/T (Preliminary)
A
A
Time Counter (Address 0-2h)
Second Counter (Address 0h)
D7 D6 D5 D4 D3 D2 D1 D0
- S40 S20 S10 S8 S4 S2 S1 (For Writing) 0 S40 S20 S10 S8 S4 S2 S1 (For Reading) 0 Indefi
nite
Minute Counter (Address 1h)
D7 D6 D5 D4 D3 D2 D1 D0
- M40 M20 M10 M8 M4 M2 M1 (For Writing) 0 M40 M20 M10 M8 M4 M2 M1 (For Reading) 0 Indefi
nite
Hour Counter (Address 2h)
D7 D6 D5 D4 D3 D2 D1 D0
- -
0 0
0 0 Indefi
*) Default settings: Default value means read / written values when the PON bit is set to “1” due to VDD power-on from 0 volt.
* Time digit display (BCD format) as follows:
The second digits range from 00 to 59 and are carried to the minute digit in transition from 59 to 00. The minute digits range from 00 to 59 and are carried to the hour digits in transition from 59 to 00. The hour digits range as shown in "P12 Control Register 1 (ADDRESS Eh) (2) Mode Selection Bit" and are carried to the day-of-month and day-of-week digits in transition from PM11 to
AM12 or from 23 to 00. * Any writing to the second counter resets divider units of less than 1 second. * Any carry from lower digits with the writing of non-existent time may cause the time counters to malfunction. Therefore, such incorrect writing should be replaced with the writing of existent time data.
Indefi
nite
Indefi
nite
P/
or
H20
P/
or
H20
nite
Indefi
nite
Indefi
nite
H10 H8 H4 H2 H1 (For Writing)
H10 H8 H4 H2 H1 (For Reading)
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Indefi
nite
Default Settings *)
Default Settings *)
Default Settings *)
12
/24: 12/24-hour
Day-of-week Counter (Address 3h)
D7 D6 D5 D4 D3 D2 D1 D0
- - - - - W4 W2 W1 (For Writing) 0 0 0 0 0 W4 W2 W1 (For Reading) 0 0 0 0 0 Indefi
nite *) Default settings: Default value means read / written values when the PON bit is set to “1” due to VDD power-on from 0 volt.
* The day-of-week counter is incremented by 1 when the day-of-week digits are carried to the day-of-month digits. * Day-of-week display (incremented in septimal notation): (W4, W2, W1) = (0, 0, 0) (0, 0, 1)→…→(1, 1, 0) (0, 0, 0) * Correspondence between days of the week and the day-of-week digits are user-definable (e.g. Sunday = 0,
16
Indefi
nite
Indefi
nite
Default Settings *)
Loading...
+ 35 hidden pages