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.

ΔRamp calculation for TMS320F2803x"

Hello,

 

My question is about the "Digital Peak Current Mode Control With Slope

Compensation Using the TMS320F2803x" application report.

In section 7, Design Example, you calculated the ΔRamp to be  -0.45 but in the actual code you entered the number -1.0 (page 14: CLA_slopeCode( SlopeTask, 2, 1, -1.0, 80 );

If I understand right, every 50nsec we will add -1.0 to the last ramp result- for 80 steps (4ysec slop duration). The problem with that is the Vpp will be the discrete number of "Ramp" will be 80 and not 38, as calculated in (25), and the slop will changed and so the Vpp calculated in (24).

Which Vpp is the correct one?  

Thank,

Idan