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.

BQ40Z80EVM-020: How to read and write data in "bqStudio - Advanced Comm SMB" ?

Part Number: BQ40Z80EVM-020

Hi everyone,

I want to ask some quesitons,

Q1) Is Word Read/Write for SBS Command and Block Read/Write for Mac Command?

Q2) How can I do if I want to write and read the parameter of SBS command (0x01 RemainingCapacityAlarm)?

Q3) How can I do if I want to write the parameter of MAC command (0x0023 LifetimeDataCollection)?

Q4) How can I confrim that the parameter I write is seccessful ?(if the function is read only, like Q3)

Please tell me the process of the operation, so that I can get the imformation from the board.

Sincerely,

Eric Tsai

  • Hi Eric,

    1. MAC Commands only use block read/write but the other SBS commands can be word or block. To determine which one to use, look at the Protocol.

    2. To read from RemainingCapacityAlarm(), perform a Read Word with command 0x01. To write, perform a write word with command 0x01 and the value you want to set.

     

    3. Perform a write block command to 0x44 with data 23 00 as shown below. Please note that this command toggles Lifetime Data Collection enable

    4. To confirm step 3 was successful, you will need to check the LF_EN (bit 5) of the ManufacturingStatus register. 

    Best,

    Jessica