STMicroelectronics STEVAL-ILH007V1 150W HID digital ballast User manual
โฆษณา
โฆษณา
UM1694
User manual
STEVAL-ILH007V1: 150W HID digital ballast based on STLUX385A
Introduction
This document describes 150 W high intensity discharge (HID) digital ballasts driven by
STLUX385A devices. This platform is a solution to drive HID lamps (sodium and metal halide). The board is composed of two stages:
1. Power factor corrector (PFC), based on boost topology to correct the AC input current in phase with AC voltage mains.
2. Inverter, based on full bridge topology to drive the lamps.
The STLUX385A digital controller drives both stages.
Figure 1. STEVAL-ILH007V1
June 2015 DocID025509 Rev 1 1/30
www.st.com
30
Contents
Contents
UM1694
STEVAL-ILH007V1 firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Implemented peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Firmware download into the STLUX MCU . . . . . . . . . . . . . . . . . . . . . . . 15
STEVAL-ILH007V1 evaluation board operation . . . . . . . . . . . . . . . . . . 18
Appendix A STEVAL-ILH007V1 schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2/30 DocID025509 Rev 1
UM1694
List of tables
List of tables
DocID025509 Rev 1 3/30
30
List of figures
List of figures
UM1694
4/30 DocID025509 Rev 1
UM1694
1 Features
Features
The STEVAL-ILH007V1 board has the following features:
•
GREEN LED: indicates the normal operation of the board
•
RED LED: indicates the fault condition of the board
•
UART: connector for serial data communication to a PC to monitor the system parameters.
Parameter
Table 1. Features
Notes and conditions
Input characteristics
Min.
Typ.
Max.
Unit
V in
Eff
PF
THD% input voltage efficiency power factor input current THD
V in
= 230 V, load = 150 W
V in
=185 V; load = 150 W
V in
=185 V; load = 150 W
Load characteristics
sodium or metal halide
185 230 265
90
0.98
10
V
%
%
Load
Pout
Iout lamp type lamp power lamp current
150
1.6
W
A
DocID025509 Rev 1 5/30
30
Connectors
2 Connectors
With reference to the schematic in
:
Figure 2. Top layout
UM1694
Figure 3. Bottom layout
6/30 DocID025509 Rev 1
UM1694
Pin
Table 2. Connectors
Description
J1 Power supply connector / 230Vac – 3 way screw terminal
J2 Power connector for power line modem / 230V - 2 way screw terminal
J3 Output connector for lamp connection - 2 way screw terminal
J4 Connector for UART output- 24 way terminals
J5 SWIM Connector to FW download and debug
J7 DALI Connector 12 way terminals
J8 UART output - stereo jack connector 3.5mm
Connectors
DocID025509 Rev 1 7/30
30
Firmware
3 Firmware
UM1694
The MCU used is an STLUX385A, which is part of the MASTERLUX™ family of ST digital devices tailored for lighting and power conversion. The STLUX385A has been successfully integrated in a wide range of architectures and applications, including simple buck converters for LED driving, boosts for power factor correction, half-bridge resonant converters for dimmable LED strings, full-bridge control in HID lamp ballasts, wireless power chargers and TV power supplies.
This MCU has 16 MHZ CPU frequency, 32 Kbyte program memory and 2 Kbyte of RAM.
The firmware is organized as a collection of files inside a project for Raisonance RIDE7, a fully-featured Integrated Development Environment (IDE) that provides seamless integration and easy access to the complete range of Raisonance tools and features for writing, compiling and debugging application code from a single user interface.
The firmware is released as an Intel HEX file (Rev01.HEX).
The firmware running the STLUX385A of the STEVAL-ILH007V1 allows the MCU to manage the PFC and full-bridge of the board.
STEVAL-ILH007V1 is also able to manage UART communication with a PC to show system status information.
Following CPU clock and peripheral configuration, the MCU manages the board as a finite state machine, as shown below.
Figure 4. STEVAL-ILH007V1 block diagram of the firmware
8/30 DocID025509 Rev 1
UM1694
Figure 5. STEVAL-ILH007V1 finite state machine lamp management
Firmware
The following table lists the user source.c files for the STEVAL-ILH007V1.
File
main.c
adc.c
stlux_smed.c
stlux_it.c
stmr.c
uart.c
Table 3. HID FW user source file list
Brief descriptions
Main module
ADC peripheral configuration
Automatically generated by SMED_Configurator, a PC software application
Manages the IRQ functions
Manage the requested timing
Analog to Digital Converter (ADC)
•
ADC0 VIN
•
ADC1 VBUS
•
ADC2 PFC_ISENS
•
ADC3 PFC_OK
•
ADC4 VLAMP
•
ADC5 VOUT33
•
ADC6 VTEMP
Measures the main input voltage
Measures the output voltage of the PFC stage
Currently not used
Currently not used
Measures of the voltage across the lamp
Checks the presence of the 3.3 V voltage regulator
Measures the temperature of the board; the sensor is currently not calibrated
DocID025509 Rev 1 9/30
30
Firmware
Analog comparators
CPP0 Currently not used
CPP1 Currently not used
CPP2 Currently not used
CPP3 Sets the bridge peak current value
16-bit system timer
STMR Sets the correct timing of all events for the application:
– PID controller
– drive signals of the bridge
– systems state machine
State machine event driven
SMED0
SMED1
SMED2
SMED3
SMED4
SMED5
Provides for the high frequency signal generation of the bridge; it is also used for ZCD signal synchronization and bridge peak current control
Provides for the high frequency signal generation of the bridge; it is also used for ZCD signal synchronization and bridge peak current control
Currently not used
Currently not used
Generates the signals for the PFC switch
Generates the reference voltage for CPP3 comparator
UM1694
10/30 DocID025509 Rev 1
UM1694 Firmware
Table 4. Used pins
PIN Function NetName Description
PIN1
PIN2
PIN3
PIN4
PIN5
PIN6
PIN7
PIN8
PWM0
DIGIN0
DIGIN1
PWM1
PWM0
PWM1
GPIO1[2] PWM2
DIGIN2
DIGIN3
PWM5 PWM5
Generates the high frequency signal to drive the bridge low side
Digital input used to detect the PFC ZCD
Digital input used to detect the Bridge ZCD
Generates the high frequency signal to drive the bridge high side
Generates the low frequency signal to drive the bridge low side
Currently not used
Currently not used
PWM to voltage generator used as a reference for the analog comparator
CPP[3]
SWIM data interface PIN9
PIN10
SWIM
NRST
PIN11 VDDIO
PIN12 GNDIO
PIN13 VOUT
PIN14 GPIO0/4
PIN15 GPIO0/5
PIN16 PWM4
PIN17 DIGIN4
PIN18 DIGIN5
PIN19 GPIO1[3] PWM3
PIN20 GPIO0/2 GPIO2
PIN21 GPIO0/3 GPIO3
PIN22 UART_TX
PIN23 UART_RX
PIN24 CPP3
PIN25 CPP2
PIN26 CPM3
PIN27 CPP1
Reset
Digital and I/O power supply
Digital and I/O ground
1.8 V regulator capacitor
Red LED
Green LED
Generate the signal to drive the PFC switch.
Currently not used
Currently not used
Generates the low frequency signal to drive the bridge high side
U6 L6390 output enable
U7 L6390 output enable
Currently not used
Currently not used
IPEAK_OUT Analog comparator input used to detect the bridge peak current control
Currently not used
CPP3 analog comparator input external reference voltage
Currently not used
PIN28 CPP0
PIN29 VDDA
PIN30 GNDA
PIN31 ADCIN7
PIN32 ADCIN6 VTEMP
Currently not used
Analog power supply
Analog ground
Currently not used
Measures the output voltage of the board temperature sensor
DocID025509 Rev 1 11/30
30
Firmware UM1694
PIN Function NetName
Table 4. Used pins (continued)
Description
PIN33 ADCIN5 VOUT3.3
Measures the output voltage of 3.3 V regulator used to power the micro
PIN34 ADCIN4
PIN35 ADCIN3
PIN36 ADCIN2
PIN37 ADCIN1
PIN38 ADCIN0
VLAMP Measures the voltage across the lamp
PFC_OK Currently not used
PFC_ISENS Currently not used
VBUS Measures the output voltage of the PFC stage.
VIN Measures the main input voltage
Figure 6. SMED4 PFC state machine
12/30 DocID025509 Rev 1
UM1694
Figure 7. SMED0 bridge low side drive
Firmware
Figure 8. SMED1 bridge high side drive
DocID025509 Rev 1 13/30
30
Firmware
Figure 9. Voltage reference for bridge peak current
UM1694
Table 5. Module information
Constant size Data size Page0 size Code size Bit size
Module
Static Overlayable Static Overlayable Static Overlayable Static Overlayable Static Overlayable
Main
Stlux_confi g
Stlux_it
Stmr
Uart
ADC
1014
1014
510
145
412
604
73
73
76 1
24
Table 6. Executable summary
Total EEPROM storage requirement
Total DATA storage requirement
Total CODE storage requirement
0000H (0)
02C9H (713)
11BCH (4540)
14/30 DocID025509 Rev 1
UM1694
4
Firmware download into the STLUX MCU
Firmware download into the STLUX MCU
4.1 Setup
To download the firmware to the STLUX on the board, you need:
Hardware
• an HID evaluation board
• a RAISONANCE RLink
• a RAISONANCE RLink connection adapter for STM8 and ST7
• a PC with Microsoft Windows™
• a 3.3 V power supply
Software
•
Ride7 application development software
•
RFlasher7 (if you only want to download the compiled FW code)
4.2 Installation
Begin with the connections:
• link the RAISONANCE RLink to the PC with a USB cable (Type A male / Type B male).
• link the 24-pin flat cable of the RAISONANCE RLink to the RLink connection adapter for STM8 and ST7
• link the two SWIM connectors with a 4-wire SWIM cable for the RAISONANCE RLink connection adapter for STM8 and ST7 and for the board that you are going to program
• connect the 3.3 V to supply the STLUX
Figure 10. RLink Figure 11. RLink-ADP-ST7-STM8-V1.2
On the PC, open the RFlasher7 software interface for programming the STLUX microcontroller; it provides an easy-to-use and efficient environment for reading, writing to and verifying device memory and option bytes.
DocID025509 Rev 1 15/30
30
Firmware download into the STLUX MCU
Follow these steps:
1.
configure the RFlasher7 project properties to work with the STLUX385
Figure 12. RFlasher7 configuration - select the processor
UM1694
2. load the Intel HEX file for download (REV01.HEX)
Figure 13. RFlasher7 configuration - open .HEX file
16/30
3. program the STLUX microcontroller
DocID025509 Rev 1
UM1694 Firmware download into the STLUX MCU
Figure 14. RFlasher7 configuration - program the STLUX
4. reset and run
Figure 15. STVP - download FW into the program memory
DocID025509 Rev 1 17/30
30
STEVAL-ILH007V1 evaluation board operation
5 STEVAL-ILH007V1 evaluation board operation
UM1694
Once the STLUX has been programmed with the right firmware, you can commence evaluation board operation.
5.1 Setup
To run the evaluation board, you need:
Hardware
• a STEVAL-ILL007V1 evaluation board
• an AC power supply able to provide 230V
• a 150 W sodium or metal halide lamp
5.2 Operation
• connect the lamp to the J3 terminal
• connect the AC source to the J1 terminal
• switch the AC source on and wait a few minutes for the lamp to reach the nominal power
18/30 DocID025509 Rev 1
UM1694 STEVAL-ILH007V1 schematic
Appendix A STEVAL-ILH007V1 schematic
Figure 16. Auxiliary power supply scheme
R36 47k
C18 10uF 25V
R40 47k
C9 470uF 25V
2
C7 470uF 25V C16 470nF 50V
8 7
R98 22
C15 10uF 25V
3
13
14
15
16
DRAIN1
U4 AL
DRAIN2
DRAIN3
DRAIN4
VDD
SRC2
SRC1
GND
IREF
COMP
R44 2.7
4
5
7
2
1
R42 2.7
R46 24k
R34 33k
R41 47k
R45 8.2k
DocID025509 Rev 1 19/30
30
STEVAL-ILH007V1 schematic
Figure 17. PFC and input section
UM1694
20/30 DocID025509 Rev 1
UM1694 STEVAL-ILH007V1 schematic
Figure 18. Full-bridge scheme
DocID025509 Rev 1 21/30
30
STEVAL-ILH007V1 schematic
Figure 19. Control section scheme
UM1694
C5 100pF
C6 100pF
C50 22pF
C54 22pF
C39 100pF
C38 100pF
22/30 DocID025509 Rev 1
UM1694 Bill of material
1
2
3
3
1
14
Item Quantity Reference
CX1,CX2,C3,
C33
C1
Table 7. Bill of material (BOM)
Value
220 nF,10%
100 µF,20%
Rated
520 V
500 Vdc
Type Package Manufacturer
polypropylene film capacitor through hole lead spacing
15 mm electrolytic capacitor through hole lead spacing
10 mm
C2,C4,C11,C29,
C31,C34,C35,
C36,C40,C41,
C45,C46,C51,
C52
100 nF,10% 50 V
X7R ceramic capacitor
SMD 0603
4 1 C3 220 nF,10% 520 V polypropylene film capacitor through hole lead spacing
15 mm
5 12
C5,C6,C10,C13,
C20,C24,C27,
C28,C38,C39,
C42,C56
100 pF,5% 50 Vdc
C0G ceramic capacitor
SMD 0603
6
7
8
9
10
11
12
13
14
3
4
5
2
1
1
1
1
1
C7,C9,C14
C8,C16,C17,
C19
C12,C47,C48,
C49,C55
C15,C18
C21
C22
C23
C19
C25
470 µF,20%
470 nF,10%
1 µF,10%
10 µF,20%
100 pF10%
22 µF,20%
4.7 µF,10%
470 nF,10%
1 nF,10%
25 V
50 V
25 Vdc
50 V
6.3 kV
25 V
50 V
50 V
50 V electrolytic capacitor through hole lead spacing
3.5 mm
X7R ceramic capacitor
X7R ceramic capacitor
SMD 1206
SMD 0805 electrolytic capacitor high voltage ceramic capacitor electrolytic capacitor through hole lead spacing
2.5 mm through hole
Lead spacing
10 mm through hole lead spacing
2 mm
X7R ceramic capacitor
X7R ceramic capacitor
X7R ceramic capacitor
SMD 1206
SMD 0603
SMD 0603 not mounted
DocID025509 Rev 1 23/30
30
Bill of material UM1694
Item Quantity
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
1
1
1
2
2
1
1
5
2
1
8
1
1
3
5
1
Reference
C26
C30
Table 7. Bill of material (BOM) (continued)
Value
4,7 nF,5%
2.2 nF,10%
Rated
50V
630 Vdc
Type Package Manufacturer
COG ceramic capacitor
SMD 0603 polypropylene film capacitor through hole lead spacing
5 mm
C32
C37
C43,C44
C50,C54
C53
C57
D1,D3,D4,D5,
D6
DN1,DN2
D2
220 pF,10%
680 nF,10%
10 nF,10%
22 pF,10%
1 nF,20%
220 nF,10%
100 0V 3 A
70 V, 70 mA
STTH2L06
630 Vdc
305 Vac
50 Vdc
50 V
250 Vac
520 V
1000 V/ 3 A
70 V,70 mA
2 A/600 V polypropylene film capacitor through hole lead spacing
5 mm polypropylene film capacitor through hole lead spacing
15 mm
X7R ceramic capacitor
C0G ceramic capacitor
SMD 0603
SMD 0603
Y1 capacitor through hole lead spacing
9.5 mm polypropylene film capacitor through hole lead spacing
15 mm standard rectifier diode
1000 V 3 A small signal
Schottky diode ultrafast high voltage rectifier
SMD SMB
SOT23 through hole
DO41
ST
ST
D7,D10,
D12,D14,D15,
D18,D24,D25
D8
TMMBAT46 100 V/150 mA
Small signal
Schottky diode
SM6T220A
SMD minimelf
ST
ST
D9
D11,D19,D23,
D28
D13,D17,D20,
D21,D22
D16
STPS2150
STTH1L06A
STPS1L30A
LIC01
220 V/600 W
150 V/2 A
1 A/600 V
30 V/1 A
255 V
TRANSIL
power
Schottky diode ultrafast high voltage rectifier
power
Schottky diode light ignition circuit
SMD SMB
SMD SMA
SMD SMA
SMD SMA
SMD Dpak
ST
ST
ST
ST
24/30 DocID025509 Rev 1
UM1694 Bill of material
Item Quantity
32
33
34
35
36
37
38
39
40
41
42
43
1
1
1
1
1
1
1
1
1
1
1
2
Reference
D26
D27
F1
J1
J2
J3
J4
J5
J7
J8
L1
L2,L7
Table 7. Bill of material (BOM) (continued)
Value
red LED green LED
3.15 A T
VIN
VIN PLM
VOUT
PLM
CON4
DALI
USB TO
UART
600 µH
2x39 mH
Rated Type Package Manufacturer
2 mA
2 mA
250Vac/3.15A
high efficiency
Red diffused
LED 2 mA
3 mm high efficiency green diffused
LED 2 mA
3 mm through hole
3 mm through hole
3 mm fuse through hole
5 mm not mounted through hole low profile female strip line connector through hole not mounted through hole low profile 24 way (2 x 12) female stripline connector low profile female strip line connector through hole through hole
12 pin male double strip line connector jack stereo connector
SMD
2.8A
1.2 A
PFC Inductor through hole
MAGNETICA
1913.0004
power line choke through hole
DocID025509 Rev 1 25/30
30
Bill of material UM1694
Item Quantity
44
45
46
47
48
49
50
51
52
53
54
55
1
1
1
1
1
2
2
1
3
16
19
4
Reference
L3
L4
L5
L6
Q1
Q3,Q4
Q2,Q5
RV1
R1,R2,R5
Table 7. Bill of material (BOM) (continued)
Value
4.7 µH,20%
2.2 mH,10%
520 µH
4.7 µH,30%
STF13NM60N
STF13NM60N
D
STF26NM60N
S14K275
1 M,1%
Rated
1,9A
1.8A
740 mA
600V
600V
600V/10A
275 Vac
1/4W
Type Package Manufacturer
power inductor
SMD
4X4.5X3.2
through hole bridge
Inductor through hole ferrite filter SMD 3x3x1,2
MAGNETICA
2198.0008
MAGNETICA
1975.0001
Power
MOSFET
Power
MOSFET
TO220FP
TO220FP
ST
ST power
MOSFET
Varistor metal film resistor
TO220FP through hole
SMD 1206
ST
R3,R9,R16,R17,
R19,R26,R33,
R36,R37,R40,
R56,R62,R63,
R64,R68,R74
R4,R8,R10,R14,
R18,R20,R24,
R25,R32,R55,
R61,R65,R66,
R67,R73,R75,
R92,R93, R99
R6,R7,R12,R13,
R53,R54,R59,
R60
47 k,1%
10 k,1%
510 k,1%
1/10W
1/10W
1/4W metal film resistor metal film resistor metal film resistor
SMD 0603
SMD 0603
SMD 1206
56
57
58
59
60
61
3
5
2
2
3
1
R11,R15,R98
R21,R39,R43,
R57,R58
R22,R45
R27,R71
R28,R29,R30
R34
22,1%
220,1%
8.2 k,1%
5.6 k,1%
1,1%
33 k,1%
1/4W
1/4W
1/10W
1/10W
1/4W
1/4W metal film resistor metal film resistor metal film resistor metal film resistor metal film resistor metal film resistor
SMD 1206
SMD 1206
SMD 0603
SMD 0603
SMD MELF
0204
SMD 1206
26/30 DocID025509 Rev 1
UM1694 Bill of material
Item Quantity
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
2
1
2
2
7
1
1
3
2
2
1
2
2
2
1
Reference
Table 7. Bill of material (BOM) (continued)
Value Rated Type
R38,R52
R41
R42,R44
R46,R47
100,1%
33k,1%
2.7,1%
24 k,1%
1/4W
1/10W
1/4W
1/10W metal film resistor metal film resistor metal film resistor metal film resistor
R48,R83,R84,
R85,R90,R95,
R96
0 1/4W metal film resistor
R49
R51
R69,R70,R72
R89,R94
R91,R102
R97
R100,R101
R103,R104
R105,R106
SW1
15 k ,5%
240 k,1%
1,1%
1 k,1%
100 k,1%
470,1%
0
0
0
RESET
5W
1/10W
3W
1/10W
1/10W
1/10W
1/10W
1/10W
1/10W ceramic resistor metal film resistor metal film resistor metal film resistor metal film resistor metal film resistor metal film resistor metal film resistor metal film resistor
Tactile
Switches
Package Manufacturer
SMD 1206
SMD 0603
SMD 1206
SMD 0603
SMD 1206 through hole
SMD 0603 through hole
SMD 0603
SMD 0603
SMD 0603
SMD 0603
SMD 0603
SMD 0604 through hole not mounted not mounted
77
78
1
1
T1
UMICRO1
Magnetica
STLUX385A
Igniter through hole
MAGNETICA
1907.0010
SMD
TSSOP38
ST
79 1 U1 TD220 gate driver with VREG and two-point regulator
SMD SO8 ST
80 1 U2,U3 TS272 dual operation amplifiers
SMD
TSSOP8
ST
DocID025509 Rev 1 27/30
30
Bill of material UM1694
Item Quantity
81
82
83
84
85
86
1
1
1
1
1
1
Reference
U4
U5
U6,U7
U8
Table 7. Bill of material (BOM) (continued)
Value
ALTAIR04-900
LD29080S33
R
L6390
STLM20
20°K/W
3.32 °K/W
Rated Type Package Manufacturer
off-line allprimarysensing switching regulator low drop voltage regulators high-voltage high/low-side driver analog temperature sensor
SMD SO16N
SMD
SOT223
SO16
SOT323-5L heat sink heat sink through hole
13 x 12.7 x
19.5mm
100 x 27 x 50 mm
ST
ST
ST
ST
28/30 DocID025509 Rev 1
UM1694
Date
12-Jun-2015
Table 8. Document revision history
Revision Changes
1 Initial release.
Revision history
DocID025509 Rev 1 29/30
30
UM1694
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2015 STMicroelectronics – All rights reserved
30/30 DocID025509 Rev 1
ดาวน์โหลด
โฆษณา