Quantcast
Channel: Power management forum - Recent Threads
Viewing all articles
Browse latest Browse all 35901

Programming the bq2084 data flash

$
0
0

Hi

I have a problem writing to the internal data flash of the bq2084.

I'm using the I2C interface of an AT90CAN128 AVR to do it.
I'm able to do a block read of 16 bytes with commands 0x60 onwards. The data read seems to correspond with the default data presented in the bq2084 datasheet. However, I'm not able to update the content of the data flash.

The steps done trying to update flash:

1. Send start condition
2. Send address 0001011 plus 0 for write
3. Send byte 0x60 for block read/write command
4. Send repeated start
5. Send address plus 1 for read
6. Receive 1 byte with length of block and acknowledge
7. Read the number of bytes indicated from 6, and reply with acknowledge except for the last
8. Send stop condition
9. Change the data read to the wanted
10. Send start
11. Send address plus write
12. Send command 0x60
13. Send 16 as number of bytes to be send
14. Send the 16 data bytes
15. Send stop condition

This procedure is then repeated for the entire address space.

But if I read the data flash afterwards, the data hasn't changed.

Any ideas as to why this problem occurs?

Sincerly

Jesper Larsen


Viewing all articles
Browse latest Browse all 35901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>