1-Wire

1-Wire is a computer bus system designed by Dallas Semiconductor that provides low-speed data, signaling and power over a single wire. 1-Wire is similar in concept to I²C, but with lower data rates and a much lower cost.

One of the attractive features of the bus is that a device only needs two wires, data and ground. To accomplish this, the IC includes an 800pf capacitor to power it from the data line. The devices are often delivered in tiny cans that look like small capacitors or watch crystals.

In mass-produced systems 1-Wire devices are on a printed circuit board with their controller.

Some laboratory systems connect them using RJ-11 wiring, with the devices themselves mounted in a socket.

Systems of sensors can be built by wiring together 1-Wire components, each including all of the logic needed to operate on the 1-Wire bus. Examples include temperature loggers, timers, voltage and current sensors, battery monitors, and memory. In a laboratory, these can connected to a PC using a bus converter, USB, or a printer port being popular solutions.

The iButton is a mechanical packaging standard that places a 1-Wire component inside a small stainless steel "button" similar to a disk-shaped battery. iButtons are connected to 1-Wire bus systems with an adaptor that connects the "lid" and "base" of the canister to an RJ-11 plug.

Use of the bus

The hardware-level of the protocol is usually performed by special software in the bus master, and a resistor. The resistor pulls the wire up to five volts, and incidentally provides the power to the network of devices.

The master starts a sequence of bits starts with a "reset" pulse, which pulls the wire to zero volts for a long time: 480 microseconds. This resets every slave device on the bus, probably by depriving them all of power. After that, any slave device, if present, shows that it exists with a "presence" pulse: it holds the wire at ground for at least 60 microseconds after the master stops driving the bus to ground.

To send bits, the software of the bus master places a sixty microsecond zero-volt pulse on the wire to send a zero, and a one to fifteen microsecond zero-volt pulse to send a one. If a parallel port is inconvenient or the operating system interferes with the timing, a UART run at 100K BAUD with some driver circuitry can be used to produce and sense acceptable pulses.

When receiving data, the master sends a one to fifteen microsecond zero-volt pulse to start each bit. If the transmitting slave unit wants to send a one, it does nothing, and the wire goes immediately up to five volts. If the transmitting slave wants to send a zero, it shorts the wire to ground for sixty microseconds.

The basic sequence is a reset pulse, an eight bit command, and then data is sent or received in groups of eight bits.

When a sequence of data is being transferred, errors can be detected with an 8-bit CRC.

Many devices can share the same bus. Each device on the bus has a unique 64-bit serial number. The most significant byte of the serial number is an 8-bit number that tells the type of the device. The least-significant byte is a standard (for the 1-wire bus) 8-bit CRC.

There are several standard broadcast commands, and commands addressed to particular devices. The master can send a selection command, and then the address of a particular device, and then the next command is executed only by the selected device.

The bus also has an algorithm to recover the address of every device on the bus. Since the address includes the device type and a CRC, recovering the addresses automatically produces a reliable inventory of the devices on the bus.

To find the devices, the master broadcasts an enumeration command, and then an address, "listening" after each bit of an address. If a slave has all the address bits so far, it returns a zero. The master uses this simple behavior to search systematically for valid sequences of address bits. The process is much faster than a brute force search of all possible 64-bit numbers because as soon as an invalid bit is detected, all subsequent address bits are known to be invalid. An enumeration of ten or fifteen devices finishes too quickly to be timed.

The location of devices on the bus is sometimes important as well. For these situations, the manufacturer has a special device that either passes-through the bus, or switches it off. Software can therefore explore sequential "bus domains".

External links

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools