Documentation sections
Oversampling & Noise Shaping SNR Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug oversampling-snr. Calculate SNR improvement from oversampling and noise shaping for sigma-delta ADCs. Determine effective bits gained from higher OSR. Free, instant results.
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 |
|---|---|---|---|---|
| bitsnumber | bits | 1 … 24 | 12 | Underlying quantizer resolution |
| oversamplingRationumber | none | at least 1 | 64 | Ratio of sampling rate to Nyquist rate |
| noiseShapingOrdernumber | none | 0 … 5 | 1 | Order of the noise-shaping loop; 0 is plain oversampling with no shaping |
| signalBandwidthnumber | Hz | at least 0.001 | 24000 | The band the converter delivers, half its output rate: 24 kHz for 48 kHz audio. The modulator runs at 2·OSR·f_B |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| baseSnr | dB | Base SNR (Nyquist) |
| oversampledSnrheadline | dB | Oversampled SNR |
| effectiveBits | bits | Effective Bits |
| snrImprovement | dB | SNR Improvement |
| modulatorRate | Hz | The rate the modulator samples at, 2·OSR·f_B |
| outOfBandNoise | dB | The shaped quantization noise between f_B and f_s/2 against the noise left inside the band: what the decimation filter must remove before it can fold back |
| foldBands | none | Decimating to f_s/OSR folds every band 2·f_B wide around a multiple of the output rate onto the signal band, OSR/2 of them: the decimation filter must reject each (the plan draws at most 1024) |
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.