Hey, #Electronics folks!
Has anyone seen such an output for a ramp coming out of a DAC?
This is produced by a simple counter counting from 0 to 4095 and then wrapping.
The sharp dips are absolutely stable and deterministic. They occur at bit switches but I don't seem to get my head around why.
Identical curves on two different DAC peripherals on the same μC and even across different chips/boards (I'm almost certain it's a software problem).
@Pat
On the analogue side, I varied the base frequency of the sawtooth and even double-wrote the DAC values in SW to make sure it's not some memory glitch.
Timing (i did not mention that, sorry) is IRQ driven. No other IRQs interfere, that's made sure.
Current-wise, the output is loaded with the oscilloscope directly, which I thought may cause capacitance issues or not allow a high enough current. I've got to verify that. Thanks for that hint!
The DAC is in single-ended mode, actually the two curves are the two DAC channels each in SE. I wonder if that problem would just cancel out in diff-mode. But, wow, that would be useless hardware nevertheless 😅
It's in 12bit mode, dithering and oversampling are explicitly deactivated. And I'm using the internal bandgap VRef. Using a rather unstable external voltage (from USB) as ext. VREF causes fancy psycodelic warping of the curve, but the pattern stays intact.
Scope is >100 MS/s, the signal is ~100kHz.
Thanks again for the brainstorming. I know it's fishing in murky waters, but I just needed input.
I'll check the load and see if that helps.
I still suspect the framework to do something weird in software. My hopes were that maybe someone struggled with a similar chip already and would tell me: Look, there's that one setting/bug and that solved it. So I hope I can be that one in the future 😉