Read Motorola DBC start bits on a 16-byte CAN FD frame
This synthetic BMS frame shows a signed 16-bit pack current and a cell voltage field in the second half of the payload. In the DBC convention used here, a Motorola start bit marks the most significant bit. In the diagram, each byte displays its high bit on the left.
Follow the bit positions from the DBC start and sign-extend the completed raw integer before applying scale and offset. The diagram and generated C99 helpers use the same positions. Use your capture’s message definition to confirm start bits, scaling and units.
Formulas
Motorola next position = current bit − 1 within a byte, or current bit + 15 on crossing its bit 0
Signed raw = unsigned raw − 2^length when the sign bit is set
Physical value = raw × scale + offset
Worked example
The word FF 38 gives signed raw −200 and −20.0 A at 0.1 A/bit. Start bit 71 addresses the most significant bit of the ninth byte. The next 16 bits give 0x0D20, or 3.36 V at 1 mV/bit.
Frequently asked questions
Does the DBC Motorola start bit point to the LSB or MSB?
It points to the MSB in the DBC convention this tool uses. Confirm the convention when copying a position from a logger UI.
Where is Motorola start bit 71 in a 16-byte payload?
It is bit 7 of zero-based byte 8, the ninth byte. A 16-bit signal there spans bytes 8 and 9.
When do I apply the scale to a negative current?
Extract the whole bitfield and interpret the signed raw integer first. Then apply the signal’s scale and offset.