

The system must be capable of generating an accurate and repeatable 1µs delay for standard speed and 0.25µs delay for overdrive speed.See Category 1 in application note 4206, "Choosing the Right 1-Wire® Master for Embedded Application" for a simple example of a 1-Wire master microprocessor circuit. The communication port must be bidirectional, its output is open-drain, and there is a weak pullup on the line.There are several system requirements for proper operation of the code examples: Overdrive communication speed is also covered by this document. This application note provides an example, written in 'C', of the basic standard-speed 1-Wire master communication routines. IntroductionĪ microprocessor can easily generate 1-Wire timing signals if a dedicated bus master is not present. The time values provided produce the most robust 1-Wire master for communication with all 1-Wire devices over various line conditions. Byte functions can then be derived from multiple calls to the bit operations.

The four basic operations of a 1-Wire bus are Reset, Write 1 bit, Write 0 bit, and Read bit.

A microprocessor can easily generate 1-Wire ® timing signals if a true bus master is not present (e.g., DS2480B, the family of DS2482 parts).
