|
3.3kW Totem-pole PFC with CoolMOS and XMC1402
|
#include <init_bckgnd_funct.h>
Data Fields | |
| int32_t | a0 |
| int32_t | a1 |
| int32_t | a2 |
| int32_t | aux |
| uint8_t | shift_to_q13 |
| uint8_t | shift_to_q29 |
| int32_t | state_output [3] |
| int16_t * | duty_iL |
| int32_t | ratio_FF |
| int16_t | duty |
| int32_t | state_error [3] |
| int16_t | max_duty |
| int16_t | min_duty |
| uint16_t | PI_ref |
| uint32_t | PI_ref_int |
| uint16_t | PI_ref_max |
| int16_t | PR_calc |
Controller structure for current loop
| int32_t controller_PI::a0 |
PI 'k' error coefficient. Q14 format.
| int32_t controller_PI::a1 |
PI 'k-1' error coefficient. Q14 format.
| int32_t controller_PI::a2 |
PI 'k-2' error coefficient. Q14 format.
| int32_t controller_PI::aux |
Auxiliary variable for coefficient calculation. Q14 format.
| int16_t controller_PI::duty |
Duty cycle to be applied: ratio_FF+duty_iL.
| int16_t* controller_PI::duty_iL |
Duty cycle information obtained from the state_output vector of the current loop
| int16_t controller_PI::max_duty |
Maximum allowed duty cycle.
| int16_t controller_PI::min_duty |
Minimum allowed duty cycle.
| uint16_t controller_PI::PI_ref |
Current reference value. Q15 format
| uint32_t controller_PI::PI_ref_int |
Intermediate current reference calculation.
| uint16_t controller_PI::PI_ref_max |
Maximum allowed current reference value. Q15 format
| int16_t controller_PI::PR_calc |
Applied switching frequency
| int32_t controller_PI::ratio_FF |
Ratio Vac/Vdc for DFF calculation. Vdc assumed constant in inverter operation.
| uint8_t controller_PI::shift_to_q13 |
Applicable shift to obtain Q13 output
| uint8_t controller_PI::shift_to_q29 |
Applicable shift to obtain Q29 intermediate value
| int32_t controller_PI::state_error[3] |
Previous ('k'), ('k-1') and ('k-2') errors. Q15 format.
| int32_t controller_PI::state_output[3] |
Previous ('k'), ('k-1') and ('k-2') outputs. Q15 format.