In the Lab4-Main.c file of the Digital Power Supply workshop (downloaded from processors.wiki.ti.com/.../C2000_DPSWorkshop ) at row 236:
"volatile long Vout1SetSlewed = 2093568 // Slewed Set Point for the FB Voltage loop - start at 4 V"
As far as I know this value (2093568) should be computed as follows:
4V is represented in Q11 format but is a Q15 number. This needs to be multiplied by the iKv factor, 26852 (in Q14) from the spread sheet. The result of this multiplication is a Q29 result. Also the input to the slew rate logic is in Q24 format. Therefore, the Q29 result needs to be right shifted by 5 bits to get the correct value.
For 4V, this means,
4*2^11*26852/2^5 = 6874112 !!
According to this procedure the correct voltage for 2093568 is 1.2182V not 4V!
Someone. please, could explain to me this difference
Thank you very much