This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280025C: Peak Current Mode Control - Duty Cycle measurement

Part Number: TMS320F280025C

Hi,

I'm currently working on a device that controls the current of a solenoid using peak current mode control inside of a c2000 MCU.

Our customer wants to know the electrical resistance of the solenoid to estimate its temperature for thermal protection purposes. As I measure the device supply voltage and control / measure its current, I could easily calculate the resistance by knowing the actual duty cycle.

I've already implemented a solution using eCap module and DMA. Anyway, I can only measure every second duty cycle using this concept. Under some environmental conditions, using only every second duty cycle value gives me a quite high failure on calculated mean solenoid voltage, which is not acceptable.

So here is my question:

What's the recommended way to read back the (mean) duty cycle in peak current mode control? Are there examples available?

Best regards,

Markus