LP3958 Lighting Management Unit with High Voltage Boost Converter General Description Features LP3958 is a Lighting Management Unit for portable applications. It is used to drive display backlight and keypad LEDs. The device can drive 5 separately connected strings of LEDs with high voltage boost converter. The keypad LED driver allows driving LEDs from high voltage boost converter or separate supply voltage.The MAIN and SUB outputs are high resolution current mode drivers. Keypad LED outputs can be used in switch mode and current mode. External PWM control can be used for any selected outputs. The device is controlled through 2-wire low voltage I2C compatible interface that reduces the number of required connections. LP3958 is offered in a tiny 25-bump micro-SMD package. n High efficiency boost converter with programmable output voltage n 2 individual drivers for serial display backlight LEDs n 3 drivers for serial keypad LEDs n Automatic dimming controller n Stand alone serial keypad LEDs controller n 3 general purpose IO pins n 25-bump micro SMD Package: (2.54mm x 2.54mm x 0.6mm) Applications n Cellular Phones and PDAs n MP3 Players n Digital Cameras Typical Application 20175570 © 2006 National Semiconductor Corporation DS201755 www.national.com LP3958 Lighting Management Unit with High Voltage Boost Converter February 2006 LP3958 Connection Diagrams and Package Mark Information CONNECTION DIAGRAMS 25-Bump Thin Micro SMD Package, Large Bump NS Package Number TLA25CCA 20175572 20175571 Bottom View Top View PACKAGE MARK 20175596 ORDERING INFORMATION www.national.com Order Number Package Marking Supplied As Spec/Flow LP3958TL SJHB TNR 250 NoPb LP3958TLX SJHB TNR 3000 NoPb 2 LP3958 Connection Diagrams and Package Mark Information (Continued) PIN DESCRIPTIONS Pin # Name Type Description 5E SW Output 5D FB Input Boost Converter Power Switch 5C KEY1 Output Keypad LED Output 1 (Current Sink) 5B KEY2 Output Keypad LED Output 2 (Current Sink) 5A KEY3 Output Keypad LED Output 3 (Current Sink) 4E GND_SW Ground Power Switch Ground 4D NRST Input 4C SCL Logic Input Boost Converter Feedback External Reset, Active Low Clock Input for I2C Compatible Interface 4B IKEY Input 4A GND_KEY Ground Ground for KEY LED Currents External Keypad LED Maximum Current Set Resistor Supply Voltage 3.0...5.5 V 3E VDD2 Power 3D VDDIO Power 3C SDA Logic Input/Output Data Input/Output for I2C Compatible Interface 3B GPIO[2] Logic Input/Output General Purpose Logic Input/Output 3A GPIO[0] / PWM Logic Input/Output General Purpose Logic Input/Output / External PWM Input 2E GND_WLED Ground Ground for White LED Currents (MAIN and SUB Outputs) 2D GNDT Ground Ground Supply Voltage for Digital Input/Output Buffers and Drivers 2C VDD1 Power Supply Voltage 3.0...5.5 V 2B VREF Output Reference Voltage (1.23V) 2A GPIO[1] Logic Input/Output General Purpose Logic Input/Output 1E MAIN Output MAIN Display White LED Current Output (Current Sink) 1D SUB Output SUB Display White LED Current Output (Current Sink) 1C VDDA Output Internal LDO Output (2.80V) 1B GND Ground Ground for Core Circuitry 1A IRT Input Oscillator Frequency Set Resistor 3 www.national.com LP3958 Absolute Maximum Ratings Operating Ratings (Notes 1, 2) (Notes 1, 2) V (SW, FB, MAIN, SUB) If Military/Aerospace specified devices are required, please contact the National Semiconductor Sales Office/ Distributors for availability and specifications. VDD1,2 3.0 to 5.5V VDDIO 1.65V to VDD1 V (SW, FB, MAIN, SUB, KEY1, KEY2, KEY3) -0.3V to +20V Recommended Load Current (KEY1, KEY2, KEY3) CC Mode VDD1, VDD2, VDDIO, VDDA -0.3V to +6.0V Recommended Total Boost Converter Load Current Voltage on IKEY, IRT, VREF Voltage on Logic Pins I (VREF) I(KEY1, KEY2, KEY3) -0.3V to VDD1+0.3V with 6.0V max -0.3V to VDDIO +0.3V with 6.0V max 10µA Internally Limited Junction Temperature (TJ-MAX) 125oC Storage Temperature Range -65oC to +150oC Maximum Lead Temperature (Soldering) (Note 4) 260oC Machine Model: www.national.com 0mA to 70mA Junction Temperature (TJ) Range -30oC to +125oC Ambient Temperature (TA) Range (Note 6) -30oC to +85oC Junction-to-Ambient Thermal Resistance(θJA), TLA25 Package (Note 7) ESD Rating (Note 5) Human Body Model: 0mA to 15mA/driver Thermal Properties 100mA Continuous Power Dissipation (Note 3) 0 to +19V 2kV 200V 4 60 - 100oC/W Limits in standard typeface are for TJ = 25o C. Limits in boldface type apply over the operating ambient temperature range (-30oC < TA < +85oC). Unless otherwise noted, specifications apply to the LP3958 Block Diagram with: VDD1,2 = 3.0 ... 5.5V, CVDD = CVDDIO = 100nF, COUT = 2 x 4.7µF, CIN = 10µF, CVDDA = 1µF, CVREF = 100nF, L1 = 10µH, RKEY = 8.2kΩ and RRT = 82kΩ (Note 9). Symbol IVDD VDDA Typ Max Units Standby supply current (VDD1, VDD2) Parameter NSTBY = L Register 0DH=08H (Note 10) Condition Min 1.7 7 µA No-boost supply current (VDD1, VDD2) NSTBY = H, EN_BOOST = L 300 800 µA No-load supply current (VDD1, VDD2) NSTBY = H, EN_BOOST = H Autoload OFF 750 1300 uA Output voltage of internal LDO IVDDA = 1mA +3 % 2.80 -3 VREF Reference voltage (Note 11) 1.23 V V Note 1: Absolute Maximum Ratings indicate limits beyond which damage to the component 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 pins. Note 3: Internal thermal shutdown circuitry protects the device from permanent damage. Thermal shutdown engages at TJ=150oC (typ.) and disengages at TJ=130oC (typ.). Note 4: For detailed soldering specifications and information, please refer to National Semiconductor Application Note AN1112 : Micro SMD Wafer Level Chip Scale Package Note 5: The Human body model is a 100pF capacitor discharged through a 1.5kΩ resistor into each pin. The machine model is a 200pF capacitor discharged directly into each pin. MIL-STD-883 3015.7 Note 6: In applications where high power dissipation and/or poor package thermal resistance is present, the maximum ambient temperature may have to be derated. Maximum ambient temperature (TA-MAX) is dependent on the maximum operating junction temperature (TJ-MAX-OP = 125oC), the maximum power dissipation of the device in the application (PD-MAX), and the junction-to ambient thermal resistance of the part/package in the application (θJA), as given by the following equation: TA-MAX = TJ-MAX-OP – (θJA x PD-MAX). Note 7: Junction-to-ambient thermal resistance is highly application and board-layout dependent. In applications where high maximum power dissipation exists, special care must be paid to thermal dissipation issues in board design. Note 8: Min and Max limits are guaranteed by design, test, or statistical analysis. Typical numbers are not guaranteed, but do represent the most likely norm. Note 9: Low-ESR Surface-Mount Ceramic Capacitors (MLCCs) used in setting electrical characteristics. Note 10: Boost output voltage set to 8V (08H in register 0DH) to prevent any unneccessary current consumption. Note 11: No external loading allowed for VREF pin. 5 www.national.com LP3958 Electrical Characteristics (Notes 2, 8) LP3958 Block Diagram 20175574 www.national.com 6 RESET: In the RESET mode all the internal registers are reset to the default values. Reset is entered always if input NRST is LOW or internal Power On Reset is active. Power On Reset (POR) will activate during the chip startup or when the supply voltages VDD1 and VDD2 fall below 1.5V. Once VDD1 and VDD2 rises above 1.5V, POR will inactivate and the chip will continue to the STANDBY mode. NSTBY control bit is low after POR by default. STANDBY: The STANDBY mode is entered if the register bit NSTBY is LOW and Reset is not active. This is the low power consumption mode, when all circuit functions are disabled. Registers can be written in this mode and the control bits are effective immediately after start up. STARTUP: When NSTBY bit is written high, the INTERNAL STARTUP SEQUENCE powers up all the needed internal blocks (VREF, Bias, Oscillator etc.). To ensure the correct oscillator initialization, a 10ms delay is generated by the internal state-machine. If the chip temperature rises too high, the Thermal Shutdown (THSD) disables the chip operation and STARTUP mode is entered until no thermal shutdown event is present. BOOST STARTUP: Soft start for boost output is generated in the BOOST STARTUP mode. The boost output is raised in low current PWM mode during the 20ms delay generated by the state-machine. All LED outputs are off during the 20ms delay to ensure smooth startup. The Boost startup is entered from Internal Startup Sequence if EN_BOOST is HIGH or from Normal mode when EN_BOOST is written HIGH. NORMAL: During NORMAL mode the user controls the chip using the Control Registers. The registers can be written in any sequence and any number of bits can be altered in a register in one write. 20175575 7 www.national.com LP3958 Modes of Operation LP3958 fed to the inductor. An active load is used to remove the excess charge from the output capacitor at very light loads. Active load can be disabled with the EN_AUTOLOAD bit. Disabling active load will increase slightly the efficiency at light loads, but the downside is that pulse skipping will occur. The Boost Converter should be stopped when there is no load to minimise the current consumption. Power-Up Sequence When powering up the device, VDD1 and VDD2 should be greater than VDDIO to prevent any damage to the device. The topology of the magnetic boost converter is called CPM control, current programmed mode, where the inductor current is measured and controlled with the feedback. The user can program the output voltage of the boost converter. The output voltage control changes the resistor divider in the feedback loop. The following figure shows the boost topology with the protection circuitry. Four different protection schemes are implemented: 1. Over voltage protection, limits the maximum output voltage 20175576 Magnetic Boost DC/DC Converter The LP3958 Boost DC/DC Converter generates an 8…18V supply voltage for the LEDs from single Li-Ion battery (3V…4.5V). The output voltage is controlled with an 8-bit register in 10 steps. The converter is a magnetic switching PWM mode DC/DC converter with a current limit. Switching frequency is 1MHz, when timing resistor RT is 82kΩ. Timing resistor defines the internal oscillator frequency and thus directly affects boost frequency and KEY timings. EMI filter (RSW and CSW) on the SW pin can be used to suppress EMI caused by fast switching. These components should be as near as possible to the SW pin to ensure reliable operation. The LP3958 Boost Converter uses pulseskipping elimination to stabilize the noise spectrum. Even with light load or no load a minimum length current pulse is — Keeps the output below breakdown voltage. — Prevents boost operation if battery voltage is much higher than desired output. 2. Over current protection, limits the maximum inductor current — Voltage over switching NMOS is monitored; too high voltages turn the switch off. 3. Feedback break protection. Prevents uncontrolled operation if FB pin gets disconnected. 4. Duty cycle limiting, done with digital control. 20175577 Boost Converter Topology www.national.com 8 LP3958 Magnetic Boost DC/DC Converter (Continued) MAGNETIC BOOST DC/DC CONVERTER ELECTRICAL CHARACTERISTICS Symbol Parameter Conditions ILOAD Maximum Continuous Load Current 3.0V = VIN VOUT = 18V VOUT Output Voltage Accuracy (FB Pin) 3.0V ≤ VIN ≤ 5.5V VOUT = 18V RDSON Switch ON Resistance ISW = 0.5A fPWM PWM Mode Switching Frequency RT = 82 kΩ Frequency Accuracy RT = 82 kΩ tPULSE Switch Pulse Minimum Width tSTARTUP Startup Time IMAX Min Typ −3.5 0.15 Max Units 70 mA +3.5 % 0.3 Ω 1.0 MHz −7 +7 −9 +9 % no load 45 ns Boost startup from STANDBY to VOUT = 18V, no load 15 ms SW Pin Current Limit 800 1150 mA BOOST STANDBY MODE User can set the Boost Converter to STANDBY mode by writing the register bit EN_BOOST low. When EN_BOOST is written high, the converter starts for 20ms in low current PWM mode and then goes to normal PWM mode. All LED outputs are off during the 20ms delay to ensure smooth startup. BOOST OUTPUT VOLTAGE CONTROL User can control the boost output voltage by Boost Output 8-bit register. Boost Output [7:0] Register 0DH Bin Dec 0000 1000 8 Boost Output Voltage Control Boost Output Voltage (typical) 8.0V 0000 1001 9 9.0V 0000 1010 10 10.0V 0000 1011 11 11.0V 0000 1100 12 12.0V 0000 1101 13 13.0V 0000 1110 14 14.0V 0000 1111 15 15.0V 0001 0000 16 16.0V 0001 0001 17 17.0V 0001 0010 18 18.0V 20175578 If register value is lower than 8, then value of 8 is used internally. If register value is higher than 18, then value of 18 is used internally. 9 www.national.com LP3958 Boost Converter Typical Performance Characteristics Vin = 3.6V, Vout = 18.0V if not otherwise stated Boost Converter Efficiency Boost Typical Waveforms at 70mA Load 20175579 20175580 Battery Current vs Voltage Boost Output Voltage vs. Current 20175582 20175581 Boost Line Regulation 3.0V - 3.6V, no load Boost Turn On Time with No Load 20175584 20175583 www.national.com 10 Boost Load Transient Response 25mA – 70mA LP3958 Boost Converter Typical Performance Characteristics (Continued) Autoload Effect on Input Current, No Load 20175585 20175586 Boost Maximum Current vs. Output Voltage 20175595 11 www.national.com LP3958 Brightness control is logarithmic and is programmed as follows: Functionality of Keypad LED Outputs (KEY1, KEY2, KEY3) Bright[2:0] Brightness [%] Ratio to max brightness 000 0 0 001 1.56 1/64 010 3.12 1/32 011 6.25 1/16 Keypad LED output control can be done in three ways: 1. Defining the expected balance and brightness in Keypad register (address 01H) 100 12.5 1/8 101 25 1/4 110 50 1/2 2. Direct setting each LED ON/OFF via Keypad control register (address 00H) 111 100 1/1 3. External PWM control LP3958 has three individual keypad LED output pins. Output pins can be used in switch mode or constant current mode. Output mode can be selected with the control register (address 00H) bit CC_SW. If the bit is set high, then keypad LED outputs are in switch mode, otherwise in constant current mode. These modes are described later in separate chapters. The LED balance can be selected as follows. This is valid only in non-overlapping mode. BRIGHTNESS CONTROL WITH KEYPAD REGISTER If the keypad LED output is used by defining the balance and brightness in the Keypad register, then one needs to set EN_KEYP bit high and KEYP_PWM bit high in the Control register (address 00H). K1SW, K2SW and K3SW are used to enable each LED output, enabled when written high. CC_SW defines the LED output mode. A single register is used for defining the balance and brightness for keypad LED output: Bit KEY1 active [%] KEY2 active [%] KEY3 active [%] 000 001 100 0 0 0 100 0 100 010 0 0 011 50 50 0 100 0 50 50 101 50 0 50 Description 110 33 33 33 111 50 25 25 KEYPAD REGISTER (01H) Name Balance [2:0] BALANCE[2:0] 6:4 Balance of KEY1, KEY2 and KEY3 outputs BRIGHT[2:0] 3:1 Brightness control OVL 0 Overlapping mode selection: 0 = non-overlapping mode 1 = overlapping mode OVERLAPPING MODE The brightness is controlled using PWM duty cycle based control method as the following figure shows. 20175597 Overlapping Mode Since KEY outputs are on simuneltaneously, the maximum load peak current is: IMAX = I(KEY1)MAX + I(KEY2)MAX + I(KEY3)MAX NON-OVERLAPPING MODE The timing diagram shows the splitted KEY1, KEY2 and KEY3 and brightness control effect to splitted parts. Full brightness is used in the diagram. If for example 1⁄2 brightness is used, the frame is still 50µs, but all LED outputs’ ON time is 50% shorter and at the last 25µs all LED outputs are OFF. www.national.com 12 LP3958 Functionality of Keypad LED Outputs (KEY1, KEY2, KEY3) (Continued) 20175588 Non-overlapping Mode The non-overlapping mode has 8-programmed balance ratios. Since the KEY1, KEY2 and KEY3 are split in to nonoverlapping slots the output current through the keypad LED can be calculated by following equation: IAVG=(CKEY1xIKEY1+CKEY2xIKEY2+CKEY3xIKEY3)xB where C = Balance [%] (see table of balance control earlier) B = Brightness [%] (see table of Brightness Control) Maximum current for each LED output is adjusted with the Keypad max current register in following way: LED ON/OFF CONTROL WITH KEYPAD CONTROL REGISTER Each LED output can be set ON by writing the corresponding bit high in the control register. K1SW controls KEY1, K2SW controls KEY2 and K3SW controls KEY3 output. Note that EN_KEYP bit must be high and KEYP_PWM bit low. In this mode, the KEYPAD register does not have any effect. CC_SW bit in control register defines the LED output mode. External ballast resistors are not needed in this mode. The maximum current for all keypad LED drivers is set with RKEY. The equation for calculating the maximum current is: IMAX = 100 x 1.23V / (RKEY + 50 Ω) where IMAX = maximum KEY current in any KEY output (during constant current mode) 1.23V = reference voltage Switch Mode / Constant Current Mode Each keypad LED output can be set to act as a switch or a constant current sink. Selection of mode is done with the CC_SW bit in the Control Register. If bit is set high, then the switch mode is selected. Default is switch mode. 100 = internal current mirror multiplier RKEY = resistor value in Ohms 50 Ω = Internal resistor in the IKEY input Table with example resistance values and corresponding output currents: IK1[1:0], IK2[1:0], IK3[1:0] Maximum current / output 1. SWITCH MODE In switch mode, the keypad LED outputs are low ohmic switches to ground. Resistance is typically 3.5Ω. External ballast resistors must be used to limit the current through the LED. 2. CONSTANT CURRENT MODE In constant current mode, the maximum output current is defined with a single external resistor (RKEY) and the maximum current control register (address 02H). 00 0.25 x IMAX 01 0.50 x IMAX 10 0.75 x IMAX 11 1.00 x IMAX KEY resistor RKEY (kΩ) Maximum current / output IMAX (mA) 8.2 14.9 9.1 13.4 10 12.2 12 10.2 15 8.2 18 6.8 24 5.1 KEYPAD MAX CURRENT REGISTER (02H) Name Bit Description IK1[1:0] 5:4 KEY1 maximum current IK2[1:0] 3:2 KEY2 maximum current IK3[1:0] 1:0 KEY3 maximum current Note that the LED output requires a minimum saturation voltage in order to act as a true constant current sink. The saturation voltage minimum is typically 100mV. If the LED output voltage drops below 100mV, then the current will decrease significantly. 13 www.national.com LP3958 Functionality of Keypad LED Outputs (KEY1, KEY2, KEY3) (Continued) External PWM Control The GPIO[0]/PWM pin can be used to control the KEY output. PWM function for the pin is selected by writing EN_PWM_PIN high in GPIO control register (address 06H). Note, that EN_KEYP bit must be set high. Each LED output can be enabled with K1SW, K2SW and K3SW bits. EN_EXT_K1_PWM, EN_EXT_K2_PWM and EN_EXT_K3_PWM bits are used to select, which LED outputs are controlled with the external PWM input. Note that polarity of external PWM control is active high i.e. when high, then LED output is enabled. If KEYP_PWM is set low, then each selected LED output is controlled directly with external PWM input. If KEYP_PWM is set high, then internal PWM control is modulated by the external PWM input. In latter case, internal PWM control is passed to LED when external PWM input is high. Keypad LEDs Driver Performance Characteristics Symbol Parameter ILEAKAGE KEY1, KEY2, KEY3 pin leakage current IMAX(KEY) Maximum recommended sink current Condition Min Typ CC mode SW mode Accuracy @ 15mA CC mode 5 Current mirror ratio CC mode 1:100 Max Units 1 µA 15 mA 60 mA % KEY current matching error IKEY set to 15mA, CC mode RSW Switch resistance SW mode 3.5 Ω ƒKEY KEY internal PMW switching frequency Accuracy same as internal clock frequency accuracy 20 kHz VSAT Saturation voltage (current drop 10%) IKEY set to 15mA 100 Note: KEY current should be limited as follows: constant current mode – limited by external RKEY resistor switch mode – limited by external ballast resistors www.national.com 14 3 % 500 mV LP3958 has 2 independent backlight drivers. Both drivers are regulated constant current sinks. LED current for both LED strings are controlled by the 8-bit current mode DACs with 0.1 mA step. MAIN and SUB LEDs can be also controlled with one DAC (MAIN) for better matching allowing the use of larger displays having up to 8 white LEDs by setting DISPL bit to 1. 20175590 SUB output for 2 LEDs (DISPL = 0) 20175589 MAIN output for 4 LEDs (DISPL = 0) 20175591 MAIN and SUB outputs for 8 LEDs (DISPL = 1) PWM CONTROL External PWM control is enabled by writing 1 to EN_MAIN_PWM and/or EN_SUB_PWM bits in register address 2BH. GPIO[0] pin is used as external PWM input when EN_PWM_PIN is set high. PWM input is active high, i.e. LED is activated when in high state. 15 www.national.com LP3958 Backlight Drivers LP3958 Backlight Drivers Adjustment is made with 04H (main current) and with 05H (sub current) registers: (Continued) FADE IN / FADE OUT LP3958 has an automatic fade in and out for main and sub backlight. The fade function is enabled with EN_FADE bit. The slope of the fade curve is set by the SLOPE bit. Fade control for main and sub display is set by FADE_SEL bit. Recommended fading sequence: 1. ASSUMPTION: Current WLED value in register 2. 3. Set SLOPE Set FADE_SEL 4. Set EN_FADE = 1 5. 6. Set target WLED value Fading will be done either within 0.65s or 1.3s based on SLOPE selection Fading times apply to full scale change i.e. from 0 to 100% or vice versa. If the current change does not correspond to full scale change, the time will be respectively shorter. See WLED Dimming diagrams for typical fade times. WLED CONTROL REGISTER (03H) Name Bit SLOPE 5 FADE execution time: 0 = 1.3s (full scale) 1 = 0.65s (full scale) Description FADE_SEL 4 FADE selection: 0 = FADE controls MAIN 1 = FADE controls SUB EN_FADE 3 FADE enable 0 = FADE disabled 1 = FADE enabled DISPL 2 Display mode: 0 = MAIN and SUB individual control 1 = MAIN and SUB controlled with MAIN DAC EN_MAIN 1 MAIN enable: 0 = disable 1 = enable EN_SUB 0 SUB enable: 0 = disable 1 = enable Note: if DISPL=1 and FADE_SEL=0 then FADE effects MAIN and SUB www.national.com 16 MAIN CURRENT [7:0] SUB CURRENT [7:0] Driver current, mA (typical) 0000 0000 0 0000 0001 0.1 0000 0010 0.2 0000 0011 0.3 … … … … 1111 1101 25.3 1111 1110 25.4 1111 1111 25.5 Symbol Parameter Conditions Min IMAX Maximum Sink Current ILEAKAGE Leakage Current VSUB, MAIN =18V IMAIN ISUB MAIN Current tolerance SUB Current tolerance IMAIN and ISUB set to 12.8mA (80H) MatchMAIN-SUB Sink Current Matching Error ISINK=12.8mA, DISPL=1 MatchMAIN-SUB Sink Current Matching Error ISINK=12.8mA, DISPL=0 VSAT 95% Saturation Voltage ISINK=25mA 11.1 Typical Max Units 25.5 30 mA 0.03 1 µA 12.8 14.1 mA 0.2 % 5 400 % 600 800 mV Note: Matching is the maximum difference from the average. WLED Dimming, SLOPE=0 WLED Dimming, SLOPE=1 20175539 20175540 WLED Output Current vs. Voltage 20175592 17 www.national.com LP3958 Backlight Driver Electrical Characteristics LP3958 General Purpose I/O Functionality GPIO DATA (07H) LP3958 has three general purpose I/O pins: GPIO[0]/PWM, GPIO[1] and GPIO[2]. GPIO[0]/PWM can also be used as a PWM input for the external LED PWM controlling. GPIO bi-directional drivers are operating from the VDDIO supply domain. GPIO CONTROL (06H) Name Bit 4 OEN[2:0] 2:0 Bit 2:0 Description Data bits GPIO control register is used to set the direction of each GPIO pin. For example, by setting OEN0 bit high the GPIO[0]/PWM pin acts as a logic output pin with data defined DATA0 in GPIO data register. Note, that the EN_PWM_PIN bit overrides OEN0 state by forcing GPIO[0]/PWM to act as PWM input. GPIO[1] and GPIO[2] pins can be selected to be inputs or outputs, defined by OEN1 and OEN2 bit status. PWM functionality is valid only for GPIO[0]/PWM pin. GPIO data register contains the data of GPIO pins. When output direction is selected to GPIO pin, then GPIO data register defines the output pin state. When GPIO data register is read, it contains the state of the pin despite of the pin direction. Registers for GPIO are as follows: EN_PWM_PIN Name DATA[2:0] Description Enable PWM pin 0 = disable 1 = enable GPIO pin direction 0 = input 1 = output Logic Interface Characteristics (VDDIO = 1.65V...VDD1,2 unless otherwise noted) Symbol Parameter Conditions Min Typ Max Units 0.2xVDDIO V LOGIC INPUT SCL, SDA, GPIO[0:2] VIL Input Low Level VIH Input High Level II Logic Input Current fSCL Clock Frequency 0.8xVDDIO V −1.0 1.0 µA 400 kHz LOGIC INPUT NRST VIL Input Low Level VIH Input High Level 1.2 II Input Current -1.0 tNRST Reset Pulse Width 0.5 V V 1.0 10 µA µs LOGIC OUTPUT SDA VOL Output Low Level ISDA = 3mA VOH Output High Level ISDA = -3mA IL Output Leakage Current VSDA = 2.8V 0.3 VDDIO − 0.5 0.5 V 1.0 µA 0.5 V 1.0 µA VDDIO − 0.3 LOGIC OUTPUT GPIO[0:2] VOL Output Low Level VOH Output High Level IGPIO = −3 mA IL Output Leakage Current VGPIO = 2.8V www.national.com IGPIO = 3 mA 0.3 VDDIO − 0.5 18 VDDIO − 0.3 V LP3958 I2C Compatible Interface I2C SIGNALS TRANSFERRING DATA The SCL pin is used for the I2C clock and the SDA pin is used for bidirectional data transfer. Both these signals need a pull-up resistor according to I2C specification. Every byte put on the SDA line must be eight bits long, with the most significant bit (MSB) being transferred first. 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 receiver 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, the I2C master sends a chip address. This address is seven bits long followed by an eighth bit which is a data direction bit (R/W). The LP3958 address is 59H (101 1001b). For the eighth bit, a “0” indicates a WRITE and a “1” indicates a READ. This means that the first byte is B2H for WRITE and B3H for READ. The second byte selects the register to which the data will be written. The third byte contains data to write to the selected register. I2C 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. 20175549 I2C Signals: Data Validity I2C START AND STOP CONDITIONS START and STOP bits classify the beginning and the end of the I2C 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 I2C master always generates START and STOP bits. The I2C bus is considered to be busy after START condition and free after STOP condition. During data transmission, I2C master can generate repeated START conditions. First START and repeated START conditions are equivalent, function-wise. 20175551 I2C Chip Address Register changes take an effect at the SCL rising edge during the last ACK from slave. 20175550 I2C Start and Stop Conditions 19 www.national.com LP3958 I2C Compatible Interface (Continued) 20175593 w = write (SDA = “0”) r = read (SDA = “1”) ack = acknowledge (SDA pulled down by either master or slave) rs = repeated start id = 7-bit chip address, 59H (101 1001b) for LP3958. I2C Write Cycle When a READ function is to be accomplished, a WRITE function must precede the READ function, as shown in the Read Cycle waveform. 20175594 I2C Read Cycle www.national.com 20 LP3958 I2C Compatible Interface (Continued) 20175554 I2C Timing Diagram I2C TIMING PARAMETERS (VDD1,2 = 3.0 to 4.5V, VDDIO = 1.8V to VDD1,2) Symbol Limit Parameter Min Max Units 1 Hold Time (repeated) START Condition 0.6 µs 2 Clock Low Time 1.3 µs 3 Clock High Time 600 ns 4 Setup Time for a Repeated START Condition 600 ns 5 Data Hold Time (Output direction, delay generated by LP3958) 300 900 ns 5 Data Hold Time (Input direction, delay generated by Master) 0 900 ns 6 Data Setup Time 7 Rise Time of SDA and SCL 20+0.1Cb 300 ns 8 Fall Time of SDA and SCL 15+0.1Cb 300 ns 100 ns 9 Set-up Time for STOP condition 600 ns 10 Bus Free Time between a STOP and a START Condition 1.3 µs Cb Capacitive Load for Each Bus Line 10 200 pF NOTE: Data guaranteed by design 21 www.national.com LP3958 Recommended External Components rent (800mA) to ensure reliable operation. Schottky diodes with a low forward drop and fast switching speeds are ideal for increasing efficiency in portable applications. Choose a reverse breakdown voltage of the schottky diode significantly larger (~30V) than the output voltage. Do not use ordinary rectifier diodes, since slow switching speeds and long recovery times cause the efficiency and the load regulation to suffer. Example of suitable diode is: Central Semiconductor CMMSH1-40. OUTPUT CAPACITOR, COUT The output capacitor COUT directly affects the magnitude of the output ripple voltage. In general, the higher the value of COUT, the lower the output ripple magnitude. Multilayer ceramic capacitors with low ESR are the best choice. At the lighter loads, the low ESR ceramics offer a much lower VOUT ripple that the higher ESR tantalums of the same value. At the higher loads, the ceramics offer a slightly lower VOUT ripple magnitude than the tantalums of the same value. However, the dv/dt of the VOUT ripple with the ceramics is much lower that the tantalums under all load conditions. Capacitor voltage rating must be sufficient, 25V or greater is recommended. Examples of suitable capacitors are: TDK C3216X5R1E475K, Panasonic ECJ3YB1E475K, ECJMFB1E475K and ECJ4YB1E475K. EMI FILTER COMPONENTS CSW, RSW EMI filter (RSW and CSW) on the SW pin can be used to suppress EMI caused by fast switching. These components should be as near as possible to the SW pin to ensure reliable operation. 50V or greater voltage rating is recommended for capacitor. Some ceramic capacitors, especially those in small packages, exhibit a strong capacitance reduction with the increased applied voltage (DC bias effect). The capacitance value can fall below half of the nominal capacitance. Too low output capacitance can make the boost converter unstable. Output capacitors DC bias effect should be better than –50% at 18V. INDUCTOR, L1 A 10uH shielded inductor is suggested for LP3958 boost converter. The inductor should have a saturation current rating higher than the rms current it will experience during circuit operation (600mA). Less than 300mΩ ESR is suggested for high efficiency and sufficient output current. Open core inductors cause flux linkage with circuit components and interfere with the normal operation of the circuit. This should be avoided. For high efficiency, choose an inductor with a high frequency core material such as ferrite to reduce the core losses. To minimize radiated noise, use a toroid, pot core or shielded core inductor. The inductor should be connected to the SW pin as close to the IC as possible. Examples of suitable inductors are: TDK VLF4012AT100MR79, VLF4018BT-100MR90, VLF5014AT-100MR92, Coilcraft LPS4018-103ML. INPUT CAPACITOR, CIN The input capacitor CIN directly affects the magnitude of the input ripple voltage and to a lesser degree the VOUT ripple. A higher value CIN will give a lower VIN ripple. Capacitor voltage rating must be sufficient, 10V or greater is recommended. OUTPUT DIODE, D1 A schottky diode should be used for the output diode. Peak repetitive current should be greater than inductor peak curLIST OF RECOMMENDED EXTERNAL COMPONENTS Symbol Value Unit CVDD C between VDD1,2 and GND 100 nF CVDDIO C between VDDIO and GND 100 nF Ceramic, X7R / X5R CVDDA C between VDDA and GND 1 µF Ceramic, X7R / X5R COUT CIN Symbol explanation 2 x 4.7 or 1 x 10 µF Maximum DC bias effect @ 18V C between FB and GND -50 % C between battery voltage and GND 10 µF Type Ceramic, X7R / X5R Ceramic, X7R / X5R, tolerance +/-10% Ceramic, X7R / X5R L between SW and VBAT 10 µH Saturation current 600 mA CVREF C between VREF and GND 100 nF Ceramic, X7R / X5R RKEY R between IKEY and GND 8.2 kΩ RRT R between IRT and GND 82 kΩ ± 1% ± 1% L1 Rectifying diode (Vf @ maxload) D1 0.3-0.5 V Reverse voltage 30 V Shielded inductor, low ESR Schottky diode Repetitive peak current 800 mA CSW C in EMI filter 100 pF Ceramic, X7R / X5R, 50V RSW R in EMI filter 390 Ω ± 1% LEDs User Defined Note: See Application Note AN-1436 "Design and Programming Examples for Lighting Management Unit LP3958" for more information on how to design with LP3958 www.national.com 22 SUB Current GPIO Control GPIO Data 05 06 07 PWM Enable MAIN Current 04 2B WLED Control 03 Boost Output Keypad Max Current 02 0D Keypad 01 Enables Control Register 00 0B REGISTER ADDR (HEX) 0 0 0 0 0 0 0 EN_BOOST 0 0 EN_EXT_K2_PWM 0 0 K2SW D2 0 EN_EXT_K3_PWM 0 1 EN_AUTOLOAD 0 0 0 0 0 DISPL 0 0 BRIGHT[2:0] IK2[1:0] 0 1 BOOST[7:0] 0 SUB[7:0] 0 MAIN[7:0] 0 EN_FADE 0 0 0 K1SW D3 EN_EXT_K1_PWM 0 0 EN_PWM_PIN 0 0 0 0 FADE_SEL 0 0 IK1[1:0] 0 D4 SLOPE 0 0 BALANCE[2:0] 1 CC_SW D5 NSTBY 0 0 0 EN_KEYP 0 D6 KEYP_PWM D7 LP3958 Control Register Names and Default Values 0 0 0 0 0 0 0 EN_SUB 0 0 OVL D0 0 EN_SUB_PWM IK3[1:0] EN_MAIN_PWM 0 0 DATA[2:0] 0 OEN[2:0] 0 0 0 EN_MAIN 0 0 0 K3SW D1 LP3958 23 www.national.com LP3958 LP3958 Register Bit Explanations Each register is shown with a key indicating the accessibility of the each individual bit, and the initial condition: Register Bit Accessibility and Initial Condition Key Bit Accessibility RW Read/write R Read only –0,–1 Condition after POR CONTROL REGISTER (00H) – KEYPAD LEDS CONTROL REGISTER D7 D6 D5 KEYP_PWM EN_KEYP CC_SW D4 RW - 0 RW - 0 RW - 1 R-0 D3 D2 D1 K1SW K2SW K3SW RW - 0 RW - 0 RW - 0 KEYP_PWM Bit 7 0 - Internal KEYPAD PWM control disabled 1 - Internal KEYPAD PWM control enabled EN_KEYP Bit 6 0 – KEYPAD outputs disabled 1 – KEYPAD outputs enabled CC_SW Bit 5 0 – Constant current sink mode 1 – Switch mode K1SW Bit 3 0 – KEYPAD1 disabled 1 – KEYPAD1 enabled Bit 2 K2SW K3SW Bit 1 D0 R-0 0 – KEYPAD2 disabled 1 – KEYPAD2 enabled 0 – KEYPAD3 disabled 1 – KEYPAD3 enabled KEYPAD (01H) – KEYPAD BALANCE AND BRIGHTNESS CONTROL REGISTER D7 D6 D5 D4 D3 BALANCE[2:0] R-0 RW - 0 RW - 0 RW - 0 RW - 0 BALANCE[2:0] Bits 6-4 BRIGHT[2:0] Bits 3-1 PWM brightness control for KEYPAD outputs Bit 0 0 – Overlapping mode disabled 1 – Overlapping mode enabled OVL www.national.com RW - 0 D2 D1 BRIGHT[2:0] PWM balance for KEYPAD outputs 24 D0 OVL RW - 0 RW - 0 LP3958 LP3958 Register Bit Explanations (Continued) KEYPAD MAX CURRENT (02H) – MAXIMUM KEYPAD CURRENT CONTROL REGISTER D7 D6 D5 D4 D3 IK1[1:0] R-0 R-0 RW - 0 D2 D1 IK2[1:0] RW - 0 RW - 0 D0 IK3[1:0] RW - 0 RW - 0 RW - 0 Maximum current for KEY1,2,3 driver IK1,2,3[1:0] Maximum output current 00 0.25 x IMAX 01 0.50 x IMAX 10 0.75 x IMAX 11 1.00 x IMAX WLED CONTROL (03H) – WLED CONTROL REGISTER D7 R-0 D6 R-0 D5 D4 D3 D2 D1 D0 SLOPE FADE_SEL EN_FADE DISPL EN_MAIN EN_SUB RW - 0 RW - 0 RW - 0 RW - 0 RW - 0 RW - 0 SLOPE Bit 5 0 – fade execution time 0.65 sec (full scale) 1 – fade execution time 1.3 sec (full scale) FADE_SEL Bit 4 0 – fade control for MAIN 1 – fade control for SUB EN_FADE Bit 3 0 – automatic fade disabled 1 – automatic fade enabled DISPL Bit 2 0 - MAIN and SUB individual control 1 - MAIN and SUB controlled with MAIN DAC EN_MAIN Bit 1 0 – MAIN output disabled 1 – MAIN output enabled EN_SUB Bit 0 0 – SUB output disabled 1 – SUB output enabled 25 www.national.com LP3958 LP3958 Register Bit Explanations (Continued) MAIN CURRENT (04H) – MAIN CURRENT CONTROL REGISTER D7 D6 D5 D4 D3 D2 D1 D0 RW - 0 RW - 0 RW - 0 RW - 0 D3 D2 D1 D0 RW - 0 RW - 0 RW - 0 RW - 0 D1 D0 MAIN[7:0] RW - 0 RW - 0 RW - 0 RW - 0 SUB CURRENT (05H) – SUB CURRENT CONTROL REGISTER D7 D6 D5 D4 SUB[7:0] RW - 0 RW - 0 RW - 0 RW - 0 MAIN, SUB current adjustment MAIN[7:0], SUB[7:0] Typical driver current (mA) 0000 0000 0 0000 0001 0.1 0000 0010 0.2 0000 0011 0.3 0000 0100 0.4 … … 1111 1101 25.3 1111 1110 25.4 1111 1111 25.5 GPIO CONTROL (06H) – GPIO CONTROL REGISTER D7 D6 D5 D4 D3 D2 EN_PWM_PIN R-0 R-0 R-0 OEN[2:0] RW - 0 R-0 RW - 0 EN_PWM_PIN Bit 4 0 – External PWM pin disabled 1 – External PWM pin enabled OEN[2:0] Bits 2-0 0 – GPIO pin set as a input 1 – GPIO pin set as a output RW - 0 RW - 0 GPIO DATA (07H) – GPIO DATA REGISTER D7 D6 D5 D4 D3 D2 R-0 R-0 R-0 R-0 R-0 RW - 0 DATA[2:0] Bits 2-0 D1 D0 DATA[2:0] www.national.com GPIO data register bits 26 RW - 0 RW - 0 LP3958 LP3958 Register Bit Explanations (Continued) ENABLES (0BH) – ENABLES REGISTER D7 R-0 D6 D5 NSTBY EN_BOOST D4 RW - 0 RW - 0 D3 D2 D1 D0 R-0 R-0 EN_AUTOLOAD R-0 R-0 RW - 1 NSTBY Bit 6 0 – LP3958 standby mode 1 – LP3958 active mode EN_BOOST Bit 5 0 – Boost converter disabled 1 – Boost converter enabled EN_AUTOLOAD Bit 2 0 – Boost active load disabled 1 – Boost active load enabled BOOST OUTPUT (0DH) – BOOST OUTPUT VOLTAGE CONTROL REGISTER D7 D6 D5 D4 D3 D2 D1 D0 RW - 1 RW - 0 RW - 0 RW - 0 BOOST[7:0] RW - 0 RW - 0 RW - 0 RW - 0 BOOST output voltage adjustment BOOST[7:0] Typical boost output voltage (V) 0000 1000 8.00 0000 1001 9.00 0000 1010 10.00 0000 1011 11.00 0000 1100 12.00 0000 1101 13.00 0000 1110 14.00 0000 1111 15.00 0001 0000 16.00 0001 0001 17.00 0001 0010 18.00 PWM ENABLE (2BH) – EXTERNAL PWM CONTROL REGISTER D7 R-0 D6 R-0 D5 R-0 D4 D3 D2 D1 D0 EN_EXT_K1_PWM EN_EXT_K2_PWM EN_EXT_K3_PWM EN_MAIN_PWM EN_SUB_PWM RW - 0 RW - 0 RW - 0 RW - 0 RW - 0 EN_EXT_K1_PWM Bit 4 0 – External PWM control for KEY1 disabled 1 – External PWM control for KEY1 enabled EN_EXT_K2_PWM Bit 3 0 – External PWM control for KEY2 disabled 1 – External PWM control for KEY2 enabled EN_EXT_K3_PWM Bit 2 0 – External PWM control for KEY3 disabled 1 – External PWM control for KEY3 enabled EN_EXT_MAIN_PWM Bit 1 0 – External PWM control for MAIN disabled 1 – External PWM control for MAIN enabled EN_EXT_SUB_PWM Bit 0 0 – External PWM control for SUB disabled 1 – External PWM control for SUB enabled 27 www.national.com LP3958 Lighting Management Unit with High Voltage Boost Converter Physical Dimensions inches (millimeters) unless otherwise noted The dimension for X1 ,X2 and X3 are as given: • X1=2.543mm ± 0.03mm • X2=2.543mm ± 0.03mm • X3=0.60mm ± 0.075mm 25-bump micro SMD Package, 2.54 x 2.54 x 0.6mm, 0.5mm pitch NS Package Number TLA25CCA See Application note AN–1112 for PCB design and assembly instructions. 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. For the most current product information visit us at www.national.com. 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 manufactures products and uses packing materials that 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. Leadfree products are RoHS compliant. National Semiconductor Americas Customer Support Center Email: [email protected] Tel: 1-800-272-9959 www.national.com National Semiconductor Europe Customer Support Center Fax: +49 (0) 180-530 85 86 Email: [email protected] 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: [email protected] National Semiconductor Japan Customer Support Center Fax: 81-3-5639-7507 Email: [email protected] Tel: 81-3-5639-7560