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

Functions

volatile uint16_t sysFosc_Initialize (void)
 System oscillator initialization. More...
 
volatile uint16_t sysAclk_Initialize (void)
 Initializes the auxiliary clock of the device. More...
 

Detailed Description

The main oscillator initialization configures the internal PLL to boost the user-defined source clock to the desired operating frequency (e.g. 100 MHz for dsPIC33CK).

Function Documentation

◆ sysAclk_Initialize()

uint16_t sysAclk_Initialize ( void  )

Initializes the auxiliary clock of the device.

Returns
unsigned integer (0=failure, 1=success)

This function initializes the auxiliary PLL for operating ADC and PWM module at maximum performance at an input clock of 500 MHz. Each peripheral module may use additional frequency scalers and multipliers to further convert this frequency.

Definition at line 55 of file init_fosc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sysFosc_Initialize()

uint16_t sysFosc_Initialize ( void  )

System oscillator initialization.

Returns
unsigned integer 0=failure 1=success

This function initializes the internal 8 MHz RC oscillator as the main oscillator and initializes the PLL to operate the CPU at maximum performance of 100 MHz instruction cycle.

Definition at line 32 of file init_fosc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: