Quantcast
Viewing all articles
Browse latest Browse all 35901

How to read or write data to BQ33100 through the SMBus

I use the STM32F103 to communicate with BQ33100 through the SMBus.And the STM32F103 print the data received from the BQ33100 to PC through the USART.

Now,I have some questions below:

1. I want to read the Voltage.So I use the 0x09 command of the SBS COMMANDS list, but I can't recevie the ACK of the SBS COMMAND from BQ33100Image may be NSFW.
Clik here to view.
.

However, I can receive the ACK after sending the 0x00 command. And the returning data are 00 00.

Image may be NSFW.
Clik here to view.

So I want to know the whole detailed steps about the reading and writting transmitting format or squence  which I did't find in the datasheet.

My data transmitting is below:

a. Start

b. Send the Slave Address(0x16) and the write flag

c. Wait the ACK

d. Send the Command Code(0x09)

e. Wait the ACK

2. I want to set the OC Dsg in the flash,the OC Dsg location is defined as: Subclass=1,offset = 11.

My transmitting sequence is below:

a. Start

b. Send the Slave Address(0x16) and the write flag

c. Wait the ACK

d. Send the DataFlashSubClassID Command(0x77)

e. Wait the ACK

But I also can't recevie the ACK(e), what is the correct method for accessing the flash?

3. I didn't find the correct transmitting sequence by using the MAC Command, such as 0x0020.

 

My email address is weijingchen@nuaa.edu.cn

Thanks for your help!!


Viewing all articles
Browse latest Browse all 35901

Trending Articles



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