Post Go back to editing

How to implement the wake-up using a pushbutton switch and without connecting the USB on MAX17320?

Category: Hardware
Product Number: MAX17320

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?

Parents
  • Hi  ,

    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:
     

    1. 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   replied:

Reply
  • Hi  ,

    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:
     

    1. 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   replied:

Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.