Digital Power Starter Kit 3 Firmware
dsPIC33C Boost Converter Voltage Mode Control Example
dev_boost_ptemp_dac.c
1 /*
2  * File: dev_boost_ptemp_dac.c
3  * Author: M91406
4  *
5  * Created on October 29, 2020, 10:31 AM
6  */
7 
8 #include "xc16_pral.h" // include peripehral register abstraction layer drivers
9 #include "dev_boost_ptemp_dac.h" // include peripheral register configuration values header
10 
11 /****************************************************************************************************
12  * @ingroup lib-layer-boost-ptemplate-properties-variables
13  * @var boostDacModuleConfig
14  * @brief DAC module default configuration
15  *****************************************************************************************************/
16 volatile struct P33C_DAC_MODULE_s boostDacModuleConfig =
17 {
18  .DacModuleCtrl1L.value = 0x0000,
19  .DacModuleCtrl2L.value = 0x0000,
20  .DacModuleCtrl2H.value = 0x0000
21 };
22 
23 
24 /****************************************************************************************************
25  * @ingroup lib-layer-boost-ptemplate-properties-variables
26  * @var boostDacInstanceConfig
27  * @brief DAC generator default configuration
28  *****************************************************************************************************/
29 volatile struct P33C_DAC_INSTANCE_s boostDacInstanceConfig =
30 {
32  .DACxCONH.value = REG_DACxCONH,
33  .DACxDATL.value = 0x0000,
34  .DACxDATH.value = 0x0000,
35  .SLPxCONL.value = REG_SLPxCONL,
36  .SLPxCONH.value = REG_SLPxCONH,
37  .SLPxDAT.value = 0x0000
38 };
39 
40 // end of file
#define REG_SLPxCONL
SLPxCONL: DACx SLOPE CONTROL REGISTER LOW.
#define REG_DACxCONH
DACxCONH: DACx CONTROL REGISTER LOW.
#define REG_DACxCONL
DACxCONL: DACx CONTROL REGISTER LOW.
union P33C_DAC_INSTANCE_s::@78 DACxCONL
volatile uint16_t value
Definition: p33c_dac.h:63
volatile uint16_t value
Definition: p33c_dac.h:112
union P33C_DAC_MODULE_s::@72 DacModuleCtrl1L
#define REG_SLPxCONH
SLPxCONH: DACx SLOPE CONTROL REGISTER LOW.