|
XMC42_800WPSU_LLC
|
Functions for SW initialization and running in the background during operation. Header file. More...
#include <DAVE.h>Go to the source code of this file.
Macros | |
Timing definition | |
| #define | LIMIT_100_MICRO_S 10 |
| #define | LIMIT_1_MILI_S 100 |
| #define | LIMIT_100_MILI_S 100 |
Compensation parameters | |
| #define | Kp 6239 |
| #define | Ki 1370 |
| #define | Kd 4460 |
| #define | Q_COMP 15 |
| #define | COMP_SHIFT (16-Q_COMP) |
Temperature parameters | |
| #define | T_MIN_PWM 40 |
| #define | T_MAX_PWM 65 |
| #define | T_SLOPE_PWM (fan_pwm.config_ptr->period_value/(T_MAX_PWM-T_MIN_PWM)) |
Functions | |
| void | time_counter (void) |
| Time counter is a background process to count "real-time" in the application. More... | |
| void | control_loop_init (void) |
| Assign value to the coefficients of voltage loop. Set the voltage target. Reset the state and output of the compensator. More... | |
| void | fan_temp_control (void) |
| Fan management. More... | |
| void | I_MON_update (void) |
| DAC output to report load level. More... | |
| void | fan_duty_set (int16_t duty) |
| Adjust Fan PWM duty. More... | |
Variables | |
| uint8_t | _1ms_count |
| uint16_t | _100ms_count |
| volatile uint8_t | time_BOP |
| volatile uint8_t | time_INIT |
| volatile uint16_t | time_OCP_M_100ms |
| volatile uint16_t | time_OCP_S_100ms |
| volatile uint8_t | time_send_UART |
| __I uint32_t * | Fsw_capture |
Functions for SW initialization and running in the background during operation. Header file.
Definition in file init_bckgnd.h.
| #define COMP_SHIFT (16-Q_COMP) |
Compensation product shifting - 10us ISR
Definition at line 153 of file init_bckgnd.h.
Referenced by voltage_loop().
| #define Kd 4460 |
Compensation Derivative gain (Qx) - 10us ISR - Cr=320n - Lf=120n - 17mESR
Definition at line 137 of file init_bckgnd.h.
Referenced by control_loop_init().
| #define Ki 1370 |
Compensation Integral gain (Qx) - 10us ISR - Cr=320n - Lf=120n - 17mESR
Definition at line 135 of file init_bckgnd.h.
Referenced by control_loop_init().
| #define Kp 6239 |
Compensation Proportional gain (Qx) - 10us ISR - Cr=320n - Lf=120n - 17mESR
Definition at line 133 of file init_bckgnd.h.
Referenced by control_loop_init().
| #define LIMIT_100_MICRO_S 10 |
| #define LIMIT_100_MILI_S 100 |
| #define LIMIT_1_MILI_S 100 |
| #define Q_COMP 15 |
Compensation coefficient Q codification - 10us ISR
Definition at line 139 of file init_bckgnd.h.
| #define T_MAX_PWM 65 |
Maximum temperature for fan PWM linear variation
Definition at line 164 of file init_bckgnd.h.
| #define T_MIN_PWM 40 |
Minimum temperature for fan PWM linear variation
Definition at line 162 of file init_bckgnd.h.
Referenced by fan_temp_control().
Slope definition for fan PWM linear variation
Definition at line 166 of file init_bckgnd.h.
Referenced by fan_temp_control().
|
inline |
Adjust Fan PWM duty.
Definition at line 214 of file init_bckgnd.h.
Referenced by fan_temp_control().