Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example

Device analog output pin, register and interrupt vector assignments of phase current feedback signal(s) of the buck converter. More...

+ Collaboration diagram for Buck Converter:
#define _BUCK_ISNS_ADCInterrupt   _ADCAN0Interrupt
 ADC input assignments of phase current feedback signals. More...
 
#define _BUCK_ISNS_ADCISR_IF   _ADCAN0IF
 Interrupt Service Routine Flag Bit. More...
 
#define BUCK_ISNS_ANSEL   _ANSELA0
 GPIO analog function mode enable bit. More...
 
#define BUCK_ISNS_ADCCORE   0
 0=Dedicated Core #0, 1=Dedicated Core #1, 2=Shared ADC Core More...
 
#define BUCK_ISNS_ADCIN   0
 Analog input number (e.g. '5' for 'AN5') More...
 
#define BUCK_ISNS_ALT_IN_SELECT   0b00
 Alternative Analog Input Selection (dedicated ADC cores only))
More...
 
#define BUCK_ISNS_ADCBUF   ADCBUF0
 ADC input buffer of this ADC channel. More...
 
#define BUCK_ISNS_ADCTRIG   PG1TRIGB
 Register used for trigger placement. More...
 
#define BUCK_ISNS_TRGSRC   BUCK_PWM_TRGSRC_TRG2
 PWM1 (=PG1) Trigger 2 via PGxTRIGB. More...
 

Detailed Description

Device analog output pin, register and interrupt vector assignments of phase current feedback signal(s) of the buck converter.

Macro Definition Documentation

◆ _BUCK_ISNS_ADCInterrupt

#define _BUCK_ISNS_ADCInterrupt   _ADCAN0Interrupt

ADC input assignments of phase current feedback signals.

In this section the ADC input channels, related ADC result buffers, trigger sources and interrupt vectors are defined. These settings allow the fast re-assignments of feedback signals in case of hardware changes. Interrupt Service Routine function name

Definition at line 644 of file dpsk3_hwdescr.h.

◆ _BUCK_ISNS_ADCISR_IF

#define _BUCK_ISNS_ADCISR_IF   _ADCAN0IF

Interrupt Service Routine Flag Bit.

Definition at line 645 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_ADCBUF

#define BUCK_ISNS_ADCBUF   ADCBUF0

ADC input buffer of this ADC channel.

Definition at line 651 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_ADCCORE

#define BUCK_ISNS_ADCCORE   0

0=Dedicated Core #0, 1=Dedicated Core #1, 2=Shared ADC Core

Definition at line 648 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_ADCIN

#define BUCK_ISNS_ADCIN   0

Analog input number (e.g. '5' for 'AN5')

Definition at line 649 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_ADCTRIG

#define BUCK_ISNS_ADCTRIG   PG1TRIGB

Register used for trigger placement.

Definition at line 652 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_ALT_IN_SELECT

#define BUCK_ISNS_ALT_IN_SELECT   0b00

Alternative Analog Input Selection (dedicated ADC cores only))

Definition at line 650 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_ANSEL

#define BUCK_ISNS_ANSEL   _ANSELA0

GPIO analog function mode enable bit.

Definition at line 647 of file dpsk3_hwdescr.h.

◆ BUCK_ISNS_TRGSRC

#define BUCK_ISNS_TRGSRC   BUCK_PWM_TRGSRC_TRG2

PWM1 (=PG1) Trigger 2 via PGxTRIGB.

Definition at line 653 of file dpsk3_hwdescr.h.