Professional Documents
Culture Documents
UG6165 Ibuttom para Autoclave
UG6165 Ibuttom para Autoclave
UG6165 Ibuttom para Autoclave
Applications
●● High-Temperature Logging (Process Monitoring,
Industrial Temperature Monitoring)
●● Steam Sterilization
*FDA and CE certifications pending. Pin Configuration appears at end of data sheet.
Electrical Characteristics
(VPUP = 3.0V to 5.25V, unless otherwise noted.)
Physical Specification
SIZE See the Package Information section.
WEIGHT Ca. 16.9 grams
RTC Accuracy
-2
-4
DRIFT (MINUTES/MONTH)
-6
-8
-10
-12
-14
-16
-18
15 25 35 45 55 65 75 85 95 105 115 125 135
TEMPERATURE (°C)
ROM 64-BIT
PARASITE-POWERED
1-Wire PORT I/O FUNCTION LASERED
CIRCUITRY
CONTROL ROM
MEMORY 256-BIT
FUNCTION SCRATCHPAD
3V LITHIUM CONTROL
DS1922F
GENERAL-PURPOSE
SRAM (448 BYTES)
DEVICE-SIGNATURE
CONFIGURATON
(64 BYTES)
32.768kHz INTERNAL
OSCILLATOR TIMEKEEPING, REGISTER PAGES
CONTROL REGISTERS, (64 BYTES)
AND COUNTERS
DS1922F
MSB LSB
POLYNOMIAL = X8 + X5 + X4 + 1
X0 X1 X2 X3 X4 X5 X6 X7 X8
INPUT DATA
ADDRESS BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 FUNCTION ACCESS*
0200h 0 10 Seconds Single Seconds
0201h 0 10 Minutes Single Minutes
20 Hour
0202h 0 12/24 10 Hour Single Hours Real-
AM/PM
Time Clock R/W R
0203h 0 0 10 Date Single Date Registers
10
0204h CENT 0 0 Single Months
Months
0205h 10 Years Single Years
0206h Low Byte Sample
R/W R
0207h 0 0 High Byte Rate
0208h Low Threshold Temperature
R/W R
0209h High Threshold Alarms
020Ah (No Function with the DS1922F)
— R/W R
020Bh (No Function with the DS1922F)
020Ch Low Byte 0 0 0 0 0 Latest
R R
020Dh High Byte Temperature
020Eh (No Function with the DS1922F)
— R R
020Fh (No Function with the DS1922F)
Temperature
0210h 0 0 0 0 0 0 ETHA ETLA R/W R
Alarm Enable
0211h 1 1 1 1 1 1 0 0 — R/W R
0212h 0 0 0 0 0 0 EHSS EOSC RTC Control R/W R
Mission
0213h 1 1 SUTA RO (X) TLFS 0 ETL R/W R
Control
0214h BOR 1 1 1 0 0 THF TLF Alarm Status R R
General
0215h 1 1 0 WFTA MEMCLR 0 MIP 0 R R
Status
0216h Low Byte Start
0217h Center Byte Delay R/W R
0218h High Byte Counter
*The left entry in the ACCESS column is valid between missions. The right entry shows the applicable access type while a
mission is in progress.
ADDRESS BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 FUNCTION ACCESS*
0219h 0 10 Seconds Single Seconds
021Ah 0 10 Minutes Single Minutes
20 Hour
021Bh 0 12/24 10 Hour Single Hours
AM/PM Mission
R R
021Ch 0 0 10 Date Single Date Timestamp
10
021Dh CENT 0 0 Single Months
Months
021Eh 10 Years Single Years
021Fh (No Function; Reads 00h) — R R
0220h Low Byte Mission
0221h Center Byte Samples R R
0222h High Byte Counter
0238h
… (No Function; All These Bytes Read 00h) — R R
023Fh
*The left entry in the ACCESS column is valid between missions. The right entry shows the applicable access type while a
mission is in progress.
RTC Registers
ADDRESS BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
0200h 0 10 Seconds Single Seconds
0201h 0 10 Minutes Single Minutes
20 Hour
0202h 0 12/24 10 Hour Single Hours
AM/PM
0203h 0 0 10 Date Single Date
0204h CENT 0 0 10 Months Single Months
0205h 10 Years Single Years
Note: During a mission, there is only read access to these registers. Bit cells marked “0” always read 0 and cannot be written to 1.
Mission Control Bit 4: Rollover Control (RO). This bit controls whether,
The DS1922F is set up for its operation by writing appro- during a mission, the data-log memory is overwritten
priate data to its special function registers, which are with new data or whether data logging is stopped once
located in the two register pages. The settings in the the data-log memory is full. Setting this bit to 1 enables
Mission Control register determine which format (8 or 16 the rollover and data logging continues at the beginning,
bits) applies and whether old data can be overwritten by overwriting previously collected data. If this bit is 0, the
new data once the data-log memory is full. An additional logging and conversions stop once the data-log memory
control bit can be set to tell the DS1922F to wait with log- is full. However, the RTC continues to run and the MIP bit
ging data until a temperature alarm is encountered. remains set until the Stop Mission command is performed.
Bit 5: Start Mission Upon Temperature Alarm (SUTA). Bit 2: Temperature Logging Format Selection (TLFS).
This bit specifies whether a mission begins immedi- This bit specifies the format used to store temperature
ately (includes delayed start) or if a temperature alarm readings in the data-log memory. If this bit is 0, the data
is required to start the mission. If this bit is 1, the device is stored in 8-bit format. If this bit is 1, the 16-bit format
performs an 8-bit temperature conversion at the selected is used (higher resolution). With 16-bit format, the most
sample rate and begins with data logging only if an alarm- significant byte is stored at the lower address.
ing temperature (high alarm or low alarm) was found. Bit 0: Enable Temperature Logging (ETL). To set up the
The first logged temperature is when the alarm occurred. device for a temperature-logging mission, this bit must be
However, the mission sample counter does not increment. set to logic 1. The recorded temperature values start at
This functionality is guaranteed by design and not produc- address 1000h.
tion tested.
Before reenabling password checking, passwords for The Full Access Password must be transmitted exactly in
read-only access as well as for full access (read/write/ the sequence FP0, FP1…FP62, FP63. It affects the func-
control) must be written to the password registers. Setting tions Read Memory with CRC, Copy Scratchpad, Clear
up a password or enabling/disabling the password check- Memory, Start Mission, and Stop Mission. The DS1922F
ing is done in the same way as writing data to a memory executes the command only if the password transmitted
location; only the address is different. Since they are by the master was correct or if password checking is not
located in the same memory page, both passwords can enabled.
be redefined at the same time. Due to the special behavior of the write-access logic,
The Read Access Password must be transmitted exactly the Password Control register and both passwords must
in the sequence RP0, RP1…RP62, RP63. This password be written at the same time. When setting up new pass-
only applies to the Read Memory with CRC function. The words, always verify (read back) the scratchpad before
DS1922F delivers the requested data only if the password sending the Copy Scratchpad command. After a new
transmitted by the master was correct or if password password is successfully copied from the scratchpad
checking is not enabled. to its memory location, erase the scratchpad by filling it
with new data (Write Scratchpad command). Otherwise,
a copy of the passwords remains in the scratchpad for
public read access.
enable the device for a mission, the ETL bit must be set
ETL = 1 ETL = 1
to 1. These are general settings that must be made in any
TLFS = 0 TLFS = 1 case, regardless of the type of object to be monitored and
1000h 1000h the duration of the mission.
WITH 16-BIT FORMAT, If alarm signaling is desired, the temperature alarm low
8192 4096
THE MOST SIGNIFICANT and high thresholds must be defined. See the Temperature
BYTE IS STORED AT THE Conversion section for how to convert a temperature value
8-BIT ENTRIES 16-BIT ENTRIES
LOWER ADDRESS.
into the binary code to be written to the threshold registers.
In addition, the temperature alarm must be enabled for the
2FFFh 2FFFh
low and/or high threshold. This makes the device respond
to a Conditional Search command (see the 1-Wire ROM
Figure 7. Temperature Logging Function Commands section), provided that an alarming
condition has been encountered.
Data-Log Memory Usage The setting of the RO bit (rollover enable) and sample
Once set up for a mission, the DS1922F logs the tem- rate depends on the duration of the mission and the
perature measurements at equidistant time points entry monitoring requirements. If the most recently logged data
after entry in its data-log memory. The data-log memory is important, the rollover should be enabled (RO = 1).
can store 8192 entries in 8-bit format or 4096 entries in Otherwise, one should estimate the duration of the mis-
16-bit format (Figure 7). In 16-bit format, the higher 8 bits sion in minutes and divide the number by 8192 (8-bit for-
of an entry are stored at the lower address. Knowing the mat) or 4096 (16-bit format) to calculate the value of the
starting time point (Mission Timestamp) and the interval sample rate (number of minutes between conversions).
between temperature measurements, one can recon- For example, if the estimated duration of a mission is 10
struct the time and date of each measurement. days (= 14400min), the 8192-byte capacity of the data-
There are two alternatives to the way the DS1922F log memory would be sufficient to store a new 8-bit value
behaves after the data-log memory is filled with data. The every 1.8min (110s). If the DS1922F’s data-log memory
user can program the device to either stop any further is not large enough to store all readings, one can use
recording (disable rollover) or overwrite the previously several devices and set the mission start delay to values
recorded data (enable rollover), one entry at a time, start- that make the second device start logging as soon as the
ing again at the beginning of the respective memory sec- memory of the first device is full, and so on. The RO bit
tion. The contents of the Mission Samples Counter in con- must be set to 0 to disable rollover that would otherwise
junction with the sample rate and the Mission Timestamp overwrite the logged data.
allow reconstructing the time points of all values stored After the RO bit and the mission start delay are set, the
in the data-log memory. This gives the exact history over sample rate must be written to the Sample Rate register.
time for the most recent measurements taken. Earlier The sample rate can be any value from 1 to 16,383, coded
measurements cannot be reconstructed. as an unsigned 14-bit binary number. The fastest sample
rate is one sample per second (EHSS = 1, sample rate
Missioning = 0001h) and the slowest is one sample every 273.05hr
The DS1922F’s typical task is recording temperature. (EHSS = 0, sample rate = 3FFFh). To get one sample
Before the device can perform this function, it needs to every 6min, for example, the sample rate value must be
be set up properly. This procedure is called missioning. set to 6 (EHSS = 0) or 360 decimal (equivalent to 0168h
First, the DS1922F must have its RTC set to a valid time at EHSS = 1).
and date. This reference time can be the local time, or, If there is a risk of unauthorized access to the DS1922F
when used inside of a mobile unit, UTC (also called GMT, or manipulation of data, one should define passwords
Greenwich Mean Time), or any other time standard that for read access and full access. Before the passwords
was agreed upon. The RTC oscillator must be running become effective, their use must be enabled. See the
(EOSC = 1). The memory assigned to store the mission Security by Password section for more details.
timestamp, mission samples counter, and alarm flags
must be cleared using the Memory Clear command. To
The last step to begin a mission is to issue the Start Memory Access
Mission command. As soon as it has received this com-
mand, the DS1922F sets the MIP flag and clears the Address Registers and Transfer Status
MEMCLR flag. With the Immediate/Delayed Start Mode Because of the serial data transfer, the DS1922F employs
(SUTA = 0), after as many minutes as specified by the three address registers called TA1, TA2, and E/S (Figure
mission start delay are over, the device wakes up, cop- 8). Registers TA1 and TA2 must be loaded with the target
ies the current date and time to the Mission Timestamp address to which the data is written or from which data
register, and logs the first entry of the mission. This is sent to the master upon a Read command. Register
increments both the mission samples counter and device E/S acts like a byte counter and transfer status register.
samples counter. All subsequent log entries are made as It is used to verify data integrity with Write commands.
specified by the value in the Sample Rate register and Therefore, the master only has read access to this reg-
the EHSS bit. ister. The lower 5 bits of the E/S register indicate the
address of the last byte that has been written to the
If the Start Upon Temperature Alarm mode is chosen
scratchpad. This address is called ending offset. The
(SUTA = 1) and temperature logging is enabled (ETL =
DS1922F requires that the ending offset is always
1), the DS1922F first waits until the start delay is over.
1Fh for a Copy Scratchpad to function. Bit 5 of the E/S
Then the device wakes up in intervals as specified by the
register, called PF or partial byte flag, is set if the number
sample rate and EHSS bit and measures the tempera-
of data bits sent by the master is not an integer multiple
ture. This increments the Device Samples Counter reg-
of 8. Bit 6 is always a 0. Note that the lowest 5 bits of
ister only. The first sample of the mission is logged when
the target address also determine the address within the
the temperature alarm occurred. However, the Mission
scratchpad, where intermediate storage of data begins.
Sample Counter does not increment. One sample period
This address is called byte offset. If the target address for
later the Mission Timestamp register is set. From then on,
a Write command is 13Ch, for example, the scratchpad
both the Mission Samples Counter and Device Samples
stores incoming data beginning at the byte offset 1Ch and
Counter registers increment at the same time. All subse-
is full after only 4 bytes. The corresponding ending offset
quent log entries are made as specified by the value in
in this example is 1Fh. For best economy of speed and
the Sample Rate register and the EHSS bit.
efficiency, the target address for writing should point to the
The general-purpose memory operates independently beginning of a page, i.e., the byte offset is 0. Thus, the full
of the other memory sections and is not write protected 32-byte capacity of the scratchpad is available, resulting
during a mission. All the DS1922F’s memory can be read also in the ending offset of 1Fh. The ending offset togeth-
at any time, e.g., to watch the progress of a mission. er with the PF flag are a means to support the master
Attempts to read the passwords read 00h bytes instead of checking the data integrity after a Write command. The
the data that is stored in the password registers. highest valued bit of the E/S register, called authorization
accepted (AA), indicates that a valid Copy command for
the scratchpad has been received and executed. Writing
data to the scratchpad clears this flag.
BIT NUMBER 7 6 5 4 3 2 1 0
Writing with Verification section. The communication between the master and the
To write data to the DS1922F, the scratchpad must be DS1922F takes place either at standard speed (default,
used as intermediate storage. First, the master issues OD = 0) or at overdrive speed (OD = 1). If not explicitly
the Write Scratchpad command to specify the desired set into the overdrive mode the DS1922F assumes stan-
target address, followed by the data to be written to the dard speed. Internal memory access during a mission has
scratchpad. In the next step, the master sends the Read priority over external access through the 1-Wire interface.
Scratchpad command to read the scratchpad and to This affects several commands in this section. See the
verify data integrity. As preamble to the scratchpad data, Memory Access Conflicts section for details and solutions.
the DS1922F sends the requested target address TA1 Write Scratchpad Command [0Fh]
and TA2 and the contents of the E/S Register. If the PF
After issuing the Write Scratchpad command, the master
flag is set, data did not arrive correctly in the scratchpad.
must first provide the 2-byte target address, followed by
The master does not need to continue reading; it can
the data to be written to the scratchpad. The data is writ-
start a new trial to write data to the scratchpad. Similarly,
ten to the scratchpad starting at the byte offset T[4:0]. The
a set AA flag indicates that the Write command was not
master must send as many bytes as are needed to reach
recognized by the device. If everything went correctly,
the ending offset of 1Fh. If a data byte is incomplete, its
both flags are cleared and the ending offset indicates the
content is ignored and the partial byte flag PF is set.
address of the last byte written to the scratchpad. Now
the master can continue verifying every data bit. After When executing the Write Scratchpad command, the
the master has verified the data, it must send the Copy CRC generator inside the DS1922F calculates a CRC of
Scratchpad command. This command must be followed the entire data stream, starting at the command code and
exactly by the data of the three address registers TA1, ending at the last data byte sent by the master (Figure
TA2, and E/S, as the master has read them verifying the 15). This CRC is generated using the CRC-16 polynomial
scratchpad. As soon as the DS1922F has received these by first clearing the CRC generator and then shifting in
bytes, it copies the data to the requested location begin- the command code (0Fh) of the Write Scratchpad com-
ning at the target address. mand, the target addresses TA1 and TA2 as supplied
by the master, and all the data bytes. If the ending offset
Memory and Control is 11111b, the master can send 16 read time slots and
Function Commands receive the inverted CRC-16 generated by the DS1922F.
Figure 9 shows the protocols necessary for accessing Note that both register pages are write protected during a
the memory and the special function registers of the mission. Although the Write Scratchpad command works
DS1922F. An example on how to use these and other normally at any time, the subsequent copy scratchpad to
functions to set up the DS1922F for a mission is included a register page fails during a mission.
in the Mission Example: Prepare and Start a New Mission
Read Scratchpad Command [AAh] the register pages are not successful. The AA bit remain-
This command is used to verify scratchpad data and ing at 0 indicates this.
target address. After issuing the Read Scratchpad com- Read Memory with Password and CRC [69h]
mand, the master begins reading. The first 2 bytes are
The Read Memory with CRC command is the general
the target address. The next byte is the ending offset/
function to read from the device. This command gener-
data status byte (E/S) followed by the scratchpad data
ates and transmits a 16-bit CRC following the last data
beginning at the byte offset T[4:0], as shown in Figure 8.
byte of a memory page.
The master can continue reading data until the end of the
scratchpad after which it receives an inverted CRC-16 of After having sent the command code of the Read Memory
the command code, target addresses TA1 and TA2, the with CRC command, the bus master sends a 2-byte
E/S byte, and the scratchpad data starting at the target address that indicates a starting byte location. Next, the
address. After the CRC is read, the bus master reads master must transmit one of the 64-bit passwords. If pass-
logic 1s from the DS1922F until a reset pulse is issued. words are enabled and the transmitted password does
not match one of the stored passwords, the Read Memory
Copy Scratchpad with Password [99h] with Password and CRC command fails. The device stops
This command is used to copy data from the scratchpad communicating and waits for a reset pulse. If the pass-
to the writable memory sections. After issuing the Copy word was correct or if passwords were not enabled, the
Scratchpad command, the master must provide a 3-byte master reads data from the DS1922F beginning from the
authorization pattern, which can be obtained by reading starting address and continuing until the end of a 32-byte
the scratchpad for verification. This pattern must exactly page is reached. At that point the bus master sends 16
match the data contained in the three address registers additional read data time slots and receives the inverted
(TA1, TA2, E/S, in that order). Next, the master must 16-bit CRC. With subsequent read data time slots the
transmit the 64-bit full-access password. If passwords are master receives data starting at the beginning of the next
enabled and the transmitted password is different from memory page followed again by the CRC for that page.
the stored full-access password, the Copy Scratchpad This sequence continues until the bus master resets the
with Password command fails. The device stops commu- device. When trying to read the passwords or memory
nicating and waits for a reset pulse. If the password was areas that are marked as “reserved,” the DS1922F trans-
correct or if passwords were not enabled, the device tests mits 00h or FFh bytes, respectively. The CRC at the end
the 3-byte authorization code. If the authorization code of a 32-byte memory page is based on the data as it was
pattern matches, the AA flag is set and the copy begins. transmitted.
A pattern of alternating 1s and 0s is transmitted after the With the initial pass through the Read Memory with CRC
data has been copied until the master issues a reset flow, the 16-bit CRC value is the result of shifting the com-
pulse. While the copy is in progress, any attempt to reset mand byte into the cleared CRC generator followed by the
the part is ignored. Copy typically takes 2μs per byte. two address bytes and the contents of the data memory.
The data to be copied is determined by the three address Subsequent passes through the Read Memory with CRC
registers. The scratchpad data from the beginning offset flow generate a 16-bit CRC that is the result of clearing
through the ending offset are copied, starting at the target the CRC generator and then shifting in the contents of
address. The AA flag remains at logic 1 until it is cleared the data memory page. After the 16-bit CRC of the last
by the next Write Scratchpad command. With suitable page is read, the bus master receives logic 1s from the
password, the copy scratchpad always functions for the DS1922F until a reset pulse is issued. The Read Memory
16 pages of data memory and the 2 pages of calibration with CRC command sequence can be ended at any point
memory. While a mission is in progress, write attempts to by issuing a reset pulse.
Y Y Y
Y
DS1922F DS1922F SETS [E4:E0] = DS1922F MASTER Rx DATA BYTE FROM
INCREMENTS SCRATCHPAD OFFSET INCREMENTS SCRATCHPAD OFFSET
SCRATCHPAD SCRATCHPAD AUTHORIZATION N
OFFSET OFFSET CODE MATCH?
Y
Y Y
MASTER Tx RESET? MASTER Tx RESET?
AA = 1
N N
N DS1922F Tx "1"
MASTER Rx "1"s
N
MASTER Tx RESET?
FROM FIGURE 9b
TO ROM FUNCTIONS
FLOWCHART (FIGURE 11)
Y Y Y
MASTER Tx MASTER Tx
DECISION MADE 64 BITS [PASSWORD] FFh DUMMY BYTE MISSION IN Y
BY DS1922F PROGRESS?
N
PASSWORD N PASSWORD N
ACCEPTED? ACCEPTED? DS1922F PERFORMS A
TEMPERATURE CONVERSION
DECISION MADE Y Y
BY MASTER
DS1922F SETS DS1922F COPIES RESULT TO
MEMORY ADDRESS = [T15:T0] MISSION IN Y ADDRESS 020C/Dh
PROGRESS?
N
MASTER Rx DATA BYTE FROM
MEMORY ADDRESS N
MASTER Tx RESET?
DS1922F CLEARS
MISSION TIMESTAMP,
MISSION SAMPLES COUNTER, Y
DS1922F ALARM FLAGS
Y INCREMENTS
MASTER Tx RESET?
ADDRESS
COUNTER
DS1922F SETS
N
MEMCLR = 1
N
END OF PAGE?
N
MASTER Tx RESET?
Y
Y
MASTER Rx CRC-16 OF
COMMAND, ADDRESS, DATA
(1ST PASS); CRC-16 OF DATA
(SUBSEQUENT PASSES)
N
MASTER Tx RESET CRC OK?
N
END OF MEMORY?
Y
MASTER Rx "1"s
N
MASTER Tx RESET?
MASTER Tx MASTER Tx
64 BITS [PASSWORD] 64 BITS [PASSWORD]
START DELAY Y
COUNTER = 0?
MASTER Tx MASTER Tx
FFh DUMMY BYTE N FFh DUMMY BYTE
N PASSWORD PASSWORD N
DS1922F DECREMENTS
ACCEPTED? START DELAY COUNTER ACCEPTED?
Y Y
Y MISSION IN MISSION IN N
N
PROGRESS? SUTA = 1? PROGRESS?
N Y Y
DS1922F SETS
MIP = 1, N
MEMCLR = 0 Y MASTER Tx RESET?
MIP = 0?
N Y
DS1922F INITIATES MISSION
START DELAY PROCESS DS1922F PERFORMS 8-BIT
TEMPERATURE CONVERSION
N
MASTER Tx RESET? TEMPERATURE N
ALARM?
Y Y
END OF PROCESS
TO FIGURE 9b
Clear Memory with Password [96h] Start Mission with Password [CCh]
The Clear Memory with Password command is used to The DS1922F uses a control function command to start
prepare the device for another mission. This command is a mission. A new mission can only be started if the previ-
only executed if no mission is in progress. After the com- ous mission has been ended and the memory has been
mand code the master must transmit the 64-bit full-access cleared. After the command code, the master must trans-
password followed by an FFh dummy byte. If passwords mit the 64-bit full-access password followed by an FFh
are enabled and the transmitted password is different dummy byte. If passwords are enabled and the trans-
from the stored full-access password or a mission is in mitted password is different from the stored full-access
progress, the Clear Memory with Password command password or a mission is in progress, the Start Mission
fails. The device stops communicating and waits for with Password command fails. The device stops com-
a reset pulse. If the password was correct or if pass- municating and waits for a reset pulse. If the password
words were not enabled, the device clears the Mission was correct or if passwords were not enabled, the device
Timestamp register, Mission Samples Counter register, starts a mission. If SUTA = 0, the sampling begins as
and all alarm flags of the Alarm Status register. After these soon as the mission start delay is over. If SUTA = 1, the
cells are cleared, the MEMCLR bit of the General Status first sample is written to the datalog memory at the time
register reads 1 to indicate the successful execution of the the temperature alarm occurred. However, the mission
Clear Memory with Password command. Clearing of the sample counter does not increment. One sample period
data-log memory is not necessary because the mission later, the Mission Timestamp register is set and the regu-
samples counter indicates how many entries in the data- lar sampling and logging begins. While the device is wait-
log memory are valid. ing for a temperature alarm to occur, the WFTA flag in the
General Status register reads 1. During a mission there is
Forced Conversion [55h] only read access to the register pages.
The Forced Conversion command can be used to mea-
sure the temperature without starting a mission. After the Stop Mission with Password [33h]
command code, the master must send one FFh byte to The DS1922F uses a control function command to
get the conversion started. The conversion result is found stop a mission. Only a mission that is in progress can
as a 16-bit value in the Latest Temperature Conversion be stopped. After the command code, the master must
Result register. This command is only executed if no transmit the 64-bit full-access password followed by a
mission is in progress (MIP = 0). It cannot be interrupted FFh dummy byte. If passwords are enabled and the trans-
and takes maximum 600ms to complete. During this time mitted password is different from the stored full-access
memory access through the 1-Wire interface is blocked. password or a mission is not in progress, the Stop Mission
The device behaves the same way as during a mission with Password command fails. The device stops com-
when the sampling interferes with a memory/control func- municating and waits for a reset pulse. If the password
tion command. See the Memory Access Conflicts section was correct or if passwords were not enabled, the device
for details. clears the MIP bit in the General Status register and
restores write access to the register pages. The WFTA bit
is not cleared. See the description of the General Status
register for a method to clear the WFTA bit.
Memory Access Conflicts while the device is waiting for a temperature alarm. Table
While a mission is in progress or while the device is 3 explains how the remaining five commands are affected
waiting for a temperature alarm to start a mission, peri- by internal activity, how to detect this interference, and
odically a temperature sample is taken and logged. This how to work around it.
“internal activity” has priority over 1-Wire communication. The interference is more likely to be seen with a high
As a consequence, device-specific commands (excluding sample rate (one sample every second) and with high
ROM function commands and 1-Wire reset) do not per- resolution logging, which can last up to 600ms. With lower
form properly when internal and “external” activities inter- sample rates, interference may hardly be visible at all.
fere with each other. Not affected are the commands Start In any case, when writing driver software it is important
Mission, Forced Conversion, and Clear Memory, because to know about the possibility of interference and to take
they are not applicable while a mission is in progress or measures to work around it.
The data read changes to FFh bytes or all bytes Wait 0.5s, 1-Wire reset, address the device, repeat
Read Scratchpad received are FFh, including the CRC at the end of the Read Scratchpad, and check the validity of the
command flow. CRC-16 at the end of the command flow.
The device behaves as if the authorization code or Wait 0.5s, 1-Wire reset, address the device, issue
Copy Scratchpad password was not valid, or as if the copy function Read Scratchpad, and check the AA bit of the E/S byte.
would not end. If the AA bit is set, Copy Scratchpad was successful.
The data read changes to all FFh bytes or all bytes Wait 0.5s, 1-Wire reset, address the device, repeat
Read Memory with
received are FFh, including the CRC at the end of the Read Memory with CRC, and check the validity of the
CRC
command flow, despite a valid password. CRC-16 at the end of the memory page.
1-Wire Bus System The value of the pullup resistor primarily depends on the
The 1-Wire bus is a system that has a single bus master network size and load conditions. The DS1922F requires a
and one or more slaves. In all instances the DS1922F is pullup resistor of maximum 2.2kΩ at any speed.
a slave device. The bus master is typically a microcon- The idle state for the 1-Wire bus is high. If for any reason
troller. The discussion of this bus system is broken down a transaction needs to be suspended, the bus must be
into three topics: hardware configuration, transaction left in the idle state if the transaction is to resume. If this
sequence, and 1-Wire signaling (signal types and timing). does not occur and the bus is left low for more than 16μs
The 1-Wire protocol defines bus transactions in terms of (overdrive speed) or more than 120μs (standard speed),
the bus state during specific time slots that are initiated one or more devices on the bus may be reset. Note that
on the falling edge of sync pulses from the bus master. the DS1922F does not quite meet the full 16μs maximum
low time of the normal 1-Wire bus overdrive timing. With
Hardware Configuration the DS1922F the bus must be left low for no longer than
The 1-Wire bus has only a single line by definition; it is 12μs at overdrive to ensure that no DS1922F on the
important that each device on the bus be able to drive 1-Wire bus performs a reset. The DS1922F communi-
it at the appropriate time. To facilitate this, each device cates properly when used in conjunction with a DS2480B
attached to the 1-Wire bus must have open-drain or three- or DS2490 1-Wire driver and adapters that are based on
state outputs. The 1-Wire port of the DS1922F is open these driver chips.
drain with an internal circuit equivalent to that shown in
Figure 10. Transaction Sequence
A multidrop bus consists of a 1-Wire bus with multiple The protocol for accessing the DS1922F through the
slaves attached. At standard speed the 1-Wire bus has 1-Wire port is as follows:
a maximum data rate of 16.3kbps. The speed can be ●● Initialization
boosted to 142kbps by activating the overdrive mode. The ●● ROM Function Command
DS1922F is not guaranteed to be fully compliant to the
●● Memory/Control Function Command
iButton device standard. Its maximum data rate in stan-
dard speed is 15.4kbps and 125kbps in overdrive speed. ●● Transaction/Data
VPUP
Tx IL Tx
Rx = RECEIVE
Tx = TRANSMIT
OPEN-DRAIN
100Ω MOSFET
PORT PIN
Skip ROM [CCh] command sets the DS1922F in the overdrive mode (OD =
This command can save time in a single-drop bus sys- 1). All communication following this command must occur
tem by allowing the bus master to access the memory at overdrive speed until a reset pulse of minimum 690μs
functions without providing the 64-bit ROM code. For duration resets all devices on the bus to standard speed
example, if more than one slave is present on the bus and (OD = 0).
a Read command is issued following the Skip ROM com- When issued on a multidrop bus, this command sets all
mand, data collision occurs on the bus as multiple slaves overdrive-supporting devices into overdrive mode. To
transmit simultaneously (open-drain pulldowns produce a subsequently address a specific overdrive-supporting
wired-AND result). device, a reset pulse at overdrive speed must be issued
followed by a Match ROM or Search ROM command
Resume [A5h] sequence. This speeds up the time for the search pro-
The DS1922F must be accessed several times before cess. If more than one slave supporting overdrive is pres-
a mission starts. In a multidrop environment this means ent on the bus and the Overdrive-Skip ROM command is
that the 64-bit ROM code after a Match ROM command followed by a Read command, data collision occurs on
must be repeated for every access. To maximize the the bus as multiple slaves transmit simultaneously (open-
data throughput in a multidrop environment, the Resume drain pulldowns produce a wired-AND result).
command was implemented. This command checks the
status of the RC bit and, if it is set, directly transfers Overdrive-Match ROM [69h]
control to the memory/control functions, similar to a Skip The Overdrive-Match ROM command followed by a
ROM command. The only way to set the RC bit is through 64-bit ROM sequence transmitted at overdrive speed
successfully executing the Match ROM, Search ROM, allows the bus master to address a specific DS1922F on
or Overdrive-Match ROM command. Once the RC bit is a multidrop bus and to simultaneously set it in overdrive
set, the device can repeatedly be accessed through the mode. Only the DS1922F that exactly matches the 64-bit
Resume command function. Accessing another device on ROM sequence responds to the subsequent memory/
the bus clears the RC bit, preventing two or more devices control function command. Slaves already in overdrive
from simultaneously responding to the Resume command. mode from a previous Overdrive-Skip ROM or success-
ful Overdrive-Match ROM command remain in overdrive
Overdrive-Skip ROM [3Ch] mode. All overdrive-capable slaves return to standard
On a single-drop bus this command can save time by speed at the next reset pulse of minimum 690μs duration.
allowing the bus master to access the memory/control The Overdrive-Match ROM command can be used with a
functions without providing the 64-bit ROM code. Unlike single or multiple devices on the bus.
the normal Skip ROM command, the Overdrive-Skip ROM
BUS MASTER Tx
RESET PULSE
FROM FIGURE 11b
FROM MEMORY FUNCTIONS
FLOWCHART (FIGURE 9)
OD N
RESET PULSE? OD = 0
Y Y Y Y
RC = 0 RC = 0 RC = 0 RC = 0
N CONDITION
MET?
N N N
BIT 0 MATCH? BIT 0 MATCH? BIT 0 MATCH?
Y Y
Y
DS1922F Tx BIT 1 DS1922F Tx BIT 1
DS1922F Tx
SERIAL NUMBER MASTER Tx BIT 1 DS1922F Tx BIT 1 DS1922F Tx BIT 1
(6 BYTES) MASTER Tx BIT 1 MASTER Tx BIT 1
N N N
BIT 1 MATCH? BIT 1 MATCH? BIT 1 MATCH?
Y Y Y
N N N
BIT 63 MATCH? BIT 63 MATCH? BIT 63 MATCH?
Y Y Y
RC = 1 RC = 1 RC = 1
TO FIGURE 11b
TO MEMORY FUNCTIONS
FLOWCHART (FIGURE 9)
TO FIGURE 11a
Y Y Y Y
RC = 0 RC = 0; OD = 1 RC = 0; OD = 1
N
RC = 1?
(SEE NOTE)
MASTER Tx Y N
BIT 0 MATCH? OD = 0
RESET?
N
Y
MASTER Tx BIT 1
(SEE NOTE)
N
BIT 1 MATCH? OD = 0
MASTER Tx BIT 63
(SEE NOTE)
N
BIT 63 MATCH? OD = 0
RC = 1
FROM FIGURE 11a
TO FIGURE 11a
NOTE: THE OD FLAG REMAINS AT 1 IF THE DEVICE WAS ALREADY AT OVERDRIVE SPEED BEFORE THE OVERDRIVE-MATCH ROM COMMAND WAS ISSUED.
1-Wire Signaling in overdrive mode and tRSTL is no longer than 80μs, the
The DS1922F requires strict protocols to ensure data device remains in overdrive mode.
integrity. The protocol consists of four types of signaling After the bus master has released the line, it goes into
on one line: reset sequence with reset pulse and pres- receive mode (Rx). Now the 1-Wire bus is pulled to VPUP
ence pulse, write-zero, write-one, and read-data. Except through the pullup resistor or, in the case of a DS2480B
for the presence pulse, the bus master initiates all these driver, through active circuitry. When the threshold VTH is
signals. The DS1922F can communicate at two differ- crossed, the DS1922F waits for tPDH and then transmits
ent speeds: standard speed and overdrive speed. If not a presence pulse by pulling the line low for tPDL. To detect
explicitly set into the overdrive mode, the DS1922F com- a presence pulse, the master must test the logical state of
municates at standard speed. While in overdrive mode the 1-Wire line at tMSP.
the fast timing applies to all waveforms. The tRSTH window must be at least the sum of tPDH-
To get from idle to active, the voltage on the 1-Wire line MAX, tPDLMAX, and tRECMIN. Immediately after tRSTH is
needs to fall from VPUP below the threshold VTL. To get expired, the DS1922F is ready for data communication. In
from active to idle, the voltage needs to rise from VILMAX a mixed population network, tRSTH should be extended to
past the threshold VTH. The time it takes for the voltage minimum 480μs at standard speed and 48μs at overdrive
to make this rise is seen in Figure 12 as “ε” and its dura- speed to accommodate other 1-Wire devices.
tion depends on the pullup resistor (RPUP) used and the
capacitance of the 1-Wire network attached. The voltage
Read/Write Time Slots
VILMAX is relevant for the DS1922F when determining a Data communication with the DS1922F takes place in
logical level, not triggering any events. time slots that carry a single bit each. Write time slots
transport data from bus master to slave. Read time slots
The initialization sequence required to begin any com-
transfer data from slave to master. The definitions of the
munication with the DS1922F is shown in Figure 12. A
write and read time slots are illustrated in Figure 13.
reset pulse followed by a presence pulse indicates the
DS1922F is ready to receive data, given the correct ROM All communication begins with the master pulling the data
and memory function command. If the bus master uses line low. As the voltage on the 1-Wire line falls below
slew-rate control on the falling edge, it must pull down the the threshold VTL, the DS1922F starts its internal timing
line for tRSTL + tF to compensate for the edge. A tRSTL generator that determines when the data line is sampled
duration of 690μs or longer exits the overdrive mode, during a write time slot and how long data is valid during
returning the device to standard speed. If the DS1922F is a read time slot.
VTL
VILMAX
0V
tPDH
tRSTL tPDL tREC
tF
tRSTH
tW1L
VPUP
VIHMASTER
VTH
VTL
VILMAX
0V
ε
tF
tSLOT
RESISTOR MASTER
tW0L
VPUP
VIHMASTER
VTH
VTL
VILMAX
0V
ε
tF tREC
tSLOT
RESISTOR MASTER
tREH tREH
VPUP
VTH
VHY
X0 X1 X2 X3 X4 X5 X6 X7
INPUT DATA
in the command code, the target addresses TA1 and TA2, in the command code, the target addresses TA1 and TA2,
and all the data bytes. The DS1922F transmits this CRC the E/S byte, and the scratchpad data starting at the target
only if the data bytes written to the scratchpad include address. The DS1922F transmits this CRC only if the read-
scratchpad ending offset 11111b. The data can start at ing continues through the end of the scratchpad, regard-
any location within the scratchpad. less of the actual ending offset. For more information on
With the Read Scratchpad command, the CRC is gener- generating CRC values, refer to Application Note 27.
ated by first clearing the CRC generator and then shifting
Loop
Read Memory with Password and CRC (Fail Password or Address)
RST PD Select RMC TA <PW/Dummy> FF Loop
To verify success, read the General Status register at address 0215h. If MEMCLR is 1, the command was
executed successfully.
Forced Conversion
RST PD Select FC FFh FF Loop
To read the result and to verify success, read the addresses 020Ch to 020Fh (results) and the device samples
counter at address 0223h to 0225h. If the count has incremented, the command was executed successfully.
To verify success, read the General Status register at address 0215h. If MIP is 1 and MEMCLR is 0, the command
was executed successfully.
To verify success, read the General Status register at address 0215h. If MIP is 0, the command was executed
successfully.
Mission Example: Prepare Step 1: Clear the data of the previous mission.
and Start a New Mission Step 2: Write the setup data to register page 1.
Assumption: The previous mission has been ended by Step 3: Start the new mission.
using the Stop Mission command. Passwords are not Step 1: Clear the data of the previous mission.
enabled.
With only a single device connected to the bus master, the
Starting a mission requires three steps: communication of step 1 looks like this:
Step 2: Write the setup data to register page 1. • Alarm Controls (Response to Conditional Search)
During the setup, the device needs to learn the following • General Mission Parameters (e.g., Channels to Log
information: and Logging Format, Rollover, Start Mode)
• Time and Date • Mission Start Delay
• Sample Rate The following data sets up the DS1922F for a mission that
• Alarm Thresholds logs temperature using 8-bit format.
Step 3: Start the new mission. If step 3 was successful, the MIP bit in the General Status
With only a single device connected to the bus master, the register is 1, the MEMCLR bit is 0, and the mission start
communication of step 3 looks like this: delay counts down.
Software Correction Algorithm The correction algorithm consists of two steps: prepa-
ration and execution. By means of the family code the
for Temperature preparation step verifies whether the device actually is
The accuracy of high-resolution temperature conversion a DS1922. Then the configuration byte is checked to
results (forced conversion as well as temperature logs) identify the type of DS1922 (L, T or F). If it is the cor-
can be improved through a correction algorithm. The rect device, the data for software correction is read and
data needed for this software correction is stored in the converted from binary to decimal °C format. Next, three
calibration memory (memory page 18, duplicated in page coefficients A, B, and C are computed. In the execution
19). This data consists of reference temperature (Tr) and step, the temperature reading as delivered by the DS1922
conversion result (Tc) for two different temperatures. See is first converted from the low-byte/high-byte format (TcL,
the Temperature Conversion section for the binary num- TcH) to °C (Tc) and then corrected to TCORR. Once step
ber format. 1 is performed, the three coefficients can be used repeat-
The software correction algorithm requires two addi- edly to correct any temperature reading and temperature
tional values, which are not stored in the device. These log of the same device.
values, Tr1 and Offset, are derived from the device
configuration byte.
Step 1. Preparation
Read the 64-bit ROM to obtain the family code. If family code ≠ 41h, then stop (wrong device).
Read the configuration byte at address 0226h.
If code = 40h, then Tr1 = 60, Offset = 41 (DS1922L)
If code = 60h, then Tr1 = 90, Offset = 1 (DS1922T)
If code = C0h, then Tr1 = 130, Offset = -14 (DS1922F)
For all other codes, stop (wrong device).
Tr2 = Tr2H/2 + Tr2L/512 - Offset (convert from binary to °C)
Tr3 = Tr3H/2 + Tr3L/512 - Offset (convert from binary to °C)
Tc2 = Tc2H/2 + Tc2L/512 - Offset (convert from binary to °C)
Tc3 = Tc3H/2 + Tc3L/512 - Offset (convert from binary to °C)
Err2 = Tc2 - Tr2
Err3 = Tc3 - Tr3
Err1 = Err2
B = (Tr22 - Tr12) x (Err3 - Err1)/[(Tr22 - Tr12) x (Tr3 - Tr1) + (Tr32 - Tr12) x (Tr1 - Tr2)]
A = B x (Tr1 - Tr2) / (Tr22 - Tr12)
C = Err1 - A x Tr12 - B x Tr1
Step 2. Execution
TC = TcH/2 + TcL/512 - Offset (convert from binary to °C)
TCORR = Tc - (A x Tc2 + B x Tc + C) (the actual correction)
www.maximintegrated.com Maxim Integrated │ 43
DS1922F Autoclave Temperature Logger
with 8KB Data-Log Memory Developer Guide
Pin Configuration
Revision History
REVISION REVISION PAGES
DESCRIPTION
NUMBER DATE CHANGED
0 4/15 Initial release —
Conditions for parameter “Conversion With Software Correction” corrected from “+130°C
1 5/15 3
to +140°C” to “+115°C to +140°C”.
For pricing, delivery, and ordering information, please contact Maxim Direct at 1-888-629-4642, or visit Maxim Integrated’s website at www.maximintegrated.com.
Maxim Integrated cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim Integrated product. No circuit patent licenses
are implied. Maxim Integrated reserves the right to change the circuitry and specifications without notice at any time. The parametric values (min and max limits)
shown in the Electrical Characteristics table are guaranteed. Other parametric values quoted in this data sheet are provided for guidance.
Maxim Integrated and the Maxim Integrated logo are trademarks of Maxim Integrated Products, Inc. © 2015 Maxim Integrated Products, Inc. │ 45