Examples
Examples
Try the starting example
- Peripheral clock (Hz)
- 16000000
- Target baud (bits/s)
- 115200
- Oversampling factor
- 16
- Divisor register maximum
- 65535
- Integer divisor register
- 8
- Realized baud
- 111,111.111111
- Baud error (%)
- -3.549383
Try another scenario
- Peripheral clock (Hz)
- 17600000
- Target baud (bits/s)
- 115200
- Oversampling factor
- 16
- Divisor register maximum
- 65535
- Integer divisor register
- 9
- Realized baud
- 110000
- Baud error (%)
- -4.513889
Calculation method
Calculation method
Integer divisor register
round(clock/(oversampling×baud))−1, clamped to register bounds.
Realized baud
clock/(oversampling×(divisor+1)).
Baud error (%)
100(realized−target)/target.
Symbols and units
- a
- Peripheral clock (Hz)
- b
- Target baud (bits/s)
- c
- Oversampling factor
- d
- Divisor register maximum
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- Clock, divisor rules, target baud. Returns Settings and baud error. All coefficients and observations are user supplied; results describe only the stated mathematical model. Quantities are deterministic calculations from supplied observations and assumptions; no external data is fetched. Supported limits: Finite inputs only; numeric fields bounded as labelled. Lists and JSON records are limited to 256 entries unless a stricter tool bound is stated. No automatic design approval, legal conclusion, treatment recommendation or safety certification. Peripheral clock (Hz): minimum 1e-12, maximum 1000000000000.0. Target baud (bits/s): minimum 1e-12, maximum 1000000000000.0. Oversampling factor: minimum 1, maximum 64. Divisor register maximum: minimum 1, maximum 1000000.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.