Skip to content

Main content

Uart Break Detection Bit Budget Tool

Compute uart break detection bit budget from explicit bounded inputs.

Loading tool…

Description

Set breakDetected only when nonnegative lowBits strictly exceeds positive frameBits; return zero-floored excessBits.

UART frames combine a start bit, data, optional parity, and stop duration. Baud rate and framing choices jointly determine time and overhead, while polarity and parity correctness are separate checks.

Set breakDetected only when nonnegative lowBits strictly exceeds positive frameBits; return zero-floored excessBits.

When to use this tool

Use Uart Break Detection Bit Budget when you need one UART timing, framing, or field calculation.

How to use the tool and how it works

  1. Enter lowBits, frameBits. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read breakDetected, excessBits. Inspect breakDetected before interpreting the associated values.

Set breakDetected only when nonnegative lowBits strictly exceeds positive frameBits; return zero-floored excessBits.1

Input fieldMeaning and unitsAccepted input
lowBitsLow BitsRequired. Finite number.
frameBitsFrame BitsRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
breakDetectedBreak DetectedRequired. Boolean.
excessBitsExcess BitsRequired. Finite number.
json
{
  "input": {
    "lowBits": 12,
    "frameBits": 10
  },
  "output": {
    "breakDetected": true,
    "excessBits": 2
  }
}

Limitations and assumptions

  • The exact equality case is not a break in this model; device-specific break detection rules may differ.
  • 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

Confirm the device's supported frame format and clock budget, then inspect a measured serial waveform where needed.

References

  1. Calculation and input contract: microcontroller/uart-break-detection-bit-budget — tool.io

Similar or alternative tools