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.

BQ2022A: programming sequence

Part Number: BQ2022A

I am having some difficulties with the WRITE DATA MEMORY command.

I am using hardware that uses a UART with an open drain to generate the one wire signals.

I can issue the READ MEMORY/Page command successfully. I use the skip rom command (because there is only one one-wire device), I write three bytes (0xcc, 0, 0), then I read a crc byte (it is correct), then I read 132 bytes of data. The 4 generated bytes of CRC in this is all received correctly.

When I issue the WRITE DATA MEMORY command, I also issue a skip rom command, then I write three bytes (0x0f, 0, 0), then I read a byte of CRC (it is correct).

Next I start with each byte of data I want to write. I write the byte, then read a crc byte. This crc byte read from the device is always 0xFF (it is calculated to be something else)

Am I missing something?