[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] [howto] read binary manually
From: |
feldmaus |
Subject: |
[Discuss-gnuradio] [howto] read binary manually |
Date: |
Mon, 6 Apr 2009 11:26:58 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hi All,
for those who want to read the binary value by hand,
the binary value is saved as 2*32bit value.
32bit --> I
and
32bit --> Q
And are saved one after another,
I1 Q1 I2 Q2 I3 Q3 I4 Q4 ...
No we look at I1 and describe how it will be computed by hand:
For example:
BIN: 00000000 00000000 10000000 10111111
HEX: 00 00 80 BF
But the PC stores the lowest byte first and then goes to the higher ones.
So we have to read the bytes from behind to the front:
HEX: BF 80 00 00
BIN: 10111111 10000000 00000000 00000000
This will be computed as described here,
http://de.wikipedia.org/wiki/IEEE_754
and results in the 32bit float:
-1
Regards Markus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] [howto] read binary manually,
feldmaus <=