Hi all,
I am communicating with the BQ4050 chip via I2C driver on my MCU (since the vendor lacks SMBus driver implementation).
I am successfully able to communicate with the device but since i do not read and verify PEC, it leads to read errors sometimes.
I am trying to set-up communication with error detection and therefore was wondering how to enable PEC in BQ4050? The reference manual is not clear on this. Also it only mentions that optional support for PEC is available on BQ4050 but does not tell any default state.
Is PEC byte available by default or do I have to enable it manually?
In case it is enabled by default, how to i calculate it? Do I take the whole packet (including the bytes sent to slave) or only the bytes received from the slave to calculate and verify the PEC (CRC8) ?
Thanks is advance.
Warm regards,
Ashutosh