UART波特率计算器公式

## ADC Resolution and Digital Conversion

An ADC maps a continuous voltage range to discrete digital codes. The resolution determines the smallest detectable voltage change.

### Formulas

**Step Size = V_ref / 2^N**

**Digital Code = floor(V_input / Step Size)**

**Quantization Error = V_input - Code x Step Size**

The maximum quantization error is +/- 0.5 LSB.

计算示例

10-bit ADC with 3.3 V reference, input 1.65 V.

  1. Step size: 3.3 / 1024 = 3.223 mV
  2. Digital code: floor(1.65 / 0.003223) = 512
  3. Reconstructed: 512 x 0.003223 = 1.6504 V
  4. Error: |1.65 - 1.6504| = 0.4 mV