Bar Logo 4kW dsPIC33C PSFB DC-DC DA (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
Interrupt Routine and Functions

Contains the interrupt routine and other functions called in the interrupt. More...

+ Collaboration diagram for Interrupt Routine and Functions:

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.
 

Detailed Description

This document includes the interrupt function in power control.

Function Documentation

◆ __attribute__()

void __attribute__ ( (__interrupt__, auto_psv) )
Returns
void

This interrupt function is a ADC Core 0 interrupt executed every 100KHz This ADC is triggered using trigger b of PG1. This trigger is half of the phase difference between fixed and phase shifted leg

Definition at line 101 of file main.c.

+ Here is the call graph for this function:

◆ ControlLoop_Interrupt_CallBack()

void ControlLoop_Interrupt_CallBack ( void )
Returns
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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PwrCtrl_ControlLoopExecute()

void PwrCtrl_ControlLoopExecute ( void )
Returns
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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PwrCtrl_DroopAverage()

void PwrCtrl_DroopAverage ( void )
Returns
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.

+ Here is the caller graph for this function:

◆ PwrCtrl_UpdateADConverterData()

void PwrCtrl_UpdateADConverterData ( void )
Returns
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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: