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.

DPL 2p2z问题,

Other Parts Discussed in Thread: CONTROLSUITE

各位大佬好:

        我在使用Ti的2p2z汇编函数的时候遇到一个奇怪问题,有调试过2p2z的朋友希望能来指点一二。

我设置2p2z的最大值(0x00 38 51 EB),最小值(0x 00 00 00 C0)。有时候上电后2p2z输出的值

比较正常在最大值和最小值之间,有时候一直为一个固定值比如(0x3A 9C 62 B4)。

这时候就比较奇怪为什么会有这样的值。希望有遇到类似问题的朋友过来说下经历。

  • 在查看别人的例子程序时发现,别人的2p2z参数比我的参数多了一个,注意红色标记的,有谁知道这个参数是干什么的?

    CNTL_2P2Z_CoefStruct1.b2 = _IQ26(0.05);

    CNTL_2P2Z_CoefStruct1.b1 = _IQ26(-0.20);

    CNTL_2P2Z_CoefStruct1.b0 = _IQ26(0.20);

    CNTL_2P2Z_CoefStruct1.a2 = _IQ26(0.0);

    CNTL_2P2Z_CoefStruct1.a1 = _IQ26(1.0);

    CNTL_2P2Z_CoefStruct1.max =_IQ24(0.7);

    CNTL_2P2Z_CoefStruct1.i_min =_IQ24(-0.9);

    CNTL_2P2Z_CoefStruct1.min =_IQ24(0.0);

    有谁知道红色标记的参数是做什么用的,请赐教谢谢!!!

  • 在查看别人的例子程序时发现,别人的2p2z参数比我的��数多了一个,注意红色标记的,有谁知道这个参数是干什么的?

    CNTL_2P2Z_CoefStruct1.b2 = _IQ26(0.05);

    CNTL_2P2Z_CoefStruct1.b1 = _IQ26(-0.20);

    CNTL_2P2Z_CoefStruct1.b0 = _IQ26(0.20);

    CNTL_2P2Z_CoefStruct1.a2 = _IQ26(0.0);

    CNTL_2P2Z_CoefStruct1.a1 = _IQ26(1.0);

    CNTL_2P2Z_CoefStruct1.max =_IQ24(0.7);

    CNTL_2P2Z_CoefStruct1.i_min =_IQ24(-0.9);

    CNTL_2P2Z_CoefStruct1.min =_IQ24(0.0);

    有谁知道红色标记的参数是做什么用的,请赐教谢谢!!!

    Eric: C:\ti\controlSUITE\libs\app_libs\digital_power\f2803x_v3.5\Doc

    参考这个文档:

    Where sat
    max and satmin are the upper and lower control effort bounds
    respectively. i_satmin is the value used for saturating the lower bound of the
    control effort when storing the history of the output. This allows the value of
    Texas Instruments Inc., 2015 20
    the history have negative values which can help avoid oscillations on the
    output in case of no load. The user can specify it’s own value however it is
    recommended to use _IQ24(-0.9). Also, note that to preserve maximum
    resolution the coefficients are saved in Q26 format and the saturation limits
    are stored in Q24 format to match the output format.

x 出现错误。请重试或与管理员联系。