This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS38700: How to generate PEC byte

Genius 16035 points
Part Number: TPS38700

Hello,

I can't find any descirption about how to generation PEC byte of TPS38700.
Could you tell me it?

Regards,
Oba

  • Hello Oba, 

    PEC uses CRC-8 represented by the polynomial C(x)=x^8 + x^2 + x + 1, with CRC initial value set to 0x00. The PEC calculation includes all bytes in the transmission, including address, command and data. The PEC calculation does not include ACK or NACK bits or START,STOP or REPEATED START conditions. 

    Regards, 

    Oscar Ambriz