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

Conversion macros converting physical quantities of PWM parameters of the boost converter. More...

+ Collaboration diagram for Boost Converter:
#define BOOST_SWITCHING_PERIOD   (float)(1.0/BOOST_SWITCHING_FREQUENCY)
 Conversion macros for user-declarations of PWM parameters. More...
 
#define BOOST_PWM_PERIOD   (uint16_t)(float)(BOOST_SWITCHING_PERIOD / PWM_CLOCK_PERIOD)
 This sets the switching period of the converter. More...
 
#define BOOST_PWM_PHASE_SHIFT   (uint16_t)((float)BOOST_PWM_PERIOD / (float)BOOST_NO_OF_PHASES)
 This sets the phase shift between phase #1 and #2. More...
 
#define BOOST_PWM_DC_MIN   (uint16_t)(BOOST_PWM_DUTY_CYCLE_MIN * (float)BOOST_PWM_PERIOD)
 This sets the minimum duty cycle. More...
 
#define BOOST_PWM_DC_MAX   (uint16_t)(BOOST_PWM_DUTY_CYCLE_MAX * (float)BOOST_PWM_PERIOD)
 This sets the maximum duty cycle. More...
 
#define BOOST_LEB_PERIOD   (uint16_t)(BOOST_LEADING_EDGE_BLANKING / (float)PWM_CLOCK_PERIOD)
 Leading Edge Blanking = n x PWM resolution (here: 50 x 2ns = 100ns) More...
 
#define BOOST_PWM_DEAD_TIME_LE   (uint16_t)(BOOST_DEAD_TIME_LEADING_EDGE / (float)PWM_CLOCK_PERIOD)
 Rising edge dead time [tick = 250ps]. More...
 
#define BOOST_PWM_DEAD_TIME_FE   (uint16_t)(BOOST_DEAD_TIME_FALLING_EDGE / (float)PWM_CLOCK_PERIOD)
 Falling edge dead time [tick = 250ps]. More...
 

Detailed Description

Conversion macros converting physical quantities of PWM parameters of the boost converter.

into binary (integer) numbers for registers and variables

Macro Definition Documentation

◆ BOOST_LEB_PERIOD

#define BOOST_LEB_PERIOD   (uint16_t)(BOOST_LEADING_EDGE_BLANKING / (float)PWM_CLOCK_PERIOD)

Leading Edge Blanking = n x PWM resolution (here: 50 x 2ns = 100ns)

Definition at line 988 of file dpsk3_hwdescr.h.

◆ BOOST_PWM_DC_MAX

#define BOOST_PWM_DC_MAX   (uint16_t)(BOOST_PWM_DUTY_CYCLE_MAX * (float)BOOST_PWM_PERIOD)

This sets the maximum duty cycle.

Definition at line 987 of file dpsk3_hwdescr.h.

◆ BOOST_PWM_DC_MIN

#define BOOST_PWM_DC_MIN   (uint16_t)(BOOST_PWM_DUTY_CYCLE_MIN * (float)BOOST_PWM_PERIOD)

This sets the minimum duty cycle.

Definition at line 986 of file dpsk3_hwdescr.h.

◆ BOOST_PWM_DEAD_TIME_FE

#define BOOST_PWM_DEAD_TIME_FE   (uint16_t)(BOOST_DEAD_TIME_FALLING_EDGE / (float)PWM_CLOCK_PERIOD)

Falling edge dead time [tick = 250ps].

Definition at line 990 of file dpsk3_hwdescr.h.

◆ BOOST_PWM_DEAD_TIME_LE

#define BOOST_PWM_DEAD_TIME_LE   (uint16_t)(BOOST_DEAD_TIME_LEADING_EDGE / (float)PWM_CLOCK_PERIOD)

Rising edge dead time [tick = 250ps].

Definition at line 989 of file dpsk3_hwdescr.h.

◆ BOOST_PWM_PERIOD

#define BOOST_PWM_PERIOD   (uint16_t)(float)(BOOST_SWITCHING_PERIOD / PWM_CLOCK_PERIOD)

This sets the switching period of the converter.

Definition at line 984 of file dpsk3_hwdescr.h.

◆ BOOST_PWM_PHASE_SHIFT

#define BOOST_PWM_PHASE_SHIFT   (uint16_t)((float)BOOST_PWM_PERIOD / (float)BOOST_NO_OF_PHASES)

This sets the phase shift between phase #1 and #2.

Definition at line 985 of file dpsk3_hwdescr.h.

◆ BOOST_SWITCHING_PERIOD

#define BOOST_SWITCHING_PERIOD   (float)(1.0/BOOST_SWITCHING_FREQUENCY)

Conversion macros for user-declarations of PWM 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.Switching period in [sec]

Definition at line 983 of file dpsk3_hwdescr.h.