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 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 980 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 979 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 976 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 975 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 978 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 977 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 974 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 973 of file dpsk3_hwdescr.h.