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.

关于PID算法后和CMPR的对应关系

             现在我在做一个产品,是利用TI28035芯片做的离网DC-AC产品,就是母线电压恒定控制输出AC电压恒定(220/50Hz),现在通过中断(载波比设定)采样AC的电压,然后和参考的电压比较(假如是0.2sin [ i ])  err=0.2sin[i]-Vac;    PIDworth=PID(err);  现在的问题是得到的PIDworth怎么和CMPR=T(1+Msin[i])/2)中对应,就是PIDworth怎么改变调制比M,假如我PIDworth是Q22格式的,PIDworth有正的,也有负的值,正的时候应该怎么处理,负的时候又应该怎么处理呢? 谢谢、、、、