Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example

User-declaration of phase current feedback parameters of the buck converter using physical quantities. More...

+ Collaboration diagram for Buck Converter:
#define BUCK_ISNS_CT   0
 Declaration of phase-current feedback properties. More...
 
#define BUCK_ISNS_AMP   1
 Use shunt amplifier as main current feedback source. More...
 
#define BUCK_ISNS_OPTION   BUCK_ISNS_CT
 Select one of the available current sense feedback options. More...
 
#define BUCK_ISNS_FEEDBACK_GAIN   (float) 1.000
 Current Gain in V/A. More...
 
#define BUCK_ISNS_MINIMUM   (float)-1.000
 absolute total minimum output current (average) More...
 
#define BUCK_ISNS_MAXIMUM   (float) 2.500
 absolute total maximum output current (average) More...
 
#define BUCK_ISNS_RELEASE   (float) 2.000
 current reset level after over current event More...
 
#define BUCK_ISNS_REFERENCE   (float) 2.000
 output current reference (average) More...
 
#define BUCK_ISNS_ADC_TRG_DELAY   (float) 80.0e-9
 ADC trigger delay for current sense in [sec]. More...
 
#define BUCK_ISNS_FEEDBACK_OFFSET   (float) 0.000
 Current sense feedback offset (average) More...
 
#define BUCK_ISNS_OFFSET_CALIBRATION_ENABLE   false
 Current Sense Offset Calibration is disabled. More...
 

Detailed Description

User-declaration of phase current feedback parameters of the buck converter using physical quantities.

Macro Definition Documentation

◆ BUCK_ISNS_ADC_TRG_DELAY

#define BUCK_ISNS_ADC_TRG_DELAY   (float) 80.0e-9

ADC trigger delay for current sense in [sec].

Definition at line 582 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_AMP

#define BUCK_ISNS_AMP   1

Use shunt amplifier as main current feedback source.

Definition at line 570 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_CT

#define BUCK_ISNS_CT   0

Declaration of phase-current feedback properties.

In this section the phase-current feedback signal scaling, gain, valid signal limits and nominal operating point is specified. Physical quantities are used to define parameter values to ease the system configuration.

As DPSK3 supports two different current sense devices (current sense transformers and shunt amplifier devices) users can select which one should be used for regulating the output current. Based on the selection made, the appropriate feedback channels and signal scaling values will be used by the firmware.

Macros are used to convert given physical values into binary (integer) number to be written into SFRs and variables and being used in runtime calculations.
(see Buck Converter for details) Use current sense transformer as main current feedback source

Definition at line 569 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_FEEDBACK_GAIN

#define BUCK_ISNS_FEEDBACK_GAIN   (float) 1.000

Current Gain in V/A.

Definition at line 577 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_FEEDBACK_OFFSET

#define BUCK_ISNS_FEEDBACK_OFFSET   (float) 0.000

Current sense feedback offset (average)

Definition at line 583 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_MAXIMUM

#define BUCK_ISNS_MAXIMUM   (float) 2.500

absolute total maximum output current (average)

Definition at line 579 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_MINIMUM

#define BUCK_ISNS_MINIMUM   (float)-1.000

absolute total minimum output current (average)

Definition at line 578 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_OFFSET_CALIBRATION_ENABLE

#define BUCK_ISNS_OFFSET_CALIBRATION_ENABLE   false

Current Sense Offset Calibration is disabled.

Definition at line 585 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_OPTION

#define BUCK_ISNS_OPTION   BUCK_ISNS_CT

Select one of the available current sense feedback options.

Definition at line 572 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_REFERENCE

#define BUCK_ISNS_REFERENCE   (float) 2.000

output current reference (average)

Definition at line 581 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_RELEASE

#define BUCK_ISNS_RELEASE   (float) 2.000

current reset level after over current event

Definition at line 580 of file dpsk3_hwdescr.h.