Editor's Choice


How to multiplex a 1-Wire host into multiple channels

30 August 2023 Editor's Choice DSP, Micros & Memory

1-Wire networks are designed for communication with a single 1-Wire host and numerous 1-Wire nodes on a single 1-Wire bus. Preferably, a linear topology, which contains insignificant stubs, is best for a 1-Wire network. However, a star topology, which contains long stubs, is often unavoidable, and makes it more difficult to determine the effective limitations. A method to eliminate these difficulties is to break up a star topology into numerous channels by using an analogue multiplexer (mux).

Advantages of using numerous channels include accelerating individual 1-Wire node access time, improving network robustness, and mixing overdrive-only nodes with standard/overdrive nodes on different channels. These advantages can be gained, while still having a single 1-Wire host.

Arrangement

When configuring a 1-Wire network to have many channels, the general approach taken uses an Analog Devices’ 1-Wire host connected to the common signal of an analogue mux. The mux has digital channel select signals to connect the 1-Wire common signal to the desired I/O that contains a channel of 1-Wire node devices. With this arrangement, many more 1-Wire nodes can be networked over the limitations of a single 1-Wire bus. This is due to the elimination of stubs, and a decrease in the number of 1-Wire nodes per channel driven by the 1-Wire host.

Examination

Figure 1 shows a 3,3 V system when using the DS2485 1-Wire host. The microcontroller controls both the DS2485 and the mux channel to be selected. In a 1-Wire network, it is critical that the mux used can handle rail-to-rail analogue signals. Otherwise, signal distortion can occur and the VPUP parameter requirement of the 1-Wire nodes can be violated. The mux RON parameter must also be as small as possible to avoid altering the DS2485 active pull-up impedance (RAPU). If this is not taken into account, the 1-Wire nodes might not receive the necessary current to operate during a strong pull-up event.

Figure 1. Typical application circuit.
Figure 1. Typical application circuit.

Optionally, the mux (U2) has external, post-mux, pull-up resistors (RP4 and RP5) to provide power for idle 1-Wire nodes when the switches are open. If this is not done, each time a channel switch is connected, the microcontroller must wait the maximum wake-up time of the connected nodes on that channel (usually 2 ms) before beginning communication. However, it is important to consider the effects of the mux’s RON parameter during a pulldown event by the 1-Wire host when using an external pull-up resistor on each channel. Any effects can be considered negligible by selecting a small RON to avoid violating the highest 1-Wire input low parameter of the 1-Wire nodes. So, for a given post-mux pull-up resistor of RP and a given mux resistor of RON, the post-mux output low voltage is expressed using equation 1:

Additionally, it is important to consider the flexibility of the 1-Wire host used. Analog Devices recommends the DS2485 1-Wire host for any 3,3 V system because the DS2485 timing, input triggering levels, and internal pull-up resistors are very adjustable. The DS2485 can also be set to a high impedance mode, which can be helpful when using the external resistor option. However, if a system needs 5 V, then the next best option is to use the DS2484.

Lastly, during this examination, some systems require a mix of overdrive-only and standard/overdrive 1-Wire node devices. If the overdrive-only and the standard/overdrive devices reside on the same 1-Wire bus, communication faults occur. One simple solution is to use a mux that places overdrive-only devices on different channels than the overdrive/standard devices. The DS2485 can then simply switch to overdrive mode or standard mode between the selection of channels for proper communication.

Analogue Mux Selection

There are many requirements a designer considers when selecting the analogue mux. These requirements can be the number of channels, interface type, cost, package type, and performance. Table 1 lists the recommended analogue muxes for 1-Wire applications. All the recommended analogue muxes handle rail-to-rail analogue signals, have a small RON, and come in various package types.

The microcontroller that controls the selected channel must have spare GPIO pins. If the microcontroller does not have any spare GPIO pins, it is possible to use the MAX14661 or a similar device that can be tied to the same I2C bus used by the DS2485.

Table 1. Analogue muxes for 1-Wire devices selector guide.
Table 1. Analogue muxes for 1-Wire devices selector guide.

Conclusion

This article provides a method to break up star topography 1-Wire networks by using an analogue mux from the recommended list. As with the selection of any electronic component, the supporting system should carefully examine all device specifications under all use conditions to ensure reliable operation.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

More room to scale
Altron Arrow Power Electronics / Power Management
With the latest STM32H5 lines from STMicroelectronics, you can now scale within the same platform, from a compact 1 Mbyte device to higher-memory MCUs for graphics-rich and feature-heavy designs.

Read more...
Women and the future of engineering in South Africa
Editor's Choice
With women making up just 16% of registered engineering professionals in South Africa, AvenirHoldings CEO, Tshidi Mndzebele, is calling on women engineers and graduates to pursue formal professional registration as a key step to unlocking career growth and industry leadership.

Read more...
Multi-constellation GNSS module in a legacy-compatible footprint
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Telit Cinterion has announced the SE869eK2L, a single-frequency L1 GNSS module designed to help device manufacturers upgrade legacy positioning designs with improved performance and cost efficiency, while preserving design continuity.

Read more...
Compact SSI family for industrial automation
Altron Arrow Passive Components
Infineon Technologies has introduced the ISSI20BxxF Solid State Isolator (SSI) family, bringing solid-state isolation technology into high-volume applications traditionally served by photovoltaic isolators (PVIs), photovoltaic relays (PVRs), and electromechanical relays (EMRs).

Read more...
Rev 2.0 PolarFire FPGA ethernet sensor bridge
Altron Arrow Computer/Embedded Technology
Smaller, multi-camera platform enables scalable Ethernet architectures for NVIDIA Edge AI systems, while lowering power, cost and integration complexity.

Read more...
The effect of seasonal changes on ESD performance in South Africa
Actum Editor's Choice Circuit & System Protection Manufacturing / Production Technology, Hardware & Services
Electrostatic discharge performance is influenced by several environmental factors, with relative humidity being one of the most important. This is particularly relevant in South Africa, where seasonal changes can result in significant differences in humidity levels.

Read more...
Compact RTK design: More than just the receiver
iCorp Technologies Editor's Choice Telecoms, Datacoms, Wireless, IoT
In practice, engineers building compact RTK products keep discovering the same thing: the hardest component in the system is no longer the receiver. It is the antenna.

Read more...
The signal-to-noise challenge in large-scale IIoT
Sigfox South Africa Editor's Choice Telecoms, Datacoms, Wireless, IoT
For much of the last decade, the industrial IoT industry has been driven by a relatively simple assumption: if a little data is useful, more data must be better. That thinking shaped countless deployments.

Read more...
Universal IR receiver module
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Vishay Intertechnology has introduced a new series of infrared (IR) receiver modules for IR remote control applications, which feature a wide modulation frequency acceptance from 30 kHz to 68 kHz.

Read more...
Women building South Africa’s power infrastructure
Editor's Choice
As South Africa celebrates Women’s Month in August, women are increasingly taking their place on the factory floor, in technical workshops and across engineering environments, helping manufacture the infrastructure that keeps the country’s electricity network running.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved