DS1921H/Z Maxim Integrated Products, DS1921H/Z Datasheet - Page 7

no-image

DS1921H/Z

Manufacturer Part Number
DS1921H/Z
Description
High Resolution Thermochron Ibutton Range H
Manufacturer
Maxim Integrated Products
Datasheet
RTC/Calendar
The RTC of the DS1921H/Z can run in either 12-hour or 24-hour mode. Bit 6 of the Hours Register
(address 202h) is defined as the 12- or 24-hour mode select bit. When high, the 12-hour mode is selected.
In the 12-hour mode, bit 5 is the AM/PM bit with logic 1 being PM. In the 24-hour mode, bit 5 is the 20-
hour bit (20 to 23 hours).
To distinguish between the days of the week the DS1921H/Z includes a counter with a range from 1 to 7.
The assignment of counter value to the day of week is arbitrary. Typically, the number 1 is assigned to a
Sunday (U.S. standard) or to a Monday (European standard).
The calendar logic is designed to automatically compensate for leap years. For every year value that is
either 00 or a multiple of 4 the device will add a 29
including) the year 2100.
The DS1921H/Z is Y2K-compliant. Bit 7 (CENT) of the Months Register at address 205h serves as a
century flag. When the Year Register rolls over from 99 to 00 the century flag will toggle. It is recom-
mended to write the century bit to a 1 when setting the RTC to a time/date between the years 2000 and
2099.
RTC Alarms
The DS1921H/Z also contains a RTC alarm function. The alarm registers are located in registers 207h to
20Ah. The most significant bit of each of the alarm registers is a mask bit. When all of the mask bits are
logic 0, an alarm will occur once per week when the values stored in timekeeping registers 200h to 203h
match the values stored in the time of day alarm registers. Any alarm will set the Timer Alarm Flag
(TAF) in the device's Status Register (address 214h). The bus master may set the Search Conditions in the
Control Register (address 20Eh) to identify devices with timer alarms by means of the Conditional Search
function (see ROM Function Commands).
RTC Alarm Control
TEMPERATURE CONVERSION
The DS1921H and DS1921Z measure temperatures with a resolution of 1/8
Temperature values are represented in a single byte as an unsigned binary number, which translates into a
range of 32°C. The possible values are 0000 0000 (00h) through 1111 1111 (FFh). The codes 01h to FEh
are considered valid temperature readings. Since the DS1921H and DS1921Z have different starting
temperatures, the meaning of a binary temperature code depends on the device.
ALARM REGISTER MASK BITS
MS
1
0
0
0
0
(Bit 7 of 207h to 20Ah)
MM
1
1
0
0
0
MH
1
1
1
0
0
MD
1
1
1
1
0
Alarm once per second.
Alarm when seconds match (once per minute).
Alarm when minutes and seconds match (once every hour).
Alarm when hours, minutes and seconds match (once every day).
Alarm when day, hours, minutes, and seconds match (once every
week).
7 of 40
th
of February. This will work correctly up to (but not
th
of a degree Celsius.

Related parts for DS1921H/Z