AN2507
Application note
High-Power Camera Flash LED Driver with I
2
C™
Introduction
This application note explains the design of a FLASH LED driver using the STCF03 device,
which is a Buck-Boost current mode converter with an I
2
C interface. The schematic,
functional description, recommendations for PCB Layout and external components
selection are also discussed in this application note. This device is designed for driving a
single LED with a forward voltage range from 2.7 to 5 V. A detailed functional description
can be found below.
Package and demo board top view
Version B - Version C
Version A
April 2007
Rev 1
1/31
www.st.com
Contents
AN2507
Contents
1
Schematic description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1
Application schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2
Selection of external components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1
2.2
2.3
2.4
2.5
2.6
Input and output capacitor selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Inductor selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
LED selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
R
FL
selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
R
TR
selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
NTC AND R
X
resistor selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3
PCB design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1
3.2
PCB design rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
PCB layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2.1
3.2.2
3.2.3
A four-layer PCB with application area 45.1 mm
2
for BGA package,
version B 10
A two-layer PCB with application area 72.4 mm
2
for QFN package . . . 13
A four-layer PCB with application area 45.1 mm
2
for BGA package,
version C 14
4
Internal registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.1
Accessing the internal registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5
Operation modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1
5.2
5.3
5.4
5.5
SHUTDOWN mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
SHUTDOWN mode with the NTC-feature activated . . . . . . . . . . . . . . . . . 17
READY mode and NTC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
TORCH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6
The STATUS register and the ATN pin . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6.1
The STATUS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7
2/31
Reading and writing to the STCF03 registers through the I
2
C bus . . 22
AN2507
Contents
7.1
7.2
7.3
7.4
Writing to a single register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Writing to multiple registers with incremental addressing . . . . . . . . . . . . 22
Reading from a single register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Reading from multiple registers with incremental addressing . . . . . . . . . 23
8
Examples of register setup for each mode . . . . . . . . . . . . . . . . . . . . . . 24
8.1
8.2
8.3
8.4
8.5
Example 1: 600 mA FLASH with 700 ms duration . . . . . . . . . . . . . . . . . . 24
Example 2: 25 mA TORCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Example 3: an Auxiliary LED running at 10 mA for 500 ms . . . . . . . . . . . 26
Example 4: Red-eye reduction (multiple short flashes) . . . . . . . . . . . . . . 27
Example 5: A FLASH pulse longer than 1.5 s . . . . . . . . . . . . . . . . . . . . . 28
9
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3/31
List of tables
AN2507
List of tables
Table 1.
Table 2.
Table 3.
Table 4.
Table 5.
Table 6.
Table 7.
Table 8.
Table 9.
Table 10.
Table 11.
Table 12.
Table 13.
Table 14.
Table 15.
Table 16.
Table 17.
Table 18.
Table 19.
Table 20.
Table 21.
Table 22.
Table 23.
Table 24.
Table 25.
Table 26.
Table 27.
Table 28.
Table 29.
Table 30.
Table 31.
Recommended components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Accessibility of internal registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
COMMAND register data to enter SHUTDOWN mode (version B) . . . . . . . . . . . . . . . . . . 17
COMMAND register data to enter SHUTDOWN mode (version A and C) . . . . . . . . . . . . . 17
COMMAND register data to enter SHUTDOWN mode with NTC activated (version A and C)
18
COMMAND register data to enter READY mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
COMMAND register data to enter READY mode with NTC ON . . . . . . . . . . . . . . . . . . . . . 18
COMMAND register data to enter TORCH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
COMMAND register data to enter FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
STATUS register bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Effect of the STATUS register bits on the operation of the device . . . . . . . . . . . . . . . . . . . 21
TORCH mode and FLASH mode dimming registers settings. . . . . . . . . . . . . . . . . . . . . . . 24
COMMAND register data to enter FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
DIMMING register data for the FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
I
2
C data packet for activating the FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
COMMAND register data for the TORCH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
DIMMING register data for the TORCH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
I
2
C data packet to activate TORCH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
I
2
C data packet for terminating the TORCH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
COMMAND register data for the AUX_LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
COMMAND register data for the AUX_LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
I
2
C data packet for activating the READY mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
I
2
C data packet for activating the AUX_LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
COMMAND register data for FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
DIMMING register data for the FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
I
2
C data packet for activating the FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
I
2
C data packet for activating the FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1
st
I
2
C data packet to restart the FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2
nd
I
2
C data packet for restart of the FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3
rd
I
2
C data packet to restart the FLASH mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4/31
AN2507
List of figures
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
Figure 19.
Figure 20.
Figure 21.
Figure 22.
A typical application schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
NTC connection for versions with internal voltage reference . . . . . . . . . . . . . . . . . . . . . . . . 9
Top layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Middle layer 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Middle layer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Bottom layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Top overlay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Top layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Bottom layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Top overlay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Top layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Middle layer 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Middle layer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Bottom layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Top overlay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Splitting the FLASH pulse into several shorter pulses . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Writing to a single register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Writing to multiple registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Reading from a single register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Reading from multiple registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Multiple flashes handled by the TRIG pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
I
2
C bus packets timing for a FLASH lasting longer than FTIM max . . . . . . . . . . . . . . . . . . 30
5/31