I would like to wakeup MAX17320 using a pushbutton switch.
The datasheet shows a circuit but it is not working on my setup:

What is the best way to do it?
KCC's Quizzes AQQ305 about a mutual exponentiation equation
1. Quote of the month: "A train station is where a train stops. A bus station is where a bus stops. I have a work station on my desk, so..." - unknown
2. Quiz AQQ305 about finding a mutual exponential equation
Good luck, and try to be among the
View All
October Monthly Blog Quiz! Read the blog, take the quiz, and you could win a gift card
Finding Your Circuit Chi — EMC Quiz!
Think you know EMC? Test your knowledge with our 5-question quiz!
Read the blog first, then take the challenge: Finding Your Circuit Chi
Every current flowing creates electromagnetic fields.
Strong EMC design
View All
MAX17320
Recommended for New Designs
The MAX17320 is a 38µA IQ stand-alone pack-side fuel gauge IC with protector, battery internal self-discharge detection, and optional SHA-256 authentication...
Datasheet
MAX17320 on Analog.com
I would like to wakeup MAX17320 using a pushbutton switch.
The datasheet shows a circuit but it is not working on my setup:

What is the best way to do it?
Hi jai123 ,
Thanks for the details. The warm-vs-cold behavior points to where the settings are stored.
The MAX17320 reloads its settings from NVM every time it powers up. Writing nConfig (0x1B0) or Config (0x00B) from firmware only changes the working copy, which is lost when the cells are disconnected. The factory NVM default for nConfig is 0x2290, which has PBen = 0. So on a cold connect, pushbutton wake is disabled until your firmware runs again. On a warm cycle, your firmware has already set PBen, which is why the button works then.
To confirm:
After a cold connect, and before your firmware writes anything, read nConfig (0x1B0) and HProtCfg2 (0x0F1). HProtCfg2 is read-only but reports whether pushbutton wake is actually active (PBEN bit). I expect PBen/PBEN = 0.
To fix: 2. Save your configuration to NVM once: nConfig = 0x2690, plus nPackCfg, nODSCTh, nIPrtTh1, nBalTh, nProtCfg, etc. Use the Copy NV Block procedure in the datasheet: unlock CommStat, write the registers, send E904h, check NVError, then do a full reset. 3. NVM can only be written 7 times, so please check how many writes remain first (command E29B, then read 0x1FD), and write all the settings in one pass.
After that, the settings should persist through a cold connect and the button should wake the part. Let me know what the step 1 readback shows.
Best,
Douglas
FOR CONTEXT jai123 replied:
Hi jai123 ,
Thanks for the details. The warm-vs-cold behavior points to where the settings are stored.
The MAX17320 reloads its settings from NVM every time it powers up. Writing nConfig (0x1B0) or Config (0x00B) from firmware only changes the working copy, which is lost when the cells are disconnected. The factory NVM default for nConfig is 0x2290, which has PBen = 0. So on a cold connect, pushbutton wake is disabled until your firmware runs again. On a warm cycle, your firmware has already set PBen, which is why the button works then.
To confirm:
After a cold connect, and before your firmware writes anything, read nConfig (0x1B0) and HProtCfg2 (0x0F1). HProtCfg2 is read-only but reports whether pushbutton wake is actually active (PBEN bit). I expect PBen/PBEN = 0.
To fix: 2. Save your configuration to NVM once: nConfig = 0x2690, plus nPackCfg, nODSCTh, nIPrtTh1, nBalTh, nProtCfg, etc. Use the Copy NV Block procedure in the datasheet: unlock CommStat, write the registers, send E904h, check NVError, then do a full reset. 3. NVM can only be written 7 times, so please check how many writes remain first (command E29B, then read 0x1FD), and write all the settings in one pass.
After that, the settings should persist through a cold connect and the button should wake the part. Let me know what the step 1 readback shows.
Best,
Douglas
FOR CONTEXT jai123 replied: