DH140 1 Amp Digital Command Control Mobile Decoder

This product has been replaced by the 1.5 Amp HO Scale Mobile Decoder (DH163D) and is no longer available. Click here to view the DH163D.

1 Amp Digital Command Control Mobile Decoder.  Also available as DH140P with a long DCC medium plug, DH140PS with a short DCC medium plug, and as a DH140AT with Athearn Clips.

Retired in 2000


Current Rating-Motor
1.5 Amp (2.0 Peak)
0.67” x 1.2” x 0.25” (17.02 mm x 30.48 mm x 6.35 mm)
Wired, DCC medium Plug, or Athern Clips
Function Outputs
4 (read more)

4 function decoders support F0 Forward and F0 Reverse, F1 & F2.  This allows for reversing headlights and two separate functions OR 4 separate functions if reversing headlights is not used.

Most Board Replacement decoders have LEDs for forward and revese lights wired to F0 Forward and F0 Reverse. They have solder pads for additional functions that must be wired by the end user.

How functions are numbered:

F0 (FWD) White

F0 (REV) Yellow

The Blue wire is Lamp Common to allow for continuous lamp operation.

F1 Green

F2 Violet

F3 Brown

F4 White with Yellow Stripe

F5 White with Green Stripe

F6 White with Blue Stripe




and so one are each counted as one function.  This is an industry wide convention.

Function Type
FX (read more)

Motor isolation Note for FX decoders:

FX decoders will blink the loco's lights when power is first applied to the decoder to warn you of a short circuit in your installation. If you see the lights blinking, immediately remove the loco from the track, locate the short circuit and correct the problem before proceeding. Do not leave the loco on the track with blinking lights because eventually, the decoder will become overloaded and be damaged. If a short occurs after initial power up, the lights will not blink so, it is important to secure the leads inside the loco once the installation is complete to prevent them from coming loose during normal operation and creating a short. For board decoders, it is important to follow the instructions for installing insulating tape inside the loco to prevent shorts during operation caused by the decoder board shifting inside the engine.  


The following is an explanation of how CVs that control FX functions work.  This information is to be used ONLY by FX decoders.  FX3 decoders use different CVs to control functiion outputs.

CV49-63:  Digitrax Real FX Special Effects Generators for Decoder Function Leads

Decoders with FX features have 4 user configurable, independent special effects generators.  These are set up by programming CV values as described below.

 F1/F2 NOTE:  If using DH142, DN142, DN141K2, DN149K2 series decoder, when F1 is set up for FX, F2 must also be set up as FX (It can’t be used as standard on/off function.)  If you want to use a combination of FX & standard on/off functions, please use F1 as the standard on/off function and F2 as the FX function.

 Setting Up FX Effects On Function Outputs 

1.  Each function lead has an FX control CV associated with it.  Using Table IVa below, determine which CV you need to program to set up an FX feature for the function lead you are working with.  For example, if you want to set up an FX feature on your forward headlight, you will use CV49 to control the FX feature for the lamp attached to the white wire on your decoder.

 Some decoders do not have function wires attached.  See the specific decoder instructions to determine which "pad" on the decoder is for each function.  Use thin wire or wire saved during previous decoder installations to solder function wires to the pads associated with the function you want to use.

 Table IVa FX generators are controlled by CVs 49 to 61 

FX Control CV #

Function #

Lead Color


F0/Light Forward



F0/Light Reverse,



F1 Function 1



F2 Function 2



F3 Function 3



F4 Function 4



F5 Function 5



F6 Function 6


Note: Decoders with FX3 function generators use different CVs to control the decoder outputs.  See FX3 function type for details.      

2.  Each FX effect has a CV value that generates the FX effect you want and controls how the effect works with respect to locomotive direction and the head light (F0) function.

 The FX CV value is made up of 2 digits.  The second digit determines which FX effect will be generated.  The first digit determines how the effect will work with respect to the locomotive direction, the head light and other functions.  Use Table IVb to determine the second digit and Table IVc to determine the first digit of the FX CV value to program into the CV selected in step 1.

 Table IVb  The second digit of the FX CV value determines which type of FX effect will be generated. 

FX CV value second   digit (HEX)

Type of FX effect generated


No effect, normal function control of lead


Random flicker 


Mars light


Flashing head light


Single pulse strobe


Double pulse strobe


Rotary beacon simulation




Rule 17 dimmable headlight, dim   when F4 is active or locomotive direction is opposite normal direction of   travel (NDOT)


FRED or "end of train" light


Right ditch light on when loco is running forward and F0 is   on.  When F2 is on, the right ditch   light flashes alternately with the left ditch light to simulate ditch light   operation at a grade crossing.


Left ditch light. on when loco is running forward   and F0 is on.  When F2 is on, the left   ditch light flashes alternately with the right ditch light to simulate ditch   light operation at a grade crossing.


Digitrax reserved for effects expansion.

 Table IVc  The first digit of the FX CV value determines how the effect generated will behave.  For example, two strobe lights can be set up to flash alternately by setting one to phase A and the other to phase B.  The strobes can also be set up to be on when the loco is moving forward and off when moving backward.

Table IVc How FX effect generated will work 

FX CV value first digit (HEX)

How the FX effect generated will work


Forward direction, ON with function ON, effect phase A


Reverse direction, ON with function ON, effect phase B


Non directional effect, ON with function ON, effect phase   A


Non directional effect , ON with function ON, effect phase   B


Forward direction, ON with F0 ON & function ON, effect phase A


Reverse direction, ON with F0 ON & function ON, effect phase B


Special Logic for Fwd Ditch Light or Rule 17 dimming


Special Logic for Rev Ditch Light or Rule 17 dimming


Digitrax reserved for future FX expansion.

 Reversing Headlight Note:  For decoders with part numbers that end in 2 (DH142, DN142, DN149K2, etc.) these work with F0-Forward (White) & F0 Reverse (Yellow), only if CV61 is set to a value other than 00 to map the yellow lead to F4.

3.  Program the FX CV value from step 2 to the FX CV identified in step 1.

 If you are using the PR1 Computer programmer, a special FX set up section is available where you can just "point and click" to set up the effects you want to use.  The software lets you select which function lead and which FX feature you want from a menu so you don' have to use the tables above to determine which CV or CV value to use.

 4.   You can repeat steps 1, 2 and 3 to set up a total of 4 FX effects on any 4 function leads you choose.  If you want any function lead to remain a simple on/off lead, leave it programmed to the factory default of CV value 00. 

If your decoder has more than 4 function leads, you can set up only 4 FX effects and the other function leads will be simply on/off functions.

Customizing FX Effects-FX Rate and Keep Alive: CV62

CV62 lets you control the rate and keep-alive brightness for each FX effect you set up.  The CV value for CV62 is made up of 2 digits, the first digit and the second digit.

The first digit controls the keep alive/baseline off voltage for incandescent lamps.  This value should be between 0 and F.  A value of 0 gives no keep alive and a value of F gives maximum keep alive.  Values between the high and low allow you to vary whether the lamp actually goes off between light pulses or whether it stays on very dimly or more brightly.  (If you are using LEDs, the first digit for CV62 should be 0.)

The second digit controls the rate of the FX effects programmed.  This value should be between 0 and F.  A value of 0 gives a fast rate and a value of F gives a slow rate of operation.  We recommend you start with a 4 and adjust it up or down until you get the effect you are looking for.

 Ditch Light Hold Over Time CV63

If you are using the ditch light effect in conjunction with F2, CV63 lets you set up a hold over time to control how long the ditch lights continue to blink after F2 turned off by releasing the key on the throttle.  Remember that F2 is a momentary key on most Digitrax throttles that will keep function 2 on as long as you hold the key down and then turn function 2 off when you release the key.  This allows the ditch lights to be on steady during regular operation and to begin alternate flashing when F2 (usually the horn) is activated and to continue flashing alternately for a predetermined length of time after F2 is released; just like the prototype.  A value of 00 yields no hold over time, a value of 40 yields a realistic time of about 5 seconds.  A value of 255 (xFF hex) yields about 20 seconds hold over time.

FX Examples

Any function lead on the decoder can be set up for any FX effect by programming its associated FX CV to the appropriate FX CV value.  For example, if CV53, the FX CV for F3, is programmed with an FX CV value of 02, the brown F3 function lead will be a Mars light when F3 is turned on for this decoder address and the decoder's direction is forward. 


CVs that affect all FX function leads 



CV# & CV Value


Effect on Decoder

Analog Functions Enable/Disable


All functions F0 though F4 are ON in analog (DC) mode

Configuration Register


Advanced 28/128 speed step mode, analog mode conversion   enabled

Keep Alive/Rate


High keep-alive for lamps, Rate 4 for approx. 1 sec FX effect   rate

Ditch Light Hold Over Time


5 Sec Ditch light holdover after F2 is turned OFF


CVs that affect specific FX outputs: 



CV # & CV Value  


FX Effect Generated

F0 Fwd



Rule 17 dimmable headlight,   directional

F0 Rev



Normal directional reverse headlight, NO effect used




Right Ditch light, directional.  F0 & F2 must be ON for this to operate.




Left Ditch Light, directional.  F0 & F1 must be ON for this to operate.  




MARS light, ON when F3 is   ON  (If we used {53:x32/050} we would   get opposite phase MARS light)

 To set up two alternating double pulse strobes on the green and violet function leads controlled by turning on both F1and F2, program CV51 to a CV value of x25/037 and program CV52 to a CV value of x35/053.  This is an example of using the alternate effects phases A & B.

 If you set up more than 4 effects to the output leads, the effects selected after effect 4 will be the same as the 4th effect selected, assuming the first effect was set up on CV49, the second on CV50, the third on CV51 and the fourth on CV52.  An FX CV Value of 00 will set up the function lead as a standard on/off function lead with no FX effects generated.

Troubleshooting FX effects

Common problems with FX set up are:

Trying to program a decoder for FX when the decoder does not support FX.  Be sure the decoder you are installing has FX features.  Digitrax introduced FX in the summer of 1995 so if your decoder was made before then it does not have FX capability.  Since 1995 all Digitrax premium decoders have included FX.  Digitrax standard and economy decoders do not have FX features. 

FX effects don't work as expected.  Review the qualifiers you set up for the effect.  For example, if the effect is set up to come on only when F1 and F0 are active and the loco is headed in the forward direction, be sure you have met those conditions.

F1/F2 NOTE:  If using DH142, DN142, DN141K2, DN149K2 series decoder, when F1 is set up for FX, F2 must also be set up as FX (It can’t be used as standard on/off function.)  If you want to use a combination of FX & standard on/off functions, please use F1 as the standard on/off function and F2 as the FX function.


Series 2 (read more)

Digitrax Decoder Series Numbers

Over the years as technology advanced, Digitrax has added more and more features to our mobile decoders.  Also, over time, the industry standards and uses of come CVs have changed.  Each of our decoder web pages includes a link to a specification sheet for that particular decoder so that you will know which CVs are used for which features in that particular model.

Digitrax uses series numbers to let customers know which feature set is part of a particular decoder.

The fifth character of each mobile + function decoder part number is the Digitrax series designator.  For sound + motor + function decoders we typically use the sixth character as the series designator.  There are variations in a few part numbers.

Series 6

Compatible with Digitrax PX series Power Xtenders to keep locos and sound running in the presence of dirty/poor track work.
FX3 outputs optimized for both LED and bulb applications.
FX3 outputs have configurable pulse available on all outputs.
Improved Scaleable Speed Stabilization (BEMF).

SoundFX Series 6 Features

Sound decoders available with either 8 bit standard or 16 bit premium sound.
Sound decoders configured for 8 Ohm speakers.
Allows for longer sound fragments.
Available in either standard 3 or premium 4 voice versions.
Auto CV configuration by sound projects
Scaleable Speed Stabilization (BEMF) optimized for sound operation.

Series 5

Sound Bug Compatible:  Series 5 Digitrax Decoders add the ability to add sound to regular mobile decoders with Sound Bug.  Some Series 5 decoders have sockets for simply plugging in the Sound Bug while others require soldering to wire the Sound Bug to the decoder.

Series 4

First generation SoundFX decoders

Most are mobile, sound and function decoders, some are sound and function only decoders.

Series 3

Series 3 decoders with 6 functions have FX3 function outputs

Torque compensation

SuperSonic motor drive for quiet operation (silent operation)

Support for all DCC programming methods as of the time of release

Operations mode read back capability for CV read back on the main line

Scaleable Speed Stabilization (Adjustable Back EMF)

One Step decoder Factory CV reset (CV08=8 or CV8=9 to preserve loadable speed tables)

Motor Isolation Protection


White or Golden Yellow LEDs on decoders that come equipped with LEDs

Series 3 decoders with less than 6 functions have a modified set of features

Series 3 Economy

Digitrax Decoders have all Series 3 features EXCEPT Scaleable Speed Stabilization (BEMF)

Series 2

FX function outputs

Scaleable Speed Stabilization (Back EMF)


Series 1

Digitrax decoders have standard or configurable strobe function outputs.

Replaced by
Current Rating-Functions

Product Support

Tech Support Depot


This product is also included as part of the following set: