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

Conversion macros for user declarations of fault object trip and recovery delays of the buck converter. More...

+ Collaboration diagram for Buck Converter:
#define BUCK_UVLO_TDLY   (uint16_t)(((float) BUCK_UVLO_TRIP_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 Conversion Macros of Fault Response Timing Settings. More...
 
#define BUCK_UVLO_RDLY   (uint16_t)(((float) BUCK_UVLO_RECOVERY_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 under voltage lock out recovery delay conversion nacro More...
 
#define BUCK_OVLO_TDLY   (uint16_t)(((float) BUCK_OVLO_TRIP_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 over voltage lock out trip delay conversion nacro More...
 
#define BUCK_OVLO_RDLY   (uint16_t)(((float) BUCK_OVLO_RECOVERY_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 over voltage lock out recovery delay conversion nacro More...
 
#define BUCK_REGERR_TDLY   (uint16_t)(((float) BUCK_REGERR_TRIP_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 regulation error trip delay conversion macro More...
 
#define BUCK_REGERR_RDLY   (uint16_t)(((float)BUCK_REGERR_RECOVERY_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 regulation error recovery delay conversion macro More...
 
#define BUCK_OCP_TDLY   (uint16_t)(((float) BUCK_OCP_TRIP_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 over current protection trip Delay conversion macro More...
 
#define BUCK_OCP_RDLY   (uint16_t)(((float) BUCK_OCP_RECOVERY_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)
 over current protection recovery delay conversion nacro More...
 

Detailed Description

Conversion macros for user declarations of fault object trip and recovery delays of the buck converter.

Macro Definition Documentation

◆ BUCK_OCP_RDLY

#define BUCK_OCP_RDLY   (uint16_t)(((float) BUCK_OCP_RECOVERY_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

over current protection recovery delay conversion nacro

Definition at line 886 of file dpsk3_hwdescr.h.

◆ BUCK_OCP_TDLY

#define BUCK_OCP_TDLY   (uint16_t)(((float) BUCK_OCP_TRIP_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

over current protection trip Delay conversion macro

Definition at line 885 of file dpsk3_hwdescr.h.

◆ BUCK_OVLO_RDLY

#define BUCK_OVLO_RDLY   (uint16_t)(((float) BUCK_OVLO_RECOVERY_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

over voltage lock out recovery delay conversion nacro

Definition at line 882 of file dpsk3_hwdescr.h.

◆ BUCK_OVLO_TDLY

#define BUCK_OVLO_TDLY   (uint16_t)(((float) BUCK_OVLO_TRIP_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

over voltage lock out trip delay conversion nacro

Definition at line 881 of file dpsk3_hwdescr.h.

◆ BUCK_REGERR_RDLY

#define BUCK_REGERR_RDLY   (uint16_t)(((float)BUCK_REGERR_RECOVERY_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

regulation error recovery delay conversion macro

Definition at line 884 of file dpsk3_hwdescr.h.

◆ BUCK_REGERR_TDLY

#define BUCK_REGERR_TDLY   (uint16_t)(((float) BUCK_REGERR_TRIP_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

regulation error trip delay conversion macro

Definition at line 883 of file dpsk3_hwdescr.h.

◆ BUCK_UVLO_RDLY

#define BUCK_UVLO_RDLY   (uint16_t)(((float) BUCK_UVLO_RECOVERY_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

under voltage lock out recovery delay conversion nacro

Definition at line 880 of file dpsk3_hwdescr.h.

◆ BUCK_UVLO_TDLY

#define BUCK_UVLO_TDLY   (uint16_t)(((float) BUCK_UVLO_TRIP_DELAY / (float)MAIN_EXECUTION_PERIOD)-1.0)

Conversion Macros of Fault Response 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. under voltage lock out trip delay conversion nacro

Definition at line 879 of file dpsk3_hwdescr.h.