English
Language : 

EVLB001 Datasheet, PDF (25/35 Pages) ATMEL Corporation – Automatic microcontroller dimmable ballast
ATPWMX Demonstrator Software
CONFIGURE_LAMP_PREHEAT
This is the first time the lamp is attempted to be started once the user has requested to
switch it on.
Configure the amplifier0, which is used to measure the current, then configure the PSC2
according to the definitions in the config.h file, and initialize all the lamp control
variables.
Then jump to the LAMP_PREHEAT state.
LAMP_PREHEAT
Starts the preheat sequence for LAMP_PREHEAT_TIME. (PWM set up at 80KHz)
Then jump to the START_IGNITION state.
START_IGNITION
Decrease the frequency from the init frequency down to INVERTER_IGNITION_HALF_
PERIOD.
Then jump to the IGNITION state.
IGNITION
The ignition sequence consists of maintaining the ignition frequency determined by
INVERTER_IGNITION_HALF_PERIOD for 10ms, and then checking if ignition occurs
by measuring lamp current and voltage.
In case it has... START_RUN_MODE.
In case it hasn’t... RESTART_PREHEAT.
RESTART_PREHEAT
Reconfigure the Inverter with the Restart parameters, then go to LAMP_PREHEAT.
If Ignition fails too many times... Go to TOO_MANY_LAMP_IGNITION_TRIES.
START_RUN_MODE
Increase the frequency from the init frequency, INVERTER_IGNITION_HALF_PERIOD.
Then jump to the RUN_MODE state.
RUN_MODE
Normal control loop to have the light in accordance with the gv_lamp_preset_current
variable that is permanently updated in the command control state machine in the
Main_pwmx_fluo_demo.c file.
The transition from the RUN_MODE state to the LAMP_OFF state is done in the control
state machine (control_FBKIT.c file) when the gv_lamp_preset_current variable is set to
0.
6-23
7597B–AVR–10/07
ATAVRFBKIT / EVLB001 User Guide