Part Number: TIDM-DC-DC-BUCK
Tool/software:
Hi,
I'm trying to understand the timing of the TIDM-DC-DC-BUCK reference design in order to implement this on a design that I'm working on.
Do you know if it’s possible to bring out signals related to the ADC timing to probe? Or something in code composer console that can display counters for the timing? I added a GPIO to go hi and low when going in and out of the ISR. Also, I tried to add a GPIO to go high when the ADC is triggered for SOC but couldn’t find a good place in the code to see when the ADC starts converting and ends converting. I also attached my edited version of the code adding the GPIOs.

I made a rough timing diagram of how I understand the loop is supposed to operate based on what I read in the code. I have the ADC being triggered by the ePWM, then the ADC starts its conversion. Between ADC SOC (sample & hold, and conversion to digital) and EOC, I’m estimating about 280ns of latency, based on the MCU datasheet and the ACQPS, before the ADC interrupt is triggered to start the Buck ISR. The Buck ISR latency is from what I measure with the GPIO. Does any of this seem off to you?

However, when I probe the ISR, there looks to be about 3.62us of delay from the ePWM. Also, I looked at the startup of the project once I hit resume un code composer and noticed that the Buck_ISR starts running on its own before the ePWM starts switching. Which may be why the ISR and the ePWM look off sync. This confused me because I was under the impression that the ISR was dependent on the ADC trigger, which is dependent on the ePWM. Do you have any insight on why this is happening? Is this supposed to happen?

Buck Start Up

Buck Start Up Zoomed In
Respectfully,
Mike Allette










