# UVLO Comparator (`uvloComparator`)

> Says when the input is high enough to run, with hysteresis.

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

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

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

## When to use it

Use it on a divider from the input to start and stop an architecture-stage controller at chosen input voltages. Wire OK to the soft start's EN.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `SENSE` | electrical | Divided input voltage |
| `OK` | signal | High above the rising threshold until below the falling one |
| `GND` | electrical | Reference of SENSE |

## Common parameters

- `vRise`: Rising threshold at SENSE (Default: 1.2)
- `vFall`: Falling threshold at SENSE (at most vRise) (Default: 1.1)
- `iHys`: Current out of SENSE while OK is high (0 = none); lowers the input's falling threshold by iHys·R1 (Default: 0)

## Parameters

| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
| `vRise` | V | 1.2 | 1m – 100 V | Rising threshold at SENSE | typical, user must set |
| `vFall` | V | 1.1 | 1m – 100 V | Falling threshold at SENSE (at most vRise) | typical, user must set |
| `iHys` | A | 0 | 0 – 10m A | Current out of SENSE while OK is high (0 = none); lowers the input's falling threshold by iHys·R1 | typical, user must set |

_Parameter descriptions are in English in both languages._

## Model

OK goes high once V(SENSE) rises above vRise and low once it falls below vFall. While OK is high, iHys flows out of SENSE into the divider, as the EN/UVLO pin of the LM5145 data sheet (section 7.3) does. With R1 from the input to SENSE and R2 to GND, the input thresholds are vRise·(R1 + R2)/R2 and vFall·(R1 + R2)/R2 − iHys·R1.

## Common mistakes

- The defaults are typical, user must set. Size the divider for the input voltage at which you want to start.
- SENSE must have a path to GND. The hysteresis current needs the divider, so a SENSE pin tied straight to the input gets no extra hysteresis from it.

Problems rules: `ground.missing`

## Datasheet and sources

This is an architecture block. vRise and vFall are the comparator's thresholds and iHys the hysteresis current. A real controller gives them as the EN or UVLO rising threshold, its hysteresis and the hysteresis current.

## Example

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

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