|
Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
|
|
13 #include "config/hal.h"
15 #include "power_control/devices/dev_buck_typedef.h"
41 volatile uint16_t retval=1;
73 volatile uint16_t retval=1;
101 volatile uint16_t retval=1;
131 volatile uint16_t retval=1;
volatile uint16_t sysDacModule_Initialize(void)
DAC Module Base Register Initialization.
volatile struct P33C_DAC_INSTANCE_s * p33c_DacInstance_GetHandle(volatile uint16_t dacInstance)
Gets pointer to DAC Instance SFR set.
volatile uint16_t p33c_DacInstance_Dispose(volatile uint16_t dacInstance)
Resets all DAC Instance registers to their RESET default values.
volatile struct tagDAC1CONLBITS bits
union P33C_DAC_MODULE_s::@0 DacModuleCtrl1L
volatile uint16_t sysDacOutput_Disable(volatile uint16_t dacInstance)
volatile struct P33C_DAC_MODULE_s * p33c_DacModule_GetHandle(void)
Gets pointer to DAC Module SFR set.
volatile struct P33C_DAC_MODULE_s dacModuleDefault
Default configuration of DAC module running from 500 MHz input clock.
volatile uint16_t sysDacOutput_Enable(volatile uint16_t dacInstance)
volatile uint16_t p33c_DacModule_ConfigWrite(volatile struct P33C_DAC_MODULE_s dacModuleConfig)
Writes a user-defined configuration to the DAC module base registers.
union P33C_DAC_INSTANCE_s::@7 DACxCONH
Abstracted set of Special Function Registers of a Digital-to-Analog Converter peripheral.
volatile struct tagDACCTRL1LBITS bits
#define BUCK_LEB_PERIOD
Leading Edge Blanking = n x PWM resolution (here: 50 x 2ns = 100ns)
union P33C_DAC_INSTANCE_s::@9 DACxDATH
volatile uint16_t p33c_DacModule_Dispose(void)
Resets all DAC Module registers to their RESET default values.
union P33C_DAC_INSTANCE_s::@6 DACxCONL
volatile uint16_t sysDacOutput_Initialize(volatile uint16_t dacInstance, volatile uint16_t initValue)
Initializes a user specified DAC instance with DAC output enabled.