Contains some of the functions used in the interrupt service routine of control loop. More...
#include <xc.h>#include <math.h>#include <stdbool.h>#include <stdlib.h>#include "adc/adc_types.h"#include "adc/adc1.h"#include "system/pins.h"#include "config/macros.h"#include "config/config.h"#include "pwrctrl.h"#include "fault/fault.h"#include "dcdt/pwrctrl_dcdt.h"
Include dependency graph for pwrctrl_isr_extension.c:Go to the source code of this file.
Macros | |
| #define | MIN_REFERENCE_THRESHOLD_IV (10) |
| Executes the power converter control loop. | |
| #define | MIN_REFERENCE_THRESHOLD_P (15) |
| #define | PIRM_MIN_VOLTAGE_55V (250) |
| #define | PRIMARY_VOLTAGE_MODE_SENSOR_SAFE_CHECK() |
Functions | |
| static void | PwrCtrl_AdaptiveGainUpdate (void) |
| Updates the Adaptive gain for the power converter control loop. | |
| void | PwrCtrl_UpdateADConverterData (void) |
| This function updates the DAB data members with ADC raw values. | |
| void | PwrCtrl_10KHzVPLoopPrepareData (void) |
| This function prepares the data for control loop and selects which control loop will be executed. | |
| void | PwrCtrl_ControlLoopExecute (void) |
| void | PwrCtrl_PrimToSecPHDegree (void) |
| This function updates the DAB data members with phase values normalized in degree. | |
| void | PwrCtrl_DeadTimeAdjust (void) |
| This function updates the DAB data members dead time based on load. | |
Variables | |
| AVERAGING_t | vPrimAveraging |
| Data Object of primary voltage averaging. | |
| AVERAGING_t | vSecAveraging |
| Data Object of secondary voltage averaging. | |
| AVERAGING_t | iSecAveraging |
| Data Object of secondary current averaging. | |
| static bool | VLoopInterleaveExec = true |
<>
Definition in file pwrctrl_isr_extension.c.
| #define MIN_REFERENCE_THRESHOLD_P (15) |
Definition at line 214 of file pwrctrl_isr_extension.c.
| #define PIRM_MIN_VOLTAGE_55V (250) |
Definition at line 215 of file pwrctrl_isr_extension.c.
| #define PRIMARY_VOLTAGE_MODE_SENSOR_SAFE_CHECK | ( | ) |
Definition at line 216 of file pwrctrl_isr_extension.c.
| void PwrCtrl_ControlLoopExecute | ( | void | ) |
Definition at line 228 of file pwrctrl_isr_extension.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 54 of file pwrctrl_isr_extension.c.