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-R2: Is there a way to Simulate the Condition Flag ?

Part Number: BQ40Z50-R2

Hello TI,

Is there a way to Simulate the Condition Flag?

The CF (Bit 7): Condition Flag is High when MaxError() > Max Error Limit (condition cycle needed). Is it possible to simulate this scenario?

Can the MaxError() be manually modified? or is only possible to read it?

Thanks and regards

  • Hi Enrique,

    MaxError() is read only so no, it cannot be modified. The only ways to set that flag would be to 1) perform a full device reset or 2) prevent a valid Qmax update from happening, which could be expedited by lowering the Time Cycle Equivalent parameter.

    Best,

    Jessica

  • Hello Jessica,

    Many thanks for your answer. Unsuccessfully, after the full device reset, the CF stays only HIGH for around 4s. Is there a way to keep the CF HIGH after a reset?

    Regards

  • Hello Enrique,

    Is your MaxError() over the threshold you set in dataflash for the condition flag to set? Can you share your .gg file export so we can take a look?

    Sincerely,

    Wyatt Keller

  • Hello Wyatt,

    Many thanks for taking the time to check this out. The MaxError() is 1% ,so is not over the Max Error Limit. I successfully made the CF HIGH by setting the registers to:

    • Time Cycle Equivalent = 6h
    • Cycle Delta = 0.5%

    Could you explain why does the Max Error jumps exactly after the settings are changed? Is is possible to calculate how much the Max Error() will immediately change when changing this settings?

    Regards,

    -Enrique