Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Complementary PWM dead time: translate encoded steps into oscillator-derived clock ticks

A low-voltage logic board of an industrial controller is undergoing acceptance testing for complementary PWM patterns. While the repetition period of the two output channels remains unchanged and the 25 MHz crystal on the board is stable, increasing the dead-time selection by one step results in a blank time that is one step larger than expected. This may not be due to reference drift. Some advanced timers encode dead time using segmented values, where the step size differs between low and high ranges. First, verify the clock used by the timer for dead-time calculation, the specific segment containing the field, and the conversion method; do not assume a single field value multiplied by a fixed ratio can cover all ranges.

The document exclusively addresses logic templates for power-off levels and offline edge records. Examples are not used to drive motors, restore protection, issue hardware configurations, or determine actual switching safety margins. The acceptance issue to be resolved is: how to identify "one step added to the interface," "how much actual time has increased," and "whether they are on the same time base" within engineering documentation and logic outputs.

The dead-time gap is local to the switching transition

Complementary PWM provides two interrelated outputs within the same base period. Some applications intentionally leave a period where neither output is active. First, clearly define the logic level specified as active in the design. Under different polarity configurations, both outputs being low does not necessarily mean neither is active; observing one output go high also cannot be recorded as an action without verifying polarity. For this test bench that monitors only logical outputs, the report should indicate that, on the same timing reference, the turn-off edge and the subsequent turn-on edge are compared, with both directions retained separately.

The PWM period describes how often the pattern repeats. Dead time applies around the handoff between the two outputs. A 100 μs period can remain unchanged while a gap of tens or hundreds of nanoseconds changes. The dead-time logic may use its own prescaled clock. Do not infer that the PWM period count changed without evidence.

Typical segmented encoding first covers a short duration with finer granularity, then extends to a longer duration with coarser granularity. A portion of certain fields determines the calculation region, while the remaining value represents the quantity within that region. It differs from standard linear count coordinates: incrementing the display value by one may jump directly to a coarser tier if it crosses into another segment; once in the coarser tier, adding the corresponding time increment yields a different result. Design reviews must preserve the original field values, the decoded tier, and the corresponding real-time magnitude, rather than retaining only an integer on a software interface.

Using three adjacent gear ratios, identify which "add one" is different.

In one illustrative encoding, codes 0–127 represent 0–127 time-base steps. The next range starts at 128 steps and advances by 2 steps per code. With a 10 ns dead-time tick and no power stage connected, codes 127, 128 and 129 represent 1,270 ns, 1,280 ns and 1,300 ns. The range has no setting for 1,290 ns. A display applying “code × 10” to 129 uses the wrong scale for its segment.

Assuming another prototype's dead-time base period becomes 20 ns, but the pattern period remains written as the same value. If the latter still selects the same code 129, the ideal dead time becomes 2600 ns. The surface phenomenon of both units may both be "frequency unchanged," but this short interval differs by a factor of two. One must examine the actual branches and configuration, while ensuring the instrument's time resolution is sufficient to distinguish the expected change; otherwise, a small decimal point in actual observation cannot serve as a criterion. These values are used solely for logical coding demonstration and do not represent any device's supported range, default values, or available power parameters.

Prototype observationWhat to distinguishConclusion not established
Same PWM period, twice the handoff gapDedicated dead-time time base and prescalersA crystal frequency error of 100%
Increment gets larger at adjacent codesSegment selection and step sizeThe low-range linear formula still applies
The anomaly occurs only on a pair of edges.Valid logic level, output channel, and measurement directionReplace one direction with the other.
The boundary difference is less than the instrument's resolution range.Measurement Setup and Result UncertaintyWrite as an exact figure and release accordingly.

Keep timing and component acceptance separate

If the R&D board uses the 25 MHz standard series passive crystal from Japanese NDK's NX3225SA, verify the complete order specification, load capacitance, drive and power-on oscillation conditions, and confirm it truly serves as the reference for that clock chain of the controller. The series has multiple compliant specifications; replacement based on matching frequency and package alone is invalid. If a certain architecture indeed uses a 25 MHz reference, and ideal quadruple multiplication with correct distribution yields a 100 MHz dead-zone time base, this corresponds to the aforementioned 10 ns step; this is an example clock tree and does not indicate that any controller can be configured this way. Meanwhile, the conditions of the multiplication system, unlock flags, and actual sampling settings must still be independently checked. Swapping to a higher-precision crystal will only affect this proportional reference, not add slots to the segmented encoding that were not originally present.

The engineering review shall consist of three columns: the first column contains the officially supported code segmentations; the second column records the actual dedicated timebase and decoding results for this build; the third column logs the actual edges of the two-channel logic test points. When comparing, use the same instrument and sampling settings, and store the trigger boundary and time reference together. Do not modify the timebase and then change the field, followed by guessing from a new plot which change took effect. If the time deviation is concentrated only near the segmentation switch, first recalculate the corresponding gear using an offline model without a load; if it still does not match, then verify the test point polarity and the build version.

Procurement acceptance must separately specify the crystal itself and the board-level timing. The supplier providing crystal specifications does not equate to complete alternate part conditions; it must be concurrently confirmed by the board-level owner that the oscillator and control clock tree remain applicable. If the configuration or timer model changes, the dead-band code table from the original prototype cannot be directly applied. For the entire board, two pieces of information must be retained: the time base and the coding path, and how the actual interval is determined under the same approved boundary. Only when both columns are appropriate does the qualification process, executed by the designated personnel, proceed.

If only one edge is visible on the waveform without a corresponding edge, it is inadvisable to record the entire blank interval as a dead time. Under extreme duty cycle conditions, the transition may not have occurred at all, and offline recordings might miss narrow pulses due to insufficient sampling rates. First, confirm that a pair of comparable edges exists within this cycle before participating in segment-based decoding verification.

Common Follow-up Questions

Can the same formula be directly applied to the high range if it is correct for the low range? No. The low and high ranges may not share the same linear relationship. First, confirm the device's corresponding segments, then verify whether the target interval can be selected, and finally check whether actual observations support it.

Can only adjacent two settings be selected? Is arbitrary rounding up to the higher setting acceptable? This is not a general rule. The test bench can record the measured logic-output gaps for both settings, but the real system must select within the upper and lower bounds specified by the project: consequences differ for being too short or too long, so a single-directional coverage cannot handle all operating conditions.

Why preserve the same clock tree if crystal counting remains accurate? External accuracy only proves that the entry has a corresponding reference. Dedicated timestamps after branching may differ from other counts, especially when validating cross-board replication, which cannot be omitted.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.