|
3.3kW Totem-pole PFC with CoolMOS and XMC1402
|
#include <control_interrupts.h>
Data Fields | |
| uint16_t | qiL |
| int16_t | qiL_k |
| uint32_t | qiL_offset_acc |
| uint16_t | qiL_offset_count |
| uint16_t | qiL_offset |
| comp_BW_t | bandwitdh |
| bool | iL_offset_en |
| bool | iL_offset_done |
| int16_t | qiL_int |
| uint16_t | qVbus_DC |
| uint16_t | qVbus_DC_send |
| int32_t | qVbus_DC_filt |
| bool | qVbus_DC_OK |
| uint16_t | qVin_AC |
| int16_t | qVin_AC_Diff |
| uint16_t | qVin_BOP |
| uint32_t | qVin_inv2 |
| uint16_t | qVin_inv2_16b |
| uint16_t | qTemp |
| uint16_t | qTemp_amb |
| uint16_t | qTemp_send |
| uint16_t | store_params |
| op_mode_t | pfc_inv_mode |
| uint16_t | inv_power_ref |
| uint16_t | inv_power |
Structure for the PFC related variables
| comp_BW_t PFC_var::bandwitdh |
BW applied according to current level.
| bool PFC_var::iL_offset_done |
Allows inductor current zero calculation only after controller reset.
| bool PFC_var::iL_offset_en |
Inductor current zero calculation enable.
| uint16_t PFC_var::inv_power |
Actual power to be delivered in inverter mode.
| uint16_t PFC_var::inv_power_ref |
Target power to be delivered in inverter mode.
| op_mode_t PFC_var::pfc_inv_mode |
Holds the operation mode: 0–>PFC, 1–>Inverter.
| uint16_t PFC_var::qiL |
Inductor current value read from the ADC. Q15 format.
| int16_t PFC_var::qiL_int |
Intermediate value for the inductor current processing.
| int16_t PFC_var::qiL_k |
Inductor current value after modification to be used in the current loop calculation. Q15 format.
| uint16_t PFC_var::qiL_offset |
Inductor current calculated zero. Q15 format
| uint32_t PFC_var::qiL_offset_acc |
Inductor current accumulation for zero current calculation. Q15 format.
| uint16_t PFC_var::qiL_offset_count |
Inductor current accumulation count for zero current calculation.
| uint16_t PFC_var::qTemp |
Temperature sensing in power board.
| uint16_t PFC_var::qTemp_amb |
Temperature sensing in TSE of XMC.
| uint16_t PFC_var::qTemp_send |
Temperature information of NTC and ambient measurements to be sent to secondary side.
| uint16_t PFC_var::qVbus_DC |
Output Voltage DC value.
| int32_t PFC_var::qVbus_DC_filt |
Filtered output Voltage DC value.
| bool PFC_var::qVbus_DC_OK |
Output Voltage DC value is in range to start in inverter mode.
| uint16_t PFC_var::qVbus_DC_send |
Output Voltage DC value to be sent to secondary side controller.
| uint16_t PFC_var::qVin_AC |
Input Voltage AC value. 'k' and 'k-1' values.
| int16_t PFC_var::qVin_AC_Diff |
Difference between 'k' and 'k-1' AC values. NOT USED.
| uint16_t PFC_var::qVin_BOP |
Input Voltage AVG value. Used as RMS (proportional).
| uint32_t PFC_var::qVin_inv2 |
Inverse of the input voltage RMS square in 32-bit Q31 codification.
| uint16_t PFC_var::qVin_inv2_16b |
Inverse of the input voltage RMS square in 16-bit Q15 codification.
| uint16_t PFC_var::store_params |
Storage of parameters requested by the GUI.