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.

BQ40Z50: BQ40Z50 Application problem

Part Number: BQ40Z50
Other Parts Discussed in Thread: BQSTUDIO,

I now set several parameters of the battery and the design capacity.

The total voltage of the interface is normal and the voltage of each battery is normal. The switch charge of MOS can also be controlled.           

Problem: current is not very accurate, more than 3A will protect.         

MOS closes the alarm bit like the following figure

I tried to set the parameters of the current in the register, which were not effective, and still showed protection when discharging 3A. Are there any related parameters to be set

How is callbration gas  available?

  • The calibration can only correct by about 25%, so if the error in current measurement is more than that, it will not be able to calibrate in bqStudio.
    Most likely the issue is that the sense resistor that you are using is not 1mOhm, and since the default configuration of the calibration settings is for 1mOhms, you may have to manually change the "CC Gain" and "Capacity Gain" in the "Calibration" section of data memory to your sense resistor value and then calibrate again and then it should work in bqStudio.
    Regards,
    Swami
  • Now it is certain that the discharge ASCC alarm, and the actual current is not greater than the SCC TH (2:0) /Rs (the voltage of the actual resistance at both ends and not so large voltage 4.5Mv), so it is more strange

    .

  • Please post a bqStudio log file during the test, as well as your gg file.
    Let me check why you are seeing this issue.
    Regards,
    Swami
  • 1、Log file in the appendix;

    2、The difference between BQ40Z50R1 and BQ40Z50R2?

    File created Mon Jul 02 09:42:16 2018
    
    Function Open Container at time Mon Jul 02 09:42:16 2018
      String: ./config/4500_1_06-bq40z50R1.bqz
    SetInfo called with Keyword: DeviceName   Value: BQ40Z50-R1
    SetInfo called with Keyword: DeviceIdentifier   Value: BQ40Z50-R1 V1.06 BUILD 36
    SetInfo called with Keyword: BaseHardware   Value: BQ9000
    SetInfo called with Keyword: GGProtocol   Value: SMBUS
    SetInfo called with Keyword: ROMProtocol   Value: SMBUS
    SetInfo called with Keyword: SMB_NewMacCMD   Value: 0X44
    SetInfo called with Keyword: MAC_GoToROM   Value: 0XF00
    SetInfo called with Keyword: MAC_SealCmd   Value: 0X0040
    SetInfo called with Keyword: MAC_ResetDevice   Value: 0X0041
    SetInfo called with Keyword: MemoryAccessMethod   Value: BQ40Z5X
    SetInfo called with Keyword: bcfgxBaseAddr   Value: 0X4000
    SetInfo called with Keyword: ChemistryMethod   Value: BQ40Z5X
    SetInfo called with Keyword: Use_Ra0_charge   Value: 1
    SetInfo called with Keyword: CalEnableFlagCmdUsesMAC   Value: TRUE
    SetInfo called with Keyword: CalEnableFlagCmd   Value: 0X0057
    SetInfo called with Keyword: CalEnableFlagMask   Value: 0X8000
    SetInfo called with Keyword: Cal_TS1   Value: TRUE
    SetInfo called with Keyword: Cal_TS2   Value: TRUE
    SetInfo called with Keyword: Cal_TS3   Value: TRUE
    SetInfo called with Keyword: Cal_TS4   Value: TRUE
    SetInfo called with Keyword: GGProtocol   Value: SMB
    SetInfo called with Keyword: GGProtocol   Value: SMB
    SetInfo called with Keyword: SMB_TargetAddr   Value: 23
    
    SetInfo parameters called from function RefreshAllData at time Mon Jul 02 09:42:28 2018
    DeviceName: bq40z50-R1
    DeviceIdentifier: bq40z50-R1 v1.06 build 36
    GGProtocol: 0
    Enum: SMBus | I2C | HDQ | SDQ 
    MemoryAccessMethod: 1
    Enum:  BQ30Z5X, BQ40Z5X, I2CFWSDKMODE, I2CC816SDK, BQ275XX, HH8101, HH8035, HH8036, HH8034, HH8037
    SMB_NewMACCMD: 0x44
    SMB_TargetAddr: 0x17
    I2C_TargetAddr: 0xaa
    MacCmdInput: 0x00
    MAC_GoToROM: 0x0f00
    ROMProtocol: 0x00
    ExecuteFWCmd: 0x08
    CalibrationMethod: 0
    ChemistryMethod: 0x00
    bcfgxBaseAddr: 0x4000
    SCB_NewMacBase: 0x3e
    ROM_SMBus over I2C TgtAddress: 0x16
    SCB_Currentaddr: 0x14
    DF_Big_Endian: 0x00
    SupportsSoftReset: 0x00
    IFReadOnly: 0x00
    DFReadOnly: 0x00
    ConfigUpdate: 0x00
    CalSingleCellCCABCAMask: 0x0c00
    CalEnableRequired: 0x00
    CalEnableFlagUsesMAC: 0x01
    CalEnableFlagCmd: 0x0057
    CalEnableFlagMask: 0x8000
    CalEnableStatusDFFlag: 
    CalActiveRequired: 0x00
    CalActiveFlagCmdUsesMAC: 0x00
    CalActiveFlagCmd: 0xff
    CalActiveFlagMask: 0x1000
    CalActiveStatusDFFlag: 
    CalCCAndBoardOffsetMask: 0x00
    RawAnalogDataAddress: 0x79
    RawAnalogDataSize: 7
    RawAnalogDataConvCntOffset: 0
    RawAnalogDataCurrentOffset: 1
    RawAnalogDataVoltageOffset: 3
    RawAnalogDataTempOffset: 5
    Calibration Pack Gain Scale: 65536
    Calibration Battery Gain Scale: 65536
    Calibration Current Capacity Gain Scale: -2147483648
    SecureAreaUnlockAddr: 98
    SecureAreaDataSize: 1
    SecureAreaUnlockCmd: 148
    SecureSubClasses: ��
    StaticChemChecksumAddr: 0x0017
    Supports Ra0_Charge: 1
    MAC Seal State: cmd 54,byte offset 01,seal bit mask 06
    MAC Seal Flag: 06
    MAC UnSeal Flag: 04
    MAC Full Access Flag: 02
    Option: NOOPTION
    SetInfo called with Keyword: SMB_TargetAddr   Value: 23
    SetInfo called with Keyword: SMB_TargetAddr   Value: 23
    
    SetInfo parameters called from function RefreshAllData at time Mon Jul 02 10:57:08 2018
    DeviceName: bq40z50-R1
    DeviceIdentifier: bq40z50-R1 v1.06 build 36
    GGProtocol: 0
    Enum: SMBus | I2C | HDQ | SDQ 
    MemoryAccessMethod: 1
    Enum:  BQ30Z5X, BQ40Z5X, I2CFWSDKMODE, I2CC816SDK, BQ275XX, HH8101, HH8035, HH8036, HH8034, HH8037
    SMB_NewMACCMD: 0x44
    SMB_TargetAddr: 0x17
    I2C_TargetAddr: 0xaa
    MacCmdInput: 0x00
    MAC_GoToROM: 0x0f00
    ROMProtocol: 0x00
    ExecuteFWCmd: 0x08
    CalibrationMethod: 0
    ChemistryMethod: 0x00
    bcfgxBaseAddr: 0x4000
    SCB_NewMacBase: 0x3e
    ROM_SMBus over I2C TgtAddress: 0x16
    SCB_Currentaddr: 0x14
    DF_Big_Endian: 0x00
    SupportsSoftReset: 0x00
    IFReadOnly: 0x00
    DFReadOnly: 0x00
    ConfigUpdate: 0x00
    CalSingleCellCCABCAMask: 0x0c00
    CalEnableRequired: 0x00
    CalEnableFlagUsesMAC: 0x01
    CalEnableFlagCmd: 0x0057
    CalEnableFlagMask: 0x8000
    CalEnableStatusDFFlag: 
    CalActiveRequired: 0x00
    CalActiveFlagCmdUsesMAC: 0x00
    CalActiveFlagCmd: 0xff
    CalActiveFlagMask: 0x1000
    CalActiveStatusDFFlag: 
    CalCCAndBoardOffsetMask: 0x00
    RawAnalogDataAddress: 0x79
    RawAnalogDataSize: 7
    RawAnalogDataConvCntOffset: 0
    RawAnalogDataCurrentOffset: 1
    RawAnalogDataVoltageOffset: 3
    RawAnalogDataTempOffset: 5
    Calibration Pack Gain Scale: 65536
    Calibration Battery Gain Scale: 65536
    Calibration Current Capacity Gain Scale: -2147483648
    SecureAreaUnlockAddr: 98
    SecureAreaDataSize: 1
    SecureAreaUnlockCmd: 148
    SecureSubClasses: ��
    StaticChemChecksumAddr: 0x0017
    Supports Ra0_Charge: 1
    MAC Seal State: cmd 54,byte offset 01,seal bit mask 06
    MAC Seal Flag: 06
    MAC UnSeal Flag: 04
    MAC Full Access Flag: 02
    Option: NOOPTION
    
    SetInfo parameters called from function RefreshAllData at time Mon Jul 02 11:10:49 2018
    DeviceName: bq40z50-R1
    DeviceIdentifier: bq40z50-R1 v1.06 build 36
    GGProtocol: 0
    Enum: SMBus | I2C | HDQ | SDQ 
    MemoryAccessMethod: 1
    Enum:  BQ30Z5X, BQ40Z5X, I2CFWSDKMODE, I2CC816SDK, BQ275XX, HH8101, HH8035, HH8036, HH8034, HH8037
    SMB_NewMACCMD: 0x44
    SMB_TargetAddr: 0x17
    I2C_TargetAddr: 0xaa
    MacCmdInput: 0x00
    MAC_GoToROM: 0x0f00
    ROMProtocol: 0x00
    ExecuteFWCmd: 0x08
    CalibrationMethod: 0
    ChemistryMethod: 0x00
    bcfgxBaseAddr: 0x4000
    SCB_NewMacBase: 0x3e
    ROM_SMBus over I2C TgtAddress: 0x16
    SCB_Currentaddr: 0x14
    DF_Big_Endian: 0x00
    SupportsSoftReset: 0x00
    IFReadOnly: 0x00
    DFReadOnly: 0x00
    ConfigUpdate: 0x00
    CalSingleCellCCABCAMask: 0x0c00
    CalEnableRequired: 0x00
    CalEnableFlagUsesMAC: 0x01
    CalEnableFlagCmd: 0x0057
    CalEnableFlagMask: 0x8000
    CalEnableStatusDFFlag: 
    CalActiveRequired: 0x00
    CalActiveFlagCmdUsesMAC: 0x00
    CalActiveFlagCmd: 0xff
    CalActiveFlagMask: 0x1000
    CalActiveStatusDFFlag: 
    CalCCAndBoardOffsetMask: 0x00
    RawAnalogDataAddress: 0x79
    RawAnalogDataSize: 7
    RawAnalogDataConvCntOffset: 0
    RawAnalogDataCurrentOffset: 1
    RawAnalogDataVoltageOffset: 3
    RawAnalogDataTempOffset: 5
    Calibration Pack Gain Scale: 65536
    Calibration Battery Gain Scale: 65536
    Calibration Current Capacity Gain Scale: -2147483648
    SecureAreaUnlockAddr: 98
    SecureAreaDataSize: 1
    SecureAreaUnlockCmd: 148
    SecureSubClasses: ��
    StaticChemChecksumAddr: 0x0017
    Supports Ra0_Charge: 1
    MAC Seal State: cmd 54,byte offset 01,seal bit mask 06
    MAC Seal Flag: 06
    MAC UnSeal Flag: 04
    MAC Full Access Flag: 02
    Option: NOOPTION
    
    Function Chemistry programming at time Mon Jul 02 11:58:42 2018
      String: Base Chem ID 0100 programmed. Device supports HF resistance but data is not present in database.SetInfo called with Keyword: SMB_TargetAddr   Value: 23
    
    SetInfo parameters called from function RefreshAllData at time Mon Jul 02 15:12:10 2018
    DeviceName: bq40z50-R1
    DeviceIdentifier: bq40z50-R1 v1.06 build 36
    GGProtocol: 0
    Enum: SMBus | I2C | HDQ | SDQ 
    MemoryAccessMethod: 1
    Enum:  BQ30Z5X, BQ40Z5X, I2CFWSDKMODE, I2CC816SDK, BQ275XX, HH8101, HH8035, HH8036, HH8034, HH8037
    SMB_NewMACCMD: 0x44
    SMB_TargetAddr: 0x17
    I2C_TargetAddr: 0xaa
    MacCmdInput: 0x00
    MAC_GoToROM: 0x0f00
    ROMProtocol: 0x00
    ExecuteFWCmd: 0x08
    CalibrationMethod: 0
    ChemistryMethod: 0x00
    bcfgxBaseAddr: 0x4000
    SCB_NewMacBase: 0x3e
    ROM_SMBus over I2C TgtAddress: 0x16
    SCB_Currentaddr: 0x14
    DF_Big_Endian: 0x00
    SupportsSoftReset: 0x00
    IFReadOnly: 0x00
    DFReadOnly: 0x00
    ConfigUpdate: 0x00
    CalSingleCellCCABCAMask: 0x0c00
    CalEnableRequired: 0x00
    CalEnableFlagUsesMAC: 0x01
    CalEnableFlagCmd: 0x0057
    CalEnableFlagMask: 0x8000
    CalEnableStatusDFFlag: 
    CalActiveRequired: 0x00
    CalActiveFlagCmdUsesMAC: 0x00
    CalActiveFlagCmd: 0xff
    CalActiveFlagMask: 0x1000
    CalActiveStatusDFFlag: 
    CalCCAndBoardOffsetMask: 0x00
    RawAnalogDataAddress: 0x79
    RawAnalogDataSize: 7
    RawAnalogDataConvCntOffset: 0
    RawAnalogDataCurrentOffset: 1
    RawAnalogDataVoltageOffset: 3
    RawAnalogDataTempOffset: 5
    Calibration Pack Gain Scale: 65536
    Calibration Battery Gain Scale: 65536
    Calibration Current Capacity Gain Scale: -2147483648
    SecureAreaUnlockAddr: 98
    SecureAreaDataSize: 1
    SecureAreaUnlockCmd: 148
    SecureSubClasses: ��
    StaticChemChecksumAddr: 0x0017
    Supports Ra0_Charge: 1
    MAC Seal State: cmd 54,byte offset 01,seal bit mask 06
    MAC Seal Flag: 06
    MAC UnSeal Flag: 04
    MAC Full Access Flag: 02
    Option: NOOPTION
    
    Function Chemistry programming at time Mon Jul 02 15:15:13 2018
      String: Base Chem ID 0100 programmed. Device supports HF resistance but data is not present in database.

  • Hi Garin,

    Could you please post a log from bqStudio during the test:

    as well as your gg file:

    The R1 to R2 change spec is available at

    Regards,

    Swami

  • The problem has been solved. It's a hardware design problem
  • The current problem is that the BQ40Z50-R2 switches and lights can only be controlled independently, and the switches we need to match the Led function as follows:           

    1. The soft start of the system can be realized by long switch.        

    2, during the charging process, LED can display electricity for a long time.           

    3, through the short press button, let LED display electricity;           

    4, the battery capacity is 10%, LED flicker          

    Now the function of buttons and LED can not be controlled each other.

  • The current problem is that the BQ40Z50-R2 switches and lights can only be controlled independently, and the switches we need to match the Led function as follows:
    1. The soft start of the system can be realized by long switch.
    2, during the charging process, LED can display electricity for a long time.
    3, through the short press button, let LED display electricity;
    4, the battery capacity is 10%, LED flicker
    Now the function of buttons and LED can not be controlled each other.
  • Unfortunately the LED and Display button functionality of the bq40z50-R2 is not customizable.
    The different modes and settings for the LED that are available are described in Section 8. ("LED Display") of the TRM for reference.
    Regards,
    Swami