|
3.3kW Totem-pole PFC with SiC and XMC1404
|
Control related interrupts code. More...
#include <DAVE.h>#include "LLD_conf_code/adc.h"#include "control_interrupts.h"#include "init_bckgnd_funct.h"Functions | |
| void | current_loop_ISR (void) |
| Current loop interrupt. CR2 while counting up in CCU80.CC81 (PWM-PFC) triggers the ADC queue. A result event of the queue triggers this interrupt. Prio 1. More... | |
| void | current_ref_ISR (void) |
| Current reference interrupt. pwm_count counts number of PWM cycles. PR event of pwm_count triggers the current_fed_ISR() at a defined number of switching cycles. Prio 2. More... | |
| void | voltage_loop_ISR (void) |
| Voltage control interrupt. Timer CCU40.CC42 triggers this interrupt in the period match event. IIR low-pass filter of the AC voltage to obtain the RMS value. IIR notch filter of the DC voltage to remove 100/120 Hz component. Voltage loop and voltage monitoring. State machine for start-up and event management. Prio 3. More... | |
Variables | |
| static volatile uint8_t | i_filter = 0 |
| volatile PFC_var_t | PFC |
| volatile uint16_t | time_count_5kHz = 0 |
ADC results | |
| volatile uint32_t * | ADCResult_iL |
| volatile uint32_t * | ADCResult_DCBus |
| volatile uint32_t * | ADCResult_VAC |
| volatile uint32_t * | ADCResult_Temp |
| volatile uint32_t * | ADCResult_BOP |
Control and Fault status registers | |
| volatile state_t | status_reg = ST_INIT |
| volatile fault_t | fault_reg = F_INIT |
Control related interrupts code.