Atlas Robotics
Reading DatasheetsIntermediate

Read electrical specifications and basic timing diagrams

Atlasbot · 23/8/2026 · 11 min read

Read electrical specifications and basic timing diagrams
Timing schema I2C: setup time and hold time between SCL and SDA

The article Absolute Maximum Ratings discussed the value limits. Also included in the Electrical Characteristics section is another type of information — timing diagram, which describes the relationship between signals over time, not just single values.

Key concepts

The timing diagram draws the waveform of multiple signals (clock, data, chip-select...) along the same time axis, marking the minimum/maximum time intervals to be obeyed between them — the two most common types are:

  • Setup time (t_SU)— data time has to be stable before a reference event (usually the clock edge) occurs
  • Hold time (t_HD)— data time must be kept stable after reference event has occurred

How it works

Violation of setup time or hold time causes the receiver to misread the data bit — not because the frequency clock exceeds the nominal limit, but because the relative time relation between the 2 signals is false. This is why timing errors often manifest as "random" errors, which are difficult to reproduce: data read correctly most of the time (when jitter / echo does not accidentally push the signal out of the setup / hold window), only wrong on certain occasions when real-world time conditions (longer conductors, other capacitive loads, other temperatures) push the signal out of bounds.

Finally: The Timing diagram answers the question that the Electrical Characteristics Panel alone does not answer — "how long signal A must be stable before/after signal B" — not "how much voltage/line value". A missing reading of this section may lead to the correct design of the power value but the wrong time relation.

Technical details

Formulas

the maximum available frequency clock is limited by the total time needed for setup + hold + signal processing time, not just by the individually recorded "maximum frequency" parameter:

Minimum_period ≥ t_SU + t_HD + t_signal_processing (wire propagation delay, buffers...)

Actual_f_max = 1 / Minimum_period

Example: t_SU = 100ns, t_HD = 100ns, estimated wire delay 50ns
Minimum_period ≥ 100 + 100 + 50 = 250ns
Actual_f_max ≤ 1/250ns = 4 MHz

If a datasheet states support up to 400kHz (Fast Mode), but long wires
considerably increase t_signal_processing, the actual safe frequency can be
much lower than the nominal 400kHz

Parameters

Type of timeWhat's wrong with the breach?
Setup time (t_SU)Recipient reads OLD value instead of NEW value of the data
Hold time (t_HD)The recipient reads UNSTABLE value (converting)
Rise/Fall timeSlower-than-expected level shift signal, out of phase with clock
Propagation delayDelay between activation and actual signal response

Practical applications

When communication between MCU and sensor over I2C with longer than normal conductor (e.g. sensor far attached to mainboard on AMR frame), parasitic capacitance of the long conductor increases signal level shift time (rise/fall time), which can violate timing even though the configuration frequency clock in software is still true to the nominal parameters of the sensor — this is the reason for the "wobble" I2C communication error when increasing the conductor distance is usually not a software error, but a violation of physical timing that needs to lower the frequency clock or add suitable resistor pull - up to fix.

Practical example

Debugging scenario: an I2C sensor works on a breadboard (short wires, ~10cm),
but randomly returns incorrect data when installed on the robot (long wires, ~50cm)

Timing diagram analysis:
- Longer wires → more parasitic capacitance → longer rise/fall times
- I2C is configured for 400kHz (Fast Mode, period 2500ns)
- With short wires, rise/fall times are fast enough not to affect setup/hold
- With long wires, rise/fall times grow considerably, consuming time
  intended for setup/hold and occasionally violating it when noise is added

Solution: lower I2C frequency to 100kHz (Standard Mode, period 10000ns)
to leave more timing margin for the longer rise/fall times of long wires,
or reduce the pull-up resistance to speed up transitions

Common mistakes

  • The "maximum frequency" check alone ignores the detailed time diagram— as calculated in the Formulary section, real-world safe frequencies depend both on installation conditions (wire length, capacitive loading), not only on the chip nominal parameters.
  • Performing software with a "random"— communication error as the above example, most of the time a physical timing violation, it is necessary to review the hardware (string length, pull-up values) before questioning the code.
  • Without the inclusion of wire transmission delays when designing high-speed— buses with long-distance or high-frequency, wire transmission delays can account for a significant proportion of the time budget, which should be included in the minimum cycle formula.
  • The implicit setup time and hold time when reading the— scheme apply at two different times (before/after the reference event), confusion leading to a miscalculation of the real-world time margin.

Conclusion

The timing diagram adds the dimension of information that the Electrical Characteristics value table does not express — relative time relationships between signals. The timing violation error often manifests as a "random", difficult - to - reproduce communication error, and the root cause usually lies in the real-world installation conditions (wire length, capacitive loading) rather than software logic errors. The last article of the Datasheet Reading section goes into the register map — how to read the register table to properly configure a hardware periphery.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

Read electrical specifications and basic timing diagrams — Atlas Robotics