.. _electrical-standards: S-9.1 Electrical Standards ========================== `Original `_ (`Wayback Machine `_) Original Version: 3/07/2020 ---- Communication from a Digital Command Station to a Digital Decoder is accomplished by transmitting a series of bits that convey instructions. A bit is a signal which represents one of two conditions, which we will call ``1`` and ``0``. This portion of the standard covers the electrical characteristics of the digital command control signal that encodes these bits. Please refer to tables 1-32 for definition and numerical values of parameters used throughout this document. .. _technique-for-encoding-bits: A: Technique for Encoding Bits ------------------------------ The NMRA baseline digital command control signal consists of a stream of transitions between two equal voltage levels that have opposite polarity [#f1]_. Alternate transitions separate one bit from the next. The remaining transitions divide each bit into a first part and a last part. Digital Command Stations shall encode bits within this digital command control stream of transitions by varying the duration of the parts of the bits, or frequency of the transitions. In a ``1`` bit, the first and last part of a bit shall have the same nominal duration, and that duration shall be :math:`t_1` [#f2]_, giving the bit a nominal total duration of :math:`2 \times t_1`. Digital Command Station components shall transmit ``1`` bits with the first and last parts each having a duration within the :math:`t_1` range. The duration difference between the first and last parts of a ``1`` bit shall not exceed :math:`t_\mathrm{1d}`. A Digital Decoder must accept bits whose first and last parts have a duration within the :math:`t_\mathrm{r1}` range as a valid bit with the value of ``1``. Digital Decoders must accept ``1`` bits where the duration difference between the positive and negative components does not exceed :math:`t_\mathrm{r1d}`. In a ``0`` bit, the duration of the first and last parts of each transition shall nominally be greater than or equal to :math:`t_0`. To keep the DC component of the total signal at zero as with the ``1`` bits, the first and last part of the ``0`` bit are normally of equal duration. Digital Command Station components shall transmit ``0`` bits with each part of the bit having a duration within the :math:`t_0` range with the total bit duration of the ``0`` bit not exceeding :math:`t_\mathrm{0total}`. A Digital Decoder must accept bits, whose first or last parts have a duration within the :math:`t_\mathrm{r0}` range as a valid bit with the value of ``0``. Figure 1 provides an example of bits encoded using this technique. .. figure:: image/S-9.1/fig-1.png :alt: bit encoding Figure 1: Bit Encoding This is a differential signal with no ground. At the point where the signal line crosses the horizontal reference line, both rails will be at the same voltage. .. _one-bit-timing: One Bit Timing ~~~~~~~~~~~~~~ .. image:: image/S-9.1/img-1.png For power **station** output under load: .. list-table:: :header-rows: 1 * - Relationship for One Bits - Result * - :math:`t_\mathrm{A} \lt t_\mathrm{1min}\ \mathrm{or}\ t_\mathrm{A} \gt t_\mathrm{1max}` - Bad * - :math:`t_\mathrm{A} = t_\mathrm{B}` - OK * - :math:`t_\mathrm{A} - t_\mathrm{B}| \le t_\mathrm{1dmax}` - OK * - :math:`t_\mathrm{A} - t_\mathrm{B}| \gt t_\mathrm{1dmax}` - Bad **Decoders** must accept: .. list-table:: :header-rows: 1 * - Relationship for One Bits - Result * - :math:`t_\mathrm{A} \ge t_\mathrm{r1min}\ \mathrm{and}\ t_\mathrm{A} \le t_\mathrm{r1max}` - OK * - :math:`t_\mathrm{A} = t_\mathrm{B}` - OK * - :math:`t_\mathrm{A} - t_\mathrm{B}| \le t_\mathrm{r1dmax}` - OK .. list-table:: Table 1: DCC Bit Timing :header-rows: 1 :width: 100% * - Parameter - Definition - Min. Value - Normal Value - Max. Value - Unit - Comments * - :math:`t_1` - ``1`` half bit duration - 55 - 58 - 61 - μsec - Duration of a transmitted ``1`` half bit * - :math:`t_\mathrm{r1}` - ``1`` half bit received duration - 52 - 58 - 64 - μsec - Allowed duration for a received ``1`` half bit * - :math:`t_0` - ``0`` half bit duration - 95 - 100 - 9900 - μsec - Duration of a transmitted ``0`` half bit * - :math:`t_\mathrm{0total}` - stretched ``0`` bit duration - — - — - 12000 - μsec - Maximum total duration of stretched ``0`` bit * - :math:`t_\mathrm{r0}` - ``0`` half bit received duration - 90 - 100 - 10000 - μsec - Allowed duration for a received ``0`` half bit * - :math:`t_\mathrm{1d}` - ``1`` half bit duration delta - — - — - 3 - μsec - Maximum difference in duration between transmitted ``1`` bit half bits * - :math:`t_\mathrm{r1d}` - received ``1`` half bit duration delta - — - — - 6 - μsec - Maximum difference in duration between received ``1`` bit half bits .. _command-control-signal-shape: B: Command Control Signal Shape ------------------------------- The NMRA digital signal applied to the track by any Digital Command Control system, as measured at the power station output, shall have the following characteristics, as measured under conditions ranging from no load to the maximum continuous load permitted by the power source. Transitions that cross the region between :math:`V_\mathrm{trL}` and :math:`V_\mathrm{trH}` [#f3]_ shall occur at the rate of :math:`V_\mathrm{trA}` or faster. This signal may contain non-monotonic distortion at the zero-crossing transitions, provided that this distortion shall have an amplitude of no greater than :math:`\pm V_\mathrm{dist}` [#f4]_. Digital Decoders shall be designed to correctly decode signals with transitions whose slope is :math:`V_\mathrm{trRA}` or faster across the voltage range from :math:`V_\mathrm{trL}` to :math:`V_\mathrm{trH}`. A Digital Decoder shall correctly decode properly addressed baseline packets at a probability of :math:`P_\mathrm{decode}` or higher, as defined in S-9.2, in the presence of noise (and/or other types of signals) at frequencies above :math:`F_\mathrm{noise}` with a total peak-to-peak amplitude of less than (:math:`1 / V_\mathrm{snr}`) of the peak-to-peak amplitude of the NMRA digital signal [#f5]_. The exact shape of the NMRA digital signal shall be designed to minimize electromagnetic radiation such that a large layout operated using this standard can meet applicable United States Federal Communications Commission electromagnetic interference requirements [#f6]_. .. list-table:: Table 2: DCC Signal parameters Shape/ Amplitude :header-rows: 1 * - Parameter - Definition - Min. Value - Normal Value - Max. Value - Unit - Comments * - :math:`V_\mathrm{trL}` - Transition region :math:`V_\mathrm{min}` - — - -4 - — - Volt - Low limit of bit transition region * - :math:`V_\mathrm{trH}` - Transition region :math:`V_\mathrm{max}` - — - 4 - — - Volt - High limit of bit transition region * - :math:`V_\mathrm{trA}` - Transition rate - 2.4 - — - — - Volt/μsec - Transmitted bit voltage transition rate * - :math:`V_\mathrm{dist}` - Distortion amplitude - — - — - 2 - Volt - Distortion voltage during bit transition * - :math:`V_\mathrm{trRA}` - Receive transition rate - 2 - — - — - Volt/μsec - Received bit voltage transition rate * - :math:`P_\mathrm{decode}` - Decode probability - 95 - — - — - Percent - Percentage of packets decoded correctly * - :math:`F_\mathrm{noise}` - Noise frequency - 100 - — - — - kHz - Frequency of noise or other signal * - :math:`V_\mathrm{snr}` - Peak signal to noise amplitude ratio - 4:1 - — - — - No units (this is a ratio) - Peak DCC signal to peak :math:`F_\mathrm{noise}` .. _power-transmission-and-voltage-limits-for-transmitting-power-through-the-rails: C: Power Transmission and Voltage Limits for Transmitting Power through the Rails --------------------------------------------------------------------------------- The baseline method for providing the power to operate locomotives and accessories, which shall be supported by all Digital Command Stations and Digital Decoders, is by full-wave rectification of the bipolar NMRA digital signal within the Digital Decoder [#f7]_. In order to maintain power to the Digital Decoders, gaps in bit transmission are only allowed at specified times (see S-9.2, Section C). The peak value of NMRA digital signal, as produced by the power station and measured at the track, shall be confined to the range of :math:`V_\mathrm{DCCp}` for the applicable scale, as specified in Table 3 [#f8]_. In no case should the peak amplitude of the command control signal exceed :math:`V_\mathrm{DCCpmax}` for the applicable scale. Digital Decoders shall be designed to continuously operate in and withstand, without permanent damage to the decoder; a peak maximum voltage within the range of :math:`V_\mathrm{DCCr}` as specified in table 3 for the applicable scale, measured at the track. .. list-table:: Table 3: Power transmission and amplitude limit parameters :header-rows: 1 * - Scale - Parameter - Definition - Min. Value - Normal Value - Max. Value - Unit - Comments * - N and smaller scales - :math:`V_\mathrm{DCCp}` - Voltage limits for track for power station - 8.5 - 12 - 22 - Volt - Voltage produced powering the track * - HO/S/O scales - :math:`V_\mathrm{DCCp}` - Voltage limits for track for power station - 8.5 - 15 - 22 - Volt - Voltage produced powering the track * - Large scales - :math:`V_\mathrm{DCCp}` - Voltage limits for track for power station - 8.5 - 18 - 22 - Volt - Voltage produced powering the track * - N and smaller scales - :math:`V_\mathrm{DCCr}` - Voltage limits for track for decoder - 7 - 12 - 24 - Volt - Peak voltage decoder should operate in and withstand * - HO/S/O scales - :math:`V_\mathrm{DCCr}` - Voltage limits for track for decoder - 7 - 15 - 27 - Volt - Peak voltage decoder should operate in and withstand * - Large scales - :math:`V_\mathrm{DCCr}` - Voltage limits for track for decoder - 7 - 18 - 27 - Volt - Peak voltage decoder should operate in and withstand Digital Decoders shall be designed to interpret a valid packet addressed to it whilst supplied a minimum voltage :math:`V_\mathrm{DCCr}` as specified in Table 3 and to acknowledge the receipt of a command in that packet by some action. E.G. turning on a low power output to illuminate an LED. The Digital Decoder is not required to turn the motor at this voltage. This is an indication of the Digital Decoder’s ability to read valid instructions addressed to it at the specified minimum voltage at the track. .. image:: image/S-9.1/img-2.png .. list-table:: Revisions :header-rows: 1 * - Data - Revisions * - January 2019 - Tabularized data, removing it from the text and replacing with a variable to make future revisions less prone to missing changes in the text. Cleaned up grammar and language. * - February 2019 - Table 3 increased large-scale power station maximum voltage large to 24v from 22v. * - July-August 2019 - Text related to Table 3 to clarify the decoder must operate continuously in the maximum voltage specified without sustaining permanent damage. The decoder must read and acknowledge a valid instruction addressed to it at the minimum voltage specified. .. rubric:: Footnotes .. [#f1] Note that since a locomotive or piece of rolling stock can be placed upon a given section of track facing in either direction, it is impossible to define, from the point of view of a *Digital Decoder*, whether the first or last part of a bit will have the “positive” voltage polarity. .. [#f2] All timing measurements are done between zero-volt crossings. .. [#f3] 0 volts is the mid point of the differential voltage. .. [#f4] This standard specifically permits super-imposing non-NMRA signals upon the rails for other purposes, provided that the NMRA Digital Decoder can reject these signals. .. [#f5] This measurement is made with the Digital Decoder electrically connected to a track or accessory bus. .. [#f6] All components of an NMRA compliant digital system shall meet all applicable FCC and/or CE requirements. .. [#f7] Alternate means for supplying power are acceptable, provided that Digital Command Station power units are capable of producing the baseline track signal, and Digital Decoders are capable of operation from the baseline track signal as described by this standard. .. [#f8] Care should be taken to ensure that any motors exposed directly to the digital signal for extended periods have a stall rating that exceeds the amplitude of the signal, or sufficiently high impedance at 4-9 kHz to reduce the current to normal operating level. This appears to only be a concern for high-precision core-less can motors, which present a low impedance load, or for layouts using an NMRA digital signal with an amplitude in excess of ± 18 volts.