Hello Ali22
Good day!
You're right! Sorry, I already did a more extensive search to review the information for this configuration. I apologize because my first answer was wrong.
Now answering your questions:
does SC33771C need to be reinitialized after entering sleep and then being awakened by CSB?
No, full reinitialization is not strictly required, but some aspects may need to be reconfigured depending on your setup:
CSB wake-up works by transitioning the CSB pin from low to high. This triggers the wake-up sequence, but the device may revert to default cluster ID (CID = 0x00) after sleep or reset.
If you previously assigned a custom CID (e.g., 0x01), you may need to reassign it after wake-up if the device no longer responds to it. This behavior has been observed in practice.
Registers like SYS_CFG2 retain their values across sleep cycles, but some threshold or configuration registers may revert to defaults.
will the Coulomb count related registers clear to 0 after initialization?
Yes, they can be cleared during initialization or reset, but they do not automatically reset to zero unless explicitly commanded:
The COULOMB_CNT1/2 and CC_NB_SAMPLES registers retain their values unless:
A reset command is issued via ADC_CFG [CC_RST] = 1.
A power-on reset (POR) or software reset is triggered.
During sleep, coulomb counting continues, and CC_NB_SAMPLES can saturate to 0xFFFF if not read/reset periodically. [mc33771 sl...Community]
Overflow is indicated by the CC_OVR_FLT flag, and if unmasked, it will activate the FAULT pin.
So, if your goal is to track Coulomb count continuously during sleep, make sure store the values before reset or reinitialization.
I found some posts in the community that might be helpful to you:
https://community.nxp.com/t5/Sensors/mc33771-sleep-coulomb-counter-issue/m-p/2175615
https://community.nxp.com/t5/NXP-Designs/MC33771-Initialization-Issue/m-p/966937
https://community.nxp.com/t5/Sensors/Issue-with-Coulomb-count-in-BMS-S32K144-Board/m-p/1382628
https://community.nxp.com/t5/Power-Management/Counting-problem-with-Coulomb-Count-in-BMS-MC33771B/m-...
I hope this information has helped you, please let me know if you need help with anything else.
Have a great day and best of luck.