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.

TMS320F28335: PI控制問題

Part Number: TMS320F28335


F28335 PI控制問題

已將問題發在E2E網,尚未有工程師回覆,謝謝!

e2e.ti.com/.../tms320f28335-pid-control-problem

 

我為boost pid電路設定了ADC、中斷,

 

 

並預期用PID控制boost output voltage,我在f28335上接了adc A0腳位(如附圖)

 

並使用可變電阻10k,模擬在AO收到的電壓/100/4095*600(模擬輸入0~600輸出電壓)

 

目前遇到的問題是CMPA.half.CMPA會額滿

 

請問我該加上什麼限制條件,當boost output來讓我的pid控制器,能夠控制pwm?

附件為我的代碼,ccs版本為 Version: 6.1.1.00022