Overview of 1-Wire Technology and Its Use AN1796
Overview of 1-Wire Technology and Its Use AN1796
Overview of 1-Wire Technology and Its Use AN1796
Maxim > Design Support > Technical Documents > Tutorials > iButton ® > APP 1796
Keywords: 1-wire, master, slave, ibutton, parasitic supply, package, sfn, flip chip, ucsp, identification,
control, temperature, time, nv sram, otp eprom, eeprom, secure eeprom, logging, evaluation kit, ev kit,
customization
TUTORIAL 1796
Abstract: This article provides a general overview of the 1-Wire® technology, its communication concept
and, as a benefit of the low pin count, unusual package options. The main section discusses 1-Wire
devices by their feature set and explains the typical applications. The article ends with practical
information on how to evaluate 1-Wire devices, explains device customization options, and references
resources that assist customers in integrating 1-Wire technology in their systems.
Figure 1. The 1-Wire master/slave configuration uses a single data line plus ground reference.
Page 1 of 13
What Is Special About 1-Wire?
1-Wire is the only voltage-based digital system that works with two contacts, data and ground, for half-
duplex bidirectional communication. In contrast to other serial communication systems such as I²C or
SPI, 1-Wire devices are designed for use in a contact environment. Either disconnecting from the 1-Wire
bus or a loss of contact puts the 1-Wire slaves into a defined reset state. When the voltage returns, the
slaves wake up and signal their presence. With only one contact to protect, the built-in ESD protection of
1-Wire devices is extremely high. With two contacts, 1-Wire devices are the most economical way to
add electronic functionality to nonelectronic objects for identification, authentication, and delivery of
calibration data or manufacturing information.
Figure 2. The 6.0mm x 6.0mm x 0.9mm SFN package has large contact areas.
Figure 3. The 16mm-diameter iButton package protects the 1-Wire chip inside from harsh environments.
Page 2 of 13
Figure 4. The flip chip DS2502 package, 1.6mm x 0.91mm, has two rectangular contacts.
Figure 5. The UCSP package, 1.68mm x 1.68mm, for the DS2431 has spherical contacts located on a
grid with a 0.5mm pitch.
What Device Functions Are Available, and What Are the Typical
Applications?
At this time, there are approximately 40 1-Wire devices, including some close to the end of their lifetime.
The part numbers listed here only include devices scheduled for normal production for the foreseeable
future. Part numbers that begin with DS19 are always iButtons. The remaining part numbers in this
section, i.e., those that begin with DS24, DS25, and DS28 are available in conventional plastic packages.
If a product is also available as SFN or flip chip/UCSP, then this is mentioned in the Notes column. To
find up-to-date package information for any device, go to the Maxim website and enter the part number
Page 3 of 13
in the part number search field.
Identification only
Identification plus control
Identification plus temperature
Identification plus time
Identification plus NV SRAM
Identification plus (one time programmable) OTP EPROM
Identification plus EEPROM
Identification plus SHA-1 secure EEPROM
Identification plus logging
The combination of additional resources determines the typical application areas for a device. There are
numerous other applications that, for practical reasons, cannot be listed here.
Identification Only
Devices in this category are notable for their low cost. Accordingly, the level of protection that they can
provide is limited. If the DS2401 or DS2411 is used for the protection of intellectual property (IP), one
should consider a customized version of the device. See section Is There Any Device Customization?
for more details.
Part
Notes Typical Applications
Number
The DS2401 is also available as flip chip. Since the Printed circuit board
DS2401 does not need a VCC supply, this part is (PCB) identification
DS2401
also suitable for identification of printer cartridges and and authentication
medical consumables. Accessory/peripheral
identification
Protection of IP
DS2411 VCC power, 1.5V or higher Consumer
electronics
Printer cartridge
identification
DS1990A The DS1990R is guaranteed to generate a presence
DS1990R pulse on contact to reader. Access control
Asset management
Page 4 of 13
Part
Notes Typical Applications
Number
Identification of printer
cartridges and medical
consumables
DS2413 Two 28V PIOs Rack card control
Accessory/peripheral
identification and control
Part
Notes Typical Applications
Number
If not wired for sequence detection, two PIOs are Rack card
DS28EA00 monitoring
available for control functions.
Temperature data
This stand-alone device measures temperature on collection on
DS1920
command, e.g., when a reader touches it. contact
Part Typical
Notes
Number Applications
Page 5 of 13
Identification plus NV SRAM
Of the devices in this category, the DS1963S is quite unique. Besides its memory, it includes a SHA-1
engine, eight 64-bit secrets, sixteen 32-bit write cycle counters, and one 32-bit pseudo-random number
generator. Although the 4Kb memory can be read and written without restrictions, changing the data in
pages 8 to 15 or in any one of the secrets causes the associated write cycle counter to increment. By
design, the DS1963S can function as a secure token for electronic cash applications, and as a SHA-1
coprocessor6 for use with SHA-1 secure EEPROMs. The security is achieved by embedding a SHA-1
MAC (message authentication code) in a data page. When used for PCB authentication or protection of
IP, the DS1963S functions as a coprocessor to aid the host in validating SHA-1 secure EEPROMs or
data with an embedded MAC read from simple memory devices (e.g., NV SRAM, EPROM, EEPROM).
Part Typical
Notes
Number Applications
PCB
authentication
4Kb memory, SHA-1 engine with 8 secrets, 16 write cycle Protection of
DS1963S IP
counters, pseudo-random number generator
Electronic
cash
PCB
identification
and
authentication
DS1992L 1Kb memory Access
control
Asset
management
Page 6 of 13
Part
Notes Typical Applications
Number
1Kb memory. The DS2502 is also available in flip Identification and usage
DS2502
chip and SFN versions. monitoring of printer
cartridges and medical
consumables
Identification and
authentication of rack
DS2505 16Kb memory cards and printed circuit
boards
Accessory/peripheral
identification
1Kb memory. Due to its lower cost (compared to PCB identification and
DS1982 the DS1985), the DS1982 is also suited for printer authentication
cartridge identification and usage monitoring.
Asset management
DS1985 16Kb memory
Page 7 of 13
Part
Notes Typical Applications
Number
Asset management
DS1977 32KB memory, password protection Gaming
Page 8 of 13
data without providing a SHA-1 MAC. See section Is There Any Device Customization? for
preprogramming service.
Part
Notes Typical Applications
Number
Page 9 of 13
Part
Notes Typical Applications
Number
A more economical approach is to buy one of the EV kits. Each kit includes a 1-Wire adapter, a
selection of 1-Wire devices or iButtons, and the necessary cabling and accessories. Table 1 describes
the EV kits at the time of this publication. The contents of EV kits can change as new parts become
available. Devices not included in a kit need to be purchased separately. Since the EV kit's software is
the same (except for the DSECASH kit), the package type (plastic package or iButton) determines which
kit best fits an application.
Page 10 of 13
Table 1. EV Kit Overview
1-Wire
Kit Part Number Evaluates Adapter Notes
Type
Besides hardware, firmware is needed to communicate with the 1-Wire devices, to write or read data,
and to exercise control functions. A selection of software drivers 14 for various platforms is available for
free download from the Maxim website. For device-specific drivers, application program interfaces (APIs),
and software examples, refer to the 1-Wire Software Resource Guide.15 This guide also includes API
functions based on the 1-Wire File system,16 which are particularly useful when working with more than
a few hundred bytes of data.
Page 11 of 13
leads to a fairly long lead-time. For SHA-1 secure EEPROM devices, Maxim provides a secure
preprogramming service to install data and secret. For details, submit a tech support request to the
factory.
Summary
1-Wire technology is based on a serial communication protocol that uses a single data line plus ground
reference between master and slave. The 1-Wire slaves are available in plastic packages, as flip chip or
UCSP, or in the form of stainless-steel iButtons. The minimum function of 1-Wire slaves is a 64-bit ID
number. Additional functions are PIO, temperature sensor, time counter, NV SRAM, OTP EPROM,
EEPROM, SHA-1 engine, SHA-1 secure EEPROM, temperature logging and humidity logging. Typical
applications for 1-Wire devices include identification and authentication of consumables, rack cards,
PCBs, computer accessories, and the protection of IP (e.g., cloning prevention). Special uses of iButtons
are access control, asset management, guardtour systems, time and attendance, electronic cash
(eCash), and temperature monitoring for food and pharmaceutical safety. Starter EV kits and software
drivers are available to assist customers integrating 1-Wire technology in their systems.
References
1. Application note 4132, "Attachment Methods for the Electro-Mechanical SFN Package"
2. Application note 3808, "What Is an iButton?"
3. Application note 4002, "Understanding Flip-Chip and Chip-Scale Package Technologies and Their
Applications"
4. Application note 4037, "Regain Location Information by Leveraging the 1-Wire Chain Function—A
Simple Signaling and Protocol Method Determines Device Physical Location"
5. Application note 517, "DS1371/DS1372/DS1374 32-Bit Binary Counter Time Conversion"
6. Application note 1820, "White Paper 1: SHA Devices Used in Small Cash Systems"
7. Application note 186, "Creating Global Identifiers Using 1-Wire Devices"
8. Application note 178, "Printed Circuit Board Identification Using 1-Wire Products"
9. Application note 3675, "Protecting the R&D Investment—Two-Way Authentication and Secure Soft-
Feature Settings"
10. Application note 3892, "Overview of iButton Sensors and Temperature/Humidity Dataloggers"
11. Application note 3358, "OneWireViewer User's Guide"
12. Application note 4206, "Choosing the Right 1-Wire® Master for Embedded Applications"
13. Application note 244, "Advanced 1-Wire Network Driver"
14. Start page, Software Development Kits
15. Application note 155, "1-Wire Software Resource Guide Device Description"
16. Application note 114, "1-Wire File Structure"
Page 12 of 13
UCSP is a trademark of Maxim Integrated Products, Inc.
Related Parts
More Information
For Technical Support: http://www.maximintegrated.com/support
For Samples: http://www.maximintegrated.com/samples
Other Questions and Comments: http://www.maximintegrated.com/contact
Page 13 of 13