|
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 6715 |
| #define | Ki 874 |
| #define | Kd 8773 |
| #define | Q_COMP 14 |
| #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 135 of file init_bckgnd.h.
Referenced by voltage_loop().
| #define Kd 8773 |
Compensation Derivative gain (Qx) - 10us ISR - Cr=132n - Lf=120n
Definition at line 119 of file init_bckgnd.h.
Referenced by control_loop_init().
| #define Ki 874 |
Compensation Integral gain (Qx) - 10us ISR - Cr=132n - Lf=120n
Definition at line 117 of file init_bckgnd.h.
Referenced by control_loop_init().
| #define Kp 6715 |
Compensation Proportional gain (Qx) - 10us ISR - Cr=132n - Lf=120n
Definition at line 115 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 14 |
Compensation coefficient Q codification - 10us ISR
Definition at line 121 of file init_bckgnd.h.
| #define T_MAX_PWM 65 |
Maximum temperature for fan PWM linear variation
Definition at line 145 of file init_bckgnd.h.
| #define T_MIN_PWM 40 |
Minimum temperature for fan PWM linear variation
Definition at line 143 of file init_bckgnd.h.
Referenced by fan_temp_control().
Slope definition for fan PWM linear variation
Definition at line 147 of file init_bckgnd.h.
Referenced by fan_temp_control().
|
inline |
Adjust Fan PWM duty.
Definition at line 194 of file init_bckgnd.h.
Referenced by fan_temp_control().