Soll eine 16 bit Zahl (z.B. aus einer Schnittstelle) in 16 einzelne Bits umgewandelt werden, funktioniert das mit dieser Logik mit zwei Binärdekodern.
Danke für die Lösung von Svethi in diesem Thread.
Wenn mehr Bytes verwendet sind, müssen bei den Formeln jeweils die höherwertigen Bytes herausgerechnet werden.
Formel 2. (höchtes) Byte: =INT(I1/256)
Formel 1. (niedrigstes) Byte: =I1-INT(I1/256)*256
Formel 3. (höchstes) Byte: =INT(I1/65536)
Formel 2. (mittleres) Byte: =INT((I1-INT(I1/65536)*65536)/256)
Formel 1. (niedrigstes) Byte: =I1-INT(I1/256)*256
Formel 4. (höchstes) Byte: =INT(I1/16777216)
Formel 3. (2. mittleres) Byte: =INT((I1-INT(I1/16777216)*16777216)/65536)
Formel 2. (1. mittleres) Byte: =INT((I1-INT(I1/65536)*65536)/256)
Formel 1. (niedrigstes) Byte: =I1-INT(I1/256)*256