Herunterladen Inhalt Inhalt Diese Seite drucken

FLEISCHMANN TRAIN-NAVIGATION6893 Handbuch Seite 175

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

The values of the individual bits is shown in the following table:
Bits (1. Byte)
Valuation
Now you can clearly see that one value is always calculated from the next lowest value, mul-
tiplying it each time by 2.
Binary numbers can be simply converted into decimal numbers, in that the valuation of all
bits added together whose value is 1 (in other words a 1 stands at their bit-position).
Example: In the binary number 01100101 the bits 6,5,2 and 0 have the value 1, bits 7,4,3
and 1 the value 0. The decimal value of this binary number is:
0x128 + 1x64 + 1x32 + 0x16 + 0x8 + 1x4 + 0x2 + 1x1= 101(dec).
The maximum decimal value that a byte can have is 255, if all bits have the value 1. The mini-
mum value is 0, as all the bits have the value 0.
The LNCVs of the navigation receiver consists of 2 bytes, taken from the bit positions 0-7
and 8-15, so that larger values than 255 can be stored. The valuation in the second byte, i.e.
the bits 8-15, will therefore be consequently counted higher and can once again be seen in
the following table:
Bits (2. Byte)
Valuation
Besides the use to store numbers in a LNCV (here addresses), each bit can also be consi-
dered to be a switch for a function. One byte therefore has 8 tiny switches, each with its own
function, thus giving one LNCV a total of 2x8=16 switches. When programming the LNCV,
not just the single bits, or switches are programmed singly, one by one, but all switches can
be simultaneously programmed in 2 bytes. This is carried out as shown in the example
above, so that the valuations of all the switches set to „1" likewise bits, are counted toget-
her. The numerical value thus calculated (=LNCV-value) will then be programmed.
7
6
128
64
15
14
32768
16384
5
4
32
16
13
12
8192
4096
2048
3
2
8
4
11
10
1024
512
1
0
2
1
9
8
256
175

Werbung

Kapitel

Inhaltsverzeichnis
loading

Verwandte Produkte für FLEISCHMANN TRAIN-NAVIGATION6893

Inhaltsverzeichnis