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

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

+ Collaboration diagram for Boost Converter:
#define BOOST_POD   (uint16_t)(((float)BOOST_POWER_ON_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 Conversion Macros of Startup Timing Settings. More...
 
#define BOOST_VRAMP_PER   (uint16_t)(((float)BOOST_VRAMP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)
 
#define BOOST_VREF_STEP   (uint16_t)((float)BOOST_VOUT_REF / (float)(BOOST_VRAMP_PER + 1.0))
 
#define BOOST_IRAMP_PER   (uint16_t)(((float)BOOST_IRAMP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)
 
#define BOOST_IREF_STEP   (uint16_t)((float)BOOST_ISNS_REF / (float)(BOOST_VRAMP_PER + 1.0))
 
#define BOOST_PGD   (uint16_t)(((float)BOOST_POWER_GOOD_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 
#define BOOST_CHRG_PER   (uint16_t)(((float)BOOST_CHARGEUP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)
 
#define BOOST_CHRG_TOUT   (uint16_t)(((float)BOOST_CHARGEUP_TIMEOUT / (float)MAIN_EXECUTION_PERIOD)-1.0)
 

Detailed Description

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

Macro Definition Documentation

◆ BOOST_CHRG_PER

#define BOOST_CHRG_PER   (uint16_t)(((float)BOOST_CHARGEUP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)

Definition at line 1451 of file dpsk3_hwdescr.h.

◆ BOOST_CHRG_TOUT

#define BOOST_CHRG_TOUT   (uint16_t)(((float)BOOST_CHARGEUP_TIMEOUT / (float)MAIN_EXECUTION_PERIOD)-1.0)

Definition at line 1452 of file dpsk3_hwdescr.h.

◆ BOOST_IRAMP_PER

#define BOOST_IRAMP_PER   (uint16_t)(((float)BOOST_IRAMP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)

Definition at line 1448 of file dpsk3_hwdescr.h.

◆ BOOST_IREF_STEP

#define BOOST_IREF_STEP   (uint16_t)((float)BOOST_ISNS_REF / (float)(BOOST_VRAMP_PER + 1.0))

Definition at line 1449 of file dpsk3_hwdescr.h.

◆ BOOST_PGD

#define BOOST_PGD   (uint16_t)(((float)BOOST_POWER_GOOD_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

Definition at line 1450 of file dpsk3_hwdescr.h.

◆ BOOST_POD

#define BOOST_POD   (uint16_t)(((float)BOOST_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 1445 of file dpsk3_hwdescr.h.

◆ BOOST_VRAMP_PER

#define BOOST_VRAMP_PER   (uint16_t)(((float)BOOST_VRAMP_PERIOD / (float)MAIN_EXECUTION_PERIOD)-1.0)

Definition at line 1446 of file dpsk3_hwdescr.h.

◆ BOOST_VREF_STEP

#define BOOST_VREF_STEP   (uint16_t)((float)BOOST_VOUT_REF / (float)(BOOST_VRAMP_PER + 1.0))

Definition at line 1447 of file dpsk3_hwdescr.h.