|
3.3kW Totem-pole PFC with SiC and XMC1404
|
#include <init_bckgnd_funct.h>
Data Fields | |
| int16_t | a [3] |
| int16_t | b [3] |
| uint8_t | qformat |
| uint8_t | shift_to_q15 |
| int16_t | error [3] |
| int32_t | state [3] |
| int32_t | output_int |
| int16_t * | output_int_limit |
| uint16_t | output |
| int16_t | output_max |
| uint16_t | int_ref |
| uint16_t | ref_offset_LCDO |
| uint16_t | int_ref_steady |
| int32_t | interm_calc1 |
| int32_t | interm_calc2 |
| bool | first_iter |
Voltage controller structure
| int16_t controller_int::a[3] |
PI 'k', 'k-1' and 'k-2' error coefficient. Q(format).
| int16_t controller_int::b[3] |
PI 'k', 'k-1' and 'k-2' duty cycle coefficient. Q(format).
| int16_t controller_int::error[3] |
Voltage error ('k'), ('k-1') and ('k-2'). Q15.
| bool controller_int::first_iter |
First iteration of the voltage loop after not normal conditions
| uint16_t controller_int::int_ref |
Bulk voltage reference value
| uint16_t controller_int::int_ref_steady |
Steady-state Reference value
| int32_t controller_int::interm_calc1 |
Voltage loop intermediate calculation.
| int32_t controller_int::interm_calc2 |
Voltage loop intermediate calculation.
| uint16_t controller_int::output |
Output of the regulator. Used for current reference calculation.
| int32_t controller_int::output_int |
Intermediate output of the regulator in steady state. Q(format+15).
| int16_t* controller_int::output_int_limit |
Limited intermediate output of the regulator in steady state. Q15.
| int16_t controller_int::output_max |
Maximum output for loop saturation
| uint8_t controller_int::qformat |
Q(format) of the voltage loop coefficients.
| uint16_t controller_int::ref_offset_LCDO |
Value to be added to the reference value after AC is lost
| uint8_t controller_int::shift_to_q15 |
Applicable shift to obtain Q15 output.
| int32_t controller_int::state[3] |
output calculated value ('k'), ('k-1') and ('k-2'). Q(format+15).