DCC Tutorial (Power)

Summary: The DCC signal contains both power and data. It consists of a series of pulses which represent the digital data. The pulses of data also power decoders. The data is represented by the time between the leading edges of the signal pulses. DCC does not have polarity, it has phase. Being digital, there is no concept other than High or Low.

Introduction to DCC Power

Power Concepts for Digital Command Control.

Main article: DCC Power
Main article: Videos:DCC Basics

Many references on the Internet insist Digital Command Control is AC (Alternating Current). DCC Multifunction Decoders are not compatible with AC power, such as command control systems offered by Marklin for their 3-rail AC trains.

Let's start off by saying: You do not need to fully understand the technical details of how DCC works. If you don't understand, don't worry. Come back in a few months and see if you understand it then.

Do you know the technical details behind high-definition satellite TV broadcasting? Does that keep you from enjoying your favourite show? Does it create a barrier to changing channels or turning your home theatre on?

All You Need to Know About DCC Power

1. There is a binary signal on the power bus, which is sent from the booster to the train.
2. There is full power on the rails at all times while the booster output is turned on. Voltage does not control loco speed.
3. There is the signal phase present on the rails, where one rail is energized (ON) while the other is held to 0 or OFF. [1]
4. The rails are identified as A and B, whose phase relationships can be handled by auto reversers when A meets B so you don't need to flip toggle switches.
5. The phase of the rails does NOT control the direction of the locomotive.
6. The signal is present at all times, in the form of the DCC packet shown below.
7. DCC does not employ a DC voltage with the DCC signal riding on top, or any carrier signals. The rails have a series of pulses on them at all times.
8. Power and the DCC commands are one in the same.
Summary
Simple On/Off binary signal, one rail always the inverse of the other.

DCC track power can be seen as:

• Power for motors/lights/sound/animation.
• A digital timing/control signal to tell decoders what to do.

Myths about the Digital Command Control

There are a number of erroneous myths circulating about Digital Command Control that refuse to fade away. Most are the result of applying analog concepts to a digital technology.

• DCC is Alternating Current[2]
• DCC is a form of Alternating Current
• DCC has Polarity.

Correct Answer: None of the Above. The DCC signal on the track is a binary signal, where it is either ON or OFF. One rail is always the inverse state of the other.

Digital Command Control Signal Details

Put away the textbooks on Analog, We are going Digital!

Digital Command Control is a digital technology, which relies on the presence of a positive voltage, or no voltage. Being digital, it is either High or Low. There is no concept of negative voltages, as the Low state is defined as 0V. The DCC signal does not have polarity, it has a phase relationship.

The voltage on the track is not an analog[3], such as found with Direct Current operation, but a Digital Signal. The DCC signal contains both Power and Data. The data is represented by the time between pulses.[4] As shown in the oscilloscope trace, it consists of a series of pulses representing the digital data. It is not an analog waveform, where frequency, phase, polarity, or amplitude have meaning.

The DCC signal is not an Alternating Current sine wave, nor is it a special form of AC. The DCC signal switches quickly between states, varying the period between pulses[5] on the rail to convey information to trains on the track. Contrary to popular belief, there are no negative voltages present.

There are many online pundits asserting the presence of positive and negative voltages, citing the Peak-to-Peak amplitudes as seen in the 'scope trace. This is a demonstration of erroneous information being repeated so frequently that it is accepted as a fact. See DCC Power for more details which explain how this is not possible. The oscilloscope trace appears to have positive and negative components because the zero-reference point is floating.[6] In fact, the trace indicates which direction the current is flowing.[7] The lower scope traces show the combined sum of both signals (in purple), with the signals on Rails A and B in Yellow and Blue, respectively. [8]

Phase: Unlike Analog electronics, digital electronics have no concept of polarity. As Binary, there are only two defined values. The binary nature of DCC means no negative voltages present on the rails. The signal on one rail is always the inverse of the signal on the other rail. Thus, when Rail A is High, Rail B is in the inverse state, or Low. The booster takes the digital data from the command station, amplifies it, then applies it to the rails. This puts a very robust signal on the rails, allowing the locomotive's multifunction decoder to pick data off either rail. Another advantage is that one rail is not held to a constant voltage, eliminating contaminants attracted via the space charge forming around the rails.

Multifunction Decoders

Multifunction decoders are installed in vehicles. The multifunction decoder controls direction and speed, regardless of the vehicle's orientation or track voltage[9]. These decoders receive the DCC signal from the rails, read the data, then act on it. The DCC signal contains data in the form of the Address, Commands, and a Checksum byte. On the track, each pulse is repeated, once on Rail A, then on Rail B. The multifunction decoder samples one rail to extract the data.[10]

Phase

Analog control systems have Polarity; the Digital Command Control equivalent is Phase. Polarity is often incorrectly cited, introducing confusion by applying incorrect terminology to describe a situation.

Main article: DCC Power/Phase Relationships
Digital Command Control does not rely on the analog concept of polarity to control direction of travel. The multifunction decoder controls the direction (and any related functions) independent of phase. All boosters on a layout must operate in phase, and all track segments must be in phase. This means that all Rail A outputs on the boosters are in the same state, all Rail B outputs are the inverse.
If at some point the power bus wiring is reversed, a phase mis-match will occur. In a single booster district, a short would be registered. If a Power District is out of phase a metal wheel bridging the gap between two districts short will create a short. When the rails across a gap are in phase, there is no potential (voltage) present, as they are both in the same state. When there is a difference in phase, a potential will be present across the gap. By measuring across the gap with a voltmeter or a lamp, phase mismatches can be quickly identified. This often is an issue with reverse loops and turnouts.

It is not possible to create situations where the voltage is doubled. This is caused by inadequate wiring.
Turnouts and Phase Issue

There are two places where the phase is important: The frog and the switch rails. See the pages on turnouts for more details.

Reverse Loops

When the track loops back onto itself, Rail A will meet Rail B through the turnout's stock and point rails. For those applications, a method of inverting the phase of the loop is needed. This can be done automatically, or manually using a toggle switch. The multifunction decoder onboard the locomotive will continue as if nothing has happened.

Digital Command Control Signals

The DCC signal produced by the Command Station. This shows the bi-stable On/Off nature of the signal, each cycle consists of an equal On and Off period.

The digital waveform is created by your DCC system's (command station). It is sent to a booster (or multiple boosters for large layouts) where the DCC Commands are amplified to track power levels. The resulting higher voltage digital waveform from the booster is applied to the rails. The nominal transmission values are 58µS for a "1" and 100µS for a "0".

The multifunction decoder in the locomotive picks up the signal from the rails. The multifunction decoder has circuitry to process the DCC signal. The microcontroller the multifunction decoder is built around examines the data, and if it is addressed to it, acts on the instructions contained in the waveform. Additional circuits supply power to the motor(s), under control of the microcontroller which is responding to the information encoded in the waveform. Each decoder has an address, and will only respond to commands addressed to it.

Wireless DCC controllers have an RF transmitter in the handheld (throttle), and an RF receiver that controls the DCC controller (command station). But the DCC Signal and power still goes through the booster and the rails.

A Digital Command Control Packet

A DCC Packet is a defined group of signals. The technical term is a broadcast protocol. In the case of a broadcast protocol, the data is sent to all devices. Every packet consists of a minimum of 38 bits.

The packet always begins with a preamble of at least twelve bits representing a value of one are transmitted. No other DCC command can consist of twelve sequential bits set to equal 1. The preamble is considered to be floating, and provides sync information to the devices, making the entire system self-synchronising without additional clock signals.

When a decoder sees the preamble, it immediately takes note. After the preamble the data bytes begin. The first segment is the address byte, the next is the instruction byte. The NMRA DCC standard only defines a few basic instructions. The final segment is the error correction byte. A typical packet consists of three or four data bytes, or 24 to 32 bits. The final segment is the packet end bit, equal to 1. Each byte is separated with a zero bit.

The command station will either transmit idle packets, or retransmit previous packets. No data, no track voltage. The command station will have logic in it that will determine the sequence and repetition of packets to ensure that the bandwidth available is used efficiently.

Conversion from Analog/Direct Current to Digital Command Control

Conversion of a layout from Analog direct current (DC) operation to Digital Command Control usually means rewiring. The reason is a fundamental difference between wiring methodology: Direct current layouts rely on multiple low current power supplies located around the layout, with each powering a single block/train at a time. Since one power supply is routed to a block in the immediate vicinity, they do not require heavy wire to carry large currents, as they do not supply power to multiple trains a great distance from the power source.

DCC gives you the ability to run multiple trains simultaneously from one booster, and most modellers soon begin doing that because is it easy and possible. Which means more current draw, requiring wiring that can handle that.

What Is Next?

Continue to Getting started with a Starter Set.

1. This would be considered a bi-stable signal
2. Alternating current is the current that flows in a circuit stimulated by an alternating voltage. DCC signals are not continuously changing in amplitude and polarity.
3. Analog: Relating to or using signals or information represented by a continuously variable physical quantity such as spatial position, voltage, etc.
4. The time between the leading edge of the pulses represents the data value.
5. The time between the leading edges of the pulses determines the value.
6. Floating refers to the signal having no reference to earth ground. A battery is a floating power source.
7. The scope's probe is clipped to one rail and its ground connected to the other. The result is that the reference point for zero can be either Low or High depending on the state of the rail at that time.
8. Marklin three rail keeps the outer rails at ground potential, and applies their command control signal to the center rail using an H-Bridge circuit like a DCC Booster. The result is a pseudo Alternating Current signal for their command control system, and is less costly than their older method of generating the center rail's signals. The Marklin three rail system is not floating, unlike DCC, where the track is floating.
9. The NMRA defines the positive rail as the right hand rail as seen from the engineer's seat in the cab.
10. This works regardless of the orientation of the locomotive. If one rail carried pulses of a negative amplitude, the decoder would only see 0V, and would not be able to extract any data if the decoder was sampling that rail.