2X36 W digital dimmable ballast with L6574 and ST7FDALI
Introduction
This document describes a high-efficiency, high power factor, low THD and digital dimming
electronic ballast designed to drive 2X36 W T8 tube lamps.
The system consists of three main blocks:
The high-frequency ballast includes an active power factor correction circuit based on the
L6562 for universal input voltage as well as a ballast control circuit based on the L6574. The
digital dimming is performed by interfacing the ST7FDALI microcontroller with the analog
half-bridge driver.
The DALI control unit is dedicated to address the slaves, to display the lamp status and to
send the dimming commands. This unit is provided with a keyboard which allows setting
different dimming scenes over a wide range (5-100%) as well as putting in standby and
restarting the ballast. The DALI communication protocol includes single and group mode, as
well as broadcast mode to address the slaves.
The AC-DC adapter is based on the VIPer12A-E. This is an offline double-output isolated
power supply in DCM flyback configuration. The outputs are set for 20 V to supply the
communication bus and for 5 V to supply the MASTER microcontroller.
The three blocks are described in detail and their performances are shown. In addition some
of DALI basics are explained.
Figure 27.VIPer12A-E steady state behavior at full load at 110 V
Figure 28.VIPer12A-E steady state behavior at full load at 230 V
Figure 29.VIPer12A-E steady state behavior at minimum load at 110 V
Figure 30.VIPer12A-E steady state behavior at minimum load at 230 V
Figure 31.Startup waveforms at full load at 110 V
Figure 32.Startup waveforms at full load at 230 V
Figure 33.Startup waveforms at minimum load at 110 V
Figure 34.Startup waveforms at minimum load at 230 V
Figure 35.Dynamic load waveforms at 110 V
Figure 36.Dynamic load waveforms at 230 V
Figure 40.Conducted emissions at 110 V
Figure 41.Conducted emissions at 110 V
Figure 42.Conducted emissions at 230 V
Figure 43.Conducted emissions at 230 V
AN2708Block diagram and system operating conditions
1 Block diagram and system operating conditions
Figure 1 shows the block diagram of the system.
Figure 1.System block diagram
HIGH
FREQUENCY
BALLAST
ACíDC ADAPTER
SCI communication is considered as an option.
MASTER UNIT
SCI
Communication
Option
5/42
Block diagram and system operating conditionsAN2708
The present system has been designed according to the following specifications:
Table 1.System operating conditions
ParameterValue
Input voltage range176-265 Vac/50 Hz; 90-140 Vac/60 Hz
Lamp type2X36 W T8 tube lamps
Circuit power (max)80 W
Lamp power (max)72 W
Dimming range5% to 100%
Power factor> 0.99
Current THD< 10%
Warm start< 1.5 sec
Standby mode power< 0. 6 W
In addition to the previous specs, the DALI communications are optically isolated, the digital
dimming is performed with high precision, and the lamp filament preheating time is
programmable as well as the ignition time.
Figure 2.2X36 W digital dimmable ballast with L6574 and ST7FDALI
HIGH FREQUENCY BALLAST
MASTER UNIT
MASTER UNIT
ACíDC
ACíDC
ADAPTE R
ADAPTE R
6/42
AN2708High-frequency ballast
2 High-frequency ballast
This section describes the high-frequency ballast board which includes the power factor
correction stage, the half-bridge inverter driving circuitry, the output stage and the DALI
slave unit. The schematic of the board is shown in Figure 3.
This block is essentially a "double board" as the DALI slave board and its external circuitry
are mounted on a small separated board which is connected to the bottom side by means of
a 7-pin connector. Ta bl e 2 shows the ballast-slave communication.
Table 2.Ballast-slave communication
Pin ref.DescriptionAnalog stage Microcontroller
1PWM0 (ref op-amp)
2Disable L6574 EN1 & disconnected lamp
3Enable L6574 EN2 & not ignited lamp
4GND
55 VDD
6PB2 disable PFC
7SIGN (lamp failure)
Table 3.Ballast bill of material
ReferenceValueDescription
BridgeW08G 1.5 A 800 V Bridge rectifier
Cout, CVdd10 µF 25 VElectrolytic cap
C7,Cf4.7 µF 50 VElectrolytic cap
Cfb22 nF 25 VCeramic cap
Cin1,Cin23.3 µF 450 VElectrolytic cap
C1100 nF 400 VPolyester cap
C210 nF 50 VCeramic cap
C3330 nF 50 VCeramic cap
C41000 nF 50 VCeramic cap
C5,C8,C9,C1
9
C647 µF 450 VElectrolytic cap
C14100 nF 100 VCeramic cap
C104.7 nF 100 VCeramic cap
C111 nF 630 VEvox Rifa polypropylene cap Rs
C12470 pF 50 VCeramic cap
C131 µF 50 VCeramic cap
C15330 µF 25 VElectrolytic cap
100 nF 50 VCeramic cap
= 5 Ω at 100 kHz
max
C1610 nF 25 VCeramic cap
C17, C21100 nF 250 VPolyester cap
C18,C208.2 nF 1600 VPolyester cap
C422.2 µF16 VElectrolytic cap
8/42
AN2708High-frequency ballast
Table 3.Ballast bill of material (continued)
ReferenceValueDescription
C431 µF 20 VSMD tantalum cap
C44,C45100 nF 50 V0805 SMD cap
C4622 µF 20 V SMD tantalum cap
C7233 nF 50 V0805 SMD cap
C7368 pF 50 V0805 SMD cap
DZ1,DZ215 V 0.5 WZener diode
D2,D13,D14STTH1L06
D3,D4,D8,D1
1
1N4148Small signal rectifier 200 mA 100 V
STMicroelectronics ultrafast high voltage rectifier 1 A 600
V
D5,D6,D7,D9
, D10,D61
D1218 V 0.5 W Zener diode
D151N4007 1 A 1000 VGeneral purpose rectifier
D16MB2S 0.5 A 200 V SMD bridge rectifier
D17BAS16Small signal diode
D18BZX284C 2V70.5 W Zener diode
FUSE4 A 250 VRadial fuse
J1Input 250 V connector3-way PCB screw terminal, 5.08 mm
J2Ballast-slave connector7-way strip line socket
J3Dali Bus2-way vertical PCB header, 3.81 mm pitch
J4Ballast-slave connector7-way strip line connector
U7LE50CZ TO-92STMicroelectronics very low drop voltage regulators
U8VIPer12A-E DIP8
U9,U10SFH6156-2Optocoupler
U11ST7FDALIF2M6 SO20
680 kΩResistor
100 kΩ2 W resistor
STMicroelectronics offline SMPS primary IC 730 V 0.4 A
27R
STMicroelectronics
8-bit MCU with single voltage Flash memory, data
EEPROM, ADC, timers, SPI, DALI
Note:Resistors are 0.25 W unless specified. Q1, Q2 &Q3 are mounted with 8 °C/W heatsink.
2.1 PFC converter
This block allows drawing a quasi-sinusoidal current from the mains, in phase with the line
voltage in order to get a PF very close to 1 (more than 0.99).
To achieve such high PF the boost topology is implemented because of the advantages it
offers:
●Minimum number of external components, thus making it a low-costsolution
●Low input di/dt thus minimizing the noise generated at the input and, therefore, the
requirements on the input EMI filter
●The switch is source-grounded, therefore is easy to drive
However, boost topology requires the DC output voltage (400 Vdc) to be higher than the
maximum expected line peak voltage.
ST's L6562 has been used as the driver. It implements a transition mode control (fixed ON
time, variable frequency), that, for such output power, is preferred to the fixed frequency
average current mode being simpler and cheaper. The circuit operates on the boundary
between continuous and discontinuous current mode.
Besides providing good results in terms of power factor, this IC considerably reduces the
Total Harmonic Distortion (THD) as it reduces the conduction dead-angle that occurs to the
AC input current near the zero-crossings of the line voltage.
11/42
High-frequency ballastAN2708
The basic design specifications are listed in Tab le 4 .
Table 4.PFC operating conditions
ParameterValue
Mains voltage range: Virms(min) - Virms(max) 90 – 265 Vac
Regulated DC output voltage: Vo400 Vdc
Rated output power: Po75 W
Minimum switching frequency: f
sw
Maximum output voltage ripple: ∆Vo< ± 10 V
35 kHz
Maximum overvoltage admitted: ∆V
Expected efficiency: η
PFC
OVP
60 V
> 90 V
For reference, it is useful to define also the following quantities:
●Input power: Pi (= Po / η ) ≈ 80 W
●Maximum mains RMS current: Iirms (= Pi/Virms(min)) ≈ 1 A
●Rated output current: Io (= Po/Vo) ≈ 0.2 A
The design guidelines are deeply explained in AN966 ("L6561, enhanced transition mode
power factor corrector"), AN1757 ("Switching from the L6561 to the L6562) and AN1089
("control loop model of L6561-based TM PFC"). The main design formulas are summarized
as follows inTab le 5.
CH1 (yellow): rectified input voltage
CH2 (blue): input current
13/42
High-frequency ballastAN2708
2.2 Half-bridge inverter and ballast
A voltage fed series resonant half-bridge inverter has been implemented to drive the tubes.
This topology allows to easily operates in zero-voltage switching (ZVS) resonant mode,
heavily reducing the transistor switching losses and the electromagnetic interference. In
addition it guarantees design simplicity and low cost.
A parallel configuration has been chosen for the output stage. The half-bridge inverter
operating conditions and the ballast design have been obtained by assuming, for each lamp,
the following basic model:
Figure 5.Lamp ballast model
To increase the life time of the lamps a current mode preheat was preferred. The preheating
current brings the cathodes to the correct temperature, then a high voltage ignites the lamp
and finally the correct current guarantees the running power. These phases are ensured by
changing the frequency of the input voltage and properly selecting V
, L and C. During
IN
preheating and ignition, the lamp is not conducting and the circuit is reduced to a series L-C.
During running, the lamp is conducting and the circuit is an L in series with a parallel R-C. To
determine the optimum values for L and C and to calculate the ballast operating frequencies
the transfer functions for each mode of operation have to be inspected.
The table below shows the parameters and the values for a T8 36 W tube lamp which need
to be known in order to calculate the ballast operating conditions.
Table 7.Lamp parameters
ParameterValue
Input DC bus voltage: Vdc400 V
Preheat current: Iph0.6 A
Preheat time: Tph1 sec
Max preheat voltage: Vphmax300 Vpk
Ignition voltage: Vign800 Vpk
Running lamp power: Prun34 W
Running lamp voltage: Vrun144 Vpk
Expected efficiency: η 95%
14/42
AN2708High-frequency ballast
Once the lamp and its parameters have been chosen, the ballast design will be optimized by
selecting the resonant components L and C as follows:
●Set Tpre
●Select frunmin (> 20 kHz)
●Choose ∆f = fmax-frunmin
●Select L & C such that fph > frun
●Select half-bridge switches
●Select L6574 biasing circuitry
The magnitude of the transfer function (lamp voltage divided by input voltage) for the two
circuit configurations (preheating-ignition and running) illustrates the operating frequencies
and where they lie with respect to one another.
Figure 6.Ballast transfer functions (magnitude)
The currents and voltages corresponding to the resulting operating frequencies determine
the maximum current and voltage ratings for the inductor, capacitor, and the switches,
which, in turn, directly determine the size and cost of the ballast.
Moreover the zero-voltage switching is ensured as shown by the curves above in Figure 6.
STP8NM50 (8 A, 550 V) has been selected as power switch according to the current stress
and the input DC voltage.
The half-bridge inverter driving circuitry is based on the high performance L6574 which is an
OFF-LINE half-bridge driver designed in 600 V BCD technology, including all the features
needed to drive and properly control the tubes. A dedicated timing section in the L6574
allows setting the necessary parameters for proper preheat and ignition of the lamps. Also,
an op-amp is available to implement closed-loop control of the lamp current during normal
lamp burning. To avoid cross conduction of the power MOSFETs the internal logic ensures a
minimum deadtime. Moreover the L6574 is provided with two lamp status control functions
to protect the application against lamp failure as well as lamp disconnection. Finally it is
15/42
High-frequency ballastAN2708
possible to modulate the output power in order to allow dimming by varying the switching
frequency.
The ballast operating frequencies determine the L6574 biasing circuitry as explained in
AN993 "Electronic Ballast With PFC Using L6574 and L6561" and as summarized below.
Table 8.L6574 biasing circuitry design equations for operating conditions
between this pin and OPINfor the current feedback loop
compensation. It set also the
turn on delay in a dimming
application.
2.2.1 Lamp dimming
In this system the lamps are dimmed down to 5% by interfacing the ST7FDALI
microcontroller with the analog driver L6574.
A PWM output of the ST7FDALI microcontroller is used to generate a 0-5 V PWM at 4 kHz.
Its integrated value gives the op amp voltage reference. The dimming level is set by varying
the PWM duty cycle from 70% (100% dimming) to 14% (5% dimming). This modification
allows changing the L6574 op-amp positive reference voltage from 120 mV to 20 mV which
increases the switching frequency and reduces the current in the load.
On the slave unit the duty cycle values have been calculated according the DALI protocol
brightness values, listed in Figure 7.
16/42
AN2708High-frequency ballast
Figure 7.DALI protocol brightness values
To avoid the presence of stationary waves along the tubes at minimum dimming level, a
resistor of 100 kΩ / 2 W has been placed in parallel to the battery capacitor of each lamp.
The resistance value ensures an additional current of 2 mA on the cathodes without
affecting the ballast efficiency.
Finally, during the startup sequence the frequency always goes from fmax to fmin,
independently of the set dimming level. Only after lamp turn-on does the frequency move
towards higher values.
2.2.2 Supply section
To supply the DALI slave microcontroller an AC-DC buck converter based on the
VIPer12A-E and L78L05 has been implemented on the ballast board. It converts the
rectified and filtered mains to a 5 V regulated output voltage dedicated to the
microcontroller. The converter works in discontinuous current mode adjusting the duty cycle
17/42
High-frequency ballastAN2708
of the VIPer12A-E power switch in order to deliver the energy from the input to the output by
means of an inductor. PWM driver, power switch, thermal and overcurrent protection are
integrated in the same silicon chip ensuring minimum size and good performances at very
low cost.
Thanks to this implementation strategy the microcontroller is always supplied, allowing the
lamps to turn on, even when L6562 and L6574 are in a latched shutdown state.
The startup procedure is very important in an application that contains two different
sections. The ballast section starts before the PFC, avoiding any extra voltage at the PFC
section output, and consequently the L6562 OVP activation. This behavior is guaranteed
under all conditions because the VS turn-on threshold of L6574 is lower than that of the
L6562. The turn-on threshold is reached by a resistor chosen in order to ensure the startup
current of both the L6562 and the L6574. When the ballast section is running, the charge
pump (C11, R14, D3 and DZ1) supplies both the devices and the filter R17-C10 allows to
reduce the noise at Vcc.
2.2.3 Lamp turn-on and lamp turn-off
To get low-power consumption (less than 0.6 W) during the lamps’ turnoff state, both the
half-bridge and the PFC have to be disabled, even in the presence of the mains at the
ballast input. To manage this standby condition the L6574 control section and the L6562
ZCD pin are interfaced with the DALI slave microcontroller.
Short pulses (> 200 nsec) at the EN1 and EN2 inputs are recognized by the L6574. In
particular, EN1 high (> 0.6 V) stops all the half-bridge functions and puts the L6574 in a
latched shutdown state. At the same time, by forcing externally the ZCD pin to a voltage
below 150 mV, the L6562 is stopped. To cancel this status, in order to turn on the lamps, a
pulse (>0.6 V) is sent by the microcontroller to the L6574 second control pin EN2 and the
ZCD pin external pull down is removed. The half-bridge driver restarts the preheating and
ignition procedure, and the L6562 performs again its operation. The controls timing diagram
is shown inFigure 8.
18/42
AN2708High-frequency ballast
Figure 8.Ballast controls timing chart
Vsupply
LVG
HVG
Latched
Disable
EN1
Forced
Restart
EN2
ZCD
GD
TIME
On the slave unit the turning ON/OFF process is implemented by setting the pins PB3 (EN1)
and PB4 (EN2) as output pull-up, while PB2 (ZCD) as output open drain. The three
corresponding bits in the port data register are clear by software. To "switch on" the ballast,
a pulse must be sent to PB4 (EN2 signal) and the third bit must be set in the port B (ZCD)
data register. To "switch off" the ballast, a pulse must be sent to PB3 (EN1 signal) and the
third bit must be cleared in the port B (ZCD signal) data register.
Figure 9, 10, and 11 show the idle state and the turn-on/off commands.
This function detects a lamp disconnection or a lamp failure on the slave board. The
microcontroller performs a double check: one on the PB1 pin for the lamp hardware status
and one on the flag "LAMP_ARC_POWER_ON" for the lamp software status. If the PB1
logical level is low and the flag is true, lamp disconnection happened. The condition is
recorded on ST7FDALI, so when the microcontroller receives a "query frame" from the
master, it changes the PB3 (EN1) and PB4 (EN2) configuration from input to output, and
sends a byte answer as 'STATUS INFORMATION' described below:
●bit 0 status of ballast; '1'= NOK
●bit 1 Lamp failure; '1'= NOK
●bit 2 Lamp arc power on; '0' = OFF
●bit 3 Query: Limit Error; '0' = Last requested arc power level is between MIN..MAX
LEVEL or OFF
●bit 4 Fade ready; '0' = fade is ready; '1' = fade is running
●bit 5 Query: 'RESET STATE'? '0' = 'No'
●bit 6 Query: Missing short address? '0' = 'No'
●bit 7 Query: 'POWER FAILURE'? '0' = 'No'; 'RESET' or an arc power control command
has been received after last power-on
When the master receives this frame, it displays the lamp status by means of two LEDs
(green stands for ok, red for status not ok). Once the failure condition has been detected
and solved, an "ON" command has to be sent to the slave, allowing the master's
microcontroller to toggle again the LED status from red to green. From the analog side, to
detect a disconnection or a failure event for each lamp, two signal Schottky diodes have
been used to bias the EN1 or EN2 pin of L6574. The failure condition is detected both at
startup and when running.
The forward and backward frame timing is shown in Figure 12 and 13:
Figure 12. Forward frame timing
21/42
High-frequency ballastAN2708
Figure 13. Backward frame timing
The forward as well as the backward frame duration is the same for all kinds of commands.
2.2.5 Ballast performances
In this section the main ballast waveforms are shown.
Figure 14. Ballast startup at 230 Vac-full
power
CH2 (blue): lamp current
CH3 (magenta): V
CPRE
CH4 (green): supply voltage
Figure 15. Lamps turn-on at 230 Vac-full
power
CH1 (yellow): lamp1 voltage
CH2 (blue): lamp1 current
CH3 (magenta): lamp2 voltage
CH4 (green): lamp2 current
22/42
AN2708High-frequency ballast
Figure 16. Lamps running at 230 Vac - full power
CH1 (yellow): lamp1 voltage
CH2 (blue): lamp1 current
Ch3 (magenta): lamp2 voltage
CH4 (green): lamp2 current
Table 9.Ballast performances
Vin (Vac)Pin (W)PFTHD (%)Po (W)η (%)
9076.50.9993.96686.2
11075.50.9993.66687.4
14074.20.9985.56689
17673.70.9977.26690
230730.9977.36690
26572.80.9968.36691
The efficiency of the system is a little bit lower than a standard HF ballast due to the supply
section of the slave and the resistors in series to the lamp’s cathode used to ensure a
minimum current at low dimming level.
23/42
DALI master unitAN2708
3 DALI master unit
The ST2C334J4 microcontroller is used as master, implementing the DALI Peripheral via
software.
The communication master-slave uses a 20 V bus. To adapt the TTL level of the
microcontroller to the communication bus level, two opto-couplers and a NPN transistor BC817 have been used.
The RS232 interface with ST232C is available on the board to implement the SCI
communication as an option. This option expects the use of a PC to address the ballast
either with broadcast or group or single mode thanks to a GUI called (DALI Power Control).
The DALI master unit has been thought of as a standalone solution. In fact it is provided
with a keyboard to manage the DALI commands, to address the slaves and to display the
lamps’ status.
The keyboard is made up of 16 push buttons controlled by means of a matrix
representation. In particular the first fourpins of PORTD are associated to the rows and the
first four pins of PORTB to the columns.
The check of the keyboard is implemented as a loop mode by clearing the PDDR register
port and setting the PBDR register port sequentially. When a button is pressed, the pin of
the port B corresponding to the interested column goes down and this condition is taken
over by an interrupt condition. Inside the interrupt routine, a read procedure of the port
registers PDDR and PBDR is expected and by this information the pressed button is
acknowledged. The “press button” procedure is described byFigure 17 and 18.
D24,D26,D27,D28LG M67K-G1J2-24 Green SMD LED 2 mA, 0805
J6DALI BUS2-way single row, header shrouded
J7Supply voltage3-way single row header shrouded
J8ICP connector
J913-way strip line connector (not mounted)
J12Pull-up jumper3-way strip line connector
LD3LS M67K-H2L1-1Red SMD LED 2 mA, 0805
LD4LG M67K-G1J2-24Green SMD LED 2 mA, 0805
100 nF 50 VCeramic capacitor SMD 0805
10-way 2-row vertical through-hole boxed header, 2.54 mm
pitch/grid
P1Serial connector9-way 90° PCB mount D plug
Q5BC817-25SMD NPN transistor
R730Resistor SMD 1206
R770Resistor SMD 0805
R74220 Ω1 W 5% resistor
R75,R7610 kΩ1% resistor SMD 0805
R781.2 kΩ1% resistor SMD 0805
R7911 kΩ1% resistor SMD 0805
R80,R811 kΩResistor SMD 0805
R824.7 kΩResistor SMD 0805
R83330 Ω1% Resistor SMD 0805
R844.7 Ω1% Resistor SMD 0805
R853 kΩ1% Resistor SMD 0805
R86,R87,R88,R89,R90,
R91
R10110 kΩResistor SMD 0805
SW1ResetTHT button
1 kΩResistor SMD 0805
27/42
DALI master unitAN2708
Table 10.Master unit bill of material (continued)
ReferenceValueDescription
SW2, SW3, SW4, SW5,
SW6, SW7, SW8, SW9,
SW10, SW11, SW12,
SW13, SW14, SW15,
SW16, SW17
U12
U13ST232C SOP
U14,U15SFH6156-2SMD Opto-coupler
Y116 MHz Oscillator
KeyboardTHT button
ST72C334J4B6
PSDIP42
8-bit MCU with single voltage flash memory, Adc, 16-bit timers,
STMicroelectronics 5 V powered multi-channel
STMicroelectronics
SPI, SCI interface
RS-232 drivers and receivers
Note:Resistors are 0.25 W unless specified
28/42
AN2708Basics of DALI
4 Basics of DALI
DALI stands for "Digital Addressable Lighting Interface". It is a standard interface for lighting
control solutions, defined by the main lighting manufacturers and standardized as IEC 929.
The DALI protocol is implemented on a master-slave architecture.
It uses the bi-phase Manchester asynchronous serial data format. All the bits of the frame
are bi-phase encoded except the two stop bits. Following are some of the standard features:
●Transmission rate at 1.2 kHz.
●Bi-phase bit period is 833.33 µS ±10%.
A forward frame consists of 19 bi-phase encoded bits:
–1 start bit (0->1: logical '1')
–1 address byte (8-bit address)
–1 data byte (8-bit data)
–2 high level stop bits (no change of phase)
A backward frame consists of 11 bi-phase encoded bits:
–1 start bit (0->1: logical '1')
–1 data byte (8-bit data)
–2 high level stop bits (no change of phase)
Each frame has 2 stop bits which do not contain any change of phase.
The setting time between two subsequent forward frames is 9.17 ms (minimum), while the
delay between forward and backward frame goes from 2.92 ms to 9.17 ms. If a backward
frame has not been started after 9.17 ms, this is interpreted as "no answer".
In the event of code violation, the frame is ignored and the system is ready again for data
reception.
The main advantages of the DALI system can be summarized as follows:
●Simple wiring: all of the units in the system are interconnected using a simple five-core
cable.
Figure 20. Cable wiring
29/42
Basics of DALIAN2708
N
N
N
N
●No mains switching required: lamps can be dimmed or switched on and off using
control system commands without any need for mains switching.
●Easy system re-configuration: the configuration of the system can be changed quickly
without any modification to the hardware.
●Easy system modification: if the lighting system needs to be enlarged, new
components can be added anywhere on the DALI cable.
●It is possible to define light scenes. A scene means a particular light level intensity. 16
scenes can be defined at maximum.
Figure 21. Master flowchart
START
POLLING KEYBOARD
PUSH
BUTTON
Y
BUTTON
NUMBER
11
SEND COMMAND
QUERY
FRAME
Y
Y
CHANGE SLAVE
ADDRESS
WAIT BACKWARD FRAME
NO
ANSWER
FRAME
RECEIVED
Y
TOGGLE
LED
30/42
AN2708Basics of DALI
g
,
d
Figure 22. Slave flowchart
Start
Main
New Frame Received
PWM
routine
Failure=1
Dali Peripheral
Pulse on EN1(OFF) or
EN2 (ON) change pin
confi
uration
Y
Pin
PB1=low
level
N
Process
Command
ON/
Y
OFF
N
Y
Other indirect
arc power control
comman
s
N
Query
N
command
Y
Send Lamp
OK
N
Failure=1
Y
Change
configuration
of PB3
PB4pin
Send Lamp
Failure
31/42
DALI master AC-DC adapterAN2708
5 DALI master AC-DC adapter
This is an offline wide-range double-output SMPS based on the VIPer12A-E. The first
output, 20 V at 100 mA, is dedicated to the bus communication allowing to address up to 64
slaves, while the second one delivers 5 V at 10 mA to the MASTER DALI microcontroller
thanks to a linear post-regulator.
The VIPer12A-E combines on the same silicon chip a dedicated current mode PWM
controller, a high voltage power MOSFET and the protection features (thermal, overcurrent,
and overvoltage) which increases the converter reliability and saves size, parts count and
cost.
The converter topology is an isolated flyback designed to work in discontinuous current
mode according to the following specifications:
Table 11.SMPS operating conditions
ParameterValue
Input voltage range90 – 265 Vac
Input frequency range50/60 Hz
Output voltage 1V1=20 V
Output voltage 2V2=5 V
Output current 1I1=100 mA
Output current 2I2=10 mA
Output power (peak)2.2 W
Line regulation+/- 1%
Load regulation+/- 1%
EMIEN55015
5.1 Adapter description
The schematic of the board is shown inFigure 23.
The AC input is rectified by the diodes bridge and then filtered by the bulk capacitor C1, and
C2 to generate the high voltage DC.
The input EMI filter is a simple CLC PI filter for both differential and common mode noise
suppression.
An NTC limits the inrush current and ensures a reliable operation of the bridge at startup.
The switching frequency is fixed at 60 kHz by the IC internal oscillator allowing optimization
of the transformer size and cost. An RCD snubber circuit (R92, C59, D30) reduces the
leakage inductance voltage spike and the voltage ringing on the drain pin of VIPer12A-E.
As soon as the voltage is applied on the input of the converter the high voltage startup
current source connected to the drain pin is activated and starts to charge the Vdd capacitor
C8 by a constant current of 1mA. When the voltage across this capacitor reaches the Vddon
threshold (about 14 V) the VIPer12AS-E starts to switch. During normal operation the smart
32/42
AN2708DALI master AC-DC adapter
power IC is powered by the auxiliary winding of the transformer via the diode D31. No spike
killer for the auxiliary voltage fluctuations is needed thanks to the wide range of the Vdd pin
(9-38 V). The primary current is measured using the integrated current sensing for current
mode operation.
The output rectifier D29 has been chosen in accordance with the maximum reverse voltage
and power dissipation. In particular a 1 A - 150 V power Schottky, type STPS1150, has
been selected.
The output voltage regulation is performed by secondary feedback on the 20 V output while
the 5 V output, is linearly post-regulated from the 20 V output. This operation is performed
by a low drop voltage regulator, L78L05CZ, in the TO92 package. The feedback network
consists of a programmable voltage reference, TL431, driving an optocoupler which ensures
the required insulation between the primary and secondary sections. The optotransistor
drives directly the VIPer12A-E feedback pin which controls the operation of the IC.
A small LC filter has been added on the 20 V output in order to reduce the high frequency
ripple with reasonable output capacitor value.
The flyback transformer is a layer type based on the EF13 core and Fi 324 ferrite,
manufactured by Vogt, and ensures safety insulation in accordance with the EN60950.
Figure 26 shows the main features of the transformer. The power supply has been
implemented on a double-sided 35 µm PCB in FR-4, sizing 81 x 37 mm.
Figure 23. Adapter schematic
L9
3
C61
2.2nF Y 1
+
1mH 130m A
C56
+
2.2uF
4
Vdd
FB
3
U18
VIPer12A
BRIDGE2
4
DF06
NTC2
10R @ 25°
J17
2
Input 250V Con
1
FUSE2 0.5A
T1: S MT
- EF12.6/3. 7c ore, F i324 f errite
- 0.16mm gap f or 2m H prim ary induc t anc e
- Primary : 135 t urns (0. 14m m -AW G35)
- Secondary: 28 turns (0.36mm-AWG27)
- Auxiliary : 21 t urns (0. 05m m -AW G44)
1
-+
2
C63
10uF
50V
5
+
2
C57
2.2uF
400V400V
STTH1L06
U17
PC817
43
R93
560R
C6510nF
+
L8
100uH 600mA
C59
150uF
35V
12
U19
21
TL431
20V@100mA
C60
+
22uF
35V
U16
L78L05CZ
VIN3VOUT
R96
R95
33K
1K
R98
150K
C64
100nF
50V
3
R99
4.7K
1
GND
2
2.2uF
5V@10mA
C62
+
Supply Volt age
J10
1
2
3
R92
C58
56K
D30
R94
10R
D31
1N4148
8
D
D7D6D
S1S
470pF
1kV
1
2
4
5
SL 060 918 11 01
D29
STPS1150
T3
9
6
R97
10K
50V
33/42
DALI master AC-DC adapterAN2708
Figure 24. Adapter PCB layout - top side -
silkscreen (to scale)
Figure 26. Flyback transformer
Figure 25. Adapter PCB layout - bottom side -
copper tracks (to scale)
●Operating switching frequency: 60 kHz
●Core geometry: EF 12.6/3.7
●Core material: FI 324 or equivalent
●Primary inductance value: 2 mH
●Leakage inductance: 75 µH
●Air gap length: 0.16 mm
●Safety: EN60950
34/42
AN2708DALI master AC-DC adapter
5.2 Adapter bill of material
Table 12.Adapter bill of material
ReferenceValueDescription
BRIDGE2DF06M 1 A 600 V Bridge rectifier
C56,C572.2 µF 400 VElectrolytic cap
C58470 pF 1 kVCeramic cap
C59150 µF 35 VLow ESR electrolytic cap
C6022 µF 35 VLow ESR electrolytic cap
C612.2 nF Y1Y1 ceramic cap
C622.2 µF 25 VElectrolytic cap
C6310 µF 50 VElectrolytic cap
C64100 nF 50 VCeramic cap
C6510 nF 50 VCeramic cap
D29STPS1150STMicroelectronics power Schottky rectifier 1 A 150 V
D30STTH1L06STMicroelectronics ultrafast high-voltage rectfifier 1 A 600 V
D311N4148Small signal rectifier 200 mA 100 V
FUSE20.5 ARadial fuse
J10Supply voltage3-way single row shrouded header
J11Input 250 V connector2-way PCB screw terminal, 5.08 mm
L8100 µH 600 mAAxial inductor
L91 mH 130 mAAxial inductor
NTC210 Ω @ 25°Inrush current suppressor
R9256 kΩResistor, metal film 0.25 W
R93560 ΩResistor, metal film 0.25W
R9410 ΩResistor, metal film 0.25 W
R951 kΩResistor, metal film 0.25 W
R9633 kΩResistor, metal film 0.25 W
R9710 kΩResistor, metal film 0.25 W
R98150 kΩResistor, metal film 0.25 W
R994.7 kΩResistor, metal film 0.25 W
T3SL 060 918 11 01VOGT SMT
U16L78L05CZ TO92STMicroelectronics positive voltage regulator
U17PC817Sharp Optocoupler 5 kV
U18VIPer12A-E DIP8STMicroelectronics offline SMPS primary IC 730 V 0.4 A 27 Ω
U19TL431 TO92STMicroelectronics programmable voltage reference
35/42
DALI master AC-DC adapterAN2708
5.3 Adapter performances
Several tests have been performed on the board to evaluate the converter behavior in terms
of efficiency, stability, safe operating area of the devices, line & load regulation and EMI
performances.
5.3.1 Steady state tests
These tests have been performed at the input voltage of 110 Vac and 230 Vac at full and
minimum load condition.
Figure 27. VIPer12A-E steady state behavior at
f u l l l o a d a t 1 1 0 V a c - 6 0 H z
CH1 (blue): drain voltage
CH4 (purple): drain current
As shown by the waveforms the power supply operates in discontinuous current mode.
Figure 29. VIPer12A-E steady state behavior at
minimum load at 110 Vac - 60 Hz
Figure 28. VIPer12A-E steady state behavior at
full load at 230 Vac - 50 Hz
CH1 (blue): drain voltage
CH4 (purple): drain current
Figure 30. VIPer12A-E steady state behavior at
minimum load at 230 Vac - 50 Hz
CH1 (blue): drain voltage
CH4 (purple): drain current
36/42
CH1 (blue): drain voltage
CH4 (purple): drain current
AN2708DALI master AC-DC adapter
At minimum load the VIPer12A-E ensures the burst mode operation, saving the input power
consumption.
5.3.2 Startup behavior
Figure 31, 32, 33, and 34 show the typical waveforms during the startup of the power supply.
In particular, the full load condition is considered since it represents the heaviest case in
terms of voltage and current stress, as well as the minimum load condition for loop stability
and voltage stress.
Figure 31. Startup waveforms at full load
at 110 Vac - 60 Hz
CH1 (blue): drain voltage
CH2 (red): 5 Vout
CH3 (green): 20 Vout
CH4 (purple): drain current
Figure 32. Startup waveforms at full load
at 230 Vac - 50 Hz
CH1 (blue): drain voltage
CH2 (red): 5 Vout
CH3 (green): 20 Vout
CH4 (purple): drain current
37/42
DALI master AC-DC adapterAN2708
Figure 33. Startup waveforms at minimum
load at 110 Vac - 60 Hz
CH1 (blue): drain voltage
CH2 (red): 5 Vout
CH3 (green): 20 Vout
CH4 (purple): drain current
There is no overshoot on the output voltages and the measured wakeup time is 180 mS.
5.3.3 Dynamic load tests
Figure 34. Startup waveforms at minimum
load at 230 Vac - 50 Hz
CH1 (blue): drain voltage
CH2 (red): 5 Vout
CH3 (green): 20 Vout
CH4 (purple): drain current
These tests show the transient load response at 110 Vac and 230 Vac mains when the 20 V
output current is increased from 10% to 90% of the maximum value.
Figure 35. Dynamic load waveforms
at 110 Vac - 60 Hz
CH3 (green): 20 Vout voltage ripple
CH4 (purple): 20 Vout current
In the worst case the result is 224 mV or 1.12% of dynamic load regulation which indicates a
very good dynamic behavior.
Figure 36.Dynam i c load w aveforms
at 230 Vac - 50 Hz
CH3 (green): 20 Vout voltage ripple
CH4 (purple): 20 Vout current
38/42
AN2708DALI master AC-DC adapter
5.3.4 Line regulation
For this test the output power is kept at the peak value (2.2 W) while the line voltage is
slowly increased from 85 Vac to 265 Vac. The board has a line regulation of +0.9%.
As the 5 V output is obtained by a linear regulator, the load regulation measurements have
been performed only on 20 V output by changing its load from 10 mA to full load 100 mA.
The input voltage is kept at the nominal value of 230 Vac.
The board has a load regulation of +0.9%.
Figure 38. Load regulation
24
23
22
21
20
19
20V Output (Vdc)
18
17
16
0 102030405060708090100110
20V Output
Output Current (mA)
39/42
DALI master AC-DC adapterAN2708
5.3.6 Efficiency variation
For this test the efficiency is measured when the line input is varied from 85 Vac to
264 Vac at full load. The average efficiency is 66.5%. A moderate value is typical of low
power applications.
Figure 39. Efficiency variations vs. input voltage at full load
Conducted emissions have been measured in neutral and line wires, using peak detector
and considering the limits for lighting applications i.e. EN55015. The measurements have
been performed at 110 Vac and 230 Vac line with fully loaded outputs. The results are
shown in Figure 40, 41, 42, and 43.
Since the emission level is below both the quasi-peak and average limits with acceptable
margin, the power supply passes the pre-compliance test.
Figure 40. Conducted emissions at 110 Vac
60 Hz - full load - line 1 peak
µ
Ref 75 dB
Peak
Log
10
dB/
W1 S2
S3 FC
AA
detector
01:55:30 Apr10,2007
V#
Atten 10 dB
Figure 41. Conducted emissions at 110 Vac
60 Hz - full load - line 2 peak
detector
Ref 75 dBµV#Atten 10 dB
Peak
Log
10
dB/
W1 S2
S3 FC
01:55:07 Apr 10, 2007
AA
Start 150 kHz
Res BW 9 kHzVBW 30 kHz
Sweep 881.3 ms (2115 pts)
Stop 30 MHz
40/42
Start 150 kHz
Res BW 9 kHzVBW 30 kHz
Sweep 881.3 ms (2115 pts)
Stop 30 MHz
AN2708References
Figure 42. Conducted emissions at 230 Vac
50 Hz - full load - line 1 peak
Ref 75 dBµV#Atten 10 dB
Peak
Log
10
dB/
W1 S2
S3 FC
AA
Start 150 kHz
Res BW 9 kHzVBW 30 kHz
detector
01:53:40Apr 10, 2007
Sweep 881.3 ms (2115 pts)
Stop 30 MHz
6 References
1. "L6561, enhanced transition mode power factor corrector" (AN966)
2. "Switching from the L6561 to the L6562" (AN1757)
3. "Control loop modelling of L6561-based TM PFC" (AN1089)
4. "Electronic Ballast With Pfc Using L6574 And L6561" (AN993)
5. "Choosing A Dali Implementation Strategy With ST7DALI" (AN1756)
6. "Hardware Implementation for ST7DALI-EVAL" (AN1900)
Figure 43. Conducted emissions at 230 Vac
50 Hz - full load - line 2 peak
detector
Ref 75 dB
Peak
Log
10
dB/
W1 S2
S3 FC
Start 150 kHz
Res BW 9 kHzVBW 30 kHz
01:54:24 Apr 10, 2007
µ
V#
AA
Atten 10 dB
Sweep 881.3 ms (21 15 pts)
Stop 30 MHz
7 Revision history
Table 13.Document revision history
DateRevisionChanges
07-Mar-20081Initial release
41/42
AN2708
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.