Hi
I'm using the PFC_INVSQR block in my software.
Can someone explain to me the consideration for the parameters PFC_INVSQR_Vmin and PFC_INVSQR_VminOverVmax? I haven't understand this. VminOverVmax looks to me only as a factor which can be neglected, because of the multiplication of the PFC_ICMD block. So to my understanding VminOverVmax must be set to have good precision and no overflow.
To have no overflow I would make this considerations.
Math expression of the block is:
(1 / (InvSqr_in* 0.5 * pi) * VminOverVmax)^2 = InvSqrOut (= IQ30max)
The last calculations in the DSP will be done in IQ30 format. Because of that this range should not be exceeded.
Transform for InvSqr_in and get the minimum by using IQ30max:
InvSqr_in_min = VminOverVmax * 1 / (sqrt(IQ30max) * 0.5 * pi)
With this calculation I will protect the DSP from an overflow, Vmin should not be below. To be not be influenced by the output saturation I made the same calculation and put 1 instead of IQ30max.
Further I saw that the output the signal is saturated to a maximum of 1.0 in Q24 format. Sadly this is not shown in the block diagramm of the user guide, it's only described in text form. Would be more clear if it's shown in the block diagram.
Thanks for your explanation in advance
Matt