|
H4-PFC Infineon 1600W Server PSU
|
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 | CH3 3 |
| #define | CH5 5 |
| #define | CH6 6 |
| #define | CH7 7 |
Result definitions | |
@ | |
| #define | RES0_CH3 0 |
| #define | RES1_CH5 1 |
| #define | RES7_CH6 7 |
| #define | RES15_CH7 15 |
| #define | GROUP0 0U |
| #define | INDIVIDUAL_RESULT_REGISTERS 0U |
| #define | TRIGGER_ENABLE 1 |
| #define | TRIGGER_DISABLE 0 |
| #define | VADC0_G0_0_IRQn IRQ19_IRQn |
| #define | current_loop_ISR IRQ_Hdlr_19 |
| #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 current_loop_ISR IRQ_Hdlr_19 |
ADC interrupt renamed
| #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 VADC0_G0_0_IRQn IRQ19_IRQn |
ADC SR2 intgerrupt node
| #define VADC_SR0_PRIORITY 1U |
ADC interrupt priority