Contains Control loop interrupt Callback that acquires the ADC raw data and process it in the control loop, and use the control output for the PWM distribution for this converter. More...
#include <xc.h>
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include "timer/sccp1.h"
#include "adc/adc1.h"
#include "system/pins.h"
#include "config/macros.h"
#include "config/config.h"
#include "pwrctrl.h"
#include "fault/fault.h"
Go to the source code of this file.
Functions | |
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. | |
void | PwrCtrl_PeriodModulator (void) |
void | PwrCtrl_UpdateADConverterData (void) |
This function updates the DAB data members with ADC raw values. | |
void | PwrCtrl_ControlLoopExecute (void) |
void | PwrCtrl_10KHzVPLoopPrepareData (void) |
This function prepares the data for control loop and selects which control loop will be executed. | |
void | ControlLoop_Interrupt_CallBack (void) |
Executes the power converter control loop. | |
<>
Definition in file pwrctrl_isr.c.
void PwrCtrl_ControlLoopExecute | ( | void | ) |
Definition at line 228 of file pwrctrl_isr_extension.c.
void PwrCtrl_PeriodModulator | ( | void | ) |