LP3943
RGB/White/Blue 16-LED Fun Light Driver
General Description
LP3943 is an integrated device capable of independently
driving 16 LEDs. This device also contains an internal pre-
cision oscillator that provides all the necessary timing re-
quired for driving each LED. Two prescaler registers along
with two PWM registers provide a versatile duty cycle con-
trol. The LP3943 contains the ability to dim LEDs in SMBUS/
I
2
C applications where it is required to cut down on bus
traffic.
Traditionally, to dim LEDs using a serial shift register such as
74LS594/5 would require a large amount of traffic to be on
the serial bus. LP3943 instead requires only the setup of the
frequency and duty cycle for each output pin. From then on,
only a single command from the host is required to turn each
individual open drain output ON, OFF, or to cycle a pro-
grammed frequency and duty cycle. Maximum output sink
current is 25 mA per pin and 200 mA per package. Any ports
not used for controlling the LEDs can be used for general
purpose input/output expansion.
Features
nInternal power-on reset
nActive low reset
nInternal precision oscillator
nVariable dim rates (from 6.25 ms to 1.6s;
160 Hz–0.625 Hz)
Key Specifications
n16 LED driver (multiple programmable states on, off,
input, and dimming at a specified rate)
n16 Open drain outputs capable of driving up to 25 mA
per LED
Applications
nCustomized flashing LED lights for cellular phones
nPortable Applications
nDigital Cameras
nIndicator Lamps
nGeneral purpose I/O expander
nToys
Typical Application Circuit
20079601
November 2003
LP3943 RGB/White/Blue 16-LED Fun Light Driver
© 2003 National Semiconductor Corporation DS200796 www.national.com
LP3943 Pin Out
20079602
(Top View)
See NS Package Number SQA24C
LP3943 Pin Description
Pin # Name Description
1 LED0 Output of LED0 Driver
2 LED1 Output of LED1 Driver
3 LED2 Output of LED2 Driver
4 LED3 Output of LED3 Driver
5 LED4 Output of LED4 Driver
6 LED5 Output of LED5 Driver
7 LED6 Output of LED6 Driver
8 LED7 Output of LED7 Driver
9 GND Ground
10 LED8 Output of LED8 Driver
11 LED9 Output of LED9 Driver
12 LED10 Output of LED10 Driver
13 LED11 Output of LED11 Driver
14 LED12 Output of LED12 Driver
15 LED13 Output of LED13 Driver
16 LED14 Output of LED14 Driver
17 LED15 Output of LED15 Driver
18 RST Active Low Reset Input
19 SCL Clock Line for I
2
C Interface
20 SDA Serial Data Line for I
2
C Interface
21 V
DD
Power Supply
22 A0 Address Input 0
23 A1 Address Input 1
24 A2 Address Input 2
Ordering Information
LP3943, Supplied as 1000 Units, Tape and
Reel
LP3943, Supplied as 4500 Units, Tape
and Reel
Package Marking
LP3943ISQ LP3943ISQX LP3943
LP3943
www.national.com 2
Architectural Block Diagram
20079603
For Explanation of LP3943 Operation, Please Refer to “Theory of Operation” in Application Notes.
LP3943
www.national.com3
Absolute Maximum Ratings (Notes 2,
1)
If Military/Aerospace specified devices are required,
please contact the National Semiconductor Sales Office/
Distributors for availability and specifications.
V
DD
−0.5V to 6V
A0, A1, A2, SCL, SDA, RST
(Collectively called digital pins)
6V
Voltage on LED pins V
SS
−0.5V to 6V
Junction Temperature 150˚C
Storage Temperature −65˚C to 150˚C
Power Dissipation (Note 3) 400 mW
ESD (Note 4)
Human Body Model 2 kV
Machine Model 200V
Charge Device Model 1 kV
Operating Ratings (Notes 1, 2)
V
DD
2.3V to 5.5V
Junction Temperature −40˚C to +125˚C
Operating Ambient Temperature −40˚C to +85˚C
Thermal Resistance (θ
JA
)
LLP24 (Note 3) 37˚C/W
Electrical Characteristics
Unless otherwise noted, V
DD
= 5.5V. Typical values and limits appearing in normal type apply for T
J
= 25˚C. Limits appearing
in boldface type apply over the entire junction temperature range for operation, T
J
= −40˚C to +125˚C. (Note 5)
Symbol Parameter Conditions Typical Limit Units
Min Max
POWER SUPPLY
V
DD
Supply Voltage 5 2.3 5.5 V
I
Q
Supply Current No Load 350 550 µA
Standby 2.0 5
I
Q
Additional Standby Current V
DD
= 5.5V, every LED pin
at 4.3V 2mA
V
POR
Power-On Reset Voltage 1.8 1.96 V
t
w
Reset Pulse Width 10 ns
LED
V
IL
LOW Level Input Voltage −0.5 0.8 V
V
IH
HIGH Level Input Voltage 2.0 5.5 V
I
OL
Low Level Output Current
(Note 6)
V
OL
= 0.4V, V
DD
= 2.3V 9
mA
V
OL
= 0.4V, V
DD
= 3.0V 12
V
OL
= 0.4V, V
DD
= 5.0V 15
V
OL
= 0.7V, V
DD
= 2.3V 15
V
OL
= 0.7V, V
DD
= 3.0V 20
V
OL
= 0.7V, V
DD
= 5.0V 25
I
LEAK
Input Leakage Current V
DD
= 3.6, V
IN
=0VorV
DD
−1 1 µA
C
I/O
Input/Output Capacitance (Note 7) 2.6 5pF
ALL DIGITAL PINS (EXCEPT SCL AND SDA PINS)
V
IL
LOW Level Input Voltage −0.5 0.8 V
V
IH
HIGH Level Input Voltage 2.0 5.5 V
I
LEAK
Input Leakage Current −1 1 µA
C
IN
Input Capacitance V
IN
= 0V (Note 7) 2.3 5pF
I
2
C INTERFACE (SCL AND SDA PINS)
V
IL
LOW Level Input Voltage -0.5 0.3V
DD
V
V
IH
HIGH Level Input Voltage 0.7V
DD
5.5 V
V
OL
LOW Level Output Voltage 0 0.2V
DD
V
I
OL
LOW Level Output Current V
OL
= 0.4V 6.5 3mA
F
CLK
Clock Frequency (Note 7) 400 kHz
t
HOLD
Hold Time Repeated START
Condition
(Note 7) 0.6 µs
t
CLK-LP
CLK Low Period (Note 7) 1.3 µs
LP3943
www.national.com 4
Electrical Characteristics (Continued)
Unless otherwise noted, V
DD
= 5.5V. Typical values and limits appearing in normal type apply for T
J
= 25˚C. Limits appearing
in boldface type apply over the entire junction temperature range for operation, T
J
= −40˚C to +125˚C. (Note 5)
Symbol Parameter Conditions Typical Limit Units
Min Max
I
2
C INTERFACE (SCL AND SDA PINS)
t
CLK-HP
CLK High Period (Note 7) 0.6 µs
t
SU
Set-Up Time Repeated
START Condition
(Note 7) 0.6 µs
t
DATA-HOLD
Data Hold Time (Note 7) 300 ns
t
DATA-SU
Data Set-Up Time (Note 7) 100 ns
t
SU
Set-Up Time for STOP
Condition
(Note 7) 0.6 µs
t
TRANS
Maximum Pulse Width of
Spikes that Must Be
Suppressed by the Input
Filter of Both DATA & CLK
Signals
(Note 7)
50 ns
Note 1: Absolute Maximum Ratings are limits beyond which damage to the device may occur. Operating Ratings are conditions under which operation of the device
is guaranteed. Operating Ratings do not imply guaranteed performance limits. For guaranteed performance limits and associated test conditions, see the Electrical
Characteristics tables.
Note 2: All voltages are with respect to the potential at the GND pin.
Note 3: The part cannot dissipate more than 400mW.
Note 4: The human-body model is 100 pF discharged through 1.5 k. The machine model is 0in series with 100 pF.
Note 5: Limits are guaranteed. All electrical characteristics having room-temperature limits are tested during production with TJ= 25˚C. All hot and cold limits are
guaranteed by correlating the electrical characteristics to process and temperature variations and applying statistical process control.
Note 6: Each LED pin should not exceed 25 mA and each octal (LED0–LED7; LED8–LED15) should not exceed 100 mA. The package should not exceed a total
of 200 mA.
Note 7: Guaranteed by design.
Typical Performance Characteristics
Frequency vs. Temp
(T
A
= −40˚C to +85˚C),
V
DD
= 2.3V to 3.0V
20079617
LP3943
www.national.com5
Application Notes
THEORY OF OPERATION
The LP3943 takes incoming data from the baseband con-
troller and feeds them into several registers that control the
frequency and the duty cycle of the LEDs. Two prescaler
registers and two PWM registers provide two individual rates
to dim or blink the LEDs (for more information on these
registers, refer to Table 1. LP3943 REGISTER TABLE).
Each LED can be programmed in one of four states on,
off, DIM0 rate or DIM1 rate. Two read-only registers provide
status on all 16 LEDs. The LP3943 can be used to drive
RGB LEDs and/or single-color LEDs to create a colorful,
entertaining, and informative setting. Alternatively, it can also
drive RGB LED as a flashlight. This is particularly suitable for
accessory functions in cellular phones and toys. Any LED
pins not used to drive LED can be used for General Purpose
Parallel Input/Output (GPIO) expansion.
The LP3943 is equipped with Power-On Reset that holds the
chip in a reset state until V
DD
reaches V
POR
during power up.
Once V
POR
is achieved, the LP3943 comes out of reset and
initializes itself to the default state.
To bring the LP3943 into reset, hold the RST pin LOW for a
period of TW. This will put the chip into its default state. The
LP3943 can only be programmed after RST signal is HIGH
again.
I
2
C DATA VALIDITY
The data on SDA line must be stable during the HIGH period
of the clock signal (SCL). In other words, state of the data
line can only be changed when CLK is LOW.
I
2
C START AND STOP CONDITIONS
START and STOP bits classify the beginning and the end of
the I
2
C session. START condition is defined as SDA signal
transitioning from HIGH to LOW while SCL line is HIGH.
STOP condition is defined as the SDA transitioning from
LOW to HIGH while SCL is HIGH. The I
2
C master always
generates START and STOP bits. The I
2
C bus is considered
to be busy after START condition and free after STOP con-
dition. During data transmission, I
2
C master can generate
repeated START conditions. First START and repeated
START conditions are equivalent, function-wise.
TRANSFERRING DATA
Every byte put on the SDA line must be eight bits long with
the most significant bit (MSB) being transferred first. The
number of bytes that can be transmitted per transfer is
unrestricted. Each byte of data has to be followed by an
acknowledge bit. The acknowledge related clock pulse is
generated by the master. The transmitter releases the SDA
line (HIGH) during the acknowledge clock pulse. The re-
ceiver must pull down the SDA line during the 9th clock
pulse, signifying an acknowledge. A receiver which has been
addressed must generate an acknowledge after each byte
has been received.
After the START condition, a chip address is sent by the I
2
C
master. This address is seven bits long followed by an eighth
bit which is a data direction bit (R/W). The LP3943 hardwires
bits 7 to 4 and leaves bits 3 to 1 selectable, as shown in
Figure 3. For the eighth bit, a “0” indicates a WRITE and a
“1” indicates a READ. The LP3943 supports only a WRITE
during chip addressing. The second byte selects the register
to which the data will be written. The third byte contains data
to write to the selected register.
20079606
FIGURE 1. I
2
C Data Validity
20079607
FIGURE 2. I
2
C START and STOP Conditions
LP3943
www.national.com 6
Application Notes (Continued)
However, if a READ function is to be accomplished, a
WRITE function must precede the READ function, as shown
in Figure 5.
20079608
FIGURE 3. Chip Address Byte
20079609
w = write (SDA = “0”)
r = read (SDA = “1”)
ack = acknowledge (SDA pulled LOW by either master or slave)
rs = repeated start
xx=60to67
FIGURE 4. LP3943 Register Write
20079610
w = write (SDA = “0”)
r = read (SDA = “1”)
ack = acknowledge (SDA pulled LOW by either master or slave)
rs = repeated start
xx=60to67
FIGURE 5. LP3943 Register Read
LP3943
www.national.com7
Application Notes (Continued)
AUTO INCREMENT
Auto increment is a special feature supported by the LP3943
to eliminate repeated chip and register addressing when
data are to be written to or read from registers in sequential
order. The auto increment bit is inside the register address
byte, as shown in Figure 6. Auto increment is enabled when
this bit is programmed to “1” and disabled when it is pro-
grammed to “0”.
Bits 5, 6 and 7 in the register address byte should always be
zero.
In the READ mode, when auto increment is enabled, I
2
C
master could receive any number of bytes from LP3943
without selecting chip address and register address again.
Every time the I
2
C master reads a register, the LP3943 will
increment the register address and the next data register will
be read. When I
2
C master reaches the last register (09H),
the register address will roll over to 00H.
In the WRITE mode, when auto increment is enabled, the
LP3943 will increment the register address every time I
2
C
master writes to register. When the last register (09H regis-
ter) is reached, the register address will roll over to 02H, not
00H, because the first two registers in LP3943 are read-only
registers. It is possible to write to the first two registers
independently, and the LP3943 will acknowledge, but the
data will be ignored.
If auto increment is disabled, and the I
2
C master does not
change register address, it will continue to write data into the
same register.
20079611
FIGURE 6. Register Address Byte
20079612
FIGURE 7. Programming with Auto Increment Disabled (in WRITE Mode)
20079613
FIGURE 8. Programming with Auto Increment Enabled (in WRITE Mode)
LP3943
www.national.com 8
Application Notes (Continued)
TABLE 1. LP3943 REGISTER TABLE
Address (Hex) Register Name Read/Write Register Function
0x00 Input 1 Read Only LED0–7 Input Register
0x01 Input 2 Read Only LED8–15 Input Register
0x02 PSC0 R/W Frequency Prescaler 0
0x03 PWM0 R/W PWM Register 0
0x04 PSC1 R/W Frequency Prescaler 1
0x05 PWM1 R/W PWM Register 1
0x06 LS0 R/W LED0–3 Selector
0x07 LS1 R/W LED4–7 Selector
0x08 LS2 R/W LED8–11 Selector
0x09 LS3 R/W LED12–15 Selector
BINARY FOMAT FOR INPUT REGISTERS (READ ONLY) ADDRESS 0x00 and 0x01
Address 0x00
Bit# 76543210
Default value XXXXXXXX
LED7 LED6 LED5 LED4 LED3 LED2 LED1 LED0
X = don’t care
Address 0x01
Bit # 7 6 5 4 3 2 1 0
Default value X X X X X X X X
LED15 LED14 LED13 LED12 LED11 LED10 LED9 LED8
X = don’t care
BINARY FORMAT FOR FREQUENCY PRESCALER AND PWM REGISTERS ADDRESS 0x02 to 0x05
Address 0x02 (PSC0)
Bit# 76543210
Default value 00000000
PSC0 register is used to program the period of DIM0.
DIM0 = (PSC0+1)/160
The maximum period is 1.6s when PSC0 = 255.
Address 0x03 (PWM0)
Bit# 76543210
Default value 10000000
PWM0 register determines the duty cycle of DIM0. The LED outputs are LOW (LED on) when the count is less than the value in PWM0 and HIGH (LED off) when
it is greater. If PWM0 is programmed with 0x00, LED output is always HIGH (LED off).
The duty cycle of DIM0 is: PWM0/256
Default value is 50% duty cycle.
Address 0x04 (PSC1)
Bit# 76543210
Default value 00000000
PSC1 register is used to program the period of DIM1.
DIM1 = (PSC1 + 1)/160
The maximum period is 1.6s when PSC1 = 255.
LP3943
www.national.com9
Application Notes (Continued)
Address 0x05 (PWM1)
Bit# 76543210
Default value 10000000
PWM1 register determines the duty cycle of DIM1. The LED outputs are LOW (LED on) when the count is less than the value in PWM1 and HIGH (LED off) when
it is greater. If PWM1 is programmed with 0x00, LED output is always HIGH (LED off).
The duty cycle of DIM1 is: PWM1/256
Default value is 50% duty cycle.
BINARY FORMAT FOR SELECTOR REGISTERS ADDRESS 0x06 to 0x09
Address 0x06 (LS0)
Bit# 76543210
Default value 00000000
B1 B0 B1 B0 B1 B0 B1 B0
LED3 LED2 LED1 LED0
Address 0x07 (LS1)
Bit# 76543210
Default value 00000000
B1 B0 B1 B0 B1 B0 B1 B0
LED7 LED6 LED5 LED4
Address 0x08 (LS2)
Bit# 76543210
Default value 0 0 0 0 0000
B1 B0 B1 B0 B1 B0 B1 B0
LED11 LED10 LED9 LED8
Address 0x09 (LS3)
Bit# 76543210
Default value 00000000
B1 B0 B1 B0 B1 B0 B1 B0
LED15 LED14 LED13 LED12
LED States With Respect To Values in "B1" and "B0"
B1 B0 Function
0 0 Output Hi-Z
(LED off)
0 1 Output LOW
(LED on)
1 0 Output dims
(DIM0 rate)
1 1 Output dims
(DIM1 rate)
LP3943
www.national.com 10
Application Notes (Continued)
Programming Example:
Dim LEDs 0 to 7 at 1 Hz at 25% duty cycle
Dim LEDs 8 to 12 at 5 Hz at 50% duty cycle
Set LEDs 13, 14 and 15 off
Step 1: Set PSC0 to achieve DIM0 of 1s
Step 2: Set PWM0 duty cycle to 25%
Step 3: Set PSC1 to achieve DIM1 of 0.2s
Step 4: Set PWM1 duty cycle to 50%
Step 5: Set LEDs 13, 14 and 15 off by loading the data into LS3 register
Step 6: Set LEDs 0 to 7 to point to DIM0
Step 7: Set LEDs 8 to 12 to point to DIM1
Step Description Register Name Set to (Hex)
1 Set DIM0 = 1s
1 = (PSC0 + 1)/160
PSC0 = 159
PSC0 0x09F
2 Set duty cycle to 25%
Duty Cycle = PWM0/256
PWM0 = 64
PWM0 0x40
3 Set DIM1 = 0.2s
0.2 = (PSC1 + 1)/160
PSC1 = 31
PSC1 0x1F
4 Set duty cycle to 50%
Duty Cycle = PWM1/256
PWM1 = 128
PWM1 0x80
5 LEDs 13, 14 and 15 off
Output = HIGH
LS3 0x03
6 LEDs0to7
Output = DIM0
LS0, LS1 LS0 = 0xAA
LS1 = 0xAA
7 LEDs8to12
Output = DIM1
LS2, LS3 LS2 = 0xFF
LS3 = 0x03
REDUCING I
Q
WHEN LEDS ARE OFF
In many applications, the LEDs and the LP3943 share the
same V
DD
, as shown in Section Typical Application Circuit.
When the LEDs are off, the LED pins are at a lower potential
than V
DD
, causing extra supply current (I
Q
). To minimize
this current, consider keeping the LED pins at a voltage
equal to or greater than V
DD
.
20079614
FIGURE 9. Methods to Reduce I
Q
When LEDs Are Off
LP3943
www.national.com11
Application Notes (Continued)
LP3943 With 5V Booster
20079615
Pub Lcl genlevel=LP3943 Driving RGB LED As A Flash
20079616
LP3943
www.national.com 12
Physical Dimensions inches (millimeters) unless otherwise noted
NOTES: UNLESS OTHERWISE SPECIFIED
1. FOR LEAD FINISH THICKNESS AND COMPOSITION. SEE “SOLDER INFORMATION” IN THE PACKAGING SECTION
OF THE NATIONAL SEMICONDUCTOR WEB PAGE (www. national.com).
2. NO JEDEC REGISTRATION AS OF MARCH 2003.
Order Number LP3943ISQ or LP3943ISQX
NS Package Number SQA24C
LIFE SUPPORT POLICY
NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT
DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL
COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein:
1. Life support devices or systems are devices or
systems which, (a) are intended for surgical implant
into the body, or (b) support or sustain life, and
whose failure to perform when properly used in
accordance with instructions for use provided in the
labeling, can be reasonably expected to result in a
significant injury to the user.
2. A critical component is any component of a life
support device or system whose failure to perform
can be reasonably expected to cause the failure of
the life support device or system, or to affect its
safety or effectiveness.
BANNED SUBSTANCE COMPLIANCE
National Semiconductor certifies that the products and packing materials meet the provisions of the Customer Products
Stewardship Specification (CSP-9-111C2) and the Banned Substances and Materials of Interest Specification
(CSP-9-111S2) and contain no ‘‘Banned Substances’’ as defined in CSP-9-111S2.
National Semiconductor
Americas Customer
Support Center
Email: new.feedback@nsc.com
Tel: 1-800-272-9959
National Semiconductor
Europe Customer Support Center
Fax: +49 (0) 180-530 85 86
Email: europe.support@nsc.com
Deutsch Tel: +49 (0) 69 9508 6208
English Tel: +44 (0) 870 24 0 2171
Français Tel: +33 (0) 1 41 91 8790
National Semiconductor
Asia Pacific Customer
Support Center
Email: ap.support@nsc.com
National Semiconductor
Japan Customer Support Center
Fax: 81-3-5639-7507
Email: jpn.feedback@nsc.com
Tel: 81-3-5639-7560
www.national.com
LP3943 RGB/White/Blue 16-LED Fun Light Driver
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.