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 code
https://drive.google.com/file/d/1PqXI-eLJhiCJQ1NxN7SbXuIgBjDjBlvw/view?usp=sharing
Best regards