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

Conversion Macros
Hardware Abstraction Layer » State Machine Settings

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...
#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 [1/2]

#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 155 of file dspic33c_mcal.h.

## ◆ MAIN_EXEC_PER [2/2]

#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.