|
Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
|
|
9 #include "config/hal.h"
10 #include "app_power_control.h"
11 #include "drivers/v_loop.h"
37 #if (PLANT_MEASUREMENT == false)
volatile struct NPNZ16b_s v_loop
External reference to user-defined NPNZ16b controller data object 'v_loop'.
void(* ctrl_Update)(volatile struct NPNZ16b_s *)
Function pointer to UPDATE routine.
volatile struct BUCK_CONVERTER_STATUS_s status
BUCK operation status bits.
#define DBGPIN2_Set()
Macro instruction to set a pin state to logic HIGH.
void v_loop_PTermUpdate(volatile struct NPNZ16b_s *controller)
Prototype of the alternate Assembly P-Term control loop helping to call the v_loop P-Term controller ...
#define DACOUT_Set(x)
Direct SFR Write Access Macro for Digital-To-Analog Converter instance #1.
#define _BUCK_VLOOP_ISR_IF
Interupt vector flag bit register bit.
volatile uint16_t control_output
BUCK most recent control output value.
volatile struct BUCK_CONVERTER_DATA_s data
BUCK runtime data.
#define _BUCK_VLOOP_Interrupt
Interrupt vector function call label.
volatile struct NPNZ16b_s * controller
pointer to control loop object data structure
volatile bool adc_active
Bit #1: indicating that ADC has been started and samples are taken.
#define DBGPIN2_Clear()
Macro instruction to set a pin state to logic LOW.
volatile struct BUCK_LOOP_SETTINGS_s v_loop
BUCK voltage control loop object.
volatile struct BUCK_CONVERTER_s buck
Global data object for a BUCK CONVERTER.