Other Parts Discussed in Thread: UCD3138, UCD3138R
Tool/software:
Hi,
I am working on implementing peak current control with the UCD3138. My control approach requires very fast sampling and update during the on-time. Specifically:
-
Within the first ~300 ns of the switching cycle, I would like to sample the primary current as often as possible.
-
The idea is to sample at t = 0 ns, process the filter (2P2Z or similar), generate the compensation ramp, and if the ramp crosses the measured current, then immediately fault/turn off the DPWM.
-
If not, then I would like to re-sample again after the minimum step time (I saw 62.5 ns mentioned in the datasheet). At each sample/update, I would recalculate the filter output, adjust the ramp reference, and continue until a crossing with the primary current occurs.
My questions are:
-
Is the 62.5 ns step size realistic for continuous ADC sampling and digital filter update?
-
Does the 62.5 ns include the time required for the filter calculation, or only the raw ADC sampling interval?
-
What is the fastest achievable sampling rate on the UCD3138 for this type of control loop?
-
I have seen that the ADC can be triggered by several sources (such as DPWM frame start, output pins, etc.), but I don’t see any way to configure it to sample repeatedly at the maximum possible rate. How should I set up the sampling triggers or clocking so that I get the fastest possible continuous sampling? Where in the documentation can I find the exact configuration registers or limits?
Thank you very much for your help,