XMC42_800WPSU_LLC
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
init_bckgnd.c File Reference

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

#include "init_bckgnd.h"
#include "interrupts_control.h"

Go to the source code of this file.

Functions

void time_counter ()
 Time counter is a background process to count "real-time" in the application. More...
 
void control_loop_init ()
 Assign value to the coefficients of voltage loop.
Set the voltage target.
Reset the state and output of the compensator. More...
 
void fan_temp_control ()
 Fan management. More...
 
void I_MON_update ()
 DAC output to report load level. More...
 

Variables

static uint32_t fan_speed_value
 
static int16_t IMON_DAC_value = 0
 
__I uint32_t * Fsw_capture
 
Time counters
uint8_t _1ms_count = 0
 
uint16_t _100ms_count = 0
 
volatile uint8_t time_BOP = 1
 
volatile uint8_t time_INIT = 50
 
static uint8_t time_fan_100ms = 1
 
static uint8_t time_IMON_us = 3
 
static int16_t fan_pwm_duty = 0
 
volatile uint16_t time_OCP_M_100ms = 0
 
volatile uint16_t time_OCP_S_100ms = 0
 
volatile uint8_t time_send_UART = 6
 

Detailed Description

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

Author
Meneses Herrera, David
Date
20.06.2017

Definition in file init_bckgnd.c.