|
Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
|
|
77 volatile uint16_t retval=1;
133 volatile uint16_t retval=1;
138 *dac = dacModuleConfig;
171 ((
volatile uint8_t*) &DAC1CONL + ((dacInstance - 1) * P33C_DAC_SFR_OFFSET));
199 volatile uint16_t retval=1;
227 ((
volatile uint8_t*) &DAC1CONL + ((dacInstance - 1) * P33C_DAC_SFR_OFFSET));
253 volatile uint16_t dacInstance,
256 volatile uint16_t retval=1;
261 ((
volatile uint8_t*) &DAC1CONL + ((dacInstance - 1) * P33C_DAC_SFR_OFFSET));
290 .DacModuleCtrl2L.value = 0x0000,
291 .DacModuleCtrl2H.value = 0x0000
316 .DacModuleCtrl2H.bits.SSTIME = 0x008A,
317 .DacModuleCtrl2L.bits.TMODTIME = 0x0055
338 .DACxCONH.value = 0x0000,
339 .DACxDATL.value = 0x0000,
340 .DACxDATH.value = 0x0000,
341 .SLPxCONL.value = 0x0000,
342 .SLPxCONH.value = 0x0000,
343 .SLPxDAT.value = 0x0000
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.
union P33C_DAC_MODULE_s::@0 DacModuleCtrl1L
volatile struct P33C_DAC_INSTANCE_s dacConfigClear
Default RESET configuration of one DAC instance channel SFRs.
volatile struct P33C_DAC_MODULE_s * p33c_DacModule_GetHandle(void)
Gets pointer to DAC Module SFR set.
volatile uint16_t p33c_DacInstance_ConfigWrite(volatile uint16_t dacInstance, volatile struct P33C_DAC_INSTANCE_s dacConfig)
Writes a user-defined configuration to the DAC instance registers.
volatile struct P33C_DAC_MODULE_s dacModuleDefault
Default configuration of DAC module running from 500 MHz input clock.
volatile uint16_t p33c_DacModule_ConfigWrite(volatile struct P33C_DAC_MODULE_s dacModuleConfig)
Writes a user-defined configuration to the DAC module base registers.
volatile struct P33C_DAC_MODULE_s p33c_DacModule_ConfigRead(void)
Read the current configuration from the DAC module base registers.
Abstracted set of Special Function Registers of a Digital-to-Analog Converter peripheral.
volatile struct P33C_DAC_MODULE_s dacModuleConfigClear
Default RESET configuration of the DAC module base SFRs.
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 struct P33C_DAC_INSTANCE_s p33c_DacInstance_ConfigRead(volatile uint16_t dacInstance)
Read the current configuration from the DAC instance registers.