User-declaration of global defines for PWM signal generator settings. More...
Modules | |
Conversion Macros | |
Conversion macros for user declarations of PWM peripheral. | |
#define | MAXIMUM_SWITCHING_FREQUENCY (float)170.0e+3 |
#define | MINIMUM_SWITCHING_FREQUENCY (float) 65.0e+3 |
Minimum Switching frequency in [Hz]. | |
#define | MINIMUM_DEADTIME (float)150e-9 |
Minimum Deadtime in seconds [sec]. | |
#define | MAXIMUM_DEADTIME (float)500e-9 |
Maximum Deadtime in seconds [sec]. | |
#define | MINIMUM_PHASESHIFTED_PULSE (float)300e-9 |
#define | PRI_TO_SEC_PHASE_DEGREES_LIMIT 90u |
Maximum Limit for primary to secondary phase in degrees [deg]. | |
#define | PRI_TO_SEC_PHASE_TARGET 830u |
Primary to Secondary phase target before switching to period modulation. | |
#define | PERIODSTEP (2<<3) |
period increment with 3LSBs needs to be 0 based from PWM FRM with cascaded PWM | |
#define | PHASETIMESTEP (1<<3) |
Phase increment with 3LSBs needs to be 0 based from PWM FRM with cascaded PWM. | |
This section defines fundamental PWM settings required for the Dual Active Bridge development board. These settings are determined by hardware and defined using physical quantities. Pre-compiler macros are used to convert physical values into binary (integer) numbers to be written to Special Function Registers (SFR).