|
PFC:800WPSUC7-4pin
|
ADC peripheral configuration header. More...
#include "DAVE.h"#include <XMC1400.h>#include <xmc_vadc.h>Go to the source code of this file.
Macros | |
Channel definitions | |
| #define | CH0 0 |
| #define | CH4 4 |
| #define | CH5 5 |
| #define | CH6 6 |
| #define | CH7 7 |
Result definitions | |
@ | |
| #define | RES0_CH4 0 |
| #define | RES1_CH5 1 |
| #define | RES7_CH6 7 |
| #define | RES6_CH6 6 |
| #define | RES15_CH7 15 |
| #define | GROUP0 0U |
| #define | INDIVIDUAL_RESULT_REGISTERS 0U |
| #define | TRIGGER_ENABLE 1 |
| #define | TRIGGER_DISABLE 0 |
| #define | VADC_SR0_PRIORITY 1U |
| #define | GAIN_FACTOR_3 1U |
DCM detection | |
| #define | DCM_ZERO_REF (4<<2) |
| #define | DCM_ZERO_UPDELTA (9<<2) |
| #define | DCM_ZERO_LOWDELTA (0<<2) |
| void | VADC_Init (void) |
| Configuration and initialization of the ADC peripheral. Global, group, channels and results are configured. Queue is configured and initialize. Scan is configured and load event generated. Pointer to the ADC measurements are defined. More... | |
ADC peripheral configuration header.
| #define DCM_ZERO_REF (4<<2) |
Reference for DCM detection in fast compare mode Gain for the fast compare mode is 1A –> 34(ADC_10bits) It must be considered that the fast comparison is done with the bitfield RESULT[11:2]
| #define GAIN_FACTOR_3 1U |
ADC internal gain for iL measurement
| #define GROUP0 0U |
@ Group definition
| #define INDIVIDUAL_RESULT_REGISTERS 0U |
Individual result registers are used in the queue
| #define TRIGGER_ENABLE 1 |
Enable the external trigger of the VADC module
| #define VADC_SR0_PRIORITY 1U |
ADC SR2 interrupt node ADC interrupt renamed ADC interrupt priority