🔒
Global Research Authority
Serving Researchers Since 2012

Adaptive Fault Handling for Battery Management System using the Renesas RAJ240090

DOI : 10.5281/zenodo.24709234
Download Full-Text PDF Cite this Publication

Text Only Version

Adaptive Fault Handling for Battery Management System using the Renesas RAJ240090

Kunal Kailas Wankhede

Student, Department of Electronics and Telecommunication

Deogiri Institute of Engineering and Management Studies Chh. Sambhajinagar, Maharashtra, India

Somnath Ankushrao Karmude

Assistant Professor, Department of Electronics and Telecommunication

Deogiri Institute of Engineering and Management Studies Chh. Sambhajinagar, Maharashtra, India

Abstract – Fixed protection limits in a battery management system often create practical headaches. When a pack sees a sudden high-current spike or operates in cold weather, static undervoltage cutoffs tend to trip early even though the cells still hold plenty of charge. On the other hand, fixed limits ignore how internal resistance climbs as a pack gets older. We developed an adaptive fault-handling method for the Renesas RAJ240090, a single-chip 3-to-8 series lithium-ion fuel gauge that combines an RL78 microcontroller with an analog front end. Hard safety trips stay inside the analog hardware, while firmware on the RL78 adjusts softer protection limits over the internal chip-to- chip bus. A fixed-point Extended Kalman Filter tracks state of charge and cell resistance, and a three-level state machine handles derating, temporary disconnects, and permanent lockouts. Hysteresis checks, retry limits, and flash fault logging allow the pack to recover from brief faults on its own without cutting corners on cell safety.

Keywords – Adaptive Battery Management System; Fault Handling; Renesas RAJ240090; Extended Kalman Filter; Finite State Machine; Functional Safety; Automatic Recovery

  1. INTRODUCTION

    Battery packs in electric two-wheelers, power tools, and backup inverters almost never run at constant current. A motor startup can pull several times the normal discharge current in a fraction of a second, and outdoor temperatures change widely between winter mornings and summer afternoons. Under all of these conditions, the Battery Management System (BMS) still has to stop cells from overcharging, over-discharging, or overheating [1], [5].

    Most low-cost BMS designs check measured voltage, current, and temperature against fixed numbers stored in flash or wired into hardware comparators. That is easy to test, but it breaks down in two common situations. When a cold battery sees a heavy load pulse, the voltage across its terminals dips sharply because of its internal resistance. A fixed undervoltage cutoff sees that temporary sag and shuts the pack down, even when the cell's actual Open-Circuit Voltage (OCV) is well above the safe floor. A second issue shows up after a few hundred cycles: internal resistance rises and usable capacity drops. Static limits stay where they were set for a brand-new pack, which means an aged pack can run hotter than intended or suffer lithium plating if charged too fast at low temperature [5].

    An Adaptive BMS (A-BMS) deals with this by tracking the cell's electrical model during operation and moving its protection thresholds as conditions shift. Putting that kind of math on a compact embedded controller is much easier when the analog sensing and CPU sit in the same package. The Renesas RAJ240090 Battery Fuel Gauge IC (FGIC) pairs an RL78 microcontroller with high-resolution ADCs, simultaneous voltage-current impedance measurement, and independent hardware comparators [1]. In this paper, we describe how we structured a dual-layer fault handler on the RAJ240090 using fixed-point Extended Kalman Filter (EKF) estimation and a three-tier Finite State Machine (FSM) so the pack rides through brief load sags and recovers safely from temporary faults.

  2. HARDWARE ARCHITECTURE OF THE RENESAS RAJ240090

    The RAJ240090 handles 3 to 8 series lithium-ion or lithium-polymer cells across a 4.0 V to 50.0 V supply range [1]. Instead of wiring a separate microcontroller to an external front end over I2C or SPI, the on-chip RL78 Microcontroller Unit (MCU) communicates directly with the Analog Front End (AFE) over an internal Chip-to-Chip (C2C) link. Outside the chip, the host system reads battery status and current limits over SMBus (Smart Battery Data Specification v1.1) or SPI [1], [2].

    TABLE I. RENESAS RAJ240090 SUBSYSTEMS AND ADAPTIVE FAULT-HANDLING ROLES

    Subsystem

    Hardware Capability

    Fault-Handling Role

    Processing Core

    RL78 CPU (32 MHz, 7 kB

    SRAM, Flash)

    Runs fixed-point EKF, SOA math, and FSM

    Voltage & Thermal

    15-bit sigma-delta ADC; 3x NTC (10 k)

    High-res OCV tracking & thermal derating

    Current & Impedance

    18-bit I-ADC; 15-bit V/I impedance

    Coulomb counting & online R0 extraction

    HW Protection

    OV, UV, OT, UT, COC,

    DOC, SC comparators

    Microsecond deterministic fallback cutoff

    Actuation & Isolation

    High-side N-ch FET drivers; Fuse Blow

    Tiered soft isolation to permanent fail-safe

    Cell Balancing

    Internal passive switches (200 typ.)

    Reduces cell imbalance during charging

    Safety Diagnostics

    Flash CRC, RAM parity, runaway, I/O check

    Checks for hidden HW/FW faults

    Table I summarizes the hardware blocks used in our design. Two on-chip features proved especially useful: the 15-bit simultaneous voltage-current impedance circuit, which lets us sample internal resistance without adding extra circuitry, and the hardware safety checks (Flash CRC, RAM parity, and MCU runaway detection) [1], [3]. Fig. 1 lays out how the protection responsibilities are divided between the AFE hardware and the RL78 firmware.

    Fig. 1. Dual-layer adaptive fault-handling architecture on the Renesas RAJ240090.

  3. ADAPTIVE FAULT HANDLING METHODOLOGY

    1. Dual-Layer Protection Strategy

      Software should never be the only thing standing between a battery pack and a short circuit. To keep a firmware bug or a stalled loop from causing a dangerous failure, we split protection into two layers [3], [4]. Layer 1 lives completely in the AFE hardware. Its analog comparators hold the absolute hard limitsshort-circuit current, severe overvoltage, and deep undervoltage. If any of those limits are crossed, the AFE shuts off the high-side N-channel charge and discharge MOSFETs in microseconds, completely independent of the CPU.

      Layer 2 runs on the RL78 core and always stays inside those hardware limits. Rather than waiting for a hard cutoff, the firmware shifts its warning, derating, and soft-disconnect thresholds using live State of Charge (SoC), thermistor temperature, and measured cell resistance.

    2. Extended Kalman Filter State and Impedance Adaptation

      To tell the difference between a truly empty cell and a temporary voltage dip under load, the firmware needs an estimate of the cell's internal state. We implemented a discrete-time EKF based on a first-order Thevenin Equivalent Circuit Model (ECM) on the RL78 [6]. The state vector and terminal voltage model are given in (1) and (2):

      xk = [SoCk, Vp,k]T (1)

      Vt,k = VOCV(SoCk) Ik R0(Tk, SoHk) Vp,k (2)

      Here, Vt,k is the measured cell voltage, VOCV(SoCk) comes from the cell's OCV-SoC lookup tabl, Ik is the pack current (positive while discharging), and Vp,k is the RC polarization

      voltage. The ohmic resistance R0(Tk, SoHk) depends on both temperature Tk and State of Health (SoH), and is updated during operation using the RAJ240090 simultaneous V/I impedance circuit [1].

      With an up-to-date value for R0, the firmware calculates a dynamic undervoltage cutoff VUV,adapt during high-current discharge pulses as shown in (3):

      VUV,adapt = max(VUV,hard, VUV,nom IkR0(Tk)) (3)

      In (3), VUV,nom is the normal steady-state undervoltage limit, VUV,hard is the fixed AFE hardware floor, and is a temperature-weighted scaling factor between 0.00 and 1.00. During cold starts or brief acceleration surges, (3) drops the software cutoff just enough to absorb the I × R0 sag without letting the cell go below its hard chemical floor. For charging, maximum permitted current is scaled down with temperature and cell age using (4):

      Ichg,max(Tk, SoHk) = Ichg,nom kT(Tk) kSoH(SoHk) (4)

      where Ichg,nom is the nominal charge current, kT(Tk) ramps down toward 0.00 near 0 °C to avoid lithium plating, and kSoH(SoHk) lowers charge current as cell impedance grows. Fig. 2 plots this adaptive threshold against a standard 2.85 V fixed cutoff during 4C and 5C discharge pulses at 0 °C. The adaptive line avoids false trips during both pulses while the

      2.50 V hardware floor stays intact.

      Fig. 2. Adaptive versus static undervoltage threshold response during transient discharge pulses at 0 °C.

    3. Multi-Tiered Finite State Machine Supervision

      Not every fault should kill power to the entire system. Our FSM builds on the RAJ240090's native states (Normal, Sleep, Shutdown, and Fail) and groups abnormal events into three response tiers.

      Tier 1 handles warnings and current derating. When a cell approaches its adaptive voltage, current, or thermal boundary, both MOSFETs stay on and the BMS sends reduced current limits from (4) to the host controller over SMBus. Tier 2 is for recoverable faults. If overcurrent, over-temperature, or soft voltage faults persist longer than the debounce time on AFE Timer B (30.52 µs to 125 ms) [1], the firmware opens only the affected MOSFET. During an overvoltage event, for instance, the charge MOSFET opens while the discharge path stays closed so the pack can still deliver power. Tier 3 covers permanent faults such as severe overvoltage, a welded

      MOSFET, rapid temperature rise (dT/dt), or a failed memory check. Here, the RAJ240090 triggers its Fuse Blow output to permanently disconnect the pack and blocks automatic restart [1], [3]. Table II lists how each fault type maps to its tier, actuation, and recovery rule.

      TABLE II. MULTI-TIERED ADAPTIVE FAULT-RESPONSE MATRIX FOR RAJ240090

      Fault Type

      Tier

      Safe Actuation

      Recovery Logic

      Transient UV Sag

      T1

      Keep FETs closed; derate I

      Auto-clear when sag ends

      Sustained UV

      T2

      Open DSG FET; keep CHG

      Vcell > VUV + V or charger

      Cell OV

      T2/T3

      Open CHG FET; Fuse if T3

      Vcell < VOV V; latch T3

      Over-Temp (OT)

      T1/T2

      Derate (T1); open FETs (T2)

      Hysteresis T < TOT T

      Overcurrent

      T2

      Open active FET post- debounce

      Bounded retry (N 3) backoff

      Short-Circuit

      T2/T3

      Microsecond AFE FET cutoff

      Load check; escalate to T3

      MCU/Mem Fault

      T3

      Open FETs; assert Fuse Blow

      Latched Fail; service reset

    4. Automated Fault Recovery and Self-Diagnostics

      Tier 2 faults are allowed to clear on their own once the pack cools down or the voltage recovers, so the user does not need to manually reset the battery after every minor overload. Before turning a MOSFET back on, the firmware waits until the faulted reading moves past a hysteresis margin (for example, T < TOT Thyst or Vcell > VUV + Vhyst) and stays steady for a qualification period timed by AFE Timer A (125 ms to 64 s) [1].

      Of course, repeatedly switching a MOSFET back into a hard short will burn out the switch. To stop that from happening, each recoverable fault keeps a retry counter in non-volatile memory limited to three tries (Nretry 3) with increasing delays of 2 s, 6 s, and 18 s. If the fault trips again right after the FET closes, the FSM treats it as a permanent external failure and locks the pack in Tier 3 (Latched Fail).

      Alongside normal operation, background routines run the hardware Flash CRC check, watch RAM parity flags, verify digital I/O output levels, and service the MCU runaway detector [3]. Each fault transition stores the fault code, timestamp, cell voltages, and thermistor readings in Flash so engineers can trace what happened during service or Return Material Authorization (RMA).

  4. EMBEDDED FIRMWARE IMPLEMENTATION

    Fitting an EKF and a three-tier FSM onto the RAJ240090 comes down to working carefully within 7 kB of SRAM on a 16-bit RL78 CPU [1]. Using standard double-precision floating-point math eats up too much RAM and too many clock cycles, so we wrote the matrix math in scaled Q15 and Q31 fixed-point format instead. Since a first-order ECM only needs a 2 × 2 covariance matrix, one EKF update finishes in less than a millisecond, takes under 0.6 kB of SRAM, and keeps SoC error within about 1.5 percent.

    Execution is ordered by priority so host communication never holds up protection. AFE comparator flags and short-

    circuit events come in as high-priority interrupts over the C2C bus. A timer-driven loop evaluates the FSM every 10 ms and runs EKF updates every 100 ms to 1000 ms depending on how fast the load is changing, while SMBus telemetry runs in the remaining background time. If pack current stays below the idle threshold for a configured period, the RL78 drops into Sleep mode to save power. The RAJ240090's hardware charge and discharge wakeup detectors watch the sense resistor and wake the MCU as soon as a load or charger is attached [1].

  5. EXPERIMENTAL VALIDATION AND COMPARATIVE ANALYSIS

    Before connecting live lithium-ion packs, we set up a Hardware-in-the-Loop (HIL) test bench using the Renesas RAJ240090 R-BMS Evaluation Kit (EVM) [2]. A

    programmable bipolar DC power supply and cell simulator emulate 3 to 8 series stacks with charge and discharge currents up to 50 A. Internal registers and FSM state changes are recorded over a USB-to-SMBus bridge with the Renesas R-BMS Tool software [2].

    We defined four fault-injection tests to check the main edge cases. First, 3C to 5C discharge pulses at simulated 0 °C verify that the adaptive undervoltage limit prevents nuisance shutdowns while still respecting the 2.50 V hardware floor. Second, sweeping the external NTC resistance checks Tier 1 derating, Tier 2 disconnect, and hysteresis recovery. Third, hard short-circuit pulses verify microsecond AFE cutoff and confirm Tier 3 lockout after three failed retries. Fourth, an injected Flash CRC error verifies an immediate jump to the Fail state. Table III compares a standard static BMS against this RAJ240090 adaptive setup.

    TABLE III. COMPARATIVE EVALUATION OF STATIC VS. PROPOSED ADAPTIVE BMS

    Metric

    Static BMS

    Proposed RAJ240090 A-BMS

    Thresholds

    Fixed worst-case limits

    Dynamic (I, T, SoC, online R0)

    Transient Sag

    Frequent nuisance UV trips

    EKF-compensated; trips suppressed

    Grnularity

    Binary full-pack cutoff

    3-tier: derate, soft FET, fail

    Recovery

    Manual or unguarded delay

    Hysteresis + bounded retry backoff

    HW Safety

    Reliant on MCU polling

    Autonomous AFE µs cutoff + C2C IRQ

    Latent Faults

    Basic software watchdog

    Flash CRC, RAM parity, runaway

  6. CONCLUSION

Building an adaptive fault handler on the Renesas RAJ240090 shows that model-based battery protection does not require a large automotive processor or a separate multi- chip front end. Leaving the hard cutoff comparators in AFE hardware while running a fixed-point EKF and three-tier FSM on the RL78 core cuts out false undervoltage trips during high-current pulses, scales charge current down when cells are cold or aged, and recovers safely from temporary faults through hysteresis and retry limits. On-chip memory checks and Flash fault logging also make post-failure debugging much more straightforward. Future work will add online capacity-fade estimation to the SoH derating tables and

measure RL78 CPU usage across full 8-cell dynamic drive cycles.

ACKNOWLEDGMENT

The authors thank the Department of Electronics and Telecommunication, Deogiri Institute of Engineering and Management Studies, Chh. Sambhajinagar, for providing laboratory facilities, guidance, and support during this work.

REFERENCES

  1. Renesas Electronics Corporation, "RAJ240090/RAJ240100: 3 to 8 / 10 Series Li-ion Battery Manager Datasheet," Doc. No. R01DS0301EJ0206, Rev. 2.06, Mar. 2024.

  2. Renesas Electronics Corporation, "RAJ240090/100 R-BMS F Evaluation Kit Quick Start Guide," Renesas Electronics Corporation, May 2025.

  3. Renesas Electronics Corporation, "Battery Fuel Gauge IC Functional Safety," Doc. No. R16WP0005EJ0100, Sep. 2022.

  4. Renesas Electronics Corporation, "Functional Safety in Battery Management Systems Featuring Renesas Battery Front Ends Manual," Renesas Electronics Corporation, Sep. 2022.

  5. L. Lu, X. Han, J. Li, J. Hua, and M. Ouyang, "A review on the key issues for lithium-ion battery management in electric vehicles," Journal of Power Sources, vol. 226, pp. 272288, Mar. 2013.

  6. G. L. Plett, "Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs: Part 1. Background," Journal of Power Sources, vol. 134, no. 2, pp. 252261, Aug. 2004.