Data Sheet

ams Datasheet Page 21
[v1-01] 2017-Mar-17 Document Feedback
AS7262 − Detailed Description
4-Byte Floating-Point (FP) Registers
Several 4-byte registers (hex) are used by the AS7262. Here is
an example of how these registers are used to represent floating
point data (based on the IEEE 754 standard):
Figure 19:
Example of the IEEE 754 Standard
The floating point (FP) value assumed by 32 bit binary32 data
with a biased exponent e (the 8 bit unsigned integer) and a
23 bit fraction is (for the above example):
0 0 1 1 1 1 1 0
31
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3E (hex)
20 (hex) 00 (hex) 00 (hex)
byte 3 byte 2
byte 1
byte 0
0 0 1 1 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
exponent (8 bits)
fraction (23 bits)
24 23 16 15 8 7 0
31 2330 22
0
sign
= 0.15625
FP value 1()
sign
1b
23 i
2
i
i1=
23
+




2
e127()
×=
FP value 1()
0
1b
23 i
2
i
i1=
23
+




2
124 127()
×=
FP value 1 1 2
2
+()2
3
××= 0.15625=