-20
Ballast Demonstrator User Guide
7629A–AVR–04/06
CONFIGURE_PFC_SOFT_START
Configures the peripherals PWM1 and interrupt 0 to soft start the PFC.
Then jump to START_PFC_SOFT_START.
START_PFC_SOFT_START
Check that the soft start has been tried less than PFC_START_MAX_TRIES
If OK then start PWM1 and jump to PFC_SOFT_START state.
Else immediately jump to PFC_PROBLEM state.
PFC_SOFT_START
The PFC soft start consists on PFC_MAX_START_SHOTS pulses configured on
PFC_SOFT_START_CONFIGURATION.
If a zero crossing detection appears, jump to the PFC_CONTROL_LOOP state
Else go to INIT_PFC_HAVERSINE_CHECK,
PFC_DELAY_FOR_NEXT_PFC_SOFT_START, or PFC_PROBLEM state depending
on the different conditions detailed in the PFC diagram.
PFC_DELAY_FOR_NEXT_PFC_SOFT_START
In case the soft start fails, the software has to wait
DELAY_FOR_NEXT_PFC_SOFT_START*DELAY_MULTIPLIER_FOR_NEXT_PFC_S
OFT_START, before trying a new soft start by going back to the
START_PFC_SOFT_START state.
PFC_CONTROL_LOOP
A zero crossing detection occurs so the PFC is now started and the PFC can be config-
ured on autoretrigg mode.
The PFC is now running. This is the normal PFC loop control.