PNI TCM 5 User Manual

Page 30

Advertising
background image

PNI Sensor Corporation

Doc #1007537 r12

TCM3 & TCM5 User Manual- Sept 2011

Page 30

32-Bit (single precision floating point)
Shown below is the 32-bit float format in big endian, in little endian all 4 bytes are in reverse order
(LSB first).

Exponent

S

Mantissa

3130

23 22

0

The value (v) is determined as (if and only if 0 < Exponent < 255): v = (-1)

S

* 2

(Exponent-127)

* 1.Mantissa

Note: Please refer to ANSI/IEEE Std 754-1985 for more information. It is also recommended that
you refer to the compiler you are using on how it implements floating-point formats.

Signed 32-bit Integer (SInt32)
SInt32 based parameters are signed 32 bit numbers (2’s compliment). Bit 31 represents the sign of
the value (0=positive, 1=negative)

msb

31

24 23

16 15

8

lsb

7

0

Big Endian

lsb

7

0 15

8 23

16

msb

31

24

Little Endian


Signed 16-bit Integer (SInt16)
SInt16 based parameters are signed 16 bit numbers (

2’s compliment). Bit 15 represents the sign of

the value (0=positive, 1=negative)

Big Endian

msb

15

8

lsb

7

0

Little Endian

lsb

7

0

msb

15

8


Advertising
This manual is related to the following products: