Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
+ Collaboration diagram for Operational Amplifier Configuration:
volatile uint16_t sysOpAmp_Initialize (volatile uint16_t opaInstance, volatile bool disable_n_channel)
 Initializes the on-chip operational amplifier module. More...
 
volatile uint16_t sysOpAmp_ModuleEnable (void)
 Enables the on-chip operational amplifier module. More...
 
volatile uint16_t sysOpAmp_ModuleReset (void)
 Resets the on-chip operational amplifier module. More...
 

Detailed Description

As described in the Digital-to-Analog Converter (DAC) initialization section, DPSK3 supports an internally generated, tunable, analog voltage signal for enhanced debugging. This DAC output signal is buffered by using one of the available on-chip operational amlifiers, which is configured and enabled in this section.

Note
Please refer to the Digital-to-Analog (DAC) Configuration section for further details on the configuration of this peripheral.

Function Documentation

◆ sysOpAmp_Initialize()

uint16_t sysOpAmp_Initialize ( volatile uint16_t  opaInstance,
volatile bool  disable_n_channel 
)

Initializes the on-chip operational amplifier module.

Returns
unsigned integer
0=failure
1=success

The EPC9143 300W 16th brick power module reference designs uses one of the on-chip operational amplifiers as buffer op-amp for the current reference signal applied to external high-side current sense shunt amplifier devices. This operational amplifier is initialized here.

Definition at line 34 of file init_opa.c.

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

◆ sysOpAmp_ModuleEnable()

uint16_t sysOpAmp_ModuleEnable ( void  )

Enables the on-chip operational amplifier module.

Returns
unsigned integer
0=failure
1=success

The on-chip operational amplifier module allows the configuration of multiple operational amplifier instances. The module itself provides an additional master enable bit to turn on/off the entire module.

Definition at line 77 of file init_opa.c.

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

◆ sysOpAmp_ModuleReset()

uint16_t sysOpAmp_ModuleReset ( void  )

Resets the on-chip operational amplifier module.

Returns
unsigned integer
0=failure
1=success

The on-chip operational amplifier module allows the configuration of multiple operational amplifier instances. The module itself provides an additional master enable bit to turn on/off the entire module as well as to enable/disable the N-inputs of individual op-amps. This function resets the op-amp module to its default disabling the N-channel inputs of all op-amps, disables all individual op-amps as well as turns of the op-amp module master switch.

Definition at line 102 of file init_opa.c.

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