A motion-control test board uses a 12 MHz active oscillator for the TMC2209. A separate host timer generates the STEP pulses. A board revision tries a suitable 10 MHz external clock. The motor follows the same speed command but changes sound earlier in the motion. Measure actual STEP pulses and read TSTEP and the configured threshold. The driver compares speed in its own clock counts. Keeping the old threshold can move the transition even with identical host pulses.
Identify the microstep represented by one input pulse
ADI defines TSTEP as the time between normalized 1/256 microsteps derived from the step input rate, in units of driver clock cycles. At 16 commanded microsteps per full step, each external pulse spans 16 normalized intervals. A stable 1 kHz input gives a 1 ms external interval, equivalent to 62.5 µs per normalized interval. Multiplying the full millisecond by the driver clock would overestimate the result by 16.
A 12 MHz active oscillator yields about 750 counts for 62.5 µs. A 10 MHz driver clock yields about 625 under the same input motion command. This assumes 16 external microsteps per full step and the same pulse frequency. Actual readback can show quantization. Verify whether the resolution comes from straps or UART configuration and save the active setting. A speed variable in the motion controller may use a different mechanical unit.
Translate the threshold into a physical speed
For quiet low-speed operation followed by a higher-speed mode, the data sheet suggests reading TSTEP at the desired transition velocity and using it to set TPWMTHRS. As speed increases, normalized step time and the count fall. The driver uses that comparison when configured to switch between chopper modes. If 750 was the reference point at 12 MHz and it is retained at 10 MHz, the same count corresponds to about 833.33 external pulses per second before considering hysteresis. The calculation is 10,000,000 divided by 750 and then by 16, lower than the original 1,000 pulses per second. Sound is only a clue; verify the mode and motion record.
The comparator also has hysteresis. Do not expect the same point in acceleration and deceleration. Verify count scale at a fixed rate, then cross the threshold in both directions with the same ramp. Record STEP frequency, clock frequency, count and mode. An all-ones TSTEP can indicate standstill or overflow and should not be converted to an ordinary running interval. Hold the speed range constant when comparing the two clocks.
Verify the clock pin before interpreting the motor response
The internal oscillator also has a factory setting near 12 MHz. Continued motion does not establish that the external oscillator is being used. Check logic level, pulse widths and startup at the IC pin. Where required, make measurements with the motor driver disabled and restore normal operation through the intended sequence. ADI documents fallback after loss of external clock. A clock interruption is a fault condition and should not be used as a shortcut while moving a load. For intermittent behavior, verify a continuous compliant signal at the receiving pin.
Keep mechanical load and drive current constant. Exercise the old clock and threshold, the new clock with the old threshold, and the new clock with a threshold measured at the target speed. If the last case restores mode transition close to the original speed range, the result supports the changed-count explanation. External frequency also affects other driver timing. Check current, vibration and temperature separately where they are acceptance criteria.
One measurement error comes from reading a single count during acceleration. The input rate is changing, and the software may read at a different instant from the capture. Hold several fixed rates long enough for stable readings, then measure ramps separately. Under the example microstep setting and 12 MHz clock, reducing the input from 1,000 to 500 pulses per second should raise the ideal count from 750 to 1,500. Verify this mathematical relationship before changing the driver clock.
If the difference is close to an integer factor, check STEP edge configuration. The controller may output the expected waveform frequency while the driver is configured to count a different set of edges. Compare effective steps with a controlled pulse train in the documented mode. Establish effective pulse rate and resolution before comparing speed thresholds or assigning a change in mechanical travel to the reference frequency.
Record the 12 MHz active oscillator logic, supply and duty at the driver pin. Keep the active microstep setting, measured input pulses, transition speeds in both directions and register readbacks. Recalculate the pulse-to-mechanical-speed relationship after changing the transmission ratio. A measured pulse-rate and count pair makes each threshold traceable.
