
Tsunami SoundCar User’s Guide Page 6
input of 0 or 1 to modify a specic setting. For this reason, “programming
by the bits” allows you to make basic adjustments that are on/off, disabled/
enabled, etc. Because most DCC systems don’t use binary representation,
programming by the bits requires you to convert binary values into decimal
(or hex) values.
This user’s guide represents CV values in decimal form to expedite
programming. However, binary is occasionally used to represent CV values
in the SoundCar Technical Reference for CVs that are programmed by the
bits. For instance, CV 29 (Conguration Data 1) is programmed by the bits
and controls important decoder settings, such as the locomotive direction, the
decoder’s speed step mode, alternate power source, and speed table setting.
The drawing below represents a CV and shows a binary value for each bit.
Bits 1 and 4 are set to 1, and bits 0, 2, 3, 5, and 6 are set to 0, which is a
binary value of 00010010.
Refer to Appendix A to locate the decimal (or hex) values for the binary value
00010010. The appendix shows a decimal value of 18 (0x12 in hex). Now
you simply enter a value of 18 into the CV.
Binary-Decimal Conversions
You can easily convert binary values into decimal form without the conversion
chart if you know the value of the bit when it is set to 1. The decimal value of
each bit when set to 1 doubles sequentially beginning with a value of 1, from
bit 0 to bit 7. So when bit 0 is set to 1, it has a decimal value of 1, bit 1 has
a value of 2, bit 3 a value of 4 and so on. Add these values together for the
value to be entered into the CV as shown below.
Introduction to Programming
This section details CV programming modes, reading CVs, accessing
indexed CVs, resetting CVs to factory defaults, and locking and unlocking
CVs. Due to the varying CV programming methods used by DCC systems,
we cannot provide comprehensive
instructions that address every command
station and must assume you understand
the capabilities of your system on some
level. Consult your DCC system manual or
contact the manufacturer if you need more
detailed programming instructions.
Basics of Programming
Conguration Variable Control CVs
CV 8: Manufacturer ID
CV 15: CV Unlock Code
CV 16: CV Lock ID
CV 30: Error Information
CV 31: CV Index 1
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
When bit is
set to 1, value = 128 64 32 16 8 4 2 1
Therefore: 0 + 0 + 0 + 16 + 0 + 0 + 2 + 0 = 18