Post Go back to editing

MAX17201 system-side fuel gauge – HIBERNATE charge accounting, CSP/CSN orientation, and protected-pack recovery

Category: Hardware
Product Number: MAX17201

I am evaluating the MAX17201G+T as a system-side fuel gauge for a battery-powered automotive diagnostic data logger and would appreciate clarification on several points before committing to the architecture.

Application

  • 1S protected Li-polymer battery: Jauch LP735977JH, part 246524

  • 3.7 V nominal, 4.20 V charge voltage, 4.8 Ah minimum capacity

  • Battery exposes only P+ and P−; internal PCM/protection circuitry is inside the pack

  • Charger: TI BQ25628E NVDC PowerPath

  • Main processor: ESP32-S3

  • USB charging must continue while the ESP32 and normal system electronics are completely OFF

  • Battery charging safety is handled independently by the charger plus a separate pouch-temperature hardware interlock; MAX17201 is not being used as a charging-safety device

  • Proposed MAX17201 implementation: system-side, with approximately 5 mΩ four-terminal shunt in the protected battery-negative return

  • Normal product OFF state would use HIBERNATE, not SHUTDOWN

The primary requirement is that fuel gauging continue or recover deterministically during charge-while-host-OFF, including after long storage or complete battery/gauge power loss.

I have reviewed the MAX17201/MAX17215 Rev. 2 datasheet, UG6259 System Side Implementation Guide, and UG6260 Software Implementation Guide.

1. Does HIBERNATE continuously accumulate charge?

The datasheet describes HIBERNATE as retaining full fuel-gauge functionality at a reduced monitoring rate and automatically returning to ACTIVE after current exceeds HibThreshold for HibExitTime.

Suppose the gauge is already in HIBERNATE with the ESP32 completely powered OFF and USB charging suddenly changes battery current from approximately 0 A to +1 A.

Is QH/raw coulomb accumulation continuous during the interval before HIBERNATE exits to ACTIVE, or can some of that initial charge be missed or approximated?

The Current register updating only every approximately 5.625 seconds is not itself a concern if the internal coulomb accumulator is still integrating continuously.

If there is an error during this transition, is there a specified worst-case error or recommended Hibernate configuration for this application?

2. Please confirm CSP/CSN orientation

For our proposed low-side system-side topology:

Battery P− → 5 mΩ shunt → complete system/charger ground

My reading of the MAX17201 datasheet pin table and Figure 1 is:

  • CSP → battery/cell side of the shunt

  • CSN → system/load side of the shunt

  • exposed pad → CSN/system-ground side

However, wording in UG6259 appears to state that CSN should route to the battery side of the sense resistor.

Can ADI please confirm the correct orientation for MAX17201 system-side operation and whether that UG6259 sentence is an error?

3. Deep-discharge / protected-pack recovery

The Jauch pack contains its own PCM, which may disconnect the external battery terminals during over-discharge and reconnect them when charging conditions are restored.

We do not want MAX17201 to enter SHUTDOWN during normal storage. We are considering setting nVShdn below the battery PCM's over-discharge region, approximately 2.30 V, subject to ADI approval.

Could a slow battery-voltage collapse or PCM disconnect/recovery sequence leave MAX17201 in SHUTDOWN without producing a true IC power reset?

If so:

  • Does increasing battery voltage wake it?

  • Does battery charge current wake it?

  • Or is a communication-line rising edge / IC reset always required?

This is important because the ESP32 is intentionally OFF during autonomous charging.

What configuration does ADI recommend to guarantee autonomous fuel-gauge recovery with a protected two-wire battery pack?

4. Complete power loss and NVM recovery

Please confirm that after MAX17201 completely loses battery power and later powers up again:

  • the programmed battery model and application configuration are automatically recalled from NVM;

  • no host configuration download is required before normal gauging resumes; and

  • current/charge accumulation can restart without the ESP32 waking.

Also, is there any startup interval after power is restored during which battery current can pass through the shunt but is not accumulated internally?

I understand that FStat.DNR may remain set while gauge outputs initialize; I am specifically asking about internal coulomb accumulation during that startup interval, not when SOC registers become safe for the host to display.

5. Very-low-current long-term storage

Our complete product OFF-current target is ≤30 µA, so the external battery load during storage may be only approximately 5–30 µA.

With a 5 mΩ shunt, this is well below the useful resolution/offset of the normal Current register.

Does MAX17201 compensate for its own supply current when updating QH, RepCap and SOC?

Is COff or another configuration/calibration method recommended for maintaining useful long-term SOC accuracy with external loads in the 5–30 µA range?

I am not expecting MAX17201 to serve as the instrument for measuring the product's actual microamp OFF current; that will be measured externally.

6. New-battery replacement / NVM endurance

The battery is serviceable. When an old LP735977JH is replaced by another battery of the same controlled type, we want to:

  • retain the validated cell model and application configuration;

  • clear or reinitialize learned capacity/age/history associated with the old battery; and

  • avoid consuming unnecessary user NVM writes.

What battery-replacement procedure does ADI recommend for MAX17201?

Also, are there recommended settings or practices for managing the documented finite learned/history NVM write count in equipment expected to remain in service for many years?

7. ModelGauge configuration

For a conventional 4.20 V Li-polymer cell around 4.8 Ah, would ADI recommend beginning with ModelGauge m5 EZ, or would you recommend obtaining characterization data and programming a custom battery model?

I can provide the Jauch battery datasheet and proposed schematic if that would help.

The main architecture question is whether MAX17201 can operate as a genuinely autonomous system-side gauge while the host processor is completely OFF, including normal HIBERNATE charging and recovery after protected-pack deep discharge or complete gauge power loss.

Thank you for any guidance.

    •  Analog Employees 
    on Sep 4, 2026 4:58 PM Contains AI Generated Content
    0

    Thank you for the detailed application description and thoughtful questions. Your proposed architecture — system-side MAX17201 with a low-side sense resistor on the protected battery's negative return, HIBERNATE as the normal low-power state, and autonomous charge-while-host-OFF operation — is well suited to the MAX17201's capabilities. I'll address each question in turn.

    ---
    1. Coulomb Accumulation During HIBERNATE

    Yes, the MAX17201's internal coulomb accumulator integrates current continuously in HIBERNATE. The "reduced monitoring rate" described in the datasheet refers to how frequently the firmware algorithms process and update the fuel-gauge output registers (Current, RepCap, SOC, etc.), not to the underlying analog integration. The hardware current-sense front end and its charge accumulator run without interruption regardless of the ACTIVE/HIBERNATE state.

    In your scenario — gauge in HIBERNATE, ESP32 OFF, USB charger suddenly applies ~1 A — the sequence is:

    1. The analog coulomb accumulator captures the charge immediately, with no gap.
    2. The firmware detects that the current exceeds HibThreshold.
    3. After HibExitTime consecutive above-threshold samples, the gauge transitions to ACTIVE and resumes the normal (faster) register update rate.

    Charge flowing during the transition interval (before HIBERNATE fully exits to ACTIVE) is not lost or approximated — it is captured by the hardware accumulator and incorporated into QH and the capacity/SOC registers once the firmware processes it.

    Recommended HibCFG configuration for your application: Set HibThreshold so that your expected charge current (~1 A) clearly exceeds the threshold, and keep HibExitTime short (1–2 counts) so the gauge returns to ACTIVE promptly after charging begins. A HibScalar value of 0–2 is typically appropriate. The defaults are generally reasonable for a single-cell application, but you may want to tune HibEnterTime to avoid excessive cycling if your system has periodic low-duty-cycle wake events.

    ---
    2. CSP / CSN Orientation — Confirmed

    Your reading of the MAX17201 datasheet (pin table and Figure 1) is correct for your topology:

    ┌─────────────┬─────────────────────────────────────────────────────────────────────────────┐
    │ Net │ Connection │
    ├─────────────┼─────────────────────────────────────────────────────────────────────────────┤
    │ CSP │ Battery-side (cell-side) of the sense resistor — connects toward battery P− │
    ├─────────────┼─────────────────────────────────────────────────────────────────────────────┤
    │ CSN │ System/load-side of the sense resistor — connects toward system ground │
    ├─────────────┼─────────────────────────────────────────────────────────────────────────────┤
    │ Exposed pad │ Tied to CSN / system ground │
    └─────────────┴─────────────────────────────────────────────────────────────────────────────┘

    With this orientation, charging current (into the battery) reads as positive and discharge current reads as negative, which is the expected convention for the fuel-gauge algorithm.

    The wording in UG6259 that appears to reverse CSP and CSN is a documentation error that we can try to clear up. The datasheet pin definitions and application circuit (Figure 1) are authoritative. We appreciate you flagging this — we will work to get the user guide corrected.

    ---
    3. Deep-Discharge / Protected-Pack Recovery

    This is an important consideration for your two-wire protected pack, and there are a few scenarios to distinguish:

    Normal storage with HIBERNATE: As long as battery voltage remains above the UVLO (under-voltage lockout) threshold of the MAX17201 — typically ~2.1 V — and above your configured nVShdn threshold, the gauge remains in HIBERNATE and does not enter SHUTDOWN. Setting nVShdn to ~2.30 V (below the PCM's over-discharge cutoff) is a reasonable approach that keeps the gauge alive through normal storage while allowing the PCM to disconnect before the gauge shuts down.

    SHUTDOWN entry (voltage below nVShdn): If battery voltage does fall below nVShdn — for example, due to a very long storage period — the IC enters SHUTDOWN, which is effectively a power-off state with minimal current draw. Recovery from SHUTDOWN occurs as follows:

    - Rising battery voltage alone CAN wake the IC. When voltage rises above the POR (power-on reset) threshold, the MAX17201 performs a full hardware reset, recalls all configuration and battery-model data from NVM, and begins gauging autonomously. No host communication or I2C rising edge is required.
    - This means in your scenario — charger connected, PCM reconnects, battery voltage rises — the gauge will recover on its own without the ESP32.

    Potential concern — slow voltage transitions: If the battery voltage collapses very slowly near the POR/UVLO region, there is a theoretical risk of the IC entering an indeterminate state. In practice, the PCM disconnect is typically a sharp transition (the FET switches off), and charger-driven reconnection is similarly clean. However, as a precaution:

    - Configure nVShdn with appropriate hysteresis relative to the PCM's reconnect voltage.
    - Ensure your layout provides clean, low-impedance connections to BATT and GND so the IC sees a clean voltage transition.
    - When the ESP32 does eventually wake, have it read FStat.POR to detect whether a power-on reset occurred and, if so, confirm gauge status before relying on SOC readings.

    ---
    4. Complete Power Loss and NVM Recovery

    Confirmed — after the MAX17201 completely loses power and subsequently powers up again:

    1. The programmed battery model (OCV table, capacity table) and all application configuration are automatically recalled from NVM during the POR sequence. This is a hardware-driven recall that occurs before firmware execution begins.
    2. No host configuration download is required. The gauge begins autonomous operation using the NVM-stored configuration. This is a fundamental design feature of the MAX17201 — all EZ/custom model data is stored in non-volatile memory specifically so the gauge can operate standalone.
    3. Current and charge accumulation begin without ESP32 involvement. After POR completes and the analog front end initializes, coulomb counting starts automatically.

    Regarding the startup interval: There is a brief initialization period after POR during which the ADC is performing its first conversion cycles and the gauge algorithm is establishing initial conditions. During this window:

    - FStat.DNR (Data Not Ready) is set, as you noted.
    - The analog front end requires a small number of conversion cycles to begin producing valid current measurements — typically on the order of the first 1–2 conversion periods (~175 ms each for the current channel).
    - During these very first milliseconds of startup, charge through the shunt may not be fully accumulated until the ADC completes its first valid conversion.

    In practice, this startup gap is extremely short relative to any real charging scenario. If your charger's soft-start ramp is on the order of milliseconds (which is typical for the BQ25628E), the initial inrush may partially overlap with this window, but the total missed charge would be negligible relative to a 4.8 Ah cell.

    ---
    5. Very-Low-Current Long-Term Storage

    You are correct that 5–30 µA through a 5 mΩ shunt produces 0.025–0.15 µV, which is well below the current-register LSB (~1.5625 µV/LSB). The coulomb counter will not meaningfully resolve this current directly.

    Self-discharge compensation: The MAX17201's ModelGauge m5 algorithm does not rely solely on coulomb counting. It blends coulomb counting with voltage-based model tracking. During long storage at very low currents, the voltage-based portion of the algorithm dominates and tracks SOC by comparing measured OCV against the stored battery model. This is actually the regime where the ModelGauge m5 approach excels — it can track slow SOC drift through voltage correlation even when the current is below the coulomb-counter's resolution.

    IC supply current: The MAX17201 does account for its own quiescent current internally when updating the fuel-gauge algorithm. You do not need to externally compensate for gauge self-consumption.

    COff (Current Offset): The COff register is available for calibrating out systematic DC offset in the current measurement path (e.g., PCB-level thermocouple effects, sense-resistor asymmetry). For your application, we recommend:

    - Perform a one-time COff calibration during production with zero current flowing through the sense resistor (battery disconnected or in true open-circuit rest).
    - Store the calibrated COff value in NVM.
    - This improves accuracy of the coulomb counter in the ~100 µA to ~1 mA range where it begins to resolve current, and prevents systematic offset from biasing the long-term capacity tracking.

    For the 5–30 µA range specifically, accept that coulomb counting is not the operative mechanism — the voltage-model correlation will maintain SOC accuracy over weeks to months of storage.

    ---
    6. Battery Replacement and NVM Endurance

    Recommended battery-replacement procedure (same cell type, retaining model/configuration):

    1. With the new battery connected and the ESP32 awake, write the FullCapRep, FullCapNom, RepCap, MixCap, dQAcc, and dPAcc registers to initial-condition values appropriate for the new cell's initial SOC (which you can estimate from its OCV at the time of insertion).
    2. Clear learned history by resetting Cycles, TimerH, Age, and the QRTable entries to their default/initial values.
    3. Set FStat.POR = 1 to trigger the gauge to re-run its initialization sequence, or alternatively issue a soft reset.
    4. This procedure does not require an NVM write — the reinitialized values reside in volatile shadow RAM and will be learned/saved normally through subsequent operation.

    This approach retains your validated cell model and configuration in NVM while giving the gauge a clean starting point for the new cell.

    NVM write endurance management:

    The MAX17201 NVM supports a finite number of writes (refer to the datasheet for the guaranteed minimum). To manage endurance in long-service-life equipment:

    - Control which events trigger NVM saves via the MTPCFG2 enable bits (enIAvg, enFC, enT, enVT, enSOC). Disable save triggers that are not critical for your application. For a single-cell consumer product, enabling saves on significant capacity-learning events (enFC) while disabling more frequent triggers (enT, enIAvg) is a reasonable tradeoff.
    - Do not trigger unnecessary host-commanded NVM saves. The gauge's own internal save logic is conservative and rate-limited.
    - Monitor the NVM write count periodically via the host if your product lifecycle requires it — the gauge tracks how many saves have occurred.

    For equipment expected to be in service for many years with periodic battery replacement, the primary concern is the total number of learned-parameter saves over the product's lifetime, not per-battery. Configure the save triggers conservatively and the endurance budget should be more than adequate.

    ---
    7. ModelGauge m5 EZ vs. Custom Model

    For a standard 4.20 V Li-polymer chemistry at 4.8 Ah, ModelGauge m5 EZ is a strong starting point and may be fully sufficient for your application. The EZ configuration uses a default lithium-polymer OCV model that is well-matched to conventional LiCoO2/NMC pouch cells like the Jauch LP735977JH.

    Our recommendation:

    1. Start with EZ configuration. Program the correct DesignCap (4800 mAh), IChgTerm, VEmpty, and other application parameters. The default EZ model will provide reasonable SOC accuracy (typically within ±3–5% over the usable range) without requiring cell characterization.
    2. Evaluate accuracy in your application. Run charge/discharge cycles at your expected operating temperatures and load profiles. If the SOC accuracy meets your product requirements, no further characterization is needed.
    3. If tighter accuracy is required — especially at temperature extremes or at very low SOC near your empty threshold — we can provide a custom characterized model. For this, we would need 2–3 sample cells and your operating temperature range. ADI offers cell characterization services; contact your local ADI FAE or sales representative to initiate the process.

    Given that your primary use case is an automotive diagnostic logger (likely room-temperature-dominant operation, moderate discharge rates), the EZ model is very likely to meet your needs. The areas where custom characterization adds the most value — extreme cold, high-rate pulsed loads, critical low-SOC accuracy — may not be primary concerns for your application.

    ---
    Summary

    To directly answer your overarching architecture question: Yes, the MAX17201 is designed to operate as a genuinely autonomous system-side fuel gauge while the host processor is completely OFF. Specifically:

    - HIBERNATE maintains continuous coulomb accumulation and will autonomously exit to ACTIVE when charging begins.
    - POR after complete power loss automatically recalls the full NVM configuration and resumes gauging without host intervention.
    - The ModelGauge m5 algorithm's voltage-model blending provides robust SOC tracking even during very-low-current storage where coulomb counting alone would be insufficient.

    The architecture you have described — system-side sense resistor, HIBERNATE as the normal off-state, BQ25628E managing charge independently, and the ESP32 reading gauge status only when awake — is well-aligned with the MAX17201's intended operating model.

    Best regards

    •  Analog Employees 
    on Sep 4, 2026 4:59 PM Contains AI Generated Content
    0

    Thank you for the detailed application description and thoughtful questions. Your proposed architecture — system-side MAX17201 with a low-side sense resistor on the protected battery's negative return, HIBERNATE as the normal low-power state, and autonomous charge-while-host-OFF operation — is well suited to the MAX17201's capabilities. I'll address each question in turn.

    ---
    1. Coulomb Accumulation During HIBERNATE

    Yes, the MAX17201's internal coulomb accumulator integrates current continuously in HIBERNATE. The "reduced monitoring rate" described in the datasheet refers to how frequently the firmware algorithms process and update the fuel-gauge output registers (Current, RepCap, SOC, etc.), not to the underlying analog integration. The hardware current-sense front end and its charge accumulator run without interruption regardless of the ACTIVE/HIBERNATE state.

    In your scenario — gauge in HIBERNATE, ESP32 OFF, USB charger suddenly applies ~1 A — the sequence is:

    1. The analog coulomb accumulator captures the charge immediately, with no gap.
    2. The firmware detects that the current exceeds HibThreshold.
    3. After HibExitTime consecutive above-threshold samples, the gauge transitions to ACTIVE and resumes the normal (faster) register update rate.

    Charge flowing during the transition interval (before HIBERNATE fully exits to ACTIVE) is not lost or approximated — it is captured by the hardware accumulator and incorporated into QH and the capacity/SOC registers once the firmware processes it.

    Recommended HibCFG configuration for your application: Set HibThreshold so that your expected charge current (~1 A) clearly exceeds the threshold, and keep HibExitTime short (1–2 counts) so the gauge returns to ACTIVE promptly after charging begins. A HibScalar value of 0–2 is typically appropriate. The defaults are generally reasonable for a single-cell application, but you may want to tune HibEnterTime to avoid excessive cycling if your system has periodic low-duty-cycle wake events.

    ---
    2. CSP / CSN Orientation — Confirmed

    Your reading of the MAX17201 datasheet (pin table and Figure 1) is correct for your topology:

    ┌─────────────┬─────────────────────────────────────────────────────────────────────────────┐
    │ Net │ Connection │
    ├─────────────┼─────────────────────────────────────────────────────────────────────────────┤
    │ CSP │ Battery-side (cell-side) of the sense resistor — connects toward battery P− │
    ├─────────────┼─────────────────────────────────────────────────────────────────────────────┤
    │ CSN │ System/load-side of the sense resistor — connects toward system ground │
    ├─────────────┼─────────────────────────────────────────────────────────────────────────────┤
    │ Exposed pad │ Tied to CSN / system ground │
    └─────────────┴─────────────────────────────────────────────────────────────────────────────┘

    With this orientation, charging current (into the battery) reads as positive and discharge current reads as negative, which is the expected convention for the fuel-gauge algorithm.

    The wording in UG6259 that appears to reverse CSP and CSN is a documentation error and we can look into making any necessary corrections. The datasheet pin definitions and application circuit (Figure 1) are authoritative. We appreciate you flagging this — we will work to get the user guide corrected.

    ---
    3. Deep-Discharge / Protected-Pack Recovery

    This is an important consideration for your two-wire protected pack, and there are a few scenarios to distinguish:

    Normal storage with HIBERNATE: As long as battery voltage remains above the UVLO (under-voltage lockout) threshold of the MAX17201 — typically ~2.1 V — and above your configured nVShdn threshold, the gauge remains in HIBERNATE and does not enter SHUTDOWN. Setting nVShdn to ~2.30 V (below the PCM's over-discharge cutoff) is a reasonable approach that keeps the gauge alive through normal storage while allowing the PCM to disconnect before the gauge shuts down.

    SHUTDOWN entry (voltage below nVShdn): If battery voltage does fall below nVShdn — for example, due to a very long storage period — the IC enters SHUTDOWN, which is effectively a power-off state with minimal current draw. Recovery from SHUTDOWN occurs as follows:

    - Rising battery voltage alone CAN wake the IC. When voltage rises above the POR (power-on reset) threshold, the MAX17201 performs a full hardware reset, recalls all configuration and battery-model data from NVM, and begins gauging autonomously. No host communication or I2C rising edge is required.
    - This means in your scenario — charger connected, PCM reconnects, battery voltage rises — the gauge will recover on its own without the ESP32.

    Potential concern — slow voltage transitions: If the battery voltage collapses very slowly near the POR/UVLO region, there is a theoretical risk of the IC entering an indeterminate state. In practice, the PCM disconnect is typically a sharp transition (the FET switches off), and charger-driven reconnection is similarly clean. However, as a precaution:

    - Configure nVShdn with appropriate hysteresis relative to the PCM's reconnect voltage.
    - Ensure your layout provides clean, low-impedance connections to BATT and GND so the IC sees a clean voltage transition.
    - When the ESP32 does eventually wake, have it read FStat.POR to detect whether a power-on reset occurred and, if so, confirm gauge status before relying on SOC readings.

    ---
    4. Complete Power Loss and NVM Recovery

    Confirmed — after the MAX17201 completely loses power and subsequently powers up again:

    1. The programmed battery model (OCV table, capacity table) and all application configuration are automatically recalled from NVM during the POR sequence. This is a hardware-driven recall that occurs before firmware execution begins.
    2. No host configuration download is required. The gauge begins autonomous operation using the NVM-stored configuration. This is a fundamental design feature of the MAX17201 — all EZ/custom model data is stored in non-volatile memory specifically so the gauge can operate standalone.
    3. Current and charge accumulation begin without ESP32 involvement. After POR completes and the analog front end initializes, coulomb counting starts automatically.

    Regarding the startup interval: There is a brief initialization period after POR during which the ADC is performing its first conversion cycles and the gauge algorithm is establishing initial conditions. During this window:

    - FStat.DNR (Data Not Ready) is set, as you noted.
    - The analog front end requires a small number of conversion cycles to begin producing valid current measurements — typically on the order of the first 1–2 conversion periods (~175 ms each for the current channel).
    - During these very first milliseconds of startup, charge through the shunt may not be fully accumulated until the ADC completes its first valid conversion.

    In practice, this startup gap is extremely short relative to any real charging scenario. If your charger's soft-start ramp is on the order of milliseconds (which is typical for the BQ25628E), the initial inrush may partially overlap with this window, but the total missed charge would be negligible relative to a 4.8 Ah cell.

    ---
    5. Very-Low-Current Long-Term Storage

    You are correct that 5–30 µA through a 5 mΩ shunt produces 0.025–0.15 µV, which is well below the current-register LSB (~1.5625 µV/LSB). The coulomb counter will not meaningfully resolve this current directly.

    Self-discharge compensation: The MAX17201's ModelGauge m5 algorithm does not rely solely on coulomb counting. It blends coulomb counting with voltage-based model tracking. During long storage at very low currents, the voltage-based portion of the algorithm dominates and tracks SOC by comparing measured OCV against the stored battery model. This is actually the regime where the ModelGauge m5 approach excels — it can track slow SOC drift through voltage correlation even when the current is below the coulomb-counter's resolution.

    IC supply current: The MAX17201 does account for its own quiescent current internally when updating the fuel-gauge algorithm. You do not need to externally compensate for gauge self-consumption.

    COff (Current Offset): The COff register is available for calibrating out systematic DC offset in the current measurement path (e.g., PCB-level thermocouple effects, sense-resistor asymmetry). For your application, we recommend:

    - Perform a one-time COff calibration during production with zero current flowing through the sense resistor (battery disconnected or in true open-circuit rest).
    - Store the calibrated COff value in NVM.
    - This improves accuracy of the coulomb counter in the ~100 µA to ~1 mA range where it begins to resolve current, and prevents systematic offset from biasing the long-term capacity tracking.

    For the 5–30 µA range specifically, accept that coulomb counting is not the operative mechanism — the voltage-model correlation will maintain SOC accuracy over weeks to months of storage.

    ---
    6. Battery Replacement and NVM Endurance

    Recommended battery-replacement procedure (same cell type, retaining model/configuration):

    1. With the new battery connected and the ESP32 awake, write the FullCapRep, FullCapNom, RepCap, MixCap, dQAcc, and dPAcc registers to initial-condition values appropriate for the new cell's initial SOC (which you can estimate from its OCV at the time of insertion).
    2. Clear learned history by resetting Cycles, TimerH, Age, and the QRTable entries to their default/initial values.
    3. Set FStat.POR = 1 to trigger the gauge to re-run its initialization sequence, or alternatively issue a soft reset.
    4. This procedure does not require an NVM write — the reinitialized values reside in volatile shadow RAM and will be learned/saved normally through subsequent operation.

    This approach retains your validated cell model and configuration in NVM while giving the gauge a clean starting point for the new cell.

    NVM write endurance management:

    The MAX17201 NVM supports a finite number of writes (refer to the datasheet for the guaranteed minimum). To manage endurance in long-service-life equipment:

    - Control which events trigger NVM saves via the MTPCFG2 enable bits (enIAvg, enFC, enT, enVT, enSOC). Disable save triggers that are not critical for your application. For a single-cell consumer product, enabling saves on significant capacity-learning events (enFC) while disabling more frequent triggers (enT, enIAvg) is a reasonable tradeoff.
    - Do not trigger unnecessary host-commanded NVM saves. The gauge's own internal save logic is conservative and rate-limited.
    - Monitor the NVM write count periodically via the host if your product lifecycle requires it — the gauge tracks how many saves have occurred.

    For equipment expected to be in service for many years with periodic battery replacement, the primary concern is the total number of learned-parameter saves over the product's lifetime, not per-battery. Configure the save triggers conservatively and the endurance budget should be more than adequate.

    ---
    7. ModelGauge m5 EZ vs. Custom Model

    For a standard 4.20 V Li-polymer chemistry at 4.8 Ah, ModelGauge m5 EZ is a strong starting point and may be fully sufficient for your application. The EZ configuration uses a default lithium-polymer OCV model that is well-matched to conventional LiCoO2/NMC pouch cells like the Jauch LP735977JH.

    Our recommendation:

    1. Start with EZ configuration. Program the correct DesignCap (4800 mAh), IChgTerm, VEmpty, and other application parameters. The default EZ model will provide reasonable SOC accuracy (typically within ±3–5% over the usable range) without requiring cell characterization.
    2. Evaluate accuracy in your application. Run charge/discharge cycles at your expected operating temperatures and load profiles. If the SOC accuracy meets your product requirements, no further characterization is needed.
    3. If tighter accuracy is required — especially at temperature extremes or at very low SOC near your empty threshold — we can provide a custom characterized model. For this, we would need 2–3 sample cells and your operating temperature range. ADI offers cell characterization services; contact your local ADI FAE or sales representative to initiate the process.

    Given that your primary use case is an automotive diagnostic logger (likely room-temperature-dominant operation, moderate discharge rates), the EZ model is very likely to meet your needs. The areas where custom characterization adds the most value — extreme cold, high-rate pulsed loads, critical low-SOC accuracy — may not be primary concerns for your application.

    ---
    Summary

    To directly answer your overarching architecture question: Yes, the MAX17201 is designed to operate as a genuinely autonomous system-side fuel gauge while the host processor is completely OFF. Specifically:

    - HIBERNATE maintains continuous coulomb accumulation and will autonomously exit to ACTIVE when charging begins.
    - POR after complete power loss automatically recalls the full NVM configuration and resumes gauging without host intervention.
    - The ModelGauge m5 algorithm's voltage-model blending provides robust SOC tracking even during very-low-current storage where coulomb counting alone would be insufficient.

    The architecture you have described — system-side sense resistor, HIBERNATE as the normal off-state, BQ25628E managing charge independently, and the ESP32 reading gauge status only when awake — is well-aligned with the MAX17201's intended operating model.

    Best regards,

  • Thank you very much for the detailed response. This clears up the main questions I had, particularly the continuous charge accumulation during HIBERNATE, autonomous recovery after a true power cycle, and the CSP/CSN orientation.

    I also appreciate the confirmation that the wording in UG6259 regarding CSP/CSN appears to be a documentation error.

    One small point I wanted to clarify for the record: you mentioned reading and setting FStat.POR. In the current MAX17201 datasheet, I see the POR flag documented as Status.POR in register 0x000, while FStat appears to be a separate read-only register. Was Status.POR what you intended there?

    The project architecture has since been simplified and is no longer using a precision fuel gauge, but your response was extremely helpful in understanding the MAX17201 correctly and correcting some assumptions I had made about its autonomous operation.

    Thank you again for taking the time to answer the questions in detail.

Before You Switch


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