Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage 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 753 of file dpsk3_hwdescr.h.

◆ _BUCK_VLOOP_ISR_IE

#define _BUCK_VLOOP_ISR_IE   _PWM1IE

Interupt vector enable bit register bit.

Definition at line 756 of file dpsk3_hwdescr.h.

◆ _BUCK_VLOOP_ISR_IF

#define _BUCK_VLOOP_ISR_IF   _PWM1IF

Interupt vector flag bit register bit.

Definition at line 755 of file dpsk3_hwdescr.h.

◆ _BUCK_VLOOP_ISR_IP

#define _BUCK_VLOOP_ISR_IP   _PWM1IP

Interupt vector priority register.

Definition at line 754 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 742 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 739 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 738 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 741 of file dpsk3_hwdescr.h.