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

Conversion macros converting physical quantities of parameters into binary (integer) numbers for registers and variables. More...

+ Collaboration diagram for Conversion Macros:
#define MAIN_EXEC_PER   (uint16_t)((CPU_FREQUENCY * MAIN_EXECUTION_PERIOD)-1)
 Global state-machine user-settings conversion macros. More...
 

Detailed Description

Conversion macros converting physical quantities of parameters into binary (integer) numbers for registers and variables.

Macro Definition Documentation

◆ MAIN_EXEC_PER

#define MAIN_EXEC_PER   (uint16_t)((CPU_FREQUENCY * MAIN_EXECUTION_PERIOD)-1)

Global state-machine user-settings conversion macros.

Conversion macros are used to convert user settings defined in physical quantities into binary (integer) numbers, which will be written to registers and variables and/or used in calculations throughout the firmware.

Definition at line 160 of file dpsk3_hwdescr.h.