# OCP with Hiccup (`ocpHiccup`)

> Stops switching for a fixed time after a sustained over-current, then lets the converter restart.

![ocpHiccup](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/ocpHiccup.svg)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/ic/ocpHiccup/)

**Group:** ICs · **Kind:** `{"definition":"ocpHiccup","kind":"subsystem"}`

## When to use it

Use it at the architecture stage to choose the over-current level, the filter and the hiccup off-time, and to see the restart into a short. Wire FAULT to the soft start's FLT.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `ISNS` | electrical | Sensed current as a voltage Ri·i |
| `FAULT` | signal | High for tHiccup after a sustained over-current |
| `GND` | electrical | Reference of ISNS |

## Common parameters

- `vTrip`: Over-current level at ISNS (Default: 2)
- `tFilter`: Time ISNS must stay above vTrip before FAULT (0 = at once) (Default: 0.000005)
- `tHiccup`: Time FAULT stays high: the off-time of the hiccup (Default: 0.0002)

## Parameters

| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
| `vTrip` | V | 2 | 1m – 100 V | Over-current level at ISNS | typical, user must set |
| `tFilter` | s | 0.000005 | 0 – 1 s | Time ISNS must stay above vTrip before FAULT (0 = at once) | typical, user must set |
| `tHiccup` | s | 0.0002 | 1n – 10 s | Time FAULT stays high: the off-time of the hiccup | typical, user must set |

_Parameter descriptions are in English in both languages._

## Model

Once V(ISNS) has stayed above vTrip for tFilter, FAULT goes high for tHiccup. With FAULT on the soft start's FLT, switching stops and the soft-start capacitor discharges, and a new soft start follows the off-time, the hiccup scheme of the LM5145 data sheet (section 7.3). A trip during the hiccup does not extend it.

## Common mistakes

- The defaults are typical, user must set. Put vTrip below the modulator's cycle-by-cycle limit, or the limit holds the current under the trip level and the hiccup never starts.
- The level must be sustained for tFilter. A current sensed only while the switch is on (a switch shunt) drops every period, so sense the inductor current or shorten the filter.

Problems rules: `ground.missing`

## Datasheet and sources

This is an architecture block. vTrip is the over-current level at ISNS, tFilter the time it must last and tHiccup the off-time. A real controller often counts current-limited cycles instead; take the count times the period as tFilter.

## Example

Open the example with the command `file.openExample` and the name `demo:ocpHiccup`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
