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

Conversion macros for user-declarations of startup timing periods of the buck converter. More...

+ Collaboration diagram for Buck Converter:
#define BUCK_POD   (uint16_t)(((float)BUCK_POWER_ON_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 Conversion Macros of Startup Timing Settings. More...
 
#define BUCK_VRAMP_PER   (uint16_t)(((float)BUCK_VRAMP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)
 
#define BUCK_VREF_STEP   (uint16_t)((float)BUCK_VOUT_REF / (float)(BUCK_VRAMP_PER + 1.0))
 
#define BUCK_IRAMP_PER   (uint16_t)(((float)BUCK_IRAMP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)
 
#define BUCK_IREF_STEP   (uint16_t)((float)BUCK_ISNS_REF / (float)(BUCK_VRAMP_PER + 1.0))
 
#define BUCK_PGD   (uint16_t)(((float)BUCK_POWER_GOOD_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 

Detailed Description

Conversion macros for user-declarations of startup timing periods of the buck converter.

Macro Definition Documentation

◆ BUCK_IRAMP_PER

#define BUCK_IRAMP_PER   (uint16_t)(((float)BUCK_IRAMP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)

Definition at line 915 of file dpsk3_hwdescr.h.

◆ BUCK_IREF_STEP

#define BUCK_IREF_STEP   (uint16_t)((float)BUCK_ISNS_REF / (float)(BUCK_VRAMP_PER + 1.0))

Definition at line 916 of file dpsk3_hwdescr.h.

◆ BUCK_PGD

#define BUCK_PGD   (uint16_t)(((float)BUCK_POWER_GOOD_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

Definition at line 917 of file dpsk3_hwdescr.h.

◆ BUCK_POD

#define BUCK_POD   (uint16_t)(((float)BUCK_POWER_ON_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

Conversion Macros of Startup Timing Settings.

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 912 of file dpsk3_hwdescr.h.

◆ BUCK_VRAMP_PER

#define BUCK_VRAMP_PER   (uint16_t)(((float)BUCK_VRAMP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)

Definition at line 913 of file dpsk3_hwdescr.h.

◆ BUCK_VREF_STEP

#define BUCK_VREF_STEP   (uint16_t)((float)BUCK_VOUT_REF / (float)(BUCK_VRAMP_PER + 1.0))

Definition at line 914 of file dpsk3_hwdescr.h.