Other Parts Discussed in Thread: TL431, LM3489
I am using the LM25085 in a 29V->24V Sealed Lead Acid Battery Charger. I use an external current sense circuit feeding a TL431 to set the maximum charging current to 4A. The compensation required on the TL431 is slower than the time it takes for the inductor current to reach the built-in Over-Current protection inside the LM25085.
What I expect to happen: On startup it bangs off of the LM25085 over-current a few times until the TL431 compensation catches up and stabilizes it below the over-current threshold.
What actually happens: When it reaches the over-current threshold it shuts off the switch for one cycle for the correct amount (4.7us), resumes switching for a few cycles, and then shuts off for over 800us.
This is a problem for me because now the average current going out to the batteries is below the TL431 threshold and so the slower (and stable) TL431 feedback loop never kicks in and it just goes from 0-7A every milisecond.
More details: I chose to inject the TL431 into the V_FB pin instead of ISEN (like TI recommends) is because hitting the ISEN limit forces minimum off times around 3-4us which would push my switching frequency too low for my desired inductor. With the setup I have if I bypass the ISEN overcurrent-protection the charger shoots up to 13A and settles at the desired 4.2A charging current at my desired 650kHz switching frequency. Using ISEN would produce a much lower average frequency.
The schematic, scope capture, and simulation are attached. The simulation (using a hand-built model) exhibits the behavior defined in the datasheet in Equation 10. The scope plot shows how it latches off for much longer than Equation 10 suggests.