ams Datasheet Page 9
[v1-00] 2015-Mar-30 Document Feedback
HLS-442 − Electrical Interface
Figure 9:
Pseudo Code Description of Protection Value
FE High / FE Low
The raw FE signal is available in 10-bit resolution (1 step = 4mV).
The high 8 bits are available in byte 2 and the lower 2 bits in
byte 7, bit 6-7. The data range is 0-4092mV.
CRC16
Byte 3 and byte 7 form a 16-bit CRC value. The CRC is CCITT
CRC16.
Sensor Number
Sensor Number is defined by power supply feeds and CAN ID
assigned sensor number is repeated in byte 4 bit 2-4. The value
sent is given in Bus Identification.
Message Counter
The message counter is incremented by 1 after each
transmission of a SSM frame. After the counter reaches 255 it
wraps around and the next transmitted counter value
becomes 0. At sensor start-up the message counter begins at 1.
Pseudo Code Description
pv[9 - 8] = status[1 - 0] Assign two most significant bits of pv as the status bits
pv[7 - 0] = code[7 - 0] Assign 8 least significant bits of pv as the code bits
pv[9 - 0] = pv[9 - 0] +
msgcnt[1 - 0]
To pv add the number formed by two least significant bits of the message
counter
pv[9 - 0] = NOT pv[9 - 0] Perform bitwise inverse of pv
pv[9 - 0] = pv[9 - 0] + 1 To pv add 1
pv1[7 - 0] = pv[7 - 0]
Form protection value 1 of the 8 least significant bits of the 10-bit
protection value
pv2[1 - 0] = pv[9 - 8]
Form protection value 2 of the 2 most significant bits of the 10-bit
protection value