Contains the interrupt routine and other functions called in the interrupt. More...
Files | |
file | pwrctrl_isr.c |
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. | |
file | pwrctrl_isr.h |
Contains public function relevant for power control interrupt. | |
file | pwrctrl_isr_extension.c |
Contains some of the functions used in the interrupt service routine of control loop. | |
Functions | |
void | __attribute__ ((__interrupt__, auto_psv)) |
Executes the power converter control loop. | |
void | ControlLoop_Interrupt_CallBack (void) |
Executes the power converter control loop. | |
void | PwrCtrl_UpdateADConverterData (void) |
This function updates the PSFB data members with ADC raw values. | |
void | PwrCtrl_ControlLoopExecute (void) |
Executes the power converter control loop. | |
void | PwrCtrl_DroopAverage (void) |
Averages secondary current for droop. | |
This document includes the interrupt function in power control.
void __attribute__ | ( | (__interrupt__, auto_psv) | ) |
void ControlLoop_Interrupt_CallBack | ( | void | ) |
This callback is executed every 100Khz. and is tied up to the ADC0 conversion ISR. The ADC0 itself is triggererd by half of the phase difference (half of the duty) between fixed and phase shifted legs
Definition at line 38 of file pwrctrl_isr.c.
void PwrCtrl_ControlLoopExecute | ( | void | ) |
This function is called to execute the control loop of the power converter. It comprise of Voltage Loop control (VLoop), Power Loop control (PLoop) and Current Loop Control (ILoop). Vloop and PLoop is ten times slower than the current loop with interleaved execution while Iloop is executed every time this function is called.
Definition at line 90 of file pwrctrl_isr_extension.c.
void PwrCtrl_DroopAverage | ( | void | ) |
This function is called to keep and average of last 100 values needed in droop
Definition at line 138 of file pwrctrl_isr_extension.c.
void PwrCtrl_UpdateADConverterData | ( | void | ) |
This function is called every 100KHz and triggers the ADC module. This also handles the updating of PSFB data members with its latest ADC raw values and collection of data for averaging.
Definition at line 37 of file pwrctrl_isr_extension.c.