TI中文支持网
TI专业的中文技术问题搜集分享网站

PFC_InvRmsSqr 中的 PFC_InvRmsSqr_VminOverVmax有什么作用?

PFC_InvRmsSqr.asm 文件中,

; Renormalize the Inverse Avg AC Line measurement to it's own max by multiplying by Vmin/Vmax
MOVL XT,ACC ; Store quotient in Multiplier Register QMPYL ACC,XT,@_PFC_InvRmsSqr_VminOverVmax:n: ; Multiply Inverse of In value by Vmin/Vmax, Q24*Q30 = I10Q22
LSL ACC,#8 ; ACC=I2Q30

最后乘以 PFC_InvRmsSqr_VminOverVmax有什么作用?

 

Green Deng:抱歉对汇编不太熟悉,方便告知一下文件的具体位置和使用的芯片型号吗?稍后我会就你的问题咨询一下相关工程师。

PFC_InvRmsSqr.asm 文件中,

; Renormalize the Inverse Avg AC Line measurement to it's own max by multiplying by Vmin/Vmax
MOVL XT,ACC ; Store quotient in Multiplier Register QMPYL ACC,XT,@_PFC_InvRmsSqr_VminOverVmax:n: ; Multiply Inverse of In value by Vmin/Vmax, Q24*Q30 = I10Q22
LSL ACC,#8 ; ACC=I2Q30

最后乘以 PFC_InvRmsSqr_VminOverVmax有什么作用?

 

Green Deng:可以参考以下帖子:e2e.ti.com/…/212503

PFC_InvRmsSqr.asm 文件中,

; Renormalize the Inverse Avg AC Line measurement to it's own max by multiplying by Vmin/Vmax
MOVL XT,ACC ; Store quotient in Multiplier Register QMPYL ACC,XT,@_PFC_InvRmsSqr_VminOverVmax:n: ; Multiply Inverse of In value by Vmin/Vmax, Q24*Q30 = I10Q22
LSL ACC,#8 ; ACC=I2Q30

最后乘以 PFC_InvRmsSqr_VminOverVmax有什么作用?

 

user1601657:

回复 Green Deng:

这部分的代码在 C:\ti\controlSUITE\libs\app_libs\digital_power\f2803x_v3.5\asm_macros \PFC_InvRmsSqr.ASM中, 芯片型号是TMS320F28035。 在Interleaved Power Factor Correction(IL PFC) Converter 上会用到,用于计算交流有效值的倒数的平方( (1/vin)^2 )。 C:\ti\controlSUITE\development_kits\ILPFC_v1.3。 。 C:\ti\controlSUITE\libs\app_libs\digital_power\f2803x_v3.5\C_macros \PFC_InvRmsSqr_CLA_C.h C:\ti\controlSUITE\libs\app_libs\digital_power\f2803x_v3.5\asm_macros \PFC_InvRmsSqr.ASM 这两个实现同样的功能,一个是用汇编 ,一个是用CLA的C语言。 乘以这个PFC_InvRmsSqr_VminOverVmax,目的是什么,不是很明白!

PFC_InvRmsSqr.asm 文件中,

; Renormalize the Inverse Avg AC Line measurement to it's own max by multiplying by Vmin/Vmax
MOVL XT,ACC ; Store quotient in Multiplier Register QMPYL ACC,XT,@_PFC_InvRmsSqr_VminOverVmax:n: ; Multiply Inverse of In value by Vmin/Vmax, Q24*Q30 = I10Q22
LSL ACC,#8 ; ACC=I2Q30

最后乘以 PFC_InvRmsSqr_VminOverVmax有什么作用?

 

user1601657:

回复 Green Deng:

谢谢回复
我看了你给我的链接,还是不太明白。
the normalized value of 1/Vin has to be with respect to the minimum input voltage Vin_min.
Therefore the multiplication factor Vmin/Vmax is needed as a parameter which changes the normalization of 1/vin from Vin_max to Vin_min
还是不明白这是什么意思。
麻烦帮忙解释一下,十分感谢!

赞(0)
未经允许不得转载:TI中文支持网 » PFC_InvRmsSqr 中的 PFC_InvRmsSqr_VminOverVmax有什么作用?
分享到: 更多 (0)