Pfc_Ctrl.c; Pfc State Machine - Atmel AT89RFD-10/EVLB002 User Manual

Non-dimmable fluorescent ballast
Table of Contents

Advertisement

5.2

Pfc_ctrl.c

5.2.1
PFC STATE
MACHINE
Ballast Demonstrator User Guide
This file executes the PFC state machine according to the scheduler in the
Main_AT8xEB5114_fluo_demo.c file.
The PFC state machine functional diagram is shown below:
PFC State Machine Diagram
Figure 5-3.
PFC_PROBLEM
Get_v_bus() >= V_BUS_OVERSHOOT
The different states are outlined below:
INIT_PFC_HAVERSINE_CHECK
Initialize the control values of the PFC. This is the initial state set by the
main_AT8xEB5114_fluo_demo.c file.
Then jump to the HAVERSINE_CHECK state.
HAVERSINE_CHECK
Measure the haversine peak voltage during HAVERSINE_MIN_CHECK_TIME.
Then jump to the PFC_HAVERSINE_CHECK state.
PFC_HAVERSINE_CHECK
PFC haversine peak must be included between HAVERSINE_PEAK_MIN and
HAVERSINE_PEAK_MAX (90VAC and 265VAC).
If the haversine value is OK, set the maximum pulse width allowed and jump to the
CONFIGURE_PFC_SOFT_START state.
Else go back to INIT_PFC_HAVERSINE_CHECK state.
INIT_PFC_HAVERSINE_CHECK
HAVERSINE_CHECK
g_pfc_time_since_previous_timer_reset <=
PFC_HAVERSINE_CHECK
HAVERSINE_PEAK_MIN <=gs_v_haversine_peak <=
(0.95 * gs_v_haversine_peak) <= gv_v_bus <= V_BUS_SET_POINT
CONFIGURE_PFC_SOFT_START
START_PFC_SOFT_START
gs_pfc_soft_start_tries <= PFC_START_MAX_TRIES
PFC_SOFT_START
gvs_pfc_soft_start_shots <= PFC_MAX_START_SHOTS
PFC_DELAY_FOR_NEXT_SOFT_START
gs_multiplier_pfc_time_since_previous_timer_reset >=
gvs_zcd_occures
PFC_CONTROL_LOOP
HAVERSINE_MIN_CHECK_TIME
HAVERSINE_PEAK_MAX
DELAY_MULTIPLIER_FOR_NEXT_PFC_SOFT_START
7629A–AVR–04/06
-19

Advertisement

Table of Contents
loading

Table of Contents