Examples; Angle Read Out Value - Infineon TLE5014P16 User Manual

Gmr-based angle sensor
Table of Contents

Advertisement

TLE5014
GMR-Based Angle Sensor

Examples

9
Examples
The following chapter provides some practical examples.
9.1

Angle Read Out Value

Angle value read-out with SICI, register 0x02
Please refer to
Chapter 6.2.4
In the register 0x02, the angle value is stored as a 15-bit value in bit [14:0]. It is described as a signed register,
the angle value is stored as Two's complement.
A Two's complement number is generated by the following formula:
Example:
For a register value of (100 1101 1001 0011)
-(100 0000 0000 0000)
+ (1101 1001 0011)
B
The corresponding angle calculates to:
°
=
Angle
[
]
It is also possible to calculate the angle in an alternative way not using Two's complement.
With the 15-bit resolution, 1 LSB corresponds to 360°/2
(100 1101 1001 0011)
equals to 19859, thus giving an angle of:
B
Angle ° [ ]
=
This results is the same angle as 218.18° = -141.82°
Angle value read-out with SENT/SPC
With the SENT/SPC interface, the angle value comes as a 12-bit value (0 ... 4095).
1 LSB equals an angle of 360° *1/2
A read-out of "0" corresponds to an angle of 0°, an read-out of "4095" equals an angle of 359.9121°.
The angle is calculated as follows:
User's Manual
on how to read registers with SICI.
=
Value
b
MSB
, the Two's complement is calculated as:
B
= -16384 + 3475 = -12909
B
°
360
ANG
_
VAL
[
digits
15
2
360°
-------------- - readout LSB 15 ]
[
32768
12
= 0.0879°
N
2
N
1
+
i
2
b
2
i
=
i
0
°
360
=
]
( *
12909
32768
15
= 360°/32768. A register value of
19859 360°
------------------------------ -
=
32768
44
=
°
)
141
.
82
=
218.18°
2019-03-12
(9.1)
(9.2)
(9.3)
(9.4)
Rev. 1.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tle5014s16Tle5014c16Tle5014s16dTle5014c16dTle5014p16d

Table of Contents