|
XMC42_800WPSU_LLC
|
Control related interrupts code. More...
Go to the source code of this file.
Functions | |
| __STATIC_INLINE void | uart_receive () |
| UART receive data. Non blocking function. No interrupts involved. Receive data from primary side controller. Parity bit used to accept or decline received data. More... | |
| __STATIC_INLINE void | state_control () |
| State machine to control LLC operation. More... | |
| __STATIC_INLINE void | voltage_loop () |
| Voltage control loop implementation and linear frequency start sequence. More... | |
| __STATIC_INLINE void | burst_mode () |
| Burst mode management according to burst mode flag (max. frequency) and Vout over a defined threshold. More... | |
| __STATIC_INLINE void | uart_send () |
| Send information to primary controller. More... | |
| void | control_loop_ISR (void) |
| Main control interrupt. More... | |
| void | start_sequence_ISR (void) |
| Timing modification for start-up sequence. More... | |
| void | CSG_rise_ISR (void) |
| Short circuit protection, based on resonant current comparison. More... | |
Variables | |
| volatile LLC_t | LLC |
| static volatile uint16_t | test = 0 |
| volatile uint16_t | Temp_fan = 0 |
| static volatile int16_t | VDC_bus_diff = 0 |
| static volatile bool | first_reception = false |
| static volatile uint8_t | in_high_count = 0 |
| volatile uint16_t | time_count_100kHz = 0 |
| volatile uint16_t | time_IMON_100kHz = 0 |
| volatile uint8_t | start_sequence_count = 0 |
| static volatile uint16_t | charge_HS_drive |
| static volatile uint16_t | comp_time_counting |
| static volatile bool | oring_status = false |
| static volatile uint16_t | pwm_out_status = 0 |
ADC results | |
| volatile uint32_t * | ADCResult_iR |
| volatile uint32_t * | ADCResult_12V |
| volatile uint32_t * | ADCResult_12VOr |
| volatile uint32_t * | ADCResult_iOut |
Controller structure | |
| volatile controller_t | voltage_int_ctr |
UART related variables | |
| static volatile uint16_t | retval |
| static volatile uint16_t | VDC_bus [] = {0, 0} |
| static volatile uint16_t | Temp [] = {0, 0, 0} |
Input voltage reception variables | |
| static volatile uint8_t | start_ok = 0 |
| static volatile uint8_t | start_reception_n = 0 |
| static volatile uint8_t | stop_ok = 0 |
| static volatile uint8_t | stop_reception_n = 0 |
| static volatile uint8_t | reception_n = 0 |
Control and Fault related variables | |
| volatile state_t | status_reg = ST_INIT |
| volatile fault_t | fault_reg = F_INIT |
| volatile burst_mode_t | burst_status = FREQ_OPERATION |
| static volatile uint16_t | iOut_OCP_count = 0 |
Debug variables | |
| static volatile uint16_t | timer_value1 = LLC_PERIOD_MIN |
| static volatile uint16_t | timer_value2 = 0 |
| static volatile uint16_t | timer_status [32] |
| static volatile uint16_t | debug_burst = 0 |
| static volatile uint16_t | burst = 0 |
Linear frequency variation in start-up | |
| static const uint16_t | linear_fsw_step [] |
| static volatile uint16_t | linear_fsw_count = 0 |
UART transmission to primary controller | |
| static uint16_t | counter_fifo = 0 |
| static volatile uint8_t | i_send = 0 |