Infineon TLE4997 User Manual page 31

Configuration and calibration of linear hall sensor
Table of Contents

Advertisement

Rem --> Determine minimizing C by calculating average epsilon
epsilon_sum = 0
C = 1
For T = T_min To T_max Step T_step
epsilon_sum = epsilon_sum + epsilon(T)
Next
epsilon_mean = (epsilon_sum / n)
C = epsilon_mean + 1
Rem =============================================================
Rem --> Determine epsilon sum
epsilon_sum = 0
For T = T_min To T_max Step T_step
epsilon_sum = epsilon_sum + epsilon(T) ^ 2
Next
epsilon_rms = Math.Sqr(epsilon_sum / n)
Rem =============================================================
Rem --> Determine if new optimum parameters were found
If epsilon_rms < epsilon_rms_opt Then
epsilon_rms_opt = epsilon_rms
TL_opt = TL
TQ_opt = TQ
End If
Next
Next
Next
Rem =========================================================================
Rem --> Finally retrieve the best TL, TQ values stored during the sweep
TL_final = TL_opt
TQ_final = TQ_opt
After the iteration is complete, the values TL
values shall be programmed into the sensor's EEPROM.
User's Manual
Calibration of TLE4997 Temperature Compensation
and TQ
contain the optimum values for TL and TQ. These
final
final
31
TLE4997
User's Manual
v01_01, 2019-08

Advertisement

Table of Contents
loading

Table of Contents