Digital Power Starter Kit 3 Firmware  DM330017-3, Rev.3.0
dsPIC33C Buck Converter Peak Current Mode Control Example

Control loop Interrupt Vector Settings of the buck converter. More...

+ Collaboration diagram for Buck Converter:
#define BUCK_VOUT_TRIG_PWM   0
 Control loop Interrupt Vector Settings. More...
 
#define BUCK_VOUT_TRIG_ADC   1
 Buck VOUT control loop is called in ADC interrupt. More...
 
#define BUCK_VOUT_TRIGGER_MODE   BUCK_VOUT_TRIG_PWM
 Currently selected voltage loop interrupt vector. More...
 
#define BUCK_VOUT_ISR_PRIORITY   5
 Voltage loop interrupt vector priority (valid settings between 0...6 with 6 being the highest priority) More...
 
#define _BUCK_VLOOP_Interrupt   _PWM1Interrupt
 Interrupt vector function call label. More...
 
#define _BUCK_VLOOP_ISR_IP   _PWM1IP
 Interupt vector priority register. More...
 
#define _BUCK_VLOOP_ISR_IF   _PWM1IF
 Interupt vector flag bit register bit. More...
 
#define _BUCK_VLOOP_ISR_IE   _PWM1IE
 Interupt vector enable bit register bit. More...
 

Detailed Description

Control loop Interrupt Vector Settings of the buck converter.

Macro Definition Documentation

◆ _BUCK_VLOOP_Interrupt

void _BUCK_VLOOP_Interrupt (   void)    _PWM1Interrupt

Interrupt vector function call label.

Main Control Interrupt.

Parameters
void
Returns
void

The control interrupt is calling the control loop. The point in time where this interrupt is thrown is determined by selecting the BUCK_VOUT_TRIGGER_MODE option.

Definition at line 847 of file dpsk3_hwdescr.h.

◆ _BUCK_VLOOP_ISR_IE

#define _BUCK_VLOOP_ISR_IE   _PWM1IE

Interupt vector enable bit register bit.

Definition at line 850 of file dpsk3_hwdescr.h.

◆ _BUCK_VLOOP_ISR_IF

#define _BUCK_VLOOP_ISR_IF   _PWM1IF

Interupt vector flag bit register bit.

Definition at line 849 of file dpsk3_hwdescr.h.

◆ _BUCK_VLOOP_ISR_IP

#define _BUCK_VLOOP_ISR_IP   _PWM1IP

Interupt vector priority register.

Definition at line 848 of file dpsk3_hwdescr.h.

◆ BUCK_VOUT_ISR_PRIORITY

#define BUCK_VOUT_ISR_PRIORITY   5

Voltage loop interrupt vector priority (valid settings between 0...6 with 6 being the highest priority)

Definition at line 836 of file dpsk3_hwdescr.h.

◆ BUCK_VOUT_TRIG_ADC

#define BUCK_VOUT_TRIG_ADC   1

Buck VOUT control loop is called in ADC interrupt.

Definition at line 833 of file dpsk3_hwdescr.h.

◆ BUCK_VOUT_TRIG_PWM

#define BUCK_VOUT_TRIG_PWM   0

Control loop Interrupt Vector Settings.

Control loops are called in dedicated interrupt service routines of PWM events, ADC events or triggered by timers. This section allows users to set and modify the interrupt service routine triggers and their priority to set up and optimize the control system interrupt structure. Buck VOUT control loop is called in PWM interrupt

Definition at line 832 of file dpsk3_hwdescr.h.

◆ BUCK_VOUT_TRIGGER_MODE

#define BUCK_VOUT_TRIGGER_MODE   BUCK_VOUT_TRIG_PWM

Currently selected voltage loop interrupt vector.

Definition at line 835 of file dpsk3_hwdescr.h.