Application Note
17
Rev. 1.0
2017-08-02
TLE5014 Programmer
EEPROM map PWM interface
4.3
Angle base calculation
For PWM/SPC protocol and SENT when feature error code “4091” is disabled
• Determine the position were “0°” should occur.
• Read out the 12-bit angle value at this position (in LSB).
• Multiply this value by 16.
• Write this (decimal) value in register 0x00A0
H
and burn EEPROM.
• To change the rotation direction:
– Add “2” to this value in case bit[1] in 0x00A0
H
is “0” and burn EEPROM again.
– Subtract “2” from this value in case bit[1] in 0x00A0
H
is “1” and burn EEPROM again.
For SENT protocol when feature error code “4091” is enabled
• Determine the position were “0°” should occur.
• Read out the 12-bit angle value at this position (in LSB) -> LSB12’.
• Calculate: 4 * trunc[16384/4088 * (LSB12’ - 1)].
• Write this (decimal) value in register 0x00A0
H
and burn EEPROM.
• To change the rotation direction:
– add “2” to this value in case bit[1] in 0x00A0
H
is “0” and burn EEPROM again
– subtract “2” from this value in case bit[1] in 0x00A0
H
is “1” and burn EEPROM again
4.4
SPC address configuration
If SPC in bus mode is used it is mandatory that the address of each sensor is written in the corresponding
EEPROM. This address must match with the address which is assigned via hardware pinout to this sensor.
Following values have to be written to address 0x00A4
H
:
• For ID = 0: 0x0400
H
• For ID = 1: 0x0500
H
• For ID = 2: 0x0600
H
• For ID = 3: 0x0700
H
Note:
The bit [7:0] of register 0x00A4
H
contain the CRC for protecting the sensor configuration. After a
change of the configuration (e.g. angle base or SPC ID) is written to the EEPROM (EEPROM is burned)
the CRC is updated automatically.