English
Language : 

EVLB001 Datasheet, PDF (19/35 Pages) ATMEL Corporation – Automatic microcontroller dimmable ballast
ATPWMX Demonstrator Software
In order for the ballast to operate, three primary control systems should run simulta-
neously. One for the PFC control, one for the Lamp control, and one for the Command
control of the ballast.
Since the software jitter was producing visible flickering, there is no more ADC state
machine. Each analog conversion is done just before being used for control loops.
The complete software package for the application is split into the functional blocks in
the diagram shown below. While the variables are identified as follows.
g_
global
gv_
global volatile
gs_
global static
Voltage and current variables are identified by the following examples.
g_v or g_i
global - voltage/current
gv_v or gv_i global volatile - voltage/current
gs_v or gs_i global static - voltage/current
Figure 6-1. Demo Software Architecture
PFC_ZCD
V_HAVERSINE
V_BUS
Analog comparator
gv_v_haversine
gv_v_bus
TEMPERATURE
Not software
implemented
DALI_RX
DALI_TX
SWITCH_CTRL
COMMAND
DALI
CTRL
gv_pfc_state
gv_lamp_on
gv_lamp_preset
_current
gv_lamp_state
DUAL_LAMP
LAMP_EOL
I_LAMP
V_LAMP
Not software
implemented
Not software
implemented
gv_i_lamp
gv_v_lamp
PFC
CTRL
PFC_OUTPUT
LAMP
CTRL
INVERTER_HIGH
INVERTER_LOW
6-17
7597B–AVR–10/07
ATAVRFBKIT / EVLB001 User Guide