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.
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
| Option | Shortest phase | Max update rate | Tradeoff |
|---|---|---|---|
| Keep 24 MHz, 2 steps high / 2 low | 19.8 ns, measured | 873 kS/s | Fastest, but 0.2 ns under the guaranteed minimum |
| 19.2 MHz, 3 steps high / 2 low | 20.0 to 20.2 ns, measured | 716 kS/s | Costs 18% of the rate, and the short phase is still 2 steps: no real margin |
| 16 MHz, 3 steps high / 3 low | 30.7 ns, measured | 608 kS/s | About 10 ns of margin, costs 30% of the rate |
| 12 MHz, 4 steps high / 4 low | about 41 ns | 466 kS/s | More margin than anyone needs, costs almost half the rate |
| A finer grid from the FPGA's PLL | about 26 ns | 716 kS/s | The 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 STM32 | about 24 ns | about 750 kS/s | Runs 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 delay | varies | 873 kS/s | The delay changes with placement and temperature, so no guarantee |
| A faster DAC | 20 ns | 873 kS/s | The 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 buffer | 10 ns limit | 873 kS/s | The 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 same | 873 kS/s | Cleans 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:
| Signal | 873 kS/s | 716 kS/s | 608 kS/s | 466 kS/s |
|---|---|---|---|---|
| 1 kHz | 873 | 716 | 608 | 466 |
| 10 kHz | 87 | 72 | 61 | 47 |
| 50 kHz | 17 | 14 | 12 | 9 |
At 10 kHz, 87 and 60 points per cycle are hard to tell apart:
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 rate | SCLK | Shortest phase |
|---|---|---|
| Up to 608 kS/s (600 kS/s when replaying), and the auto rate | 16 MHz | 30.7 ns, in spec with about 10 ns of margin |
| Above that, up to 873 kS/s (857 kS/s when replaying) | 24 MHz | 19.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.