Back to resources
HIL
Analog
Firmware

Choosing a Clock for the BenchPod's DAC

A scope on the DAC8554's serial clock showed a 19.8 ns low phase against a 20 ns datasheet minimum. Here are the fixes we looked at, what each one costs, and what firmware 4.0.5 does: a 16 MHz clock with 10 ns of margin by default, and the old 24 MHz only when you ask for more than 600 kS/s.

Edward Viaene · November 25, 2026 · 6 min read

The BenchPod's analog output is a 16-bit TI DAC8554, fed by the pod's Lattice iCE40 UP5K FPGA over a serial link: a clock (SCLK), a data line and a frame signal (SYNC). The DAC reads one data bit per clock cycle, and its datasheet sets one hard rule for that clock: every high (t2) and every low (t3) must last at least 20 ns when its logic runs at 3.3 V.

While chasing radiated emissions this week, we put a scope on that clock, right at the DAC's SCLK pin. The low phase of the 24 MHz clock measured 19.8 ns: 0.2 ns short. The schematics are in the public hardware repo if you want to follow along.

What "out of spec" means here

The datasheet's timing table has two columns: one for when the DAC's logic supply (IOVDD) and analog supply (AVDD) are both 2.7 to 3.6 V, with t2 and t3 at 20 ns, and one for when both are 3.6 to 5.5 V, with 10 ns. On the BenchPod, AVDD is 4.5 V and IOVDD is 3.3 V, a mix the table doesn't list. The safe reading is the 3.3 V column, because that's where the DAC's input pins live. That's the 20 ns we measured against.

Those numbers are guaranteed minimums, across -40 to +105 °C and every part TI ships. A typical part needs far less. In a throwaway test build we pushed SCLK to 48 MHz: a 20.8 ns cycle against the 40 ns minimum, and about 10 ns per phase. The DAC on our bench still read every bit, checked step by step on a loopback sawtooth. That's why every pod we've tested generates clean waveforms.

So 19.8 ns isn't a failure. It's a missing guarantee: one part at room temperature coping well doesn't promise the same for every unit, hot, at the slow end of the process. For a test instrument, we want the guarantee.

Why there's no "slightly slower"

The FPGA runs its DAC logic on a 48 MHz clock and drives SCLK through DDR output registers, so an edge can land on either edge of that clock: a 10.4 ns grid. A clock phase is 2 grid steps (20.8 ns) or 3 (31.3 ns), nothing in between. The output pin then takes a nanosecond or so off the low phase, which is how 20.8 ns on paper became 19.8 ns on the scope.

The DAC serial clock at 24 MHz and 16 MHz on the 10.4 ns grid. At 24 MHz each phase is 2 steps and the low phase measured 19.8 ns, under the 20 ns minimum. At 16 MHz each phase is 3 steps; the low phase measured 30.7 ns.
The DAC serial clock at 24 MHz and 16 MHz on the 10.4 ns grid. At 24 MHz each phase is 2 steps and the low phase measured 19.8 ns, under the 20 ns minimum. At 16 MHz each phase is 3 steps; the low phase measured 30.7 ns.

Every update sends a 24-bit frame, so each grid step added to the clock costs update rate. That's the tradeoff behind most of the options below.

The options

Shortest SCLK phase against maximum update rate for each clock option. 24 MHz: 873 kS/s, 19.8 ns. 19.2 MHz with 3 high and 2 low: 716 kS/s, 20.1 ns. 16 MHz: 608 kS/s, 30.7 ns. 12 MHz: 466 kS/s, about 41 ns. 19.2 MHz from a PLL, split 5 and 5: 716 kS/s, about 26 ns, not possible on this FPGA package.
Shortest SCLK phase against maximum update rate for each clock option. 24 MHz: 873 kS/s, 19.8 ns. 19.2 MHz with 3 high and 2 low: 716 kS/s, 20.1 ns. 16 MHz: 608 kS/s, 30.7 ns. 12 MHz: 466 kS/s, about 41 ns. 19.2 MHz from a PLL, split 5 and 5: 716 kS/s, about 26 ns, not possible on this FPGA package.
OptionShortest phaseMax update rateTradeoff
Keep 24 MHz, 2 steps high / 2 low19.8 ns, measured873 kS/sFastest, but 0.2 ns under the guaranteed minimum
19.2 MHz, 3 steps high / 2 low20.0 to 20.2 ns, measured716 kS/sCosts 18% of the rate, and the short phase is still 2 steps: no real margin
16 MHz, 3 steps high / 3 low30.7 ns, measured608 kS/sAbout 10 ns of margin, costs 30% of the rate
12 MHz, 4 steps high / 4 lowabout 41 ns466 kS/sMore margin than anyone needs, costs almost half the rate
A finer grid from the FPGA's PLLabout 26 ns716 kS/sThe UP5K's only PLL takes over pin 35, which sits in the logic analyzer's 1.8/3.3 V I/O bank with no spare pin to move LA6 to. Not possible on this package.
A clock made by the pod's STM32about 24 nsabout 750 kS/sRuns independently of the FPGA's 48 MHz, so each DAC update would jitter by up to one clock cycle and lose its lock to the logic analyzer
A chain of logic cells as a delayvaries873 kS/sThe delay changes with placement and temperature, so no guarantee
A faster DAC20 ns873 kS/sThe 16-bit quad DACs we can source have the same 20 ns limit at 3.3 V logic
Run the DAC's logic at 4.5 V, with a 3.3-to-5 V buffer10 ns limit873 kS/sThe datasheet's fast column: 24 MHz gets about 10 ns of margin. Needs a board revision, about $0.50 of parts.
Slower edges on the board (bead and capacitor)about the same873 kS/sCleans up ringing and emissions, but doesn't lengthen the phase

We built and measured the 19.2 MHz option first, expecting the 3-step phase to help. It didn't: whichever phase got 2 steps came out at 20.0 to 20.2 ns.

How much update rate do you need?

What matters for a clean signal is how many updates land in each cycle:

Signal873 kS/s716 kS/s608 kS/s466 kS/s
1 kHz873716608466
10 kHz87726147
50 kHz1714129

At 10 kHz, 87 and 60 points per cycle are hard to tell apart:

One cycle of a 10 kHz sine at about 870 kS/s (87 steps) and at 600 kS/s (60 steps). Both staircases follow the ideal sine closely.
One cycle of a 10 kHz sine at about 870 kS/s (87 steps) and at 600 kS/s (60 steps). Both staircases follow the ideal sine closely.

The DAC's own output takes 8 µs (typical) to settle after a large step, so updates beyond a few hundred kS/s make the staircase finer, not the signal faster. Replaying a capture never needs more than 400 kS/s, the ADC's top rate. And the signals a HIL rig generates are slow: sensor voltages, 4-20 mA loops, battery and solar curves, motor coil currents and audio-range test tones all live well under 10 kHz.

What we picked: both

Firmware 4.0.5 picks the clock from the rate you ask for:

Update rateSCLKShortest phase
Up to 608 kS/s (600 kS/s when replaying), and the auto rate16 MHz30.7 ns, in spec with about 10 ns of margin
Above that, up to 873 kS/s (857 kS/s when replaying)24 MHz19.8 ns, as before

Almost every test lands in the first row: replay, the waveform library, and anything you generate with the sample rate on auto. If you explicitly ask for more than 600 kS/s, you get the fast clock: 0.2 ns past the guaranteed minimum, and, as the 48 MHz test showed, nowhere near where the DAC actually stops reading. There's no new option to set: the API, CLI and web app are unchanged.

Nothing else changes. The output is still 16-bit, with the same voltage ranges, waveform library, replay and fault injection.