Boost pi control in ccs, PWM does not change

Hello, amazing psim engineers

I set the pi control for the boost circuit, the simulation is correct in psim, and the code can be automatically generated, and the program is executed normally in ccs.

The channel I set for pwm is GPIO0. I used a variable resistor to give ADC0 an analog voltage and measured it with an oscilloscope. It can be seen that kp and ki change with the voltage of adc0, but the PWM waveform of GPIO0 does not change and is fixed. 70%, which side is wrong?

Attached is my codeTEK00000

https://drive.google.com/file/d/1PqXI-eLJhiCJQ1NxN7SbXuIgBjDjBlvw/view?usp=sharing

Best regards

Hi @sm78yy,

Can you write an email to support@powersimtech.com with your code generation problem?

You can also request support here: https://powersimtech.com/resources-support/request-support/

Regards,
Amit

Hi,Amit_Kumar´╝Ü

I sent the letter to support@powersimtech.com, thank you for your suggestion.

Regards