Bar Logo 4kW dsPIC33C PSFB DC-DC DA (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
drv_custom_config_adc.h
Go to the documentation of this file.
1
7#ifndef DRV_CUSTOM_CONFIG_ADC_H
8#define DRV_CUSTOM_CONFIG_ADC_H
9
10
11#include "adc/adc1.h"
13
14
18// ADC channels numbers for shared ADC
19#define ADC_CHANNEL_FB_VOUT (2)
20#define ADC_CHANNEL_FB_VCAP (9)
21#define ADC_CHANNEL_VIN (10)
22#define ADC_CHANNEL_TEMP (14)
23#define ADC_CHANNEL_AN15 (15)
24#define ADC_CHANNEL_VRAIL_5V (19)
25
26// ADC channel numbers for dedicated ADC
27#define ADC_CHANNEL_IPRI_CT (0)
28#define ADC_CHANNEL_ISEC_AVG (1)
29 // end of group ~~~~~~~~~~~~~~~~~~~~
30
31
39static __inline__ void DRV_Config_Custom_ADC(void)
40{
41
42// // use ADC filter 1 for primary voltage averaging
43// ADC_Filter_Mode(0, ADC_FILTER_MODE_AVERAGING);
44// ADC_Filter_Averaging(0, ADC_FILTER_OVRSAM_AVG_4x);
45// ADC_Filter_Input(0, ADC_CHANNEL_VPRI);
46// ADC_Filter_Enable(0, true);
47//
48// // use ADC filter 1 for secondary voltage averaging
49// ADC_Filter_Mode(1, ADC_FILTER_MODE_AVERAGING);
50// ADC_Filter_Averaging(1, ADC_FILTER_OVRSAM_AVG_4x);
51// ADC_Filter_Input(1, ADC_CHANNEL_VSEC);
52// ADC_Filter_Enable(1, true);
53//
54}
55
56
57#endif /* DRV_CUSTOM_CONFIG_ADC_H */
58
This is the generated driver header file for the ADC1 driver.
Contains public functions and defines for the MCC code extension for ADC.
static __inline__ void DRV_Config_Custom_ADC(void)
Customize configuration for ADC.