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

Conversion macros converting physical quantities of PWM parameters of the buck converter
into binary (integer) numbers for registers and variables. More...

+ Collaboration diagram for Buck Converter:
#define BUCK_DAC_SLOPE_TRIG_START   (uint16_t)(BUCK_PWM_PERIOD * BUCK_DAC_SLOPE_START_DELAY)
 Conversion macros for user-declarations of DAC parameters. More...
 
#define BUCK_DAC_SLOPE_TRIG_STOP   (uint16_t)(BUCK_PWM_PERIOD * BUCK_DAC_SLOPE_STOP_DELAY)
 
#define BUCK_DACOUT_VALUE_INITIAL   (uint16_t)(BUCK_DAC_VOLTAGE_INITIAL / DAC_GRANULARITY)
 
#define BUCK_DAC_SLEW_RATE   (uint16_t)((16.0 * (BUCK_SLOPE_COMP_SLEW_RATE / DAC_GRANULARITY)) / (1.0e-6 / DAC_CLOCK_PERIOD))
 

Detailed Description

Conversion macros converting physical quantities of PWM parameters of the buck converter
into binary (integer) numbers for registers and variables.

Macro Definition Documentation

◆ BUCK_DAC_SLEW_RATE

#define BUCK_DAC_SLEW_RATE   (uint16_t)((16.0 * (BUCK_SLOPE_COMP_SLEW_RATE / DAC_GRANULARITY)) / (1.0e-6 / DAC_CLOCK_PERIOD))

Definition at line 455 of file dpsk3_hwdescr.h.

◆ BUCK_DAC_SLOPE_TRIG_START

#define BUCK_DAC_SLOPE_TRIG_START   (uint16_t)(BUCK_PWM_PERIOD * BUCK_DAC_SLOPE_START_DELAY)

Conversion macros for user-declarations of DAC parameters.

These conversion macros are used to convert user settings defined as physical quantities into binary (integer) numbers, which will be written to registers and variables and used in calculations throughout the firmware.

Definition at line 452 of file dpsk3_hwdescr.h.

◆ BUCK_DAC_SLOPE_TRIG_STOP

#define BUCK_DAC_SLOPE_TRIG_STOP   (uint16_t)(BUCK_PWM_PERIOD * BUCK_DAC_SLOPE_STOP_DELAY)

Definition at line 453 of file dpsk3_hwdescr.h.

◆ BUCK_DACOUT_VALUE_INITIAL

#define BUCK_DACOUT_VALUE_INITIAL   (uint16_t)(BUCK_DAC_VOLTAGE_INITIAL / DAC_GRANULARITY)

Definition at line 454 of file dpsk3_hwdescr.h.