Documentation sections
Current Mirror Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug current-mirror. Calculate current mirror output current, beta error, reference resistor, power consumption, and Widlar mirror resistor for analog IC and bias circuit design
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| refCurrentnumber | mA | at least 0.001 | 1 | Reference Current |
| rationumber | × | at least 0.001 | 2 | Mirror Ratio (Iout/Iref) |
| vccnumber | V | at least 0.1 | 5 | Supply Voltage |
| betanumber | none | at least 1 | 100 | Transistor β (hFE) |
| vtnumber | mV | 10 … 50 | 26 | Thermal voltage kT/q ≈ 26 mV at room temperature |
| eSeriesnumber | none | 0 … 96 | 0 | Rounds every part to the nearest value in the series; the response and the export are the rounded design's. |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| outputCurrentheadline | mA | The mirrored current less the β error; with a part series, the current the rounded resistors set |
| refResistor | kΩ | Sets I_ref from V_CC with V_BE = 0.7 V; with a part series, the nearest value of the series |
| powerRef | mW | Reference Branch Power |
| error | % | How far the output current falls short of N × I_ref, in percent (negative: above it): the β error, and with a part series the rounded resistors' error too |
| widlarResistor | kΩ | Widlar emitter resistor value — only applicable when mirror ratio < 1; with a part series, the nearest value of the series |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.