-400V
25 kV
-12A
max
-2.5A (max)
Note: The data presented in this figure depends on the lamp part number and working conditions.
• Turn-on: Before ignition, the lamp’s equivalent impedance is • Warm-up: In this stage, the DC/DC converter provides a
considered as infinite, so the ballast is treated as an open circuit. In certain amount of current, depending on the lamp condition to
this stage, the ballast produces adequate voltage. In this stage, the sustain the arc. The converter works as current mode, and
voltage generated by the ballast is fed to the igniter circuitry to ignite generates a square wave AC current. As the frequency is small
the lamp. (20 Hz) when compared to steady-state, it’s also called DC
status.
• Ignition: Automotive HID lamps are high pressure gas lamps. During • Run-up: This is the key stage of the start-up process. In order
this stage, the igniter circuitry generates a high voltage pulse across to meet the SAE J2009 and ECE Reg. No 99 specification for
the lamp and the lamp transfers from isolation status to current the light output versus time, the start transient power of the
conductive status. As the result, an arc is established in the tube and lamp is much higher than the steady state. Then, the ballast
visible light is generated. The required ignition voltage for a hot lamp controls the lamp power to ramp down to the normal level.
is around 25 kV. For a cold lamp, the voltage is around 10 kV. • Steady State: The lamp voltage is ~ 85V, and the lamp current
• Takeover: After successful ignition, the lamp requires a large is ~0.4A, depending on lamp conditions. But the lamp power is
current (takeover current) to sustain the arc. The output recommended to be 35W, ±1W. This helps to ensure better
capacitance and auxiliary current circuit can provide this high output light performance and longer lamp life.
magnitude current before the DC/DC converter delivers enough
power to the lamp.
Igniter
Lamp
Battery
DC/DC DC/AC
Converter Vlamp Inverter
Ilamp
Vout
Vin
IGNITION CIRCUIT
The automotive HID ballast adopts an ignition circuit,
which is driven by a dual-frequency inverter, as shown
in Figure 7(B). Compared to a conventional ignition
circuit with a voltage doubler, which is shown in
Figure 7(A), it has two main advantages: the first is that
the large ignition capacitor, C1, can be replaced by a
much smaller one (C3 ≤ C1/10), and the second is it
can generate a higher power pulse. This improves the
ignition success rate especially for a hot lamp strike.
C1 C2 C3
C4
Ballast Circuitry
Vin
Full-Bridge Ilamp
PWM Signal
Ierr Iref
PWM PI
CMP1D CMP2D
RB14 Timer2
DAC Output
e
p
er
at
-u
n
p
n
ov
St
-o
-u
tio
m
ke
rn
dy
un
ar
ni
Tu
Ta
ea
W
Ig
St
Vlamp
r
er
l we
tro t t
l ow
on en n
tro o
on g t
C urr sta
C lta tan
on t P
tro P
on o
l
l
on o
tro
tro e
C on
l
tro
C N
on g
C tan
Vo ns
C N
C asin
l
C
o
s
C
on
re
C
ec
D
Note: This figure shows the “as is” magnitude profile of the lamp. Its direction is not illustrated here.
FIGURE 10: VOLTAGE, CURRENT AND POWER CONTROL DIAGRAMS (A, B, AND C)
Co Co
K1
(A) (B)
K2
Verr Ierr Ilamp
Vlamp
ko Gi ko Gi
Co
K1
(C)
K2
Perr MULT
Plamp
ko Gi
Pref
Power Control Mode
e
at
St
p
er
-u
n
p
on
ov
dy
-o
-u
m
ke
ti
rn
ea
un
ar
ni
Iref
Tu
Ta
St
Ig
R
1.8A
0.8A
0.41A
Vc d Power Stage
Iref Ierr Compensator PWM Lamp
+ Gp(s)
(GI) Gm(s)
I
H(s)
Where:
D′ Lp Vo = the input voltage
------- – ------------------ s
v(t) V o D D′ ⋅ R D = the duty cycle
G p ( s ) = --------------- = ------ ⋅ ----------------------------------------------------------
-
R ⋅ dt Vg (t)= 0 R 2 D' = (1-D)
2 2 n Lp 2
n L p Cs + ----------- s + D′ R = the lamp equivalent resistance
R Lp = the primary inductance
Lp Where:
D′
------- – ------------------ s Gm(s) = PWM module transfer function
Vo D D′ ⋅ R
- ⋅ 1.36
G ( s ) = G m ( s ) ⋅ G p ( s ) ⋅ H ( s ) = ------ ⋅ ---------------------------------------------------------- ---------- H(s) = Feedback circuitry transfer function
R 2 8
2 2 n Lp 2
n L p Cs + ----------- s + D′
R
Where fz = 20 Hz, which is the location of zero for the current PI controller and,
1
T co = ---------- = 0.00796
2πf z
′2 2
nL p CD R f sw 1 + T co ⋅ s
G I ( s ) = ------------------------------------- ⋅ ---------- ⋅ ⎛--------------------------- ⎞
8
Vo Lp 1.36 ⎝ T co ⋅ s ⎠
1 + 0.00796 ⋅ s
⇒G I ( s ) = 0.1162 ⋅ ⎛⎝-------------------------------------- ⎞⎠
0.00796 ⋅ s
⇒G I ( s ) = 0.1162 + 14.59
-------------
s
Based on Equation 7,
kpi = 0.1162 and kIi = 14.59/Sampling Frequency = 0.00065.
Initialization
No
Turn ON Converter
and Control the Timer1 Start to Count
Output Voltage
at 360V
No
No Yes
Ignition Exceed
successful? 10 seconds?
Yes
DC
Operation
Yes
Constant
Vlamp > 65V? Power
Control
No
No
Timer1
Counter 1 kHz
Timer2
Counter
2 kHz 40 Hz 400 Hz
Trigger
ADC Pair 1
Trigger
ADC Pair 0 22.5 kHz
Initialize
Initialize Compensators
Peripherals
Reset
0 Turn ON
air
D Cp PWM1 Module
e rA
gg
Tri
Wait for
ADC0
Interrupt
Turn ON
Timer2 Wait for
Timer2
Interrupt
Trigger ADC pair 1
Check
VIN Input
Voltage
Timer2
Interrupt
Toggle
Inverter
Drive
Signal
Check End
of Warm-up
Stage
Check
Ignition
Failure
ADC0
Ignition Flag = 1
Interrupt
Ignition Flag = 0 Startup_Phase_Operation:
Open_Loop:
2
Bus_Warmup_Success_Flag = 2
!=
:
rol
ont A
Decreased_power_control:
lag
.3
F
Ope mp < 0
ss_
Confirm_Ignition:
n_C
ce
:
Ila
up
uc
Filter Lamp
p_
Vlamp
_S
Voltage
e
up
St
Update rm
Feedback
Inverter Signal
Wa
:
Frequency
on
Voltage
s_
ti
Bu
Loop
ra
Compensator Vlamp < 65V
pe
_O
on 65V
ol
nt mp >
tr
la
Calculate
_c
V
Iref
ta
Warm-up
ns
PWM
Stage
Co
Current
Decreased_Voltage_control:
Compensator
Calculate
Iref
PWM
Current
Loop
Compensator
Current
Loop
Compensator
PWM
Auxiliary
Vdc Current Circuit
T1
EMI Aux. Power D3 Lamp
Filter C3 C5
R4 Q3 Q5 Arc gap
R1 D7 T2
C2
R2 D4 D6
12V R4
Q1 D1 V D2 C4
in R5
R3 Q4 Q6 D5
R6
Q2 Ignition
Reverse R5 Circuit
Vlamp Ilamp Vin
Protection Inverter
PWM
Driver Q3
Signal Signal
Driver
Q4
dsPIC® DSC
Q5
PWM
Driver Q6
AN1372
DS01372A-page 19
Note: In this design, the input inrush current at the start of ignition is not controlled. To reduce this inrush current, it is recommended to use the internal
comparator of the dsPIC device. The comparator should be set as the trigger source of the PWM Current-Limit mode.
AN1372
CALCULATION OF THE TRANSFORMER EQUATION 10: CURRENT PARAMETERS
TURNS RATIO n OF THE PRIMARY
INDUCTOR
EQUATION 8: MAXIMUM DRAIN-TO-
According to the power conservation, the average
SOURCE VOLTAGE Vds_max input current is:
OF MOSFET Po
I in_ave = ----------------
-
V in ⋅ η
V ig
V ds_max = V in_max + ------- + V′ Where:
n
Rated output power: Po = 35W
Where: Rated input voltage: Vin =13.5V
Output voltage for ignition circuit: Vig = 360V System efficiency: η= 85%
Max input voltage: Vin_max = 16V The average current during the on period is:
Overshoot voltage: V’ ≈ 15V
I in_ave
Max drain-to-source voltage of MOSFET: VDSS = 100V I ave_on = ---------------
D
Max drain-to-source voltage: Vds_max = 90% * VDSS = 90V
Where:
Duty cycle: D = 0.51
Based on Equation 8, the transformer turns ratio is
n = 6. The peak current of the primary inductor is:
n ⋅ V in ⋅ D D
I L_rms = I L_pk ⋅ ----
V o = ----------------------------- 3
1–D
Where:
Rated input voltage: Vin = 13.5V
Based on Equation 10, the average input current
Iin_ave = 3.05A, the peak current of the primary inductor
Rated output voltage: Vo = 85V
IL_pk = 11.48A, and the RMS current of the primary
Duty cycle: D inductor IL_rms = 4.73A.
Calculated turns ratio: n = 6
EQUATION 11: VALUE OF THE PRIMARY
Based on Equation 9, the duty cycle at rated operation
INDUCTOR
D = 0.51.
The flyback converter works at CCM mode at rated V in ⋅ t on
L p = ---------------------
-
operation. ΔI
Where:
Rated input voltage: Vin = 13.5V
Turn on time: ton = D * (1/fs) = 2.83 µs
Inductor ripple current: ΔI = 11A
Based on Equation 12, the inductor ripple current at the The primary inductor: Lp = 3.47 µH
worst condition ΔIw = 5.14A. The peak current of the primary inductor at worst
condition: IL_pk_w = 30.03A
Based on Equation 10, the peak current of the primary
Saturation magnetic induction: ΔB = 0.3T
inductor at the worst condition IL_pk_w = 30.03, and the
RMS current of the primary inductor at the worst Ae = 130 mm2
condition IL_rms_w = 10.36A.
The planar core is selected using the AP calculation The secondary turns is:
method, as shown in Equation 13.
Ns = n ⋅ Np
EQUATION 13: THE VALUE OF AP Where:
The primary side AP is: Turns ratio: n = 6
2 8
6.33 ⋅ L p ⋅ d p ⋅ 10 4
AP p = ------------------------------------------------------ ( cm ) Based on Equation 15, the primary turns Np = 2.65, the
ΔB selected Np = 2, and the selected second turns Ns = 12.
Where:
CALCULATION OF THE TRANSFORMER GAP
The primary inductor: Lp = 3.47 µH
The primary wire diameter: d2p = 1.816 mm EQUATION 16: TRANSFORMER GAP
Saturation magnetic induction: ΔB = 0.3T
The second side AP is: 2
μ0 ⋅ N p ⋅ A e
L gap = --------------------------------
AP s ≈ ( 2 ∼3 ) ⋅ AP p Lp
EQUATION 19: CALCULATION OF THE The charge and discharge period is:
FLYBACK DIODE MAXIMUM 1
T ig = -----
PARAMETERS f ig
Where:
The maximum forward current is:
I L_pk_w Inverter frequency for ignition: fig = 1 kHz
I F_max = ----------------- = 5A In addition, the charge time and C5 should meet:
n
The maximum reverse voltage is: T ig C4
T charge < ------- and C 5 ≤------
V R_max = V ig + V in_max ⋅ n = 504V 2 10
Based on Equation 19, RHR660 is selected for D3, Based on Equation 21, the selected pump capacitance
VR_max = 600V, IF(AV)_max =6 A, Qrr = 45 nC. C5 = 33nF/630V and the selected charge resistance
R5 = 1k/3W.
• MOSFET Q3-Q6 for full-bridge inverter
CALCULATION OF TRANSFORMER
EQUATION 20: CALCULATION OF THE
FULL-BRIDGE MOSFET EQUATION 22: CALCULATION OF TURN
MAXIMUM PARAMETERS RATIO N
The maximum drain current is:
V ig_pulse
I D_max = I o_max = 1.8A n > --------------------
V break
The maximum drain to source voltage is:
Where:
V ig Ignition pulse voltage value: Vig_pulse > 25 kV
V ds_max = ------- = 180V
2 Breakover voltage of the gas discharge tube: Vbreak = 600
Where:
The leak inductor of the primary inductor: Lp_leak = 0.1 µH
sin ( Wd ⋅ t ) = 0.707
The peak current of the primary inductor: IL_pk = 11.48A
Operation frequency: fs = 180 kHz
Where:
1 -
Wd = ----------------------- T1
L p ⋅ C4
0.76π – 0.24π
T w = t 2 – t 1 = --------------------------------- > 0.5μs
Wd
15V Auxiliary Power Circuit
Based on Equation 23, the primary inductor Lp > 0.28
µH, the selected Lp = 0.28 µH, and the selected
Ls = 1.78 mH.
VCC
VCC HO1
HO1
Rt VB1
Vbat Digital
1
VDD VDD Controller VS1
Digital Signal VS1
Input OUT
Controller LO1
Signal NC OUT Ct LO1
GND GND HO2
HO2
MCP1407
VB2
Drive Signal
SD VS2
Flyback MOSFET Driver Circuitry VS2
GND LO2
LO2
IR2453
Lamp Voltage - R6
Vo
Sample Signal Lamp Current -
C1 Vo
+ Sample Signal R5
Vi R1 R2 +
C2 Vi R3 R4
C3
Vo 1
------ = -----------------------------------------------------------------------------------------------------
Vi 2
C1 C2 R1 R2 ⋅ s + ( C2 R1 + C2 R2 ) ⋅ s + 1
Vo R5 + R6 1
------ = ------------------ ⋅ --------------------------------
Vi R5 C3 R3 ⋅ s + 1
4
3
1 5
6 7 8
Table 9 summarizes the resources required by the HID TABLE 9: dsPIC RESOURCE USAGE
Ballast design in terms of memory size, peripherals,
Resource Value
MIPs, etc.
Program Memory 2048 bytes
Data Memory 1024 bytes
PWM 1 channel
ADC 3 channels
Comparator 2 channels
MIPs 3.5
I/O 1 channel
FIGURE 35: CURRENT AND VOLTAGE FOR COLD LAMP; ZOOM OF THE DC WARM-UP
CURRENT
Voltage scale: 100V/div Current scale: 1A/div Time scale: 2s/div, 10ms/div
Voltage scale: 100V/div Current scale: 1A/div Time scale: 2s/div, 10ms/div
FIGURE 37: CURRENT AND VOLTAGE FOR COLD LAMP; ZOOM OF THE STEADY STATE
Voltage scale: 100V/div Current scale: 1A/div Time scale: 2s/div, 10ms/div
D1
RHR660 400V
C2 FCD7N60
C1 2.2uF/400V Q1 FCD7N60
HO2 C6 Q2 C5
HO1
0.1n/1000V
R47 20k 0.1n/1000V OUT1 OUT2 0.1n/1000V
R2 R48 20k
R5 499R/2W L2 L3
VS2
499R/1W VS1
BLM31PG121SH1 C53 BLM31PG121SH1
C10 C11 C52
FCD7N60 C13 C12
D4 Q4 0.1n/1000V 0.1n/1000V 1.0n/1000V FCD7N60
100n/500V 100n/500V C14 1.0n/1000V Q3 C15
LO2 LO1
FR1M 0.1n/1000V 0.1n/1000V
R50 20k
R49 20k
Ilamp+
R10
R330/1W
Fault
R12
R330/1W
L1 13.5V
Battery+
1u
R1 C4 C3
10K 100u/25V 10n/100V
C8 D3 1 T1 3
104/25V R4 D5 *
Q5 15V VCC 680R/0.25W SS14
Battery- 2
FDD8896 *4
C47 C7 2:12
D6
15V
47u/25V 104/25V Q6
FDB3652
R3
10K
R9
AN1372
13.5V U1
1 8 3R3/0.25W
DS01372A-page 35
Vdd Vdd
C16 C17 2 7
Input Out
3 6
100u/25V 104/25V R11 4 Nc Out
5
10k Gnd Gnd
PWM
MCP1407
FIGURE B-2: dsPIC® DSC DEVICE SCHEMATIC
DS01372A-page 36
AN1372
U2
FB Control
2 21
Vlamp AN0/CMP1A/RA0 TMS/RB11
3 22 PWM
Ilamp AN1/CMP1B/RA1 TCK/RB12
4 23
Vin AN2/CMP1C/CMP2A/RA2 PWM2H/RB13 R15
5 24
Voltage limit AN3/CMP1D/CMP2B/RB0 PWM2L/RB14
6 25
AN4/CMP2C/RB9 PWM1H/RA4 0R
7 26
Current Protection AN5/CMP2D/RB10 PWM1L/RA3
10 27
OSCO/CLKO/RB2 AVSS
9 28 3.3V
OSCI/CLKIN/RB1 AVDD L4
11
PGD2/EMUD2/DACOUT/INT0/RB3 R52 1k
12 C26 C27
PGC2/EMUC2/EXTREF/RB4
13 104/25V 104/25V
VDD 3.3V DS2
14
PGD3/EMUD3/RB8
15
PGC3/EMUC3/RB15 Red
1 16
MCLP MCLR TDO/RB5
C45 C28 17
C44 PGD1/EMUD1/TDI/SCL/RB6 EMUD
18
PGC1/EMUC1/SDA/RB7 EMUC
104/25V 102/25V 8
105/25V VSS
19 20
VSS VCAP
C32
© 2011 Microchip Technology Inc.
C33
dsPIC33FJ06GS202 104/25V 100uF/6.3V
AN1372
FIGURE B-3: POWER SUPPLY SCHEMATIC
MCP1703 3.3V
place close to VDD (pin13 of dsPIC)
2 3
GND Vout
C19 C18 C46
R51
Vin
1k
104/25V 100uF/6.3V104/25V
13.5V L5 U3
Rsc1
1
C21
C29 DS1
0R1/1W 22uH/0.5A
C31 105/25v
104/25V 100u/25V Green
VCC
IC1
1
HO1 HO1
14
VB1 C48
4 C22 C49
RT
12 2.2u/50V 2.2u/50V 2.2u/50V
VS1 VS1
6
LO1 LO1
R17 R16 22R/0.25W
3 9 HO2
CT HO2
Q7 3.3k R19 22R/0.25W
10
R21 C24 VB2
C25 C50 C51
R20 20k
FB Control 102/25V 2.2u/50V 2.2u/50V 2.2u/50V
1k 8
VS2 VS2
COM
5 7
SD LO2 LO2
NPN8050 R23 22R/0.25W
IRS2435D
2
Debugger
MCLP
R27
3.3V 4.7K
ICD
C34 VPP
105/25V VDD
VSS
EMUD DAT
EMUC CLO
NC
Header 6H
Input Voltage
13.5V
R29 R32
Vin
20k 1k
Overcurrent
R30
Fault Current Protection
2k
C36 104/25V
Lamp Voltage
400V
8
C41 U5:1
220p/25V 2
R28 470k/0.25W 1
R44 A Vlamp
3
MCP6002
100k 100k
R34 5.1K/0.25W R45 C40
4
220p/25V
Voltage limit
C39 103/25V
R37 3K/0.25W
Lamp Current
R46
10k
R39
8
10k
6 U5:2
7
R33 R41 B Ilamp
5
Ilamp+ C43 104/25V
2k 10k
MCP6002 3.3V
4
C38 104/25V
C42 105/25V
C1
P1 R1
OUT1 1K/3W
2
1 P2
OUT2 D1 D3
1
2
D2 SG
R2 Connect to Lamp
6.8M
600V T1
R3
6.8M
C2
330n/630V
R4
6.8M Trans
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
ISBN: 978-1-61341-017-2
02/18/11