Part Number: UCD3138A
In the ucd3138a PFC code officially provided by Ti, there is a macro definition to calculate the "feedforward gain". Why does the "feedforward gain" multiply by 0x7fffff become q30, and why not multiply by 0x4000 0000?
The code is:
//feedforward gain
#define K_FEED_FORWARD ((Uint32)(0.5 * VAC_MIN_OFF * 1.414 * VAC_VOLTAGE_DIVIDER * 0x7FFFFFFF))//Q30