PFC:800WPSUC7-4pin
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
init_bckgnd_funct.c File Reference

Functions for SW initialization and running in the background during operation. More...

Functions

void MATH_DIV_config ()
 DIV kernel of the MATH co-processor initialization.
Used in the input RMS feedforward. More...
 
void temperature_sense_enable (void)
 Enable the internal temperature sensor and set the measurement pointer. More...
 
void control_loop_init ()
 Assign value to the coefficients of voltage and current loops.
Reset the state and output of both controllers. More...
 
void IIR_param_init (void)
 Filter coefficients initialization.
IIR filter of the AC voltage to obtain the RMS value.
IIR notch filter of the DC voltage to obtain the DC value.
Both filters are two-section second order IIR filters executed at 3250Hz, every 2 cycles of CCU40.CC41 @ 6.5kHz. More...
 
void time_counter ()
 Time counter is a background process to count "real-time" in the application. More...
 
void delay_100us (uint32_t time)
 Delay function. More...
 
void input_voltage_observer ()
 BOP protection, checking AVG input voltage.
The function modifies the control status register and turns off PWM. More...
 
void fan_control_temp_protection ()
 Temperature monitoring: protection and fan control. More...
 

Variables

volatile bool power_stage_ON = false
 
AC voltage filter variables
volatile IIR_lowpass_int_t ACfilter
 
volatile int32_t auxAC = 0
 
DC-bus voltage filter variables
volatile IIR_lowpass_int_t DCfilter
 
volatile int32_t auxDC = 0
 
Controller structures
volatile controller_int_t voltage_int_ctr
 
volatile controller_PI_t current_PI_ctr
 
Temperature variables
static volatile const uint16_t * temp_amb_dig
 
Time counters
uint8_t _1ms_count = 0
 
uint8_t _100ms_count = 0
 
uint8_t time_BOP = 0
 
uint8_t time_ACOK = 0
 
uint8_t time_PLD_68V = 0
 
uint8_t time_PLD_75V = 0
 
uint8_t time_V_step = 0
 
uint8_t time_INIT = 30
 
Input voltage monitoring flags
static bool BOP_flag_75V = false
 
static bool BOP_flag_68V = false
 

Detailed Description

Functions for SW initialization and running in the background during operation.

Author
Meneses Herrera, David
Date
20.06.2017