English
Language : 

EVLB001 Datasheet, PDF (23/35 Pages) ATMEL Corporation – Automatic microcontroller dimmable ballast
ATPWMX Demonstrator Software
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 PSC0 and jump to PFC_SOFT_START state.
Else immediately jump to the PFC_PROBLEM state.
PFC_SOFT_START
Check that the PFC has been tried to be set less times than PFC_START_MAX_TRIES.
According to this test, SPEED_UP_MICROCONTROLLER or jump to PFC_PROBLEM.
SPEED_UP_MICROCONTROLLER
In case a zero crossing detection happens, the PFC is switched on. The power will then
be sufficient so that the microcontroller can be speeded up to its nominal speed, then it
is necessary to find the zero crossing detection in the PFC_FIND_ZCD.
In case no zero crossing detection happens, a next try will be operate in
PFC_DELAY_FOR_NEXT_SOFT_START.
PFC_DELAY_FOR_NEXT_SOFT_START
In case the soft start fails, the software has to wait DELAY_FOR_NEXT_PFC_SOFT_
START*DELAY_MULTIPLIER_FOR_NEXT_PFC_SOFT_START, before trying a new
soft start by going back to the CONFIGURE_PFC_SOFT_START state.
PFC_FIND_ZCD
Find the Zero Crossing Detection in order to start the PFC_CONTROL_LOOP on a zero
crossing.
SHUT_DOWN_PFC_AND_SLOW_DOWN_UC_SPEED
Switch off the PFC.
Switch the microcontroller to a low power consumption mode.
Then go back to PFC_OFF state.
6-21
7597B–AVR–10/07
ATAVRFBKIT / EVLB001 User Guide