Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
pwrctrl_isr_extension.c File Reference

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
 

Detailed Description

<>

Definition in file pwrctrl_isr_extension.c.

Macro Definition Documentation

◆ MIN_REFERENCE_THRESHOLD_P

#define MIN_REFERENCE_THRESHOLD_P   (15)

Definition at line 214 of file pwrctrl_isr_extension.c.

◆ PIRM_MIN_VOLTAGE_55V

#define PIRM_MIN_VOLTAGE_55V   (250)

Definition at line 215 of file pwrctrl_isr_extension.c.

◆ PRIMARY_VOLTAGE_MODE_SENSOR_SAFE_CHECK

#define PRIMARY_VOLTAGE_MODE_SENSOR_SAFE_CHECK ( )
Value:
do { \
} \
} while (0)
#define MIN_REFERENCE_THRESHOLD_P
#define PIRM_MIN_VOLTAGE_55V
POWER_CONTROL_t dab
Global data object for a DAB Converter.
Definition pwrctrl.c:28
AVERAGING_t vPrimAveraging
Data Object of primary voltage averaging.
#define MIN_REFERENCE_THRESHOLD_IV
Executes the power converter control loop.
uint16_t AverageValue
int16_t Reference
actual reference
uint16_t PwrReference
User power reference setting used to control the converter controller.
int16_t IReference
User current reference setting used to control the converter controller.
uint16_t VPriReference
User primary-voltage port reference setting used to control the power converter output voltage in boo...
CONTROLLER_t ILoop
structure for current controller data
CONTROLLER_t PLoop
structure for power controller data
PWR_CTRL_PROPERTIES_t Properties
Power Control properties

Definition at line 216 of file pwrctrl_isr_extension.c.

Function Documentation

◆ PwrCtrl_ControlLoopExecute()

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:

Variable Documentation

◆ VLoopInterleaveExec

bool VLoopInterleaveExec = true
static

Definition at line 54 of file pwrctrl_isr_extension.c.