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

Best regards

Hi @sm78yy,

Can you write an email to with your code generation problem?

You can also request support here:



I sent the letter to, thank you for your suggestion.