Functions | |
volatile uint16_t | sysDsp_Initialize (void) |
Digital Signal Processor initialization. More... | |
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.
uint16_t sysDsp_Initialize | ( | void | ) |
Digital Signal Processor initialization.
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.