Professional Documents
Culture Documents
Applications
· Microcomputer serial clock · Clock and Calendar
General Description
The HT1380/HT1381 is a serial timekeeper IC The HT1380/HT1381 has several registers to
which provides seconds, minutes, hours, day, store the corresponding information with 8-bit
date, month and year information. The number data format. A 32768Hz crystal is required to
of days in each month and leap years are auto- provide the correct timing. In order to minimize
matically adjusted. The HT1380/HT1381 is de- the pin number, the HT1380/HT1381 use a se-
signed for low power consumption and can rial I/O transmission method to interface with a
operate in two modes: one is the 12-hour mode microprocessor. Only three wires are required:
with an AM/PM indicator, the other is the (1) REST, (2) SCLK and (3) I/O. Data can be de-
24-hour mode. livered 1 byte at a time or in a burst of up to 8
bytes.
N C 1 8 V D D N C 1 8 V D D
I/O D a ta S h ift R e a l T im e
R e g is te r C lo c k X 1 2 7 S C L K X 1 2 7 S C L K
S C L K
X 2 3 6 I/O X 2 3 6 I/O
V S S 4 5 R E S T V S S 4 5 R E S T
C o m m a n d O s c illa to r a n d X 1 H T 1 3 8 0 H T 1 3 8 1
R E S T C o n tr o l L o g ic D iv id e r 8 D IP 8 S O P
C ir c u it X 2
X 1 1 Pad No. X Y
7 V D D 1 -851.40 775.00
X 2 2
6 S C L K
2 -851.40 494.60
3 -844.40 -203.90
(0 ,0 )
5 I/O 4 845.90 -618.30
V S S 3 5 848.40 -4.30
6 845.90 332.60
4 R E S T 7 844.40 572.60
Pad Description
Internal
Pad No. Pad Name I/O Description
Connection
Note: These are stress ratings only. Stresses exceeding the range specified under ²Absolute Maxi-
mum Ratings² may cause substantial damage to the device. Functional operation of this de-
vice at other conditions beyond those listed in the specification is not implied and prolonged
exposure to extreme conditions may affect device reliability.
Test Conditions
Symbol Parameter Min. Typ. Max. Unit
VDD Conditions
VDD Operating Voltage ¾ ¾ 2 ¾ 5.5 V
2V ¾ ¾ 100 nA
ISTB Standby Current ¾
5V ¾ ¾ 100 nA
2V ¾ 0.7 1.0 mA
IDD Operating Current No load
5V ¾ 0.7 1.2 mA
2V VOH=1.8V -0.2 -0.4 ¾ mA
IOH Source Current
5V VOH=4.5V -0.5 -1.0 ¾ mA
2V VOL=0.2V 0.7 1.5 ¾ mA
IOL Sink Current
5V VOL=0.5V 2.0 4.0 ¾ mA
VIH ²H² Input Voltage 5V ¾ 2 ¾ ¾ V
VIL ²L² Input Voltage 5V ¾ ¾ ¾ 0.8 V
fOSC System Frequency 5V 32768Hz X¢TAL ¾ 32768 ¾ Hz
2V ¾ ¾ 0.5 MHz
fSCLK Serial Clock ¾
5V ¾ ¾ 2 MHz
* ISTB is specified with SCLK, I/O, REST open. The clock halt bit must be set to logic 1 (oscillator
disabled).
Test Conditions
Symbol Parameter Min. Max. Unit
VDD Conditions
tr 2V ¾ ¾ 2000
Clock Rise and Fall Time ns
tf 5V ¾ ¾ 500
2V ¾ 4 ¾
tCC Reset to Clock Setup us
5V ¾ 1 ¾
2V ¾ 240 ¾
tCCH Clock to Reset Hold ns
5V ¾ 60 ¾
2V ¾ 4 ¾
tCWH Reset Inactive Time us
5V ¾ 1 ¾
2V ¾ ¾ 280
tCDZ Reset to I/O High Impedance ns
5V ¾ ¾ 70
Functional Description
The HT1380/HT1381 mainly contains the fol- HT1380/HT1381. One is in single-byte mode
lowing internal elements: a data shift register and the other is in multiple-byte mode.
array to store the clock/calendar data, com- The HT1380/HT1381 also contains two addi-
mand control logic, oscillator circuit and read tional bits, the clock halt bit (CH) and the write
timer clock. The clock is contained in eight protect bit (WP). These bits control the opera-
read/write registers as shown below. Data con- tion of the oscillator and so data can be written
tained in the clock register is in binary coded to the register array. These two bits should first
decimal format. be specified in order to read from and write to
Two modes are available for transferring the the register array properly.
data between the microprocessor and the
Command byte
For each data transfer, a Command Byte is initiated to specify which register is accessed. This is to
determine whether a read, write, or test cycle is operated and whether a single byte or burst mode
transfer is to occur. Refer to the table shown below and follow the steps to write the data to the chip.
First give a Command Byte of HT1380/HT1381, and then write a data in the register.
This table illustrates the correlation between Command Byte and their bits:
Command Byte
Function Description C7 C6 C5 C4 C3 C2 C1 C0
Select Read or Write Cycle R/W
Specify the Register to be Accessed A2 A1 A0
Clock Halt Flag C
For IC Test Only 1 0 0 1 x x x 1
Select Single Byte or Burst Mode 1 0 1 1 1 1 1 x
W 10000000
Seconds 00~59 CH 10 SEC SEC 000
R 10000001
W 10000010
Minutes 00~59 0 10 MIN MIN 001
R 10000011
01~12 12\ 0 AP HR W 10000100
Hours HOUR 010
00~23 24 0 10 HR R 10000101
W 10000110
Date 01~31 0 0 10 DATE DATE 011
R 10000111
W 10001000
Month 01~12 0 0 0 10M MONTH 100
R 10001001
W 10001010
Day 01~07 0 0 0 0 DAY 101
R 10001011
W 10001100
Year 00~99 10 YEAR YEAR 110
R 10001101
Write W 10001110
00~80 WP ALWAYS ZERO 111
Protect R 10001111
D7 of the Seconds Register is defined as the In writing a data byte with HT1380/HT1381,
Clock Halt Flag (CH). the read/write should first set as R/W=0 in the
Command Byte and follow with the correspond-
When this bit is set to logic 1, the clock oscilla- ing data register on the rising edge of the next
tor is stopped and the chip goes into a eight SCLK cycles. Additional SCLK cycles are
low-power standby mode. When this bit is writ- ignored. Data inputs are entered starting with
ten to logic 0, the clock will start. bit 0.
The following diagram shows the single and burst mode transfer:
S in g le b y te tr a n s fe r
S C L K
R E S T
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
I/O R /W A 0 A 1 A 2 0 0 0 1
C O M M A N D B Y T E D A T A I/O
B u rs t m o d e tra n s fe r
S C L K
R E S T
0 1 2 3 4 5 6 7 0 7 0 7
I/O R /W 1 1 1 1 1 0 1
C O M M A N D B Y T E D A T A B Y T E 0 D A T A B Y T E 7
Operating flowchart
To initiate any transfer of data, REST is taken high and an 8-bit command byte is first loaded into the
control logic to provide the register address and command information. Following the command
word, the clock/calendar data is serially transferred to or from the corresponding register. The REST
pin must be taken low again after the transfer operation is completed. All data enter on the rising
edge of SCLK and outputs on the falling edge of SCLK. In total, 16 clock pulses are needed for a sin-
gle byte mode and 72 for burst mode. Both input and output data starts with bit 0.
In using the HT1380/HT1381, set first the WP and CH to 0 and wait for about 3 seconds, the oscilla-
tor will generate the clocks for internal use. Then, choose either single mode or burst mode to input
the data. The read or write operating flowcharts are shown on the next page.
S T A R T S T A R T S T A R T
S e t R E S T p in D is a b le th e w r ite p r o te c t D is a b le th e w r ite p r o te c t
fr o m lo w to h ig h b it a n d e n a b le th e o s c illa to r b it a n d e n a b le th e o s c illa to r
In p u t th e w r ite
p ro te c t c o m m a n d S e t R E S T p in
S e t R E S T p in
b y te 8 E H fr o m lo w to h ig h
fr o m lo w to h ig h
D is a b le th e w r ite
p r o te c t b it (W P ) In p u t th e b u rs t m o d e
In p u t th e c o m m a n d c o m m a n d b y te ($ B E o r
b y s e ttin g th e M S B b y te s ta r tin g w ith b it 0
o f r e g is te r 7 to z e ro $ B F ) s ta r tin g w ith b it 0
* R e a d o r w r ite a ll r e g is te r
R e a d o r w r ite th e *
R e s e t R E S T p in c o r r e s p o n d in g r e g is te r d a ta d a ta b y te (6 4 d a ta b its ) in
fr o m h ig h to lo w b y te s ta r tin g w ith b it 0 th e H T 1 3 8 1 s ta r tin g w ith
b it 0 o f re g is te r 0
S e t R E S T p in
fr o m lo w to h ig h R e s e t R E S T p in
R e s e t R E S T p in
fr o m h ig h to lo w
fr o m h ig h to lo w
In p u t th e w r ite
c o m m a n d b y te 8 0 H Y e s E N D
If a n o th e r r e g is te r
is a c c e s s e d
E n a b le th e o s c illa to r N o
b y s e ttin g th e M S B o f
r e g is te r 0 to z e r o E N D
R e s e t R E S T p in
fr o m h ig h to lo w
E N D
* In reading data byte from HT1380/HT1381 register, the first data bit to be transmitted at the first
falling edge after the last bit of the command byte is written.
Timing Diagrams
R E S T
tC C
S C L K
tC D H tC D D
tD C tC D Z
I/O 0 7 0 7
C O M M A N D B Y T E O U T P U T D A T A B Y T E
R E S T
tC C tC H tf tr
S C L K
tC D H tC L
tD C
I/O 0 7 0 7
C O M M A N D B Y T E IN P U T D A T A B Y T E
Application Circuits
V D D
*C 1
S C L K X 1
3 2 7 6 8 H z
m p
I/O X 2
In te rfa c e *C 2
R E S T V S S
H T 1 3 8 0 /H T 1 3 8 1
*Note: The value of the capacity depends on how accurate the crystal is.
Refer to the suggestion table of page 7.