|
H4-PFC Infineon 1600W Server PSU
|
Header of the functions for SW initialization and running in the background during operation. More...
#include <DAVE.h>Go to the source code of this file.
Data Structures | |
| struct | FIR_lowpass_int |
| struct | IIR_lowpass_int |
| struct | controller_PI |
| struct | controller_int |
Macros | |
| #define | MAX_DUTY_SOFTSTART 1430 |
| #define | CLK_CORE_HZ 48000000UL |
CORDIC configuration | |
| #define | DIV_AUTO_START 0 |
| #define | UNSIGNED_DIVISION 4 |
| #define | SIGNED_DIVISION 0 |
| #define | DIV_32BIT_BY_32BIT 0 |
Input voltage range for BOP | |
| #define | VIN_MIN_START_INIT 2281 |
| #define | VIN_MIN_START 2281 |
| #define | VIN_MIN_STOP_HARD 1490 |
| #define | VIN_MIN_PLD_68V 1901 |
| #define | VIN_MIN_PLD_75V 2255 |
Current limit | |
| #define | I_IN_AVG_MAX 19382 |
| #define | I_IN_MAX16b 0xFFFFU |
| #define | I_IN_FACTOR 1 |
| #define | I_IN_MAX_FACTOR (I_IN_MAX16b >> I_IN_FACTOR) |
Timing definition | |
| #define | LIMIT_1_MILI_S 65 |
| #define | LIMIT_100_MILI_S 100 |
Typedefs | |
| typedef struct FIR_lowpass_int | FIR_lowpass_int_t |
| typedef struct IIR_lowpass_int | IIR_lowpass_int_t |
| typedef struct controller_PI | controller_PI_t |
| typedef struct controller_int | controller_int_t |
Functions | |
| void | IIR_param_init (void) |
| IIR coefficients initialization. IIR cascaded low-pass filter of the AC voltage to obtain the RMS value. IIR notch filter of the DC voltage to remove 100/120Hz ripple. Sampling frequency of both filters is 3250Hz, every 2 cycles of CCU40.CC41 @ 6.5kHz. More... | |
| void | MATH_DIV_config (void) |
| DIV kernel of the MATH co-processor initialization. Used in the input RMS feedforward. More... | |
| void | control_loop_init (void) |
| Assign value to the coefficients of voltage and current loops. Reset the state and output of both controllers. More... | |
| void | time_counter (void) |
| Time counter is a background process to count "real-time" in the application. More... | |
| void | temperature_sense_enable (void) |
| Enable the internal temperature sensor and set the measurement pointer. More... | |
| void | delay_100us (uint32_t time) |
| Delay function. More... | |
| void | input_voltage_observer (void) |
| BOP protection, checking AVG input voltage. The function modifies the control status register. More... | |
| void | fan_control_temp_protection (void) |
| Temperature monitoring: protection and fan control. More... | |
Variables | |
| volatile IIR_lowpass_int_t | ACfilter |
| volatile IIR_lowpass_int_t | DCfilter |
| volatile int32_t | auxAC |
| volatile int32_t | auxDC |
| volatile uint16_t | time_count_65kHz |
| uint8_t | _1ms_count |
| uint8_t | _100ms_count |
| uint8_t | time_BOP |
| uint8_t | time_ACOK |
| uint8_t | time_PLD_68V |
| uint8_t | time_PLD_75V |
| uint8_t | time_V_step |
| uint8_t | time_INIT |
| uint8_t | time_extra_bulk |
| volatile bool | power_stage_ON |
| volatile controller_int_t | voltage_int_ctr |
| volatile controller_PI_t | current_PI_ctr |
Header of the functions for SW initialization and running in the background during operation.
| #define CLK_CORE_HZ 48000000UL |
CLK frequency (Hz)
| #define DIV_32BIT_BY_32BIT 0 |
This sets 32-bit divide by 32-bit
| #define DIV_AUTO_START 0 |
Calculation is automatically started with a write to DVS register
| #define I_IN_AVG_MAX 19382 |
Maximum current limitation
| #define I_IN_FACTOR 1 |
Multiplication factor during bulk undershoot (applied shift)
| #define I_IN_MAX16b 0xFFFFU |
Maximum current representation
| #define I_IN_MAX_FACTOR (I_IN_MAX16b >> I_IN_FACTOR) |
Multiplication factor applied if reference under certain limit
| #define LIMIT_100_MILI_S 100 |
100ms @ 1ms counter
| #define LIMIT_1_MILI_S 65 |
1ms @ 65kHz
| #define MAX_DUTY_SOFTSTART 1430 |
Maximum allowed duty cycle during soft-start
| #define SIGNED_DIVISION 0 |
Signed division is selected
| #define UNSIGNED_DIVISION 4 |
Unsigned division is selected
| #define VIN_MIN_PLD_68V 1901 |
140Vrms; 0.5s if the voltage is between 127V and 140V (Power line disturbance)
| #define VIN_MIN_PLD_75V 2255 |
165Vrms; 2s if the voltage is between 140V and 165V (Power line disturbance)
| #define VIN_MIN_START 2281 |
172Vrms, converter start threshold
| #define VIN_MIN_START_INIT 2281 |
172Vrms, converter start threshold
| #define VIN_MIN_STOP_HARD 1490 |
127Vrms; Stop the PFC if the input voltage is under 127V
| typedef struct controller_int controller_int_t |
Voltage controller with integral part
| typedef struct controller_PI controller_PI_t |
Controller structure for current loop
| typedef struct FIR_lowpass_int FIR_lowpass_int_t |
FIR filter structure, not used in the current implementation
| typedef struct IIR_lowpass_int IIR_lowpass_int_t |
IIR filter structure, used in AC-RMS and DC-Notch filtering