# Photovoltaic MOSFET Driver (`pvDriver`)

> Charges a MOSFET gate across an isolation barrier from an LED, with no supply on the gate side.

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

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

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

## When to use it

Use it to drive the MOSFETs of a solid-state relay, a battery disconnect or a precharge switch, where the gate floats and switches seldom. Its micro-amperes charge a gate in hundreds of microseconds: use an isolated gate driver for PWM.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `AN` | electrical | LED anode |
| `CAT` | electrical | LED cathode |
| `VOP` | electrical | Photovoltaic output, positive, to the MOSFET gate |
| `VON` | electrical | Photovoltaic output, negative, to the MOSFET source |

## Common parameters

- `vocRef`: Open-circuit output voltage at iFref (Default: 8)
- `iscRef`: Short-circuit output current at iFref (taken proportional to the LED current) (Default: 0.000015)
- `iFref`: LED current at which vocRef and iscRef are given (Default: 0.01)
- `rDis`: Resistance of the turn-off circuit while the LED is dark (Default: 20000)

## Parameters

| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
| `vf` | V | 1.3 | 100m – 5 V | LED forward drop of the straight-line fit | typical, user must set |
| `rLed` | Ω | 10 | 0 – 1k Ω | LED series resistance of the straight-line fit | typical, user must set |
| `iFref` | A | 0.01 | 10u – 100m A | LED current at which vocRef and iscRef are given | typical, user must set |
| `vocRef` | V | 8 | 500m – 30 V | Open-circuit output voltage at iFref | typical, user must set |
| `iscRef` | A | 0.000015 | 10n – 100m A | Short-circuit output current at iFref (taken proportional to the LED current) | typical, user must set |
| `iFoff` | A | 0.0002 | 0 – 50m A | Below this LED current the turn-off circuit discharges the output | typical, user must set |
| `rDis` | Ω | 20000 | 1 – 1g Ω | Resistance of the turn-off circuit while the LED is dark | typical, user must set |
| `rClamp` | Ω | 1000 | 1 – 10meg Ω | Resistance of the open-circuit clamp: the output falls this times the load current below vocRef | typical, user must set |
| `tauPv` | s | 0.000001 | 0 – 10m s | Time constant with which the stack's current follows the LED | typical, user must set |

_Parameter descriptions are in English in both languages._

## Model

The LED is a diode with a drop vf and a resistance rLed. The photodiode stack is a current source of iscRef times the LED current over iFref, which follows the LED through one pole of tauPv and flows out of VOP. A clamp at vocRef with a resistance rClamp sets the open-circuit voltage. While the LED current is below iFoff, the turn-off circuit joins VOP to VON through rDis. The turn-on time into a gate capacitance C is about C times the threshold over the short-circuit current, and the turn-off time about rDis times C. The defaults are typical of the class, not a part's values.

## Common mistakes

- The defaults are typical, user must set. Enter the open-circuit voltage, the short-circuit current at its test LED current and the turn-off resistance from your part's data sheet.
- The open-circuit voltage must be above the MOSFET's threshold with margin, and a gate that leaks more than the short-circuit current never turns on.

Problems rules: `ground.missing`

## Datasheet and sources

vocRef and iscRef are the open-circuit voltage and short-circuit current at the LED current iFref of the electrical characteristics. rDis is the turn-off time divided by the test capacitance (and by ln of the voltage ratio of its test points). vf and rLed are a straight-line fit of the LED's forward voltage. Pass them to ic.fromSpec with the pvDriver template.

## Example

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

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