Digital Power Starter Kit 3 Firmware  DM330017-3, Rev.3.0
dsPIC33C Buck Converter Peak Current Mode Control Example

Parameter definitions using physical quantities. More...

+ Collaboration diagram for User Settings:
#define CPU_FREQUENCY   (float)100000000.0
 Fundamental microcontroller device settings. More...
 
#define AUX_FREQUENCY   (float)500000000.0
 Auxiliary PLL frequency in [Hz]. More...
 
#define ADC_REFERENCE   (float)3.300
 ADC reference voltage in [V]. More...
 
#define ADC_RESOLUTION   (float)12.00
 ADC resolution in [bit]. More...
 
#define DAC_REFERENCE   (float)3.300
 DAC reference voltage in [V] (usually AVDD) More...
 
#define DAC_RESOLUTION   (float)12.00
 DAC resolution in [bit] DA02 taken from data sheet. More...
 
#define DAC_MINIMUM   (float)0.165
 DAC minimum output voltage in [V]. More...
 
#define DAC_MAXIMUM   (float)3.135
 DAC maximum output voltage in [V]. More...
 
#define DAC_TRANSITION_TIME   (float)340.0e-9
 PDM DAC ramp generator transition time setting DA09 from data sheet in [s]. More...
 
#define DAC_STEADY_STATE_TIME   (float)550.0e-9
 PDM DAC ramp generator steady-stte time setting DA10 from data sheet in [s]. More...
 
#define DAC_LEADING_EDGE_PERIOD   (float)120.0e-9
 DACx Leading-Edge Blanking in [s]. More...
 
#define PWM_CLOCK_HIGH_RESOLUTION   true
 Enables/disables the PWM generator high resolution mode of 250 ps versus 2 ns. More...
 
#define PWM_CLOCK_FREQUENCY   (float)500.0e+6
 PWM Clock Frequency in [Hz]. More...
 
#define AUX_PLL_CLOCK   (float)(1.0 / AUX_FREQUENCY)
 

Detailed Description

Parameter definitions using physical quantities.

Macro Definition Documentation

◆ ADC_REFERENCE

#define ADC_REFERENCE   (float)3.300

ADC reference voltage in [V].

Definition at line 99 of file dpsk3_hwdescr.h.

◆ ADC_RESOLUTION

#define ADC_RESOLUTION   (float)12.00

ADC resolution in [bit].

Definition at line 100 of file dpsk3_hwdescr.h.

◆ AUX_FREQUENCY

#define AUX_FREQUENCY   (float)500000000.0

Auxiliary PLL frequency in [Hz].

Definition at line 96 of file dpsk3_hwdescr.h.

◆ AUX_PLL_CLOCK

#define AUX_PLL_CLOCK   (float)(1.0 / AUX_FREQUENCY)

Definition at line 121 of file dpsk3_hwdescr.h.

◆ CPU_FREQUENCY

#define CPU_FREQUENCY   (float)100000000.0

Fundamental microcontroller device settings.

This section is used to define device specific parameters like ADC reference and resolution, main execution clock frequency and peripheral time base settings. All parameters are defined using physical quantities. CPU frequency in [Hz]

Definition at line 95 of file dpsk3_hwdescr.h.

◆ DAC_LEADING_EDGE_PERIOD

#define DAC_LEADING_EDGE_PERIOD   (float)120.0e-9

DACx Leading-Edge Blanking in [s].

Definition at line 110 of file dpsk3_hwdescr.h.

◆ DAC_MAXIMUM

#define DAC_MAXIMUM   (float)3.135

DAC maximum output voltage in [V].

Definition at line 107 of file dpsk3_hwdescr.h.

◆ DAC_MINIMUM

#define DAC_MINIMUM   (float)0.165

DAC minimum output voltage in [V].

Definition at line 106 of file dpsk3_hwdescr.h.

◆ DAC_REFERENCE

#define DAC_REFERENCE   (float)3.300

DAC reference voltage in [V] (usually AVDD)

Definition at line 103 of file dpsk3_hwdescr.h.

◆ DAC_RESOLUTION

#define DAC_RESOLUTION   (float)12.00

DAC resolution in [bit] DA02 taken from data sheet.

Definition at line 104 of file dpsk3_hwdescr.h.

◆ DAC_STEADY_STATE_TIME

#define DAC_STEADY_STATE_TIME   (float)550.0e-9

PDM DAC ramp generator steady-stte time setting DA10 from data sheet in [s].

Definition at line 109 of file dpsk3_hwdescr.h.

◆ DAC_TRANSITION_TIME

#define DAC_TRANSITION_TIME   (float)340.0e-9

PDM DAC ramp generator transition time setting DA09 from data sheet in [s].

Definition at line 108 of file dpsk3_hwdescr.h.

◆ PWM_CLOCK_FREQUENCY

#define PWM_CLOCK_FREQUENCY   (float)500.0e+6

PWM Clock Frequency in [Hz].

Definition at line 118 of file dpsk3_hwdescr.h.

◆ PWM_CLOCK_HIGH_RESOLUTION

#define PWM_CLOCK_HIGH_RESOLUTION   true

Enables/disables the PWM generator high resolution mode of 250 ps versus 2 ns.

Definition at line 113 of file dpsk3_hwdescr.h.