Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
+ Collaboration diagram for Basic MCU Initialization:

Functions

volatile uint16_t SYSTEM_Initialize (void)
 Initializes essential chip resources. More...
 

Detailed Description

The initialization of all essential chip resources such as main oscillator, auxiliary clock for PWM, ADC and DAC. GPIO configuration, and the DSP core have been pulled together in on central SYSTEM_Initialize function, where function calls of each essentail chip resource can be executed in a specific sequence and be monitored for their successful completion.

Function Documentation

◆ SYSTEM_Initialize()

uint16_t SYSTEM_Initialize ( void  )

Initializes essential chip resources.

Returns
unsigned integer 0=failure 1=success

The SYSTEM_Initialize function covers the initialization of essential chip resources such as main oscillator, auxiliary oscillator, watchdog timer and general purpose I/Os (GPIO). All other, design specific peripherals are initialized in the User Peripheral Initialization or by the respective User Task Device Drivers included in the firmware project

< Set up system oscillator for 100 MIPS operation

< Set up Auxiliary PLL for 500 MHz (source clock to PWM module)

< Initialize common device GPIOs

< Initialize the DSP engine for fractional multiplication with saturation

Definition at line 28 of file system.c.

+ Here is the call graph for this function: