Description
Use reference / 2^bits as an ideal LSB and divide signed zeroOffset by it for offsetLsb.
Ideal ADC and DAC models connect digital codes to a reference span and quantization step. Coding, endpoint conventions, and reference behavior determine the meaning of a code-domain term.
Use reference / 2^bits as an ideal LSB and divide signed zeroOffset by it for offsetLsb.
When to use this tool
Use Dac Unipolar Zero Scale Gap when you need one explicit converter coding, resolution, or analog-model term.
How to use the tool and how it works
- Enter zeroOffset, reference, bits. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read offsetLsb. Use the output convention below.
Use reference / 2^bits as an ideal LSB and divide signed zeroOffset by it for offsetLsb.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| zeroOffset | Zero Offset | Required. Finite number. |
| reference | Reference | Required. Finite number; strictly above 0. |
| bits | Bits | Required. Safe integer; minimum 1; maximum 32. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| offsetLsb | Offset Lsb | Required. Finite number. |
{
"input": {
"zeroOffset": 0.01,
"reference": 2.56,
"bits": 8
},
"output": {
"offsetLsb": 1
}
} Limitations and assumptions
- Reference and zero offset must share a voltage unit; the model does not estimate actual DAC transfer characteristics.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Compare the ideal term with device transfer curves, noise, calibration, and acquisition requirements.
References
Similar or alternative tools
- ADC Reference Lsb Ratio
Return (firstReference / secondReference) × 2^(secondBits - firstBits) as lsbRatio.
- Microcontroller: ADC Code Bin Midpoint
Use referenceVoltage / 2^bits for unipolar bin width or twice that value for twos-complement-bipolar.