Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
+ Collaboration diagram for Digital Signal Processor Configuration:

Functions

volatile uint16_t sysDsp_Initialize (void)
 Digital Signal Processor initialization. More...
 

Detailed Description

The Digital Signal Processor (DSP) of dsPIC33C can be configured to support specific functions optimized for fixed-point arithmetic of a normalized number space as well as enhanced features such as accumulator and write-back saturation. As there is no other software instance using the DSP other than the power supply control loops, the DSP is configured at device start to save time during high frequency computations of the high-speed control loop.

Function Documentation

◆ sysDsp_Initialize()

uint16_t sysDsp_Initialize ( void  )

Digital Signal Processor initialization.

Returns
unsigned integer 0=failure 1=success

This routine initializes the default configuration of the DSP core for performing SMPS control loop libraries. If any other section of the firmware needs to use the DSP with different settings, this code module would have to make sure the core configuration is reset to these defaults when the SMPS control library is executed.

Note
: The configuration of the control library allows to add its own core configuration save & restore cycle in the control code. Please enable this function in the control loop configuration if conflicts between different DSP configurations cannot be resolved differently within the firmware. This routine initializes the default configuration of the DSP core for performing SMPS control loop libraries. If any other section of the firmware needs to use the DSP with different settings, this code module would have to make sure the core configuration is reset to these defaults when the SMPS control library is executed.

The configuration of the control library allows to add its own core configuration save & restore cycle in the control code. Please enable this function in the control loop configuration if conflicts between different DSP configurations cannot be resolved differently within the firmware.

Definition at line 48 of file init_dsp.c.

+ Here is the caller graph for this function: