Bus Termination

DCCWiki, a community DCC encyclopedia.
Jump to: navigation, search

Summary: Bus termination is used with some DCC systems to reduce ringing and reflections which may cause problems on the Power Bus.

RC Terminator or "Snubber"

Theory: Reflections occur when the digital signal hits the end of the power bus, so additional precautions must be taken to minimize those reflections. It is similar in concept to terminations used on high speed computer data and address buses to prevent corruption of data and erratic operation. Some computer interfaces, such as SCSI, must be terminated by design. Ringing occurs during phase switches (inversions) by the booster's output driving an inductive load (the power bus).

Many have pointed to "snubbers" as a solution to decoders becoming corrupted or erratic operations, when the truth may lie within poor wiring practices and dirty track. For a termination to be effective at eliminating an issue, it must be at the source of the problem, which is never at the end of the bus. In many cases the application of terminations is not necessary and does not solve the problem.

Bus Termination

Modern, well designed multifunction decoders reject almost any combination of transmission-line ringing, RFI, and any other mismatch effects that may be caused by the layout's power bus. This decoder-oriented design solution is far superior to filters for unpredictable wiring arrangements. It is impossible to design a "one size fits all" solution to such an issue, as every layout has different wiring arrangements which alter the parameters. Any additional bus termination would require measuring every power bus on the layout and calculating a custom termination for each one.

Another contribution is the evolving design of boosters, where proper design can minimize issues with signal distortion as well as controlling any artifacts which may be caused by the power bus wiring.

Any Radio Frequency Interference (RFI) created by the electronics on the layout will be handled by the decoder and command station.

At the frequencies Digital Command Control employs, many of the arguments for termination just don't fit the parameters. Transmission Line Propagation at the frequencies used by Digital Command Control are manageable without any extra precautions such as terminators. Many layouts do not have the complex wiring configurations or very long bus runs which would be an issue. Most issues can be traced back to poor wiring practices. Claims of excessive voltage spikes may in fact be a result of poor wiring or other issues.

Before embarking on adding terminators, the track signals should be examined with an oscilloscope to determine if there is distortion, and wiring examined and corrected first. Adding terminators may introduce new issues into the equation, such are excessive waveform distortion[1].

Ringing

Ringing is distortion of the DCC signal, where there is a spike at the leading edge of each pulse. It can result in a signal which is difficult to read, and in rare cases destroy a decoder. It causes are:

  1. Design of the booster's outputs
  2. Length of the power bus
  3. Load
  4. Installation of the wiring for the power bus

Managing the impedance of the bus reduces ringing. Excessive inductance contributes to ringing. Keeping the impedance low by reducing the inductance, results in reduced ringing. A side benefit is the increased capacitance between the bus wires also reduces ringing. [2]

How to Construct a Terminator

A bus terminator is really an RC circuit. Which means Resistor Capacitor.

In this instance, a resistor is wired in series with a capacitor, and the combination is then connected across the bus wires. The time constant is selected to be small enough that it will allow the capacitor to charge and discharge rapidly, important when the phase of the rail changes.[3]

NMRA Technical Note TN-9 recommends a 150Ω resistor of adequate wattage in series with a 100,000pF (0.1µF) capacitor.[4]

Now for the math:

Calculating Values

Charge and discharge cycle of an RC Circuit. 5τ is required for a full charge/discharge of the capacitor.

To work with signals in the Digital Command Control frequency range, the time constant Tau (τ) required is 1/100,000.[5] A longer time constant will also work.

To calculate this value, 1/τ equals RC.

For example: a 1000-ohm resistor and a 10,000pF capacitor

1000 × 0.000 000 01
or 1 × 0.000 01

τ equals 0.000 01 seconds (10µS). To fully charge the capacitor 50µs is required (5 time constants). In this example the Cutoff Frequency (Fc) is 16kHz, so the RC circuit will not have a large effect on the DCC signal.

  • Fc = 159155/(τ is in μs) or 1/(2πRC)

Substitution of values for the resistor and capacitor is possible, providing the resulting time constant is 5 to 10µs. You are not tied to any specific value. The recommended values from one manufacturer is a 100,000pF capacitor, 50V, with a series resistor value of 47 to 100Ω. This results in a time constant of 4.7 to 10µS. The 100Ω resistor is the preferred value. For scales such as HO and N, a half watt resistor is the minimum. For larger scales, such as O and S, at least 1W is the minimum. Large scales, such as those used for garden railways, for example, should use 2W resistors. The capacitor should be at least 50WVDC, non-polarised.

It is also permissible to use two capacitors in parallel to increase the total capacitance of the RC circuit, if a non-standard value is needed.

What It Does

The terminator helps counteract the impedance of the power bus. It also filters frequencies above that of the DCC signal on the bus, reducing distortion. Should spikes occur, it offers a low impedance path back to the booster, instead of allowing them to be reflected and further distort the signal. The terminator may also reduce distortion of the waveform by minimizing reflections caused by the open end of the bus.

Impedance Issues

Most signal quality issues are related to excessive bus impedance, specifically its inductance. Poor wiring, either through the selection of the incorrect wire gauge or poor workmanship, have direct inputs on the impedance of the bus.

For more information on wiring, see the Wiring for Digital Command Control pages. Also read Wire Sizes and Spacing, and the section regarding twisitng bus wires.

Booster Design

The design of the booster's output stage is very important.[2] Much like an audio amplifier, the goal is to provide a clean output while maintaining the fidelity of the input. Careful design helps to control ringing and overshoot in the DCC waveform. Compromises will be made, with some designers favouring one approach over another. As time goes on, improved components and updated booster designs result in better, higher fidelity track signals.

When the booster output is driven hard, and increase in ringing will be seen. When under a light load, ringing will increase, and the location of the load will also have an impact. The addition of the RC filter on the bus will change this behaviour and reduce ringing. Common practice is to install the termination on the end of the bus.

See DCC Power for more details.

Who Needs to Terminate Their Bus Lines

At DCC frequencies the power bus does not fit the concept of a transmission line[6]. The need for a terminator is directly related to the design and implementation of the output (driving) stage of your booster. Some designs already incorporate an RC snubber within the booster to deal with impedance issues related to the inductance of the load being driven. The output impedance of the booster is also a consideration. [7]

This is an issue related to long bus runs. Most layouts will not have any problems with the bus wiring which would require installation of bus terminators. Should you experience erratic operation, this would be one possible option. Some manufacturers recommend terminating the bus. Others do not recommend the addition of terminators. [1]

Examining and correcting any deficiencies in the bus wiring is the first step in addressing issues related to signal distortion.

Further Reading

External Links


Footnotes

  1. 1.0 1.1 TN-9 2.2.3: Determining if there is ringing on the bus and where to place RC filters to reduce the ringing is an advanced technique requiring an oscilloscope and somewhat advanced electronic expertise.
  2. 2.0 2.1 TN-9, 2.2 Signal Distortion, 2.2.1 Ringing: There are several factors that affect the amount of ringing present. Length of the bus run, load on the bus, how the wiring is installed and the power station. Each power station is different. Some produce more ringing than others. Often this is a design compromise. If the output is driven too hard ringing is present. If driven too softly the slew rate becomes too large (too long) making it difficult to read the DCC signal. Slew Rate is the rate of change in the DCC signal.
  3. TN-9:2.2.3 Bus terminations: The DCC bus may be fitted with a resistor capacitor (RC) filter using a 150Ω resistor of adequate wattage in series with a 0.1µf 50V capacitor across the bus. The purpose of such filters is to reduce ringing and to shunt any voltage spikes created when there is a short circuit created by a derailment or equipment running into a turnout set against it. Results will vary for each situation depending on the length of the bus, the load on the bus and the power station.
  4. 15µS time constant.
  5. 10µS TC.
  6. Although many will insist on applying transmission line theory, in reality the frequencies and short length of a power bus negate the concept of a transmission line. As the load is unknown and can vary, and is in motion, this further complicates the application of transmission line theory to the power bus.
  7. TN-9: Twisting the bus lessens inductance while increasing capacitance, which together reduce ringing.