49
19.4
Bits and bytes – conversion help
Setting and deleting of bits in a CV
Many of the decoders’ CVs use individual bits rather than
numerical values. If you wish to program a decoder that does not
support the individual setting and deleting of bits or if you use a
system that does not permit programming using bits, you will
have to program the appropriate decimal number for whichever
bits you want to set or delete in the CVs.
Ask yourself:
"Which decimal numbers do I have to enter in order to set or
delete which bits?"
Bit
Value
1 (0)
1
2 (1)
2
3 (2)
4
4 (3)
8
5 (4)
16
6 (5)
32
7 (6)
64
Each bit that is set represents a
number, a value. Simply write all bits
which are to be set in a CV
underneath one another and add
them up. See table on the right.
Each bit that is not set and therefore
deleted, is '0'.
8 (7)
128
Bit
Value
1
1
5
16
If Bit 1 and Bit 5 are to be set, the
values of these bits must be added
up:
Sum:
17
The decimal number which you have to enter in the CV is '17' if
you wish to set bits 1 and 5.
19.5 Brake
generator
Naturally, SILVER decoders can also be used together with the
brake generator. If you control brake sections in front of signals
with the brake generator, locomotives equipped with SILVER
decoders will stop here.
Near to a brake generator, the lighting will retain its last status,
i.e. it will remain switched on or off.