|
3.3kW Totem-pole PFC with CoolMOS and XMC1402
|
ADC peripheral configuration header. More...
#include "DAVE.h"#include <XMC1400.h>#include <xmc_vadc.h>Go to the source code of this file.
Macros | |
| #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 |
Channel definitions | |
| #define | CH2 2 |
| #define | CH3 3 |
| #define | CH7 7 |
| #define | CH5 5 |
Result definitions | |
| #define | RES0_CH3 0 |
| #define | RES15_CH2 15 |
| #define | RES7_CH7 7 |
| #define | RES1_CH5 1 |
Functions | |
| 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 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