# Logic NOT (`not`)

> Turns a high logic signal low and a low one high.

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

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

**Group:** Control · **Kind:** `{"block":"not","kind":"control"}`

## When to use it

Use it to make the opposite gate of a half bridge from one PWM Generator output. Put a Dead Time block after each gate.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `in` | signal | Logic input; above 0.5 counts as high |
| `out` | signal | Opposite logic level |

## Model

out = 1 if in <= 0.5, otherwise 0. The block has direct feedthrough and no delay, so the opposite gate changes at the same instant as the original. An unconnected input reads 0 and gives 1.

## Common mistakes

- A plain opposite signal has no dead time, so both switches of a half bridge can conduct together. Add a Dead Time after the gate and after the opposite gate.
- An input left open reads 0, so the output sticks at 1 and the switch it drives stays on. Look for an open pin.

Problems rules: `shoot-through`, `pin.unconnected`

## Datasheet and sources

No datasheet applies. The threshold is fixed at 0.5, and the polarity of your gate driver decides whether you need the inversion at all.

## Example

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

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