austriamicrosystems AG is now ams AG The technical content of this austriamicrosystems datasheet is still valid. Contact information: Headquarters: ams AG Tobelbaderstrasse 30 8141 Unterpremstaetten, Austria Tel: +43 (0) 3136 500 0 e-Mail: [email protected] Please visit our website at www.ams.com AS3689 Datasheet, Confidential austriamicrosystems Datasheet, Confidential AS3689 Flexible Lighting Management (Charge Pump, DCDC Step Up, Current Sink, ADC, LDO) 1 General Description High-Efficiency Step Up DC/DC Converter − Up to 25V/50mA for White LEDs − Programmable Output Voltage with External Resistors and Serial Interface − Overvoltage Protection − 0.1Ohm Shunt Resistor High-Efficiency High-Power Charge Pump − 1:1, 1:1.5, and 1:2 Mode − Automatic Up Switching (can be disabled and 1:2 mode can be blocked) − Output Current up to 400mA − Efficiency up to 95% − Very Low effective Resistance (0.5Ω typ. 1Ω max. in 1:1 mode, 1.8Ω typ. 3.0Ω max. in 1:1.5) − Only 4 External Capacitors Required: 2 x 1µF Flying Capacitors, 2 x 2.2µF Input/Output Capacitors − Supports LCD White Backlight LEDs, − Camera Flash White LEDs, and Keypad Backlight LEDs Supports up to 15 Current Sinks − Four Programmable (6-Bit) from: 0.6mA to 37.8mA − Two Programmable (8-bit) from: 0.15mA to 38.25mA − Three High Voltage Programmable (8-bit) from: 0.15mA to 38.25mA (Keyboard LEDs) ch ni ca Te al id lv www.austriamicrosystems.com (mlg, ptr) 2 Key Features Six Programmable (8-bit) from: 0.15mA to 38.25mA (2 RGB LEDs) − Programmable Hardware Control (Strobe, and Preview or PWM) − Selectively Enable/Disable Current Sinks Internal PWM Generation − 8 Bit resolution − Logarithmic up/down dimming Led Pattern Generator − Autonomous driving for Fun RGB LEDs 10-bit Successive Approximation ADC − 27µs Conversion Time − Selectable Inputs: GPIO, GPI, all current sources, VBAT, CP_OUT, DCDC_FB − Internal Temp. Measurement − Light Sensor, inluding a adjustable current source (0-15uA) to V2_5 Support for automatic LED testing (open and shorted LEDs can be identified) Support for external Temperature Sensor for high current LED protection (CURR3x) Strobe Timeout protection − Up to 1600ms − Three different timing modes 2 General Purpose Inputs/Outputs − GPIO Input/Output, GPI only Input − Digital Input, Digital Output, and Tristate − Programmable Pull-Up, and Pull-Down − GPI can be used as Flash Strobe − GPIO can be used for Preview Mode − GPIO can be used as PWM input Negative or High-Voltage Charge Pump − Regulated Output Voltage, Programmable by Dual Resistors e.g. -6V, 10mA for OLED or ±15V, 5mA for TFT − ±5% Accuracy Programmable LDO (shared with RGB3) − 1.85 to 3.4V, 150mA − Programmable via Serial Interface Standby LDO always on − Regulated 2.5V max. output 10mA − 3µA Quiescent Current Wide Battery Supply Range: 3.0 to 5.5V Two Wire Serial Interface Control Overcurrent and Thermal Protection Package: CSP 3 x 3 mm − am lc s on A te G nt st il The AS3689 is a highly-integrated CMOS Power and Lighting Management Unit to supply power to LCD-and cameramodules in mobile telephones, and other 1-cell Li+ or 3-cell NiMH powered devices. The AS3689 incorporates one low-power, lowdropout regulator (LDO), one Step Up DC/DC Converter for white backlight LEDs, one high-power Charge Pump for camera flash LEDs, one Analogto-Digital Converter, support for up to 11 current sinks, a two wire serial interface, and control logic all onto a single device. Output voltages and output currents are fully programmable. The AS3689 is a successor to the austrimicrosystems AS3681 with several additional features (Charge Pump Automatic Up Switching, Extended timer features, autonomous logarithmic and linear PWM dimming, LED pattern generator, DCDC step up overvoltage protection, improved Charge Pump and a fourth high current sink). 3 Application Power- and lighting-management for mobile telephones and other 1-cell Li+ or 3-cell NiMH powered devices. Revision 1.0.2 / 20070115 1 - 70 AS3689 Datasheet, Confidential austriamicrosystems 4 Block Diagram Figure 1 – Application Diagram of the AS3689 Battery R2 AS3689 Lighting Management Unit L1 10µH D1 LED Test R3 1M C10 1.5nF R4 100k C11 15nF DCDC_GATE Step Up DC/DC Converter Q1 DCDC_FB C9 4.7µF lv Battery SENSE_N al id SENSE_P C2 1µF VBAT2 Battery V2_5 RBIAS R1 220k C2_P C2_N C6 1µF Charge Pump LDO 1.85-3.4V 150mA (Alternative Function) Battery or CPOUT C5 1µF am lc s on A te G nt st il C4 1µF VBAT1 References and Temperature Supervision C1_P 1:1, 1:1.5, 1:2 400mA C1_N Current Sinks 0.156-40mA C7 1µF D8 D11 D14 D9 D12 D15 D10 D13 D16 VSS_CP RGB1 CPOUT RGB2 RGB1 RGB3 (VANA) D17,D18,D19 OLED Charge Pump (Alternative Function) LDO VANA e.g. 2.8V Battery or CPOUT Current Sinks each 0.6-37.8mA C12 2.2µF D4 D5 C8 2.2µF CURR32 Current Sinks 0.15-38.25mA CURR33 CURR42 Current Sinks each 0.15-38.25mA CURR51 ca CURR43 D20,D21,D22 D3 CURR31 CURR41 RGB2 D2 CURR30 8Bit PWM Generator Automatic Dimming and LED Pattern Generator ni D6 D7 CURR52 HV Current Sinks each 0.15-38.25mA CURR1 CURR2 V2_5 Te ch Vtemp CURR6 GPIO/ ADC Strobe Timer CLK Serial Interface GPIO GPI VDD_GPIO VSS DATA CLK VDD_GPIO R5 1-10k DATA VSS R6 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 2 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table of Contents General Description ......................................................................................................................................... 1 Key Features .................................................................................................................................................. 1 Application ...................................................................................................................................................... 1 Block Diagram ................................................................................................................................................ 2 Characteristics................................................................................................................................................ 4 5.1 Absolute Maximum Ratings ......................................................................................................................... 4 5.2 Operating Conditions ................................................................................................................................... 4 6 Typical Operating Characteristics................................................................................................................... 5 7 Detailed Functional Description ...................................................................................................................... 7 7.1 Analog LDO ................................................................................................................................................. 7 7.1.1 LDO Registers .................................................................................................................................. 9 7.2 Step Up DC/DC Converter......................................................................................................................... 10 7.2.1 Feedback Selection ........................................................................................................................ 11 7.2.2 Overvoltage Protection in Current Feedback Mode........................................................................ 11 7.2.3 Voltage Feedback........................................................................................................................... 12 7.2.4 PCB Layout Tips............................................................................................................................. 13 7.2.5 Step up Registers ........................................................................................................................... 14 7.3 Charge Pump............................................................................................................................................. 15 7.3.1 Charge Pump Mode Switching ....................................................................................................... 17 7.3.2 Soft Start......................................................................................................................................... 18 7.3.3 Charge Pump Registers ................................................................................................................. 18 7.3.4 Usage of PCB Wire Inductance ...................................................................................................... 21 7.4 Current Sinks ............................................................................................................................................. 22 7.4.1 High Voltage Current Sinks CURR1, CURR2, CURR6................................................................... 23 7.4.2 Current Sinks CURR30, CURR31, CURR32, CURR33.................................................................. 26 7.4.3 RGB Current Sinks RGB1, RGB2, RGB3 (VANA, cpext) ............................................................... 30 7.4.4 General Purpose Current Sinks CURR4x, CURR5x....................................................................... 33 7.4.5 LED Pattern Generator ................................................................................................................... 35 7.4.6 External Overtemp comparator....................................................................................................... 38 7.4.7 External chargepump...................................................................................................................... 39 7.4.8 PWM Generator.............................................................................................................................. 42 7.5 General Purpose Input / Outputs ............................................................................................................... 47 7.5.1 GPIO Characteristics ...................................................................................................................... 48 7.5.2 GPIO Registers .............................................................................................................................. 49 7.6 LED Test.................................................................................................................................................... 50 7.6.1 Function Testing for single LEDs connected to the Charge Pump ................................................. 51 7.6.2 Function Testing for LEDs connected to the Step Up DCDC Converter......................................... 51 7.7 Analog-To-Digital Converter ...................................................................................................................... 52 7.7.1 ADC Registers................................................................................................................................ 53 7.8 Power-On Reset ........................................................................................................................................ 54 7.9 Temperature Supervision........................................................................................................................... 55 7.9.1 Temperature Supervision Registers ............................................................................................... 55 7.10 Serial Interface........................................................................................................................................... 56 7.10.1 Serial Interface Features ................................................................................................................ 56 7.10.2 Device Address Selection............................................................................................................... 56 7.11 Operating Modes ....................................................................................................................................... 59 8 Register Map ................................................................................................................................................ 60 9 External Components ................................................................................................................................... 63 10 Pinout and Packaging................................................................................................................................... 65 10.1 Pin Description........................................................................................................................................... 65 10.2 Package Drawings and Markings............................................................................................................... 67 11 Ordering Information..................................................................................................................................... 69 ch ni ca am lc s on A te G nt st il lv al id 1 2 3 4 5 Te Revision History Revision 1.0.2 Date Owner 15.1.2007 mlg,ptr www.austriamicrosystems.com (mlg, ptr) Description - Typ. Operating Characteristics: diagrams inserted - Function testing for LEDs description updated - Added dcdc converter block diagram - Added ADC temp. calculation (was TBD) Revision 1.0.2 / 20070115 3 - 70 AS3689 Datasheet, Confidential austriamicrosystems 5 Characteristics 5.1 Absolute Maximum Ratings Stresses beyond those listed in Table 1 may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in Section 5 Electrical Characteristics is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Min Max VIN_HV 15V Pins -0.3 17 VIN_MV 5V Pins -0.3 7.0 3.3V Pins -0.3 5.0 IIN Input Pin Current -25 +25 Note Applicable for high-voltage current V sink pins CURR1,CURR2, CURR6 Applicable for 5V pins VBAT1:VBAT2, CURR3x, CURR4x, CURR5x; C1_N, C2_N, C1_P, C2_P, V CPOUT; SENSE_N, SENSE_P, DCDC_FB, DCDC_GATE; RGB1,RGB2,RGB3 Applicable for 3.3V pins VDD_GPIO; GPIO, GPI; serial V interface pins CLK, DATA; V2_5; RBIAS mA At 25ºC, Norm: JEDEC 17 Tstrg Storage Temperature Range -55 125 ºC Humidity 5 85 % Non-condensing VESD Electrostatic Discharge -1000 1000 V Norm: MIL 883 E Method 3015 Pt Total Power Dissipation QFN32 5x5 1 W TBODY Peak Body Temperature 260 ºC VIN_LV 5.2 Unit lv Parameter am lc s on A te G nt st il Symbol al id Table 1 – Absolute Maximum Ratings TA = 70 degrees, Tjunction max = 125deg T = 20 to 40s, in accordance with IPC/JEDEC J-STD 020C. Operating Conditions Table 2 – Operating Conditions VGPIO High Voltage 0.0 Battery Voltage 3.0 Periphery Supply Voltage 1.5 Voltage on Pin V2_5 2.4 Operating Temperature Range -30 ch V2_5 Min ni VHV VBAT Parameter ca Symbol Te TAMB Typ Max Unit 15.0 V Note Applicable for high-voltage current sink pins CURR1, CURR2 and CURR6. VBAT1:VBAT3 3.3 V For GPIO and serial interface pins. 2.5 2.6 V Internally generated 25 85 °C 3.6 5.5 IACTIVE Battery current 35 ISTANDBY Standby Mode Current 8 13 µA ISHUTDOWN Shutdown Mode Current 0.1 3 µA www.austriamicrosystems.com (mlg, ptr) µA Revision 1.0.2 / 20070115 Normal Operating current – see section ‘Operating Modes’; interface active (excluding current of the enabled blocks, e.g. LDO, DCDC) Current consumption in standby mode. Only 2.5V regulator on VDD_GPIO > 1.5V; interface active VDD_GPIO < 0.3V; interface disabled and register are reset 4 - 70 AS3689 Datasheet, Confidential austriamicrosystems 6 Typical Operating Characteristics Figure 2 – DCDC Step Up Converter: Efficiency of +15V Step Up to 15V vs. Load Current at VBAT = 3.8V 90 80 VOUT=22.3V VOUT=14.2V 500kHz 75 lv Efficiency [%] 85 al id VOUT=14.2V VOUT=17.2V 70 am lc s on A te G nt st il 65 0,0 20,0 40,0 60,0 80,0 Load Current [mA] Figure 3 – Charge Pump: Efficiency vs. VBAT (with one Flash LED PWF1) 120 Efficiency [%] 100 80 60 40 ILED=40mA, VLED=2.98V ILED=80mA, VLED=3.11V ILED=147mA, VLED=3.25V ca 20 0 3,0 3,2 3,4 3,6 3,8 4,0 4,2 Vbat [V] Te ch ni 2,8 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 5 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 4 – Charge Pump: Battery Current vs. VBAT (with one Flash LED PWF1) 250 ILED=147mA, VLED=3.25V 150 ILED=80mA, VLED=3.11V 100 al id IBAT [mA] 200 50 0 2,8 3,0 3,2 3,4 3,6 3,8 4,0 4,2 Vbat [V] am lc s on A te G nt st il Figure 5 – Current Sink CURR1, CURR2, CURR6 vs. VBAT lv ILED=40mA, VLED=2.98V 45 40 Current [mA] 35 CURR1=38.25mA 30 25 20 15 10 5 CURR1=4.8mA 0 0,0 0,5 1,0 1,5 2,0 2,5 3,0 V(CURR1) [V] ca Figure 6 – Current Sink CURR1, CURR2, CURR6 Protection Current vs. Voltage (curr sinks off, curr_protX_on=0 and curr_protX_on=1) 3,0 curr_prot1_on=1 Te ch Current [mA] ni 2,5 2,0 1,5 1,0 4.5uA 0,5 curr_prot1_on=0 0,0 0,0 5,0 10,0 15,0 20,0 V(CURR1) [V] www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 6 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 7 – Current Sink CURR4x vs. VBAT 45 40 CURR41=38.25mA 30 25 al id 20 15 10 5 CURR41=4.8mA 0 0,0 0,5 1,0 1,5 2,0 am lc s on A te G nt st il V(CURR41) [V] lv Current [mA] 35 Figure 8 – RGB Current Sinks RGBx vs. VBAT 45 40 Current [mA] 35 RGB1=38.25mA 30 25 20 15 10 5 RGB1=4.8mA 0 0,0 0,5 1,0 1,5 2,0 ca V(RGB1) [V] 7.1 ni 7 Detailed Functional Description Analog LDO Te ch The LDO is a general purpose LDO and the output pin is shared with the current source (sink) connected to RGB3. The design is optimized to deliver the best compromise between quiescent current and regulator performance for battery powered devices. Stability is guaranteed with ceramic output capacitors (see Figure 3) of 1µF ±20% (X5R) or 2.2µF +100/-50% (Z5U). The low ESR of these capacitors ensures low output impedance at high frequencies. The low impedance of the power transistor enables the device to deliver up to 150mA even at nearly discharged batteries without any decrease in performance. The LDO is off by default after startup (apply voltage on VDD_GPIO) www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 7 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 9 –LDO Block Diagram High-Gain Low-Bandwidth Amplifier V REF1.8V DC Reference Low-Gain Ultra HighBandwidth Amplifier + VBAT3 3 - 5.5V PMOS Power Device 1Ω Max – – + C2 1µF RGB3 C12 2.2µF am lc s on A te G nt st il lv GND al id VOUT 1.85 - 3.4V 150mA Load Table 3 – Analog LDOs Characteristics Symbol Parameter VBAT Supply Voltage Range RON On Resistance Min Typ 3.0 Max Unit 5.5 V 150 @150mA, full operating temperature range mV @150mA 50 mV @50mA 500 mV @5mA 1.0 VDROPOUT Dropout Voltage Note Ω µA 50 Without load IOn Supply Current IOFF Shutdown Current 100 nA tstart Startup Time 200 µs -2 +2 % 1.85 2.85 V VBAT > 3.0V 1.85 3.4 V Full Programmable Range mA Pin RGB3. LDO acts as current source if the output current exceeds ILIMIT. Vout Output Voltage LDO Current Limit 300 With 150mA load 450 Without load Te ch ni ILIMIT Output Voltage Tolerance ca Vout_tol 150 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 8 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.1.1 LDO Registers Table 4 – Register definition for Analog LDO Reg. Control This register enables/disables the LDOs, Charge Pumps, Charge Pump LEDs, current sinks, the Step Up DC/DC Converter, and low-power mode. Bit Bit Name Default Access 1 ldo_ on 0 R/W Description al id Addr: 00 0 = Analog LDO is switched off 1 = Analog LDO is switched on Table 5 – Register definition for the LDO This register sets the output voltage (RGB3) for the LDO. Bit Name Default Access Description am lc s on A te G nt st il Bit lv Ldo voltage Addr: 08h 4:0 ldo_voltage ldo_pulld 0 R/W R/W Enable a pulldown for LDO ANA (pin RGB3). If RGB3 current sink or the external charge pump is used, leave this bit at default 0; if the LDO is used in a system, set this bit always to 1 0 = pulldown is disabled 1 = pulldown is enabled; has only effect if LDO is off (ldo_ana_on = 0) Te ch ni ca 5 00h Controls LDO voltage selection. 00000b = 1.85V. ... LSB = 50mV 11111b = 3.4V www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 9 - 70 AS3689 Datasheet, Confidential 7.2 austriamicrosystems Step Up DC/DC Converter The Step Up DC/DC Converter is a high-efficiency current mode PWM regulator, providing output voltage up to 25V and a load current up to 50mA. A constant switching-frequency results in a low noise on the supply and output voltages. Figure 10 – Step Up DCDC Converter Block Diagramm Option: Current Feedback with Overvoltage protection R2 SENSE_N Step Up DC/DC Converter C2 1µF L1 10µH DCDC_GATE D1 R3 1M lv SENSE_P al id Battery C9 4.7µF C10 1.5nF Q1 am lc s on A te G nt st il DCDC_FB R4 100k HV Current Sinks each 0.156-40mA C11 15nF D8 D11 D14 D9 D12 D15 D10 D13 D16 CURR1 CURR2 CURR6 Table 6 – Step Up DC/DC Converter Parameters IVDD Min Quiescent Current Feedback Voltage for External Resistor Divider Feedback Voltage for Current Sink Regulation ch VFB2 Te IDCDC_FB Additional Tuning Current at Pin DCDC_FB and overvoltage protection Accuracy of Feedback Current at full scale www.austriamicrosystems.com (mlg, ptr) TYP Max 140 ni VFB1 Parameter ca Symbol Unit µA 1.20 1.25 1.30 V 0.4 0.5 0.6 V 0 30 µA -6 6 % Revision 1.0.2 / 20070115 Note Pulse skipping mode. For constant voltage control. step_up_res=1 on CURR1, CURR2 or CURR6 in regulation. step_up_res=0 Adjustable by software using Register DCDC control1 1µA step size (0-15µA) VPROTECT = 1.25V + IDCDC_FB * R3 10 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 6 – Step Up DC/DC Converter Parameters Vrsense_max Vrsense_max_st art Current Limit Voltage at RSENSE (R2) Vrsense_max_lc Min 66 85 25 33 43 30 43 57 Switch Resistance Iload Load Current 0 fIN Switching Frequency 0.9 tMIN_ON MDC Vripple Efficiency 1 0.7 1 Unit Note e.g., 0.66A for 0.1Ω sense resistor. mV For fixed startup time of 500us If stepup_lowcur=1 Ω ON-resistance of external switching transistor. 50 mA At 15V output voltage. 45 mA At 17V output voltage. 1.1 MHz Internally trimmed. 4.7 µF Ceramic, ±20%. Use nominal 4.7µF capacitors to obtain at least 0.7µF under all conditions (voltage dependance of capacitors) am lc s on A te G nt st il L Output Capacitor Max 46 RSW Cout TYP al id Parameter lv Symbol Inductor 7 10 13 µH Minimum on Time 90 140 190 ns Maximum Duty Cycle 88 91 % Voltage ripple >20kHz 160 mV Voltage ripple <20kHz 40 mV Efficiency Use inductors with small Cparasitic (<100pF) to get high efficiency. 85 % Cout=4.7uF,Iout=0..45mA, Vbat=3.0...4.2V Iout=20mA,Vout=17V,Vbat=3.8V To ensure soft startup of the dcdc converter, the overcurrent limits are reduced for a fixed time after enabling the dcdc converter. The total startup time for an output voltage of e.g. 25V is less than 2ms. 7.2.1 Feedback Selection Register 12 (DCDC Control) selects the type of feedback for the Step Up DC/DC Converter. ca The feedback for the DC/DC converter can be selected either by current sinks (CURR1, CURR2, CURR6) or by a voltage feedback at pin DCDC_FB. If the register bit step_up_fb_auto is set, the feedback path is automatically selected between CURR1, CURR2 and CURR6 (the lowest voltage of these current sinks is used). ni Setting step_up_fb enables feedback on the pins CURR1, CURR2 or CURR6. The Step Up DC/DC Converter is regulated such that the required current at the feedback path can be supported. (Bit step_up_res should be set to 0 in this configuration) ch Note: Always choose the path with the highest voltage drop as feedback to guarantee adequate supply for the other (unregulated) paths or enable the register bit step_up_fb_auto. 7.2.2 Overvoltage Protection in Current Feedback Mode Te The overvoltage protection in current feedback mode (step_up_fb = 01, 10 or 11 or step_up_fb_auto = 1) works as follows: Only resistor R3 and C10/C11 is soldered and R4 is omitted. An internal current source (sink) is used to generate a voltage drop across the resistor R3. If then the voltage on DCDC_FB is above 1.25V, the DCDC is momentarily disabled to avoid too high voltages on the output of the DCDC converter. The protection voltage can be calculated according to the following formula: VPROTECT = 1.25V + IDCDC_FB * R3 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 11 - 70 AS3689 Datasheet, Confidential austriamicrosystems Notes: 1. The voltage on the pin DCDC_FB is limited by an internal protection diode to VBAT + one diode forward voltage (typ. 0.6V). If the overvoltage protection is not used in current feedback mode, connect DCDC_FB to ground. 2. Figure 11 –Step Up DC/DC Converter Block Diagram; Option: Regulated Output Current, Overvoltage protection at Pin DCDC_FB Battery R2 SENSE_N + clk PWM Logic - Gate Driver D1 C9 4.7µF DCDC_GATE Q1 ov_curr Vrsense_max R3 1M step_up_vtuning R4 100k 1.25V step_up_prot ramp C10 1.5nF am lc s on A te G nt st il DCDC_FB lv step_up_freq pulse_skip overshoot ov_voltage 1MHz 500kHz L1 10µH al id SENSE_P C2 1µF V overshoot comp 1.35V 0.8V 1.25V 0.5V error ota D8 D11 D14 D9 D12 D15 D10 D13 D16 step_up_fb HV Current Sinks each 0.156-40mA step_up_fb_auto C11 15nF Automatic feedback select (CURR1,2,6) CURR1 CURR2 ca CURR6 ni CURRX on and currX_on_cp=0 7.2.3 Voltage Feedback ch Setting bit step_up_fb = 00 enables voltage feedback at pin DCDC_FB.. Te The output voltage is regulated to a constant value, given by (Bit step_up_res should be set to 1 in this configuration) Ustepup_out = (R3+R4)/R4 x 1.25 + IDCDC_FB x R3 If R4 is not used, the output voltage is by (Bit step_up_res should be set to 0 in this configuration): Ustepup_out = 1.25 + IDCDC_FB x R3 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 12 - 70 AS3689 Datasheet, Confidential austriamicrosystems Where: Ustepup_out = Step Up DC/DC Converter output voltage. R3 = Feedback resistor R3. R4 = Feedback resistor R4. IDCDC_FB = Tuning current at pin 29 (DCDC_FB); 0 to 31µA. Ustepup_out R3 = 1MΩ, R4 not used R3 = 500kΩ, R4 = 50kΩ 0 - 13.75 1 - 14.25 2 - 14.75 3 - 15.25 4 - 15.75 5 6.25 16.25 6 7 8 9 10 11 12 13 14 15 … 30 31 lv Ustepup_out µA am lc s on A te G nt st il Ivtuning al id Table 7 – Voltage Feedback Example Values 7.25 16.75 8.25 17.25 9.25 17.75 10.25 18.25 11.25 18.75 12.25 19.25 13.25 19.75 14.25 20.25 15.25 20.75 16.25 21.25 … … 31.25 28.75 32.25 29.25 ca Caution: The voltage on CURR1, CURR2 and CURR6 must not exceed 15V – see also section ‘High Voltage Current Sinks’. 7.2.4 PCB Layout Tips Te ch ni To ensure good EMC performance of the DCDC converter, keep its external power components C2, R2, L1, Q1, D1 and C9 close together. Connect the ground of C2, Q1 and C9 locally together and connect this path with a single via to the main ground plane. This ensures that local high-frequency currents will not flow to the battery. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 13 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.2.5 Step up Registers Bit Name 3 step_up_on Addr: 21h Bit Name 0 step_up_frequ 2:1 step_up_fb 7:3 step_up_vtuning DCDC Control 2 This register controls the Step Up DC/DC Converter and low-voltage current sinks CURR3x. Default Access Description Gain selection for Step Up DC/DC Converter. 0 = Select 0 if Step Up DC/DC Converter is used with current feedback (CURR1, CURR2 , CURR6) or if DCDC_FB is 0 R/W used with current feedback only – only R1, C1 connected 1 = Select 1 if DCDC_FB is used with external resistor divider (2 resistors). ca Addr: 22h DCDC Control 1 This register controls the Step Up DC/DC Converter. Default Access Description Defines the clock frequency of the Step Up DC/DC Converter. 0 R/W 0 = 1 MHz 1 = 500 kHz Controls the feedback source if step_up_fb_auto = 0 00 = DCDC_FB enabled (external resistor divider). Set step_up_fb=00 (DCDC_FB), if external PWM is enabled for CURR1, CURR2 or CURR6 00 R/W 01 = CURR1 feedback enabled (feedback via white LEDs. 10 = CURR2 feedback enabled (feedback via white LEDs. 11 = CURR6 feedback enabled (feedback via white LEDs. Defines the tuning current at pin DCDC_FB. 00000 = 0 µA 00001 = 1 µA 00010 = 2 µA 00000 R/W … 10000 = 15 µA … 11111 = 31 µA am lc s on A te G nt st il Bit al id Bit Reg. Control This register enables/disables the LDOs, Charge Pumps, Charge Pump LEDs, current sinks, the Step Up DC/DC Converter Default Access Description Enable the step up converter 0b = Disable the Step Up DC/DC Converter. 0 R/W 1b = Enable the Step Up DC/DC Converter. lv Addr: 00 Bit Name 0 step_up_res Te ch ni Bit 1 skip_fast 0 R/W 2 stepup_prot 1 R/W www.austriamicrosystems.com (mlg, ptr) Step Up DC/DC Converter output voltage at low loads, when pulse skipping is active. 0 = Accurate output voltage, more ripple. 1 = Elevated output voltage, less ripple. Step Up DC/DC Converter protection. 0 = No overvoltage protection. 1 = Overvoltage protection on pin DCDC_FB enabled voltage limitation =1.25V on DCDC_FB Revision 1.0.2 / 20070115 14 - 70 AS3689 Datasheet, Confidential austriamicrosystems DCDC Control 2 3 stepup_lowcur 4 curr1_prot_on 5 curr2_prot_on 6 curr6_prot_on 7 step_up_fb_auto al id Bit Name am lc s on A te G nt st il Bit This register controls the Step Up DC/DC Converter and low-voltage current sinks CURR3x. Default Access Description Step Up DC/DC Converter coil current limit. 1 R/W 0 = Normal current limit 1 = Current limit reduced by approx. 33% 0 = No overvoltage protection 0 R/W 1 = Pull down current switched on, if voltage exceeds 13.75V, and step_up_on=1 0 = No overvoltage protection 0 R/W 1 = Pull down current switched on, if voltage exceeds 13.75V, and step_up_on=1 0 = No overvoltage protection 0 R/W 1 = Pull down current switched on, if voltage exceeds 13.75V, and step_up_on=1 0 = step_up_fb select the feedback of the DCDC converter 1 = The feedback is automatically chosen within the current sinks CURR1, CURR2 and CURR6 (never DCDC_FB). Only those are used for this selection, which are enabled 0 R/W (currX_mode must not be 00) and not connected to the charge pump (currX_on_cp must be 0). Don’t use automatic feedback selection together with external PWM for the current sources CURR1, CURR2 or CURR6. lv Addr: 22h 7.3 Charge Pump The Charge Pump uses two external flying capacitors C6, C7 to generate output voltages higher than the battery voltage. There are three different operating modes of the charge pump itself: ca 1:1 Bypass Mode − Battery input and output are connected by a low-impedance switch (0.5Ω ); − battery current = output current. 1:1.5 Mode − The output voltage is up to 1.5 times the battery voltage (without load), but is limited to VCPOUTmax all the time − battery current = 1.5 times output current. 1:2 Mode − The output voltage is up to 2 times the battery voltage (without load), but is limited to VCPOUTmax all the time − battery current = 2 times output current ch Examples: ni As the battery voltage decreases, the Charge Pump must be switched from 1:1 mode to 1:1.5 mode and eventually in 1:2 mode in order to provide enough supply for the current sinks. Depending on the actual current the mode with best overall efficiency can be automatically or manually selected: Battery voltage = 3.7V, LED dropout voltage = 3.5V. The 1:1 mode will be selected and there is 100mV drop on the current sink and on the Charge Pump switch. Efficiency 95%. Battery voltage = 3.5V, LED dropout voltage = 3.5V. The 1:1.5 mode will be selected and there is 1.5V drop on the current sink and 250mV on the Charge Pump. Efficiency 66%. Te Battery voltage = 3.8V, LED dropout voltage = 4.5V (Camera Flash). The 1:2 mode can be selected and there is 600mV drop on the current sink and 2.5V on the Charge Pump. Efficiency 60%. The efficiency is dependent on the LED forward voltage given by: Eff=(V_LED*Iout)/(Uin*Iin) www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 15 - 70 AS3689 Datasheet, Confidential austriamicrosystems The charge pump mode switching can be done manually or automatically with the following possible software settings: Automatic up all modes allowed (1:1, 1:1.5, 1:2) − Start with 1:1 mode − Switch up automatically 1:1 to 1:1.5 to 1:2 Automatic up, but only 1:1 and 1:1.5 allowed − Start with 1:1 mode − Switch up automatically only from 1:1 to 1:1.5 mode; 1:2 mode is not used Manual − Set modes 1:1, 1:1.5, 1:2 by software al id Figure 12 – Charge Pump Pin Connections Battery VBAT1 C6 1µF am lc s on A te G nt st il Charge Pump C2_N lv C5 1µF C2_P 1:1, 1:1.5, 1:2 400mA C1_P C1_N C7 1µF VSS_CP CPOUT C8 2.2µF The Charge Pump requires the external components listed in the following table: Table 8 – Charge Pump External Components Symbol Min External Flying Capacitor (2x) ca C5, C6, C7 Parameter External Storage Capacitor 1.5 (@3.3V) Max Unit 1.0 µF 2.2 µF Note Ceramic low-ESR capacitor between pins C1_P and C1_N, between pins C2_P and C2_N and between VBAT1 and VSS. Use nominal 1.0µF capacitors (size 0402) Ceramic low-ESR capacitor between pins CP_OUT and VSS, pins CP_OUT and VSS. Use nominal 2.2µF capacitors (size 0603) ch ni C8 Typ Note: Te 1.) The connections of the external capacitors C5, C6, C7 and C8 should be kept as short as possible. 2.) The maximum voltage on the flying capacitors C6 and C7 is VBAT www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 16 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 9 – Charge Pump Characteristics ICPOUT_Pulsed Output Current Pulsed Output Current Continuous VCPOUTmax Output Voltage η Efficiency ICP1_1.5 Power Consumption without Load fclk = 1 MHz Effective Charge Pump Output Resistance (Open Loop, fclk = 1MHz) Accuracy of Clock Frequency RGB1:RGB3, CURR41:CURR42 and CURR51:CURR52 minumum voltage CURR1, CURR2, CURR6 minumum voltage CURR30:CURR33 minumum voltage 0-160mA range CURR30:CURR33 minumum voltage >160mA range ICP1_2 Rcp1_1 Rcp1_1.5 Rcp1_2 fclk Accuracy currlv_switch currhv_switch curr3x_switch Max Unit Note 0.0 400 mA 300ms pulse width, 10% duty cycle max. 0.0 350 mA Depending on PCB layout 5.5 V 90 % 7 Internally limited, Including output ripple Including current sink loss; ICPOUT < 400mA. 1:1.5 Mode 8 1:2 Mode 60 0.7 1.8 1.5 3.0 2 3.5 -10 CP automatic upswitching debounce time tdeb Typ Ω 1:1 Mode; VBAT >= 3.5V 1:1.5 Mode; VBAT >= 3.3V 1:1.2 Mode; VBAT >= 3.1V 10 % 0.2 V 0.45 V 0.2 V 0.4 V am lc s on A te G nt st il ICPOUT Min al id Parameter lv Symbol If the voltage drops below this threshold, the charge pump will use the next available mode (1:1 -> 1:1.5 or 1:1.5 -> 1:2) 240 µsec cp_start_debounce=0 2000 µsec After switching on CP (cp _on set to 1), if cp_start_debounce=1 ca 7.3.1 Charge Pump Mode Switching Te ch ni If automatic mode switching is enabled (cp_mode_switching = 00 or cp_mode_switching = 01) the charge pump monitors the current sinks, which are connected via a led to the output CP_OUT. To identify these current sources (sinks), the registers cp_mode_switch1 and cp_mode_switch2 (register bits curr30_on_cp … curr33_on_cp, rgb1_on_cp … rgb3_on_cp, curr1_on_cp, curr2_on_cp, curr41_on_cp … curr43_on_cp) should be setup before starting the charge pump (cp _on = 1). If any of the voltage on these current sources drops below the threshold (currlv_switch, currhv_switch, curr3x_switch), the next higher mode is selected after the debounce time. To avoid switching into 1:2 mode (battery current = 2 times output current), set cp_mode_switching = 10. If the currX_on_cp=0 and the according current sink is connected to the chargepump, the current sink will be functional, but there is no up switching of the chargepump, if the voltage compliance is too low for the current sink to supply the specified current. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 17 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 13 – Automatic Mode Switching Battery VBAT1 cp_mode<1:0> C2_N C6 1.0µF 1:1, 1:1.5, 1:2 1:1 -> 1:1.5 1:1.5 -> 1:2 400mA C1_P C1_N C7 1.0µF CPOUT ... curr30_on_cp CURR30 200mV (curr3x_switch) CURR31 C8 2.2µF am lc s on A te G nt st il curr31_on_cp al id Charge Pump Mode Switching C5 1.0µF lv C2_P curr32_on_cp CURR32 curr33_on_cp CURR33 rgb3_on_cp 200mV (currlv_switch) curr43_on_cp ... ... CURR41 CURR43 curr52_on_cp CURR51 ... curr51_on_cp cp_start_debounce RGB3 ... curr41_on_cp Debounce ... RGB1 ... ... rgb1_on_cp CURR52 curr1_on_cp curr2_on_cp CURR1 450mV (currhv_switch) CURR6 ca curr6_on_cp CURR2 7.3.2 Soft Start ch ni An implemented soft start mechanism reduces the inrush current. Battery current is smoothed when switching the charge pump on and also at each switching condition. This precaution reduces electromagnetic radiation significantly. 7.3.3 Charge Pump Registers Te Addr: 00h Bit Bit Name 2 cp _on Reg. Control This register enables/disables the LDOs, Charge Pumps, Charge Pump LEDs, current sinks, the Step Up DC/DC Converter. Default Access Description 0 = Set Charge Pump into 1:1 mode (off state) unless cp_auto_on is set 0 R/W 1 = Enable manual or automatic mode switching – see register CP Control for actual settings www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 18 - 70 AS3689 Datasheet, Confidential Bit Name 0 cp_clk 2:1 cp_mode 00b R/W 5 cp_start_debounce 0 R/W 6 cp_auto_on 0 R/W Note : 1. Set the mode switching algorithm: 1 00 = Automatic Mode switching; 1:1, 1:1.5 and 1:2 allowed 1 01 = Automatic Mode switching; only 1:1 and 1:1.5 allowed 10 = Manual Mode switching; register cp_mode defines the actual charge pump mode used 11 = reserved 0 = Mode switching debounce timer is always 240us 1 = Upon startup (cp _on set to 1) the mode switching debounce time is first started with 2ms then reduced to 240us 0 = Charge Pump is switched on/off with cp _on 1 = Charge Pump is automatically switched on if a current sink, which is connected to the charge pump (defined by registers CP Mode Switch 1 & 2) is switched on am lc s on A te G nt st il 4:3 cp_mode_switching lv Bit CP Control This register controls the Charge Pump. Default Access Description Clock frequency selection. 0 R/W 0 = 1 MHz 1 = 500 kHz Charge Pump mode (in manual mode sets this mode, in automatic mode reports the actual mode used) 00 = 1:1 mode 01 = 1:1.5 mode 10 = 1:2 mode 00b R/W 11 = NA Note:Direct switching from 1:1.5 mode into 1:2 in manual mode and vice versa is not allowed. Always switch over 1:1 mode. al id Addr: 23h austriamicrosystems Don’t use automatic mode switching together with external PWM for the current sources connceted to the charge pump with less than 500us high time. CP Mode Switch 1 Setup which current sinks are connected (via leds) to the charge pump; if set to ‘1’ the correspond current source (sink) is used for automatic mode selection of the charge pump Default Access Description ca Addr: 24h Bit Bit Name 0 curr30_on_cp 1 curr31_on_cp 2 3 R/W 0 = current Sink CURR30 is not connected to charge pump 1 = current sink CURR30 is connected to charge pump 1 R/W 0 = current Sink CURR31 is not connected to charge pump 1 = current sink CURR31 is connected to charge pump curr32_on_cp 1 R/W 0 = current Sink CURR32 is not connected to charge pump 1 = current sink CURR32 is connected to charge pump curr33_on_cp 1 R/W 0 = current Sink CURR33 is not connected to charge pump 1 = current sink CURR33 is connected to charge pump ch ni 1 rgb1_on_cp 0 R/W 0 = current Sink RGB1 is not connected to charge pump 1 = current sink RGB1 is connected to charge pump 5 rgb2_on_cp 0 R/W 0 = current Sink RGB2 is not connected to charge pump 1 = current sink RGB2 is connected to charge pump 6 rgb3_on_cp 0 R/W Te 4 7 www.austriamicrosystems.com (mlg, ptr) 0 = current Sink RGB3 is not connected to charge pump 1 = current sink RGB3 is connected to charge pump NA Revision 1.0.2 / 20070115 19 - 70 AS3689 Datasheet, Confidential Addr: 25h austriamicrosystems CP Mode Switch 2 Setup which current sinks are connected (via leds) to the charge pump; if set to ‘1’ the correspond current source (sink) is used for automatic mode selection of the charge pump Default Access Description 0 = current Sink CURR1 is not connected to charge pump 0 R/W 1 = current sink CURR1 is connected to charge pump Bit Name 0 curr1_on_cp 1 curr2_on_cp 0 R/W 0 = current Sink CURR2 is not connected to charge pump 1 = current sink CURR2 is connected to charge pump 2 curr41_on_cp 0 R/W 0 = current Sink CURR41 is not connected to charge pump 1 = current sink CURR41 is connected to charge pump 3 curr42_on_cp 0 R/W 0 = current Sink CURR42 is not connected to charge pump 1 = current sink CURR42 is connected to charge pump 4 curr43_on_cp 0 R/W 0 = current Sink CURR43 is not connected to charge pump 1 = current sink CURR43 is connected to charge pump 5 curr51_on_cp 0 R/W 0 = current Sink CURR51 is not connected to charge pump 1 = current sink CURR51 is connected to charge pump 6 curr52_on_cp 0 R/W 0 = current Sink CURR52 is not connected to charge pump 1 = current sink CURR52 is connected to charge pump 7 curr6_on_cp 0 R/W 0 = current Sink CURR6 is not connected to charge pump 1 = current sink CURR6 is connected to charge pump lv am lc s on A te G nt st il Addr: 2Ah al id Bit Curr low voltage status 1 Indicates the low voltage status of the current sinks. If the currX_low_v bit is set, the voltage on the current sink is too low, to drive the selected output current Default Access Description 0 = voltage of current Sink CURR30 >curr3x_switch 1 R 1 = voltage of current Sink CURR30 <curr3x_switch Bit Name 0 curr30_low_v 1 curr31_low_v 1 R 0 = voltage of current Sink CURR31 >curr3x_switch 1 = voltage of current Sink CURR31 <curr3x_switch 2 curr32_low_v 1 R 0 = voltage of current Sink CURR32 >curr3x_switch 1 = voltage of current Sink CURR32 <curr3x_switch 3 curr33_low_v 1 R 0 = voltage of current Sink CURR33 >curr3x_switch 1 = voltage of current Sink CURR33 <curr3x_switch 4 rgb1_low_v 0 R 0 = voltage of current Sink RGB1 >currlv_switch 1 = voltage of current Sink RGB1 <currlv_switch 5 rgb2_low_v 0 R 0 = voltage of current Sink RGB2 >currlv_switch 1 = voltage of current Sink RGB2 <currlv_switch 6 rgb3_low_v 0 R 0 = voltage of current Sink RGB3 >currlv_switch 1 = voltage of current Sink RGB31 <currlv_switch 0 R 0 = voltage of current Sink CURR6 >currlv_switch 1 = voltage of current Sink CURR6 <currlv_switch ch ni ca Bit curr6_low_v Te 7 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 20 - 70 AS3689 Datasheet, Confidential austriamicrosystems Curr low voltage status 2 Indicates the low voltage status of the current sinks. If the currX_low_v bit is set, the voltage on the current sink is too low, to drive the selected output current Default Access Description Addr: 2Bh Bit Name 0 curr1_low_v 0 R 0 = voltage of current Sink CURR1 >currhv_switch 1 = voltage of current Sink CURR1 <currhv_switch 1 curr2_low_v 0 R 0 = voltage of current Sink CURR2 >currhv_switch 1 = voltage of current Sink CURR2 <currhv_switch 2 curr41_low_v 0 R 0 = voltage of current Sink CURR41 >currlv_switch 1 = voltage of current Sink CURR41 <currlv_switch 3 curr42_low_v 0 R 0 = voltage of current Sink CURR42 >currlv_switch 1 = voltage of current Sink CURR42 <currlv_switch 4 curr43_low_v 0 R 0 = voltage of current Sink CURR43 >currlv_switch 1 = voltage of current Sink CURR43 <currlv_switch 6 curr51_low_v 0 R 0 = voltage of current Sink CURR51 >currlv_switch 1 = voltage of current Sink CURR51 <currlv_switch 7 curr52_low_v 0 R 0 = voltage of current Sink CURR52 >currlv_switch 1 = voltage of current Sink CURR52 <currlv_switch am lc s on A te G nt st il lv al id Bit 7.3.4 Usage of PCB Wire Inductance The inductance between the battery and pins VBAT1 and VBAT2 can be used as a filter to reduce disturbance on the battery. Instead of using one capacitor (C5) it is recommended to split C5 into C51 and C52 with the capacitance equal: C51 = C52 = 1/2 x C5 C51 or C52 should not be less than 1uF (nominal value). It is recommended to apply a minimum of 20nH (maximum 200nH) with low impedance. This inductance can be realized on the PCB without any discrete coil. Assuming that a 1mm signal line corresponds to approximately 1nH (valid if the length (L) is significantly bigger than the width (W) of the line (L/W <10)), a line length of: 20mm < L < 200mm is recommended. The shape of the line is not important. Figure 14 – PCB Wire Inductance Example 1 ca L Battery Connector ni C52 Te ch C51 Pin VBAT1 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 21 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 15 – PCB Wire Inductance Example 2 L1 Battery Connector C52 Ltotal=L1+n*L2 Current Sinks lv 7.4 al id L2 C51 Pin VBAT1 The AS3689 contains general purpose current sinks intended to control backlights, buzzers, and vibrators. All current sinks have an integrated protection against overvoltage. am lc s on A te G nt st il CURR1, CURR2 and CURR6 is also used as feedback for the Step Up DC/DC Converter (regulated to 0.5V in this configuration). Current sinks CURR1, CURR2 and CURR6 are high-voltage compliant (15V) current sinks, used e.g., for series of white LEDs Current sinks CURR3x (CURR30, CURR31, CURR32 and CURR33) are parallel 5V, high-current current sinks, used e.g., for a photocamera flash LED. Due to their wide setting range, they also can be used for backlighting (e.g. LCD Main backlight). Current sinks RGB1, RGB2, and RGB3 are general purpose current sinks e.g. for a fun LED (the pins for these current sinks are shared with the OLED charge pump); the RGB3 current sink pin is shared with the LDO Current sinks CURR4x (CURR41, CURR42, and CURR43) are general purpose current sinks e.g. for white LEDs. Current sinks CURR5x (CURR51, and CURR52) are general purpose current sinks e.g. for white LEDs. Te ch ni ca www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 22 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 10 – Current Sink Function Overview Max. Voltage (V) Max. Current (mA) Software Current Control Resolution (Bits) (mA) Hardware On/Off Control CURR1 CURR2 LED Pattern; 15.0 38.25 8 0.15 Separate PWM at GPIO; Internal PWM CURR6 CURR30 Combined in Strobe/Preview 37.8 6 0.6 CURR32 PWM at GPIO; or Internal PWM; Separated Ext-Overtemp on GPIO CURR33 am lc s on A te G nt st il LED Pattern; 38.25 8 0.15 Separate PWM at GPIO; Internal PWM RGB3 CURR41 CURR42 CURR43 CURR51 CURR52 N/A LED Pattern VBAT (5.5V) RGB2 Flash LED Strobe (GPI) & Preview (GPIO); lv CURR31 RGB1 Alternate Function al id Current Sink OLED Charge Pump RGB3: LDO LED Pattern; 38.25 8 0.15 Separate PWM at GPIO; Internal PWM N/A LED Pattern; 38.25 8 0.15 Separate PWM at GPIO; Internal PWM 7.4.1 High Voltage Current Sinks CURR1, CURR2, CURR6 ca The high voltage current sinks have a resolution of 8 bits. Additionally an internal protection circuit monitors with a voltage divider (max 3µA @ 15) the voltage on CURR1, CURR2 and CURR6 and increases the current in off state in case of overvoltage. See section ‘Typical Operating Characteristics’ Figure ‘Current Sink CURR1, CURR2, CURR6 Protection Current’. This shows the protection current versus applied voltage depending on the register setting currX_prot_on (X=1,2 or 6). External PWM control of these current sinks is possible and can be enabled by software (Input pin GPIO). Symbol Parameter Current sink if Bit7 = 1 ch IBIT7 ni Table 11 – HV - Current Sinks Characteristics Min Typ Current sink if Bit6 = 1 9.6 IBIT5 Current sink if Bit5 = 1 4.8 IBIT4 Current sink if Bit4 = 1 2.4 IBIT3 Current sink if Bit3 = 1 1.2 IBIT2 Current sink if Bit2 = 1 0.6 IBIT1 Current sink if Bit1 = 1 0.3 IBIT0 Current sink if Bit0 = 1 0.15 Te Unit Note mA For V(CURRx) > 0.45V 19.2 IBIT6 www.austriamicrosystems.com (mlg, ptr) Max Revision 1.0.2 / 20070115 23 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 11 – HV - Current Sinks Characteristics Parameter Min ∆m matching Accuracy ∆ Max Unit Note -10 +10 % CURR1,CURR2,CURR6 absolute Accuracy -15 +15 % Curr[1,2,6 ] Voltage compliance 0.45 15 V Ov_prot_ 13V Overvoltage Protection of current sink CURR1,2,6 3.0 µA At 13V, independent of curr1_prot_on, curr2_prot_on or curr6_prot_on Ov_prot_ 15V Overvoltage Protection of current sink CURR1,2,6 mA At 15V, step_up_on=1, curr1_prot_on=1 for CURR1, curr2_prot_on=1 for CURR2, curr6_prot_on=1 for CURR6 4.0 lv 0.8 Typ al id Symbol Addr: 09h am lc s on A te G nt st il 7.4.1.1 High Voltage Current Sinks CURR1, CURR2, CURR6 Registers Bit Bit Name 7:0 curr1_current Addr: 0Ah Curr1 current This register controls the High voltage current sink current. Default Access Description Defines current into Current sink curr1 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA Curr2 current Bit Name 7:0 curr2_current This register controls the High voltage current sink current. Default Access Description Defines current into Current sink curr2 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA Addr: 2Fh Curr6 current Bit Name ch Bit ni ca Bit curr6_current Te 7:0 This register controls the High voltage current sink current. Default Access Description Defines current into Current sink curr6 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 24 - 70 AS3689 Datasheet, Confidential 1:0 curr1_mode 3:2 curr2_mode 5:4 curr51_mode 7:6 curr52_mode Addr: 02h al id Bit Name am lc s on A te G nt st il Bit curr12 control This register select the mode of the current sinkscontrols High voltage current sink current. Default Access Description Select the mode of the current sink curr1 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink curr2 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink curr51 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink curr52 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled lv Addr: 01h austriamicrosystems curr rgb control Bit Name 1:0 rgb1_mode 3:2 rgb2_mode 5:4 rgb3_mode This register select the mode of the current sinks RGB1, RGB2, RGB3 Default Access Description Select the mode of the current sink RGB1 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink RGB2 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink RGB3 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink RGB3 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled ch ni ca Bit curr6_mode Te 7:6 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 25 - 70 AS3689 Datasheet, Confidential Bit Name 0 step_up_res skip_fast 0 R/W 2 stepup_prot 1 R/W 3 stepup_lowcur 1 R/W 4 curr1_prot_on 0 R/W 5 curr2_prot_on 0 R/W 6 curr6_prot_on 0 R/W 7 step_up_fb_auto 0 R/W Step Up DC/DC Converter output voltage at low loads, when pulse skipping is active. 0 = Accurate output voltage, more ripple. 1 = Elevated output voltage, less ripple. Step Up DC/DC Converter protection. 0 = No overvoltage protection. 1 = Overvoltage protection on pin DCDC_FB enabled voltage limitation =1.25V on DCDC_FB Step Up DC/DC Converter coil current limit. 0 = .Normal current limit 1 = Current limit reduced by approx. 33% am lc s on A te G nt st il 1 al id Bit DCDC Control 2 This register controls the Step Up DC/DC Converter and low-voltage current sinks CURR3x. Default Access Description Gain selection for Step Up DC/DC Converter. 0 = Select 0 if Step Up DC/DC Converter is used with current feedback (CURR1, CURR2) or if DCDC_FB is used with 0 R/W current feedback only – only R1, C1 connected 1 = Select 1 if DCDC_FB is used with external resistor divider (2 resistors). lv Addr: 22h austriamicrosystems ca 0 = No overvoltage protection 1 = Pull down current on CURR1 switched on, if voltage on CURR1 exceeds 13.75V, and step_up_on=1 0 = No overvoltage protection 1 = Pull down current on CURR2 switched on, if voltage exceeds on CURR2 13.75V, and step_up_on=1 0 = No overvoltage protection 1 = Pull down current on CURR6 switched on, if voltage on CURR6 exceeds 13.75V, and step_up_on=1 0 = step_up_fb select the feedback of the DCDC converter 1 = The feedback is automatically chosen within the current sinks CURR1and CURR2 (never DCDC_FB). Only those are used for this selection, which are enabled (currX_mode must not be 00) and not connected to the charge pump (currX_on_cp must be 0). 7.4.2 Current Sinks CURR30, CURR31, CURR32, CURR33 ni These current sinks have a preview and strobe setting. The preview and strobe can be controlled by software (register bit) or GPIO can be programmed to enter preview mode (polarity programmable) and GPI can be programmed to enter strobe mode (polarity programmable). Te ch In strobe mode, a timeout timer protects the flash leds with a settable timeout of 100ms to 1600ms. This timer has the following modes: Flash time defined by timeout timer (Ts) independent of strobe signal (Mode 1) Flash time limited to timeout or end of strobe pulse (Mode 2) Flash time as timeout timer setting independent of strobe pulse length (Mode 3) Table 12 – High Current Sinks CURR30,31,32,33 Parameters Symbol Parameter Min Typ IBIT5 Current sink if Bit5 = 1 19.2 IBIT4 Current sink if Bit4 = 1 9.6 www.austriamicrosystems.com (mlg, ptr) Max Revision 1.0.2 / 20070115 Unit Note For V(CURRx) > 0.2 / 0.4V 26 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 12 – High Current Sinks CURR30,31,32,33 Parameters Min Typ Max Unit Note -15 +15 % All Current sinks 0.2 CPOUT V IBIT3 Current sink if Bit3 = 1 4.8 IBIT2 Current sink if Bit2 = 1 2.4 IBIT1 Current sink if Bit1 = 1 1.2 IBIT0 Current sink if Bit0 = 1 0.6 ∆ absolute Accuracy VCURR3X CURR30,31,32,33 Voltage Compliance Range 7.4.2.1 Current Sinks CURR3x Registers Curr3 control1 This register select the modes of the current sinks30..33 current. Default Access Description Select the switch off mode after strobe pulse 0b R/W 0=normal preview/strobe mode, 1=switch off preview after strobe duration has expired am lc s on A te G nt st il Addr: 12h al id Parameter lv Symbol Bit Bit Name 0 preview_off_after strobe 2:1 preview_ctrl 00b R/W Preview is triggered by 00b = off 01b = software trigger (setting this bit automatically triggers preview) 10b = GPIO active high 11b = GPIO active low 3 0 0b R/W reserved R/W Selects overtemperature switch off of flash LED 0b = normal operation of CURR3x 1b = if the voltage on GPIO drops below 1.25V, CURR3x is switched from strobe to preview current levels (can be used to monitor the temperature of the flash led) curr3x_ext_ovtemp 0b Te ch ni ca 4 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 27 - 70 AS3689 Datasheet, Confidential Curr3 strobe control Bit Name 1:0 strobe_ctrl 3:2 strobe_mode 7:4 strobe_timing This register select the modes of the current sinks30..33 current. Default Access Description Strobe is triggered by 00b = off 00b R/W 01b = software trigger (setting this bit automatically triggers strobe) 10b = GPI active high 11b = GPI active low Selects strobe mode 00b = Mode1 (Tstrobe=Ts; strobe trigger signal >= 10µs) 00b R/W 01b = Mode 2 (Tstrobe=max Ts) 10b = Mode 3 (Tstrobe = strobe signal) 11b = not used Selects strobe time (Ts) 0000b = 100 msec 0001b = 200 msec 0010b = 300 msec 0011b = 400 msec 0100b = 500 msec 0101b = 600 msec 0110b = 700 msec 0000b R/W 0111b = 800 msec 1000b = 900 msec 1001b = 1000 msec 1010b = 1100 msec 1011b = 1200 msec 1100b = 1300 msec 1101b = 1400 msec 1110b = 1500 msec 1111b = 1600 msec Addr: 0Eh am lc s on A te G nt st il lv Bit al id Addr: 11h austriamicrosystems Bit Name 5:0 curr3x_strobe ca Bit Curr3x strobe This register select the strobe current of the current sinks30..33 Default Access Description Selects strobe current 00h = 0 mA / 0 mA 00 R/W 01h = 0.6mA / 1.25mA ... 3Fh = 37.8mA Addr: 0Fh Curr3x preview Bit Name 5:0 curr3x_preview This register select the preview current of the current sinks30..33 Default Access Description Selects peview current 00h = 0 mA 00 R/W 01h = 0.6mA ... 3Fh = 37.8mA Te ch ni Bit www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 28 - 70 AS3689 Datasheet, Confidential Bit Name 5:0 curr3x_other Addr: 03h Bit Name 1:0 curr30_mode 3:2 curr31_mode 5:4 curr32_mode 7:6 curr33_mode Addr: 18h am lc s on A te G nt st il Bit curr3 control This register select the mode of the current sinks30 - 33 Default Access Description Select the mode of the current sink curr30 00b = off 0 R/W 01b = strobe/preview 10b = curr3x_other PWM controlled 11b = curr3x_other Select the mode of the current sink curr31 00b = off 0 R/W 01b = strobe/preview 10b = curr3x_other PWM controlled 11b = curr3x_other Select the mode of the current sink curr32 00b = off 0 R/W 01b = strobe/preview 10b = curr3x_other PWM controlled 11b = curr3x_other Select the mode of the current sink curr33 00b = off 0 R/W 01b = strobe/preview 10b = curr3x_other PWM controlled 11b = curr3x_other al id Bit Curr3x other This register selects the current of the current sinks30..33 Default Access Description Selects curr3x current, if curr30, curr31, curr32 or curr33 are not used for strobe/preview (CurX_mode=11b) 00h = 0 mA 00 R/W 01h = 0.6mA ... 3Fh = 37.8mA lv Addr: 10h austriamicrosystems Bit Name 0 pattern_color 2:1 pattern_delay ch ni ca Bit Pattern control This register controls the RGB pattern Default Access Description Defines the pattern type for the RGBx current sinks 0b = single 32 bit pattern (also set rgbx_mode = 11) 0 R/W 1b = RGB pattern with each 10 bits (set all rgbx_mode = 11) Delay between pattern 00b = 0 sec 01b = 1 sec 0 R/W 10b = 2 sec 11b = 3 sec Enable the ‘soft’ dimming feature for the pattern generator 0 = Pattern generator directly control current sources 0b R/W 1 = ‘Soft Dimming’ is performed – see section ’Soft Dimming for pattern’ Additional CURR33 LED pattern control bit 0b = CURR30 controlled according curr30_mode register 0b R/W 1b = CURR30 controlled by LED pattern generator softdim_pattern 4 curr30_pattern 5 curr31_pattern Te 3 0b www.austriamicrosystems.com (mlg, ptr) R/W Additional CURR33 LED pattern control bit 0b = CURR31 controlled according curr31_mode register 1b = CURR31 controlled by LED pattern generator Revision 1.0.2 / 20070115 29 - 70 AS3689 Datasheet, Confidential Pattern control Bit Bit Name 6 curr32_pattern 7 curr33_pattern This register controls the RGB pattern Default Access Description Additional CURR33 LED pattern control bit 0b = CURR32 controlled according curr32_mode register 0b R/W 1b = CURR32 controlled by LED pattern generator 0b R/W Additional CURR33 LED pattern control bit 0b = CURR33 controlled according curr33_mode register 1b = CURR33 controlled by LED pattern generator 7.4.3 RGB Current Sinks RGB1, RGB2, RGB3 (VANA, cpext) al id Addr: 18h austriamicrosystems lv The RGB1,RGB2, RGB3 are pins with different functionality. These pins can act as current sinks or as external chargepump. In addition RGB3 can be programmed as Analog LDO supplied by VBAT2 am lc s on A te G nt st il Figure 16 – RGB pin functionality OLED Charge Pump (Alternative Function) FB Vref VBAT2 CLK1 VBAT2 CLK2 Battery or CPOUT Current Sinks 0.15-38.5mA RGB1 RGB2 D13,D14,D15 RGB3 ca RGB3 (VANA) Battery VANA LDO VANA 1.85-3.4V 150mA Te ch ni VBAT2 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 30 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 13 – RGB pins Function Overview rgb1_ mode Bit settings Pin Function / Name rgb2_ rgb3_ cp_ext ldo_on RGB1 RGB2 RGB3 mode mode _on Function 00b 00b 0b 0b open open open all functions off 01b 01b 01b 0b 0b RGB1 RGB2 RGB3 Normal current sink operation 10b 10b 10b 0b 0b RGB1 RGB2 RGB3 PWM current sink operation xxb xxb xxb 1b xb CP_FB External chargepump operation xxb xxb xxb 0b 1b LDO current sink operation on RGB1 and RGB2, LDO on RGB3 pin open or RGB1 open or RGB2 lv CP_CLK1 CP_CLK2 al id 00b am lc s on A te G nt st il These low voltage current sinks have a resolution of 8 bits. They can be controlled individually by the LED pattern generator (on/off). External PWM control of these current sinks is also possible and can be enabled by software (Input pin GPIO). If the current sink RGB3 (VANA) is not used, its alternative function is ldo. Table 14 – RGB Sinks Characteristics Parameter IBIT7 Current sink if Bit7 = 1 19.2 IBIT6 Current sink if Bit6 = 1 9.6 IBIT5 Current sink if Bit5 = 1 4.8 IBIT4 Current sink if Bit4 = 1 2.4 IBIT3 Current sink if Bit3 = 1 1.2 IBIT2 Current sink if Bit2 = 1 0.6 IBIT1 Current sink if Bit1 = 1 0.3 IBIT0 Current sink if Bit0 = 1 0.15 ∆m matching Accuracy -10 ∆ absolute Accuracy ni Voltage compliance Min Typ Max Unit Note mA For V(CURRx) > 0.2V +10 % CURR1,CURR2 -15 +15 % 0.2 VBAT V Te ch Curr1 – Curr2 ca Symbol www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 31 - 70 AS3689 Datasheet, Confidential austriamicrosystems Addr: 02h Bit Name 1:0 rgb1_mode 3:2 rgb2_mode 5:4 rgb3_mode 7:6 curr6_mode am lc s on A te G nt st il Addr: 0Bh lv Bit curr rgb control This register select the mode of the current sinks RGB1, RGB2, RGB3 Default Access Description Select the mode of the current sink RGB1 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink RGB2 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink RGB3 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink RGB3 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled al id 7.4.3.1 RGB Current Sinks Registers Rgb1 current Bit Bit Name 7:0 rgb1_current Rgb2 current This register controls the RGB current sink current. Default Access Description Defines current into Current sink RGB2 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA ca Addr: 0Ch This register controls the RGB current sink current. Default Access Description Defines current into Current sink RGB1 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA Bit Name 7:0 rgb2_current ch ni Bit Te Addr: 0Dh Bit Bit Name 7:0 rgb3_current Rgb3 current This register controls the RGB current sink current. Default Access Description Defines current into Current sink RGB3 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 32 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.4.4 General Purpose Current Sinks CURR4x, CURR5x These low voltage current sinks have a resolution of 8 bits and can sink up to 40mA. Table 15 – CURR4x, CURR5x Sinks Characteristics Typ Max Unit Note IBIT7 Current sink if Bit7 = 1 19.2 IBIT6 Current sink if Bit6 = 1 9.6 IBIT5 Current sink if Bit5 = 1 4.8 IBIT4 Current sink if Bit4 = 1 2.4 IBIT3 Current sink if Bit3 = 1 1.2 mA For V(CURRx) > 0.2V IBIT2 Current sink if Bit2 = 1 0.6 IBIT1 Current sink if Bit1 = 1 0.3 IBIT0 Current sink if Bit0 = 1 0.15 ∆m matching Accuracy -10 +10 % ∆ absolute Accuracy -15 +15 % Curr1 – Curr2 Voltage compliance 0.2 VBAT V am lc s on A te G nt st il Min al id Parameter lv Symbol CURR1,CURR2 7.4.4.1 General Purpose Current Sinks CURR4x, CURR5x Registers Addr: 04h curr4 control Bit Name 1:0 curr41_mode 3:2 curr42_mode ch ni ca Bit This register selects the mode of the current sinks CURR41, CURR42, CURR43 Default Access Description Select the mode of the current sink CURR41 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink CURR42 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink CURR43 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled curr43_mode Te 5:4 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 33 - 70 AS3689 Datasheet, Confidential 1:0 curr1_mode 3:2 curr2_mode 5:4 curr51_mode 7:6 curr52_mode Addr: 13h Bit Bit Name 7:0 curr41_current Curr41 current This register controls the curr41 current sink current. Default Access Description Defines current into Current sink CURR41 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA Curr42 current This register controls the curr42 current sink current. Default Access Description Defines current into Current sink CURR42 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA ca Addr: 14h al id Bit Name am lc s on A te G nt st il Bit curr12 control This register select the mode of the current sinkscontrols High voltage current sink current. Default Access Description Select the mode of the current sink curr1 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink curr2 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink curr51 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled Select the mode of the current sink curr52 00b = off 0 R/W 01b = on 10b = PWM controlled 11b = LED pattern controlled lv Addr: 01h austriamicrosystems Bit Name 7:0 curr42_current ch ni Bit Addr: 15h Bit Name 7:0 curr43_current Te Bit Curr43 current This register controls the curr43 current sink current. Default Access Description Defines current into Current sink CURR43 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 34 - 70 AS3689 Datasheet, Confidential Curr51 current Bit Name 7:0 curr51_current Addr: 2Eh Bit Name 7:0 curr52_current Curr52 current This register controls the curr52 current sink current. Default Access Description Defines current into Current sink CURR52 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA am lc s on A te G nt st il Bit This register controls the curr51 current sink current. Default Access Description Defines current into Current sink CURR51 00h = 0 mA 0 R/W 01h = 0.15 mA ... FFh = 38.25 mA al id Bit lv Addr: 2Dh austriamicrosystems 7.4.5 LED Pattern Generator The LED pattern generator is capable of producing a pattern with 32 bits length and 1 second duration (31.25ms nd rd th for each bit). The pattern itself can be started every second, every 2 , 3 or 4 second. With this pattern all current sinks can be controlled. The pattern itself switches the configured current sources between 0 and their programmed current. If everything else is switched off, the current consumption in this mode is IACTIVE. (excluding current through switched on current source) and the charge pump, if required. The charge pump can be automatically switched on/off depending on the pattern (see register cp_auto_on in the charge pump section) to reduce the overall current consumption. Figure 17 – LED Pattern Generator AS3689 for pattern_color = 0 Defined by bit in the setup register pattern_data in this example the code is 101110011... any current sink ca I 1 2 3 4 5 6 7 8 9 ... 32 1 2 3 4 5 6 7 8 9 ... At this time a delay of 0s,1s(8s),2s(16s) or 3s(24s) can be programmed ch ni 31.25ms (250ms if pattern_slow=1) t Te To select the different current sinks to be controlled by the LED pattern generator, see the ‘xxxx’_mode registers (where ‘xxxx’ stands for the to be controlled current sink, e.g. curr1_mode for CURR1 current sink). See also the descirption of the different current sinks. To allow the generator of a color patterns set the bit pattern_color to ‘1’. Then the pattern can be connected e.g. to RGB1/RGB2/RGB3 as follows: www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 35 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 18 – LED Pattern Generator AS3689 for pattern_color = 1 Defined by bit in the setup register pattern_data in this example the code is 111110001011111000110111... 14 7 ... 28 1 4 7 ... RGB2/CURR2/CURR42/CURR31 25 8 ... 29 2 5 8 ... RGB3/CURR6/CURR43/CURR32,33 36 9 ... 30 3 6 9 ... t At this time a delay of 0s,1s(8s),2s(16s) or 3s(24s) can be programmed lv 100ms (800ms if pattern_slow=1) al id I RGB1/CURR1/CURR41/CURR30 Only those current sinks will be controlled, where the ‘xxxx’_mode register is configured for LED pattern. am lc s on A te G nt st il If the register bit pattern_slow is set, all pattern times are increased by a factor of eigth. (bit duration: 250ms if pattern_color=0 / 800ms if pattern_color=1, delays between pattern up to 24s). 7.4.5.1 Soft Dimming for Pattern The internal pattern generator can be combined with the internal pwm dimming modulator to obtain as shown in the following figure: Figure 19 – Softdimming Architecture for the AS3689 (softdim_pattern=1 and pattern_color = 1) Pattern Generator set RS reset Flip Flop out set RS reset Flip Flop out set RS reset Flip Flop out RGB1/CURR1/CURR41/CURR30 ca Zero Detect 8 RGB3/CURR6/CURR43/CURR32,33 controls current sources (on/off) for current source where currX_mode = LED pattern PWM Modulator ni up down Dimming Ramp Gen RGB2/CURR2/CURR42/CURR31 Te ch With the AS3689 smooth fade-in and fade-out effects can be automatically generated. As there is only one dimming ramp generator and one pwm modulator following constraints have to be considered when setting up the pattern (applies only if pattern_color=1): www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 36 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 20 – Softdimming example Waveform for RGB1, RGB2 and RGB3 ok RGB2 ok RGB3 not possible am lc s on A te G nt st il A new dimming up (RGB3) cannot be started after or while one channel (RGB1) is dimming up lv RGB1 al id A new dimming up (RGB2) can be started after the dimming down (RGB1) is finished However using the identical dimming waveform for two channels is possible as shown in the following figure: Figure 21 – Softdimming example Waveform for RGB1, RGB2 and RGB3 RGB1 ok RGB2 ok RGB3 ok 7.4.5.2 LED Pattern Registers Addr: 19h,1Ah,1Bh,1Ch Pattern data0, Pattern data1, Pattern data2, Pattern data3 This registers contains the pattern data for the RGB current sinks. Bit Bit Name Default Access Description pattern_data0[7:0] 1 0 R/W Pattern data0 7:0 pattern_data1[15:8] 1 0 R/W Pattern data1 7:0 pattern_data2[23:16] 1 0 R/W Pattern data2 0 R/W Pattern data3 ch ni ca 7:0 pattern_data3[31:24] 1 Te 7:0 Note: 1. Update any of the pattern register only if none of the current sources is connected to the pattern generator (‘xxxx’_mode must not be 11b). The pattern generator is automatically started at the same time when any of the current sources is connected to the pattern generator www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 37 - 70 AS3689 Datasheet, Confidential Addr: 18h austriamicrosystems Pattern control This register controls the RGB pattern Default Access Description Defines the pattern type for the RGBx current sinks 0b = single 32 bit pattern (also set rgbx_mode = 11) 0 R/W 1b = RGB pattern with each 10 bits (set all rgbx_mode = 11) Delay between pattern 00b = 0 sec 01b = 1 sec (8 sec if pattern_slow=1) 0 R/W 10b = 2 sec (16 sec if pattern_slow=1) 11b = 3 sec (24 sec if pattern_slow=1) Enable the ‘soft’ dimming feature for the pattern generator 0 = Pattern generator directly control current sources 0b R/W 1 = ‘Soft Dimming’ is performed – see section ’Soft Dimming for pattern’ Additional CURR33 LED pattern control bit 0b = CURR30 controlled according curr30_mode register 0b R/W 1b = CURR30 controlled by LED pattern generator Bit Name 0 pattern_color 2:1 pattern_delay 3 softdim_pattern 4 curr30_pattern 5 curr31_pattern 0b R/W Additional CURR33 LED pattern control bit 0b = CURR31 controlled according curr31_mode register 1b = CURR31 controlled by LED pattern generator 6 curr32_pattern 0b R/W Additional CURR33 LED pattern control bit 0b = CURR32 controlled according curr32_mode register 1b = CURR32 controlled by LED pattern generator 7 curr33_pattern 0b R/W Additional CURR33 LED pattern control bit 0b = CURR33 controlled according curr33_mode register 1b = CURR33 controlled by LED pattern generator lv am lc s on A te G nt st il Addr: 2Ch al id Bit gpio_current Bit Bit Name 6 pattern_slow Default Access 0 R/W Description Pattern timing control 0b = normal mode 1b = slow mode (all pattern times are increased by a factor of eight) 7.4.6 External Overtemp comparator ni ca If the LED temperature for CURR3x flash led is monitored with an external temperature sensor, the current sink CURR3x can be automatically switched from strobe to preview current levels, if the external temperature sensor’s voltage drops below VOVtemp. to avoid overheating of the flash LED. The overtemperature comparator is multiplexed to GPIO and is switched on automatically, if Bit curr3x_ext_ovtemp is set. Symbol Parameter Min Typ Max Unit VOVtemp Comparator switch level 1.22 1.25 1.28 V www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 Note Te ch Table 16 – Overtemp comparator Characteristics 38 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.4.6.1 Overtemp comparator Registers Curr3 control1 Bit Bit Name 0 preview_off_after strobe This register select the modes of the current sinks30..33 current. Default Access Description Select the switch off mode after strobe pulse 0b R/W 0=normal preview/strobe mode, 1=switch off preview after strobe duration has expired 2:1 preview_ctrl 00b R/W Preview is triggered by 00b = off 01b = software trigger 10b = GPIO active high 11b = GPIO active low 3 0 0b R/W reserved 5 curr3x_strobe_high 0b R/W 6 0 0b R/W Addr: 2Bh Bit Bit Name 5 ovtemp_ext Addr: 2Ch 0b R/W lv curr3x_ext_ovtemp Selects overtemperature switch off of flash LED 0b = normal operation of CURR3x 1b = if the voltage on GPIO drops below 1.25V (above 1.25V if ext_ov_temp_inv=1), CURR3x is switched from strobe to preview current levels (can be used to monitor the temperature of the flash led or as general input to reduce the current through the flash LED e.g. to temporarily reduce the current from the battery) Doubles curr3x current during strobe 0b = normal operation of CURR3x (0..160 mA) 1b = Doubles current during strobe (0..320mA) am lc s on A te G nt st il 4 al id Addr: 12h reserved Curr low voltage status2 This register controls the curr42 current sink current. Default Access Description Overtemp comparator status bit 0b = no overtemperature, GPIO>1.25V NA R 1b = overtemperature, GPIO<1.25V gpio current Bit Name 0 ext_ov_temp_inv Default Access 0 R/w Description Polarity of external overtemp comparator 0b = active high (Overtemperature when Vgpio>1.25V) 1b = active low (Overtemperature when Vgpio< 1.25V) ni ca Bit ch 7.4.7 External chargepump Te This external charge pump uses external schottky diodes and capacitors to generate low current outputs in the range of –15V to +15V. The device delivers a square wave signals and an inverted square wave signals at 250kHz or 500kHz with full Battery voltage swing. Depending on the external configuration the battery voltage is multiplied and / or inverted. A feedback loop with a dedicated regulation pin controls the output voltage by modulating the duty circle. E.g.: There are 3 Schottky Diodes, 2 Resistors and 3 Capacitors externally required for –6V output voltage. For the Schottky Diodes the BAS40 (2 diodes in a SOT666 package) is recommended. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 39 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 17 – External Charge Pump Characteristics Parameter Min Typ Max Unit Note Vfb00 Negative output mode feedback voltage -20 0 20 mV Regulated, with internal current source Ifb Feedback current 9.7 10 10.3 µA Current sourced at feedback pin for negative mode Vfb01 Positive output mode feedback voltage 1.22 1.25 1.28 V Regulated, with two external resistors Vout00 Output Voltage mode 00b -6 V with external 600k resistor Vout01 Output Voltage mode 01b 15 V η Efficiency Iout Output Current 10 mA Iout Output Current 5 mA al id Symbol with external 125kΩ resistor 85 Battery Voltage 3.5V % Battery Voltage 4.2V @ -6V am lc s on A te G nt st il 70 lv and 1.375 MΩ @ +15V Figure 22 – Charge Pump for Generation of negative voltages 10µA RGB3 Pulse Skip 220pF 600kΩ -6V, 10mA O-LED Charge Pump RGB2 2.2µF 100nF 2x BAS40 RGB1 100nF AS3689 Te ch ni ca 100nF www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 40 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 23 – Charge Pump for Generation of positive voltages 10µA 125kΩ Pulse Skip RGB3 1.25V 220pF 1.375MΩ O-LED Charge Pump RGB1 3x BAS40 am lc s on A te G nt st il AS3689 lv RGB2 2.2µF al id 15V, 5mA V BAT 7.4.7.1 External chargepump Registers Addr: 00h Bit Name 4 cp_ext_on ca Bit Addr: 1Dh Bit Name cp_ext_mode ch 1:0 Ext. chargepump mode This register selects the modes of the external chargepump Default Access Description Selects the mode of the Ext. charge pump 00b = regulate to negative voltage (e.g.: -6V) 0 R/W 01b = regulate to positive voltage (e.g.:+15V) 10b = unregulated (free running) 11b = reserved Select the mode of the current sink CURR41 Selects the switching frequency 00b = 250kHz 0 R/W 01b = 500kHz 10b = 1MHz 11b = NA Driving capability of ext. charge pump 0b = normal current = Iout 0 R/W 1b = reduced current = Iout / 4 Output noise and ripple will be reduced ni Bit Reg. Control This register enables/disables the LDOs, Charge Pumps, Charge Pump LEDs, current sinks, the Step Up DC/DC Converter. Default Access Description Enable the external chargepump 0 R/W 0b = Disable the external chargepump. 1b = Enable the external chargepump cp_ext_clk<1:0> 4 cp_ext_lowcurr Te 3:2 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 41 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.4.8 PWM Generator The PWM generator can be used for any current sink (CURR1, CURR2, CURR3x, CURR4x, CURR5x, CURR6, RGBx).. It can be programmed to use the pin GPIO (pwm_mode=0) or an internal PWM generator (pwm_mode=1). The setting applies for all current sinks, which are controlled by the pwm generator (e.g. CURR1 is pwm controlled if curr1_mode = 10, RGB1 is pwm controlled if rgb1_mode = 10). The pwm modulated signal (internal / external) can switch on/off the current sinks and therefore depending on its duty cycle change the brightness of an attached LED. al id 7.4.8.1 Internal PWM Generator The internal PWM generator uses the 2MHz internal clock as input frequency and its dimming range is 6 bits digital (2MHz / 2^6 = 31.3kHz pwm frequency) and 2 bits analog. Depending on the actual code in the register ‘pwm_code’ the following algorithm is used: If pwm_code bit 7 = 1 Then the upper 6 bits (Bits 7:2) of pwm_code are used for the 6 bits PWM generation, which controls the selected currents sinks directly If pwm_code bit 7 =0 and bit 6 = 1 Then bits 6:1 of pwm_code are used for the 6 bits PWM generation. This signal controls the selected current sinks, but the analog current of these sinks is divided by 2 If pwm_code bit 7 and bit 6 = 0 Then bits 5:0 of pwm_code are used for the 6 bits PWM generation. This signal controls the selected current sinks, but the analog current of these sinks is divided by 4 Figure 24 – PWM Control 0 0 0 am lc s on A te G nt st il lv to current sink(s) but analog currents are divided by 4 6 bit PWM to current sink(s) but analog currents are divided by 2 6 bit PWM 6 bit PWM to current sink(s) Te ch ni ca 7 6 5 4 3 2 1 0 pwm_code www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 42 - 70 AS3689 Datasheet, Confidential austriamicrosystems Automatic Up/Down Dimming If the register pwm_dim_mode is set to 01 (up dimming) or 10 (down dimming) the value within the register th th pwm_code is increased (up dimming) or decreased (down dimming) every time and amount (either 1/4 or 1/8 ) defined by the register pwm_dim_speed. The maximum value of 255 (completely on) and the minimum value of 0 (off) is never exceeded. It is used to smoothly and automatically dim the brightness of the LEDs connceted to any of the current sinks. The PWM code is readable all the time (Also during up and down dimming) The waveform for up dimming looks as follows (cycles omitted for simplicity): al id Figure 25 – PWM Dimming Waveform for up dimming (pwm_dim_mode = 01); currX_mode = PWM controlled (not all steps shown) I currX_current lv I/2 I/4 t next step: I/2 with 50% duty cycle am lc s on A te G nt st il 32µs I/4 with up to 100% duty cycle The internal pwm modulator circuit controls the current sinks as shown in the following figure: Figure 26 – PWM Control Circuit (currX_mode = 10b (PWM controlled)); X = any current sink Adder Logic currX_adder currX_current 8 /2 0 8 /4 From serial Interface pwm_code 2MHz PWM Modulator if pwm_dim_mode = 01 or 10 subX_en IDAC CURRX 8 adder_currentX Only for RGB1,2,3 CURR41,42,43 CURR1, CURR2 ca Dimming Ramp Gen 8 8 ch ni The adder logic (available for RGB1, RGB2, RGB3, CURR41, CURR42, CURR43, CURR1 and CURR2) is intended to allow dimming not only from 0% to 100% (or 100% to 0%) of currX_current, but also e.g. from 10% to 110% (or 110% to 10%) of currX_current. That means for up dimming the starting current is defined by 0 + currX_adder and the end current is defined by currX_current + currX_adder. An overflow of the internal bus (8 Bits wide to the IDAC) has to be avoided by the register settings (currX_current + currX_adder must not exceed 255). Te If the register subX_en is set, the result from the pwm_modulator is inverted logically. That means for up dimming the starting current is defined by currX_adder - 1 and the end current is defined by currX_adder currX_current - 1. An overflow of the internal bus (8 Bits wide to the IDAC) has to be avoided by the register settings (currX_adder - currX_current - 1 must not be below zero). Its purpose is to dim one channel e.g. CURR41 from e.g. 110% to 10% of curr41_current and at the same time dim another channel e.g. CURR42 from 20% to 120% of curr42_current. Note: 1. 2. The adder logic operates independent of the currX_mode setting, but its main purpose is to work together with the pwm modulator (improved up/down dimming) If the adder logic is not used anymore, set the bit currX_adder to 0. (Setting adder_currentX to 0 is not sufficient) www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 43 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 27 – PWM Dimming Table Seconds Seconds Seconds Seconds Step %Dimming PWM %Dimming PWM 50msec/ Step 25msec/ Step 5msec/ Step 2,5msec/ Step 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 100,0 75,3 56,5 42,4 31,8 23,9 18,0 13,7 10,6 8,2 6,3 4,7 3,5 2,7 2,4 2,0 1,6 1,2 0,8 0,4 255 192 144 108 81 61 46 35 27 21 16 12 9 7 6 5 4 3 2 1 100,0 87,8 76,9 67,5 59,2 52,2 45,9 40,4 35,7 31,4 27,5 24,3 21,6 19,2 16,9 14,9 13,3 11,8 10,6 9,4 255 224 196 172 151 133 117 103 91 80 70 62 55 49 43 38 34 30 27 24 0,00s 0,05s 0,10s 0,15s 0,20s 0,25s 0,30s 0,35s 0,40s 0,45s 0,50s 0,55s 0,60s 0,65s 0,70s 0,75s 0,80s 0,85s 0,90s 0,95s 0,00s 0,03s 0,05s 0,08s 0,10s 0,13s 0,15s 0,18s 0,20s 0,23s 0,25s 0,28s 0,30s 0,33s 0,35s 0,38s 0,40s 0,43s 0,45s 0,48s 0,000s 0,005s 0,010s 0,015s 0,020s 0,025s 0,030s 0,035s 0,040s 0,045s 0,050s 0,055s 0,060s 0,065s 0,070s 0,075s 0,080s 0,085s 0,090s 0,095s 0,000s 0,003s 0,005s 0,008s 0,010s 0,013s 0,015s 0,018s 0,020s 0,023s 0,025s 0,028s 0,030s 0,033s 0,035s 0,038s 0,040s 0,043s 0,045s 0,048s 21 0,0 0 8,2 21 1,00s 0,50s 0,100s 0,050s 7,5 6,7 5,9 5,5 5,1 4,7 4,3 3,9 3,5 3,1 2,7 2,4 2,0 1,6 1,2 0,8 0,4 19 17 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 1,05s 1,10s 1,15s 1,20s 1,25s 1,30s 1,35s 1,40s 1,45s 1,50s 1,55s 1,60s 1,65s 1,70s 1,75s 1,80s 1,85s 0,53s 0,55s 0,58s 0,60s 0,63s 0,65s 0,68s 0,70s 0,73s 0,75s 0,78s 0,80s 0,83s 0,85s 0,88s 0,90s 0,93s 0,105s 0,110s 0,115s 0,120s 0,125s 0,130s 0,135s 0,140s 0,145s 0,150s 0,155s 0,160s 0,165s 0,170s 0,175s 0,180s 0,185s 0,053s 0,055s 0,058s 0,060s 0,063s 0,065s 0,068s 0,070s 0,073s 0,075s 0,078s 0,080s 0,083s 0,085s 0,088s 0,090s 0,093s 0,0 0 1,90s 0,95s 0,190s 0,095s lv am lc s on A te G nt st il ca ni ch 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 al id Decrease by 1/4th every Decrease by 1/8th every step step Te 39 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 44 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.4.8.2 PWM Generator Registers Bit Bit Name 0 pwm_mode Pwm control This register controls PWM generator Default Access Description Selects the PWM source 0b = Use external PWM from GPIO; also set pwm_gpio to 1 1b R/W 1b = Use internal PWM (default) pwm_dim_mode 00b R/W 5:3 pwm_dim_speed 000b R/W 6 pwm_gpio 0b R/W Addr: 17h Bit Pwm code Bit Name pwm_code ch Bit Name adder_current1 Te 7:0 Adder Current 1 This register defines the current which can be added to CURR1, CURR41, RGB1 Default Access Description Selects the added current value – do not exceed together with currX_current the internal 8 Bit range (see text) 00h = 0 (represents 0mA) 00b R/W ... FFh = 255 (represents 38.25mA) ni Addr: 30h Bit This register controls the Pwm code. Default Access Description Selects the PWM code 00h = Always 0 00b R/W ... FFh = Always 1 ca 7:0 am lc s on A te G nt st il lv 2:1 Selects the dimming mode 00b = no dimming; actual content of register pwm_code is used for pwm generator 01b = logarithmic up dimming (codes are increased). Start value is actual pwm_code 10b = logarithmic down dimming (codes are decreased) Start value is actual pwm_code; switch off the dimmed current source after dimming is finished to avoid unnecessary quiescent current 11b = NA Defines dimming speed by increase/descrease pwm_code … th 000b = … by 1/4 every 50 msec (total dim time 1.0s) th 001b = … by 1/8 every 50 msec (total dim time 1.9s) th 010b = … by 1/4 every 25 msec (total dim time 0.5s) th 011b = … by 1/8 every 25 msec (total dim time 0.95s) th 100b = … by 1/4 every 5 msec (total dim time 100ms) th 101b = … by 1/8 every 5 msec (total dim time 190ms) th 110b = … by 1/4 every 2.5 msec (total dim time 50ms) th 111b = … by 1/8 every 2.5 msec (total dim time 95ms) Selects the PWM source 0b = default state 1b = If the external pwm from GPIO is used set to bit to ‘1’ al id Addr: 16h www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 45 - 70 AS3689 Datasheet, Confidential Adder Current 2 Bit Bit Name 7:0 adder_current2 Adder Current 3 Bit Name 7:0 adder_current3 Addr: 33h Bit Name 0 rgb1_adder 1 rgb2_adder 2 rgb3_adder 3 curr41_adder 4 curr42_adder 5 curr43_adder Adder Enable 1 Enables the adder circuit for the selected current sources Default Access Description Enables adder circuit for current source RGB1 0 R/W 0 = Normal Operation of the current source 1 = adder_current1 gets added to the current source current Enables adder circuit for current source RGB2 0 R/W 0 = Normal Operation of the current source 1 = adder_current2 gets added to the current source current Enables adder circuit for current source RGB3 0 R/W 0 = Normal Operation of the current source 1 = adder_current3 gets added to the current source current Enables adder circuit for current source CURR41 0 R/W 0 = Normal Operation of the current source 1 = adder_current1 gets added to the current source current Enables adder circuit for current source CURR42 0 R/W 0 = Normal Operation of the current source 1 = adder_current2 gets added to the current source current Enables adder circuit for current source CURR43 0 R/W 0 = Normal Operation of the current source 1 = adder_current3 gets added to the current source current ca Bit Adder Enable 2 Enables the adder circuit for the selected current sources Default Access Description Enables adder circuit for current source CURR1 0 R/W 0 = Normal Operation of the current source 1 = adder_current1 gets added to the current source current Enables adder circuit for current source CURR2 0 R/W 0 = Normal Operation of the current source 1 = adder_current2 gets added to the current source current ni Addr: 34h Bit Name ch Bit This register defines the current which can be added to CURR43, RGB3 Default Access Description Selects the added current value – do not exceed together with currX_current the internal 8 Bit range (see text) 00h = 0 (represents 0mA) 00b R/W ... FFh = 255 (represents 38.25mA) am lc s on A te G nt st il Bit lv Addr: 32h This register defines the current which can be added to CURR2, CURR42, RGB2 Default Access Description Selects the added current value – do not exceed together with currX_current the internal 8 Bit range (see text) 00h = 0 (represents 0mA) 00b R/W ... FFh = 255 (represents 38.25mA) al id Addr: 31h austriamicrosystems curr1_adder 1 curr2_adder Te 0 www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 46 - 70 AS3689 Datasheet, Confidential austriamicrosystems Addr: 35h Subtract Enable 0 sub_en1 1 sub_en2 2 sub_en3 General Purpose Input / Outputs am lc s on A te G nt st il 7.5 Enable the inversion from the signal from the pwm generator Default Access Description Inverts the signal from the pwm generator 0 = Direct Operation (no inversion) 0 R/W 1 = The signal from the pwm generator for which the adder is enabled (curr1_adder = 1, curr41_adder = 1, rgb1_adder = 1) is inverted Inverts the signal from the pwm generator 0 = Direct Operation (no inversion) 0 R/W 1 = The signal from the pwm generator for which the adder is enabled (curr2_adder = 1, curr42_adder = 1, rgb2_adder = 1) is inverted Inverts the signal from the pwm generator 0 = Direct Operation (no inversion) 0 R/W 1 = The signal from the pwm generator for which the adder is enabled (curr42_adder = 1, rgb3_adder = 1) is inverted al id Bit Name lv Bit GPIO,GPI are highly-configurable general purpose input/output pins which can be used for the following functionality: Digital Schmitt-Trigger Input Digital Output with 4mA Driving Capability at 2.8V Supply (VDD_GPIO) Tristate Output Analog Input to the ADC Strobe for Camera Flash Current Sink (GPI) Preview Current set input for Camera Flash Current Sink (GPIO) PWM operation with all current sinks (GPIO); number of current sources using this PWM input is fully configurable Flash led overtemperature protection (GPIO) Default Mode for GPI is Input ca Default Mode for GPIO is Input (Pull-Down) ni Table 18 – GPIO Pin Function Summary GPIO Pin ch GPIO Te GPI Configuration Additional Function Digital Input, Totem-Pole Output (Push/Pull), ADC Input; PWM Input, Preview Input for Open Drain (PMOS or NMOS), High-Z, Photocamera Flash LED (CURR3x) Pull-Down or Pull-Up Resistor ADC Input; Strobe Input for Photocamera Digital Input Flash LED (CURR3x) www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 47 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 28 – GPIO Pin Connections V DD_GPIO al id Pullup Open, when gpio_pulls = 11 (ADC) GPIO Pins CPIO Control Registers Interface GPIO am lc s on A te G nt st il lv Pulldown Vss 7.5.1 GPIO Characteristics Table 19 – GPIO DC Characteristics Symbol Parameter Pull up/Pull down Resistance Min Max Unit 30 75 kΩ Supply Voltage 1.5 3.3 V VIH High Level Input Voltage 0.7·Vgpio VIL Low Level Input Voltage VHYS Hysteresis 0.1· Vgpio Input Leakage Current -5 Rpull Vgpio ILEAK VOL Low Level Output Voltage ni ca High Level Output Voltage 0.8·Vgpio Te CLOAD V V 5 0.2· Vgpio µA To Vgpio and VSS V at - Iout V at Iout 4 Vgpio = 2.8V, gpio_low_curr = 1 16 Vgpio = 2.8V, gpio_low_curr = 0 Driving Capability mA 1 ch Iout V 0.3· Vgpio VOH Note Vgpio = 1.5V, gpio_low_curr = 1 guaranteed by design. 4 Capacitive Load Vgpio = 1.5V, gpio_low_curr = 0 guaranteed by design. 50 pF Vgpio is used as the supply voltage for all GPIOs. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 48 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.5.2 GPIO Registers Addr: 05h GPIO Output This register controls GPIO outputs. Default Access Bit Name 0 0 0 R/W reserved 1 0 0 R/W reserved 2 gpio_out 0 R/W 3 gpi_en 0 R/W 4 gpi_curr30_en 0 R/W 5 gpi_curr31_en 0 R/W 6 gpi_curr32_en 0 R/W 7 gpi_curr33_en 0 R/W Bit Name 0 0 1 0 2 gpio_in 3 gpi_in 4 curr30_in 5 This register controls GPIO outputs. Default Access Description R reserved N/A R reserved N/A R Reads a logic signal from pin GPIO; this is independent of any other setting e.g., bits Error! Reference source not found.. N/A R Reads a logic signal from pin GPI; if gpi_en=1 N/A R Reads a logic signal from pin CURR31; if gpi_curr31_en=1 curr31_in N/A R Reads a logic signal from pin CURR31; if gpi_curr31_en=1 curr32_in N/A R Reads a logic signal from pin CURR32; if gpi_curr32_en=1 N/A R Reads a logic signal from pin CURR33; if gpi_curr33_en=1 ni ca N/A ch 7 lv GPIO Signal Bit 6 Writes a logic signal to pin GPIO; this is independent of any other bit setting e.g., gpio_mode. Enables the GPI input. Set to 1 if used for strobe trigger. 0 = input disabled 1 = input enabled; can be used for strobe trigger Enables the CURR30 input. 0 = input disabled 1 = input enabled Enables the CURR31 input. 0 = input disabled 1 = input enabled Enables the CURR32 input. 0 = input disabled 1 = input enabled Enables the CURR33 input. 0 = input disabled 1 = input enabled am lc s on A te G nt st il Addr: 06h Description al id Bit curr33_in Te Addr: 1Fh Bit Bit Name 1:0 gpio_mode GPIO control This register controls pins GPIO pin functions. Default Access Description. Defines the direction for pin GPIO. 00 = Input only; can be used for external PWM or preview mode 00 R/W 01 = Output (push and pull). 10 = Output (open drain, only push; only NMOS is active). www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 49 - 70 AS3689 Datasheet, Confidential Addr: 1Fh GPIO control This register controls pins GPIO pin functions. Default Access Description. 11= Output (open drain, only pull; only PMOS is active). Bit Name gpio_pulls 11 GPIO driving cap This register enables low current mode for GPIOs. Default Access Description 0 R/W reserved 0 R/W reserved Defines the driving capability of pin GPIO. 0 R/W 0 = Iout 1 = Iout /4 am lc s on A te G nt st il Addr: 20h Bit 0 1 Bit Name 0 0 2 gpio_low_curr 7.6 R/W lv 3:2 Adds the following pullup/pulldown to pin GPIO; this is independent of setting of bits gpio_mode. 00 = None 01 = Pulldown 10 = Pullup 11= ADC input (gpio_mode = XX); recommended for analog signals. al id Bit austriamicrosystems LED Test Figure 29 – LED Function Testing Detect Shorted LEDs From DCDC Step Up Converter D1 C9 4.7µF R3 1M I(step_up_vtuning) Interface From Charge Pump CPOUT C8 2.2µF ADC ... Detect Open LEDs Te ... ch Baseband Processor ni ca DCDC_FB The AS3689 supports the verification of the functionality of the connected LEDs (open and shorted LEDs can be detected). This feature is especially useful in production test to verify the correct assembly of the LEDs, all its connectors and cables. It can also be used in the field to verify if any of the LEDs is damaged. A damaged LED can then be disabled (to avoid unnecessary currents). The current sources, charge pump, dcdc converter and the internal ADC are used to verify the forward voltage of the LEDs. If this forward voltage is within the specified limits of the LEDs, the external circuitry is assumed to operate. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 50 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.6.1 Function Testing for single LEDs connected to the Charge Pump For any current source connected to the charge pump (usually RGB{1,2,3}, CURR{30,31,32,33,41,42,43,51,52}) where only one LED is connected between the charge pump and the current sink (see Figure 1) use: Table 20 – Function Testing for LEDs connected to the Charge Pump 3. 4. 5. 6. 7. 8. al id 2. Compare the difference between the ADC measurements (which is the actual voltage across the tested LED) against the specification limits of the tested LED Do the same procedure for the next LED starting from point 2 Switch off the charge pump set chargepump automatic mode lv 1. Action Example Code Switch on the charge pump and set it into manual 1:2 Reg 23h <- 14h (cp_mode = 1:2, manual) mode (to avoid automatic mode switching during Reg 00h <- 04h (cp _on = 1) measurements) e.g. for register CURR31set to 9mA use Switch on the current sink for the LED to be tested Reg 10h <- 0Fh (curr3x_other = 9mA) Reg 03h <- 0ch (curr31_mode = curr3x_other) Reg 26h <- 95h (adc_select=CP_OUT,start ADC) Measure with the ADC the voltage on CP_OUT Fetch the ADC result from Reg 27h and 28h Measure with the ADC the voltage on the switched on Reg 26h <- 8bh (adc_select=CURR31,start ADC) current sink Fetch the ADC result from Reg 27h and 28h Switch off the current sink for the LED to be tested Reg 03h <- 00h (curr31_mode = off) Calculation performed in baseband uProcessor am lc s on A te G nt st il Step Jump to 2. If not all the LEDs have been tested Reg 00h <- 00h (cp _on = 0) Reg 23h <- 00h 7.6.2 Function Testing for LEDs connected to the Step Up DCDC Converter For LEDs connected to the DCDC converter (usually current sinks CURR1,CURR2 and CURR6) use the following procedure: Table 21 – Function Testing for LEDs connected to the DCDC converter Step 1. 2. Action Switch on the current sink for the LED string to be tested (CURR1,2 or 6) Select the feedback path for the LED string to be tested (e.g. step_up_fb = 01 for LED string on CURR1) Set the current for step_up_vtuning exactly above the maximum forward voltage of the tested LED string + 0.6V (for the current sink) + 0.25V; add 6% margin (accuracy of step_up_vtuning); this sets the maximum output voltage limit for the DCDC converter Example Code e.g. Test LEDs on CURR1: Reg 01h <- 01h (curr1_mode=on) Reg 09h <- 3ch (curr1 = 9mA) Reg 21h <- 02h (feedback=curr1) Set stepup_prot = 1 5. Switch on the DCDC converter Reg 00h <- 08h ni ch 3. ca 4. e.g. 4 LEDs with UfMAX = 4.1V gives 17.25V +6% = 18.29V; if R3=1MΩ and R4 = open, then select step_up_vtuning = 18 (Reg 21h <- 92h; results in 19.25V overvoltage protection voltage – see table in DCDC section) Reg 22h <- 04h 6. Wait 80ms (DCDC_FB settling time) 7. Measure the voltage on DCDC_FB (ADC) Reg 26h <- 96h (adc_select=DCDC_FB, start ADC; Fetch the ADC result from Reg 27h and 28h) If the voltage on DCDC_FB is above 1.0V, the tested (Code >199h) LED string is broken – then skip the following steps 9. Switch off the overvoltage protection (stepup_prot = 0) Reg 22h <- 00h Te 8. 10. 11. Reduce step_up_vtuning step by step until the measured voltage on DCDC_FB (ADC) is above 1.0V. e.g.: Reg 21h <- 62h (step_up_vtuning=12): ADC result=1,602V After changing step_up_vtuning always wait 80ms, before AD-conversion Measure voltage on DCDC_FB e.g. DCDC_FB=1.602V www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 51 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 21 – Function Testing for LEDs connected to the DCDC converter 12. 13. 14. Action Example Code Switch off the DCDC converter Reg 00h <- 00h The voltage on the LED string can be calculated now as follows (R4 = open): VLEDSTRING = V(DCDC_FB) + I(step_up_vtuning) * R3 – 0.5V (current sinks feedback voltage: VFB2). V(DCDC_FB) = ADC Measurement from point 11 I(step_up_vtuing) = last setting used for point 10 Compare the calculated value against the specification limits of the tested LEDs e.g.: VLED = (1.602V + 12V – 0.5V) / 4 = 3.276V al id Step 7.7 lv With the above described procedures electrically open and shorted LEDs can be automatically detected. Analog-To-Digital Converter am lc s on A te G nt st il The AS3689 has a built-in 10-bit successive approximation analog-to-digital converter (ADC). It is internally supplied by V2_5, which is also the full-scale input range (0V defines the ADC zero-code). For input signal exceeding V2_5 (typ. 2.5V) a resistor divider with a gain of 0.4 (Ratioprescaler) is used to scale the input of the ADC converter. Consequently the resolution is: Table 22 – ADC Input Ranges, Compliances and Resolution Channels (Pins) Input Range VLSB Note GPIO, GPI, DCDC_FB 0V-2.5V 2.44mV VLSB=2.5/1024 ADCTEMP_CODE -30°C to 125°C 1 / ADCTC junction temperature RGB1,RGB2,RGB3, CURR{30, 31, 32, 33, 41, 42, 43, 51,52} VBAT2, CP_OUT 0V-5.5V 6.1mV VLSB=2.5/1024 * 1/0.4; internal resistor divider used CURR1, CURR2, CURR6 0V-1.0V 2.44mV VLSB=2.5/1024 Table 23 – ADC Parameters Parameter Min Resolution 10 Input Voltage Range VSS ca Symbol Vin Typ Max Unit Bit Vsupply V Differential Non-Linearity ± 0.25 LSB INL Integral Non-Linearity ± 0.5 LSB Input Offset Voltage ± 0.25 LSB Input Impedance ch Rin ni DNL Vos Note 100 Vsupply = V2_5 MΩ Input Capacitance Vsupply (V2_5) Power Supply Range 2.5 V ± 2%, internally trimmed. Idd Power Supply Current 500 µA During conversion only. Idd Power Down Current 100 nA Te Cin TTOL ADCTOFFSET ADCTC Temperature Sensor Accuracy ADC temperature measurement offset value Code temperature coefficient www.austriamicrosystems.com (mlg, ptr) 9 -10 +10 pF °C 375 Code 1.2939 Code/°C Revision 1.0.2 / 20070115 @ 25 °C Temperature coefficient of ADC code for temperature 52 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 23 – ADC Parameters Symbol Parameter Min Typ Max Unit Note measurement VGPIOCURR IGPIOCURR Ratio of Prescaler For all low voltage current sinks, CP_OUT and VBAT2 0.4 Voltage Compliance of current source for GPIO Current Accuracy for GPIO current source 0.0 1.35 V +1.0µA V Current Source for pin GPIO -1.0µA 1-15µA al id Ratioprescaler Transient Parameters (2.5V, 25 ºC) Tc Conversion Time 27 µs fc Clock Frequency 1.0 MHz All signal are Internally generated and triggered by start_conversion lv ts Settling Time of S&H 16 µs The junction temperature (TJUNCTION) can be calculated with the following formula (ADCTEMP_CODE is the adc conversion result for channel 04h selected by register adc_select = 000100b): am lc s on A te G nt st il TJUNCTION [°C] = ADCTOFFSET - ADCTC · ADCTEMP_CODE 7.7.1 ADC Registers Addr: 27h ADC_MSB Result Together with Register 27h, this register contains the results (MSB) of an ADC cycle. Default Access Description Bit Bit Name 6:0 D9:D3 7 result_not_ready Addr: 28h Bit Bit Name 2:0 D2:D0 7:3 N/A R ADC results register. Indicates end of ADC conversion cycle. 0 = Result is ready. 1 = Conversion is running. ADC_LSB Result Together with Register 28h, this register contains the results (LSB) of an ADC cycle Default Access Description N/A R ADC result register. ca ADC_control This register input source selection and initialization of ADC. Default Access Description Selects input source as ADC input. 000000 (00h) = reserved 000001 (01h) = reserved 000010 (02h) = GPIO 000011 (03h) = GPI 000100 (04h) = reserved 000101 (05h) = RGB1 0 R/W 000110 (06h) = RGB2 000111 (07h) = RGB3 001000 (08h) = CURR1 001001 (09h) = CURR2 001010 (0Ah) = CURR30 001011 (0Bh) = CURR31 001100 (0Ch) = CURR32 ni ch Bit Name Te 5:0 R N/A Addr: 26h Bit N/A 1 adc_select www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 53 - 70 AS3689 Datasheet, Confidential austriamicrosystems Addr: 26h This register input source selection and initialization of ADC. Default Access Description 001101 (0Dh) = CURR33 001110 (0Eh) = CURR41 001111 (0Fh) = CURR42 010000 (10h) = CURR43 010001 (11h) = CURR51 010010 (12h) = CURR52 010011 (13h) = CURR6 010100 (14h) = VBAT2 010101 (15h) = CP_OUT 010110 (16h) = DCDC_FB 010111 (17h) = ADCTEMP_CODE (junction temperature) 011xxx, 1xxxxx = reserved NA Bit Name al id Bit ADC_control lv 6 am lc s on A te G nt st il Writing a 1 into this bit starts one ADC conversion cycle. 7 start_conversion N/A W Notes: 1. See Table ‘ADC Input Ranges, Compliances and Resolution’ for ADC ranges and possible Addr: 2Ch GPIO current Bit Bit Name 3:1 gpio_curr controls the output current of pin GPIO (e.g. for light sensor) Default Access Description 000 off 001 2uA 000 R/W 010 4uA … 111 14uA Figure 30 – ADC Pin Connections GPIO GPI CURR1 CURR2 CURR6 DCDC_FB V2_5 vtemp RGB1 RGB2 RGB3 CURR30 CURR31 CURR32 CURR33 CURR41 CURR42 CURR43 CURR51 CURR52 VBAT VCP 10bit SAR ADC D9:D0 result_not_ready Control adc_select start_conversion 180k ni nc ca 1MHz Te ch 120k 7.8 Power-On Reset The internal reset is controlled by two sources: VBAT2 Supply VDD_GPIO Voltage If one of the voltages is lower than its limit, the internal reset is forced. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 54 - 70 AS3689 Datasheet, Confidential austriamicrosystems The reset levels control the state of all registers. As long as VBAT and VDD_GPIO are below their reset thresholds, the register contents are set to default. Access by serial interface is possible once the reset thresholds are exceeded. Table 24 – Reset Levels Symbol Parameter Min Typ Max Unit Note Overall Power-On Reset 2.0 V VGPIO_Vdd_TH_RISI NG Reset Level for VDD_GPIO Rising 1.3 V Monitor voltage on pin VDD_GPIO; rising level. VGPIO_vdd_TH_FAL LING Reset Level for VDD_GPIO Falling 1.0 V Monitor voltage on pin VDD_GPIO; falling level. lv 7.9 al id VPOR_VBAT Monitor voltage on V2_5; power-on reset for all internal functions. Temperature Supervision am lc s on A te G nt st il An integrated temperature sensor provides over-temperature protection for the AS3689. This sensor generates a flag if the device temperature reaches the overtemperature threshold of 140º. The threshold has a hysteresis to prevent oscillation effects. If the device temperature exceeds the 140º threshold all current sources, the charge pump, the ldo and the dcdc converter is disabled and the ov_temp flag is set. After decreasing the temperature by 5º (typically) operation is resumed. The ov_temp flag can only be reset by first writing a 1 and then a 0 to the (bit rst_ov_temp ). Bit ov_temp_on = 1 activates temperature supervision. Table 25 – Overtemperature Detection Symbol Parameter Min Typ Max Unit T140 ov_temp Rising Threshold 140 ºC Thyst ov_temp Hystersis 5 ºC Note 7.9.1 Temperature Supervision Registers Overtemp Control Bit Name 0 ov_temp_on ch ni Bit ov_temp 2 rst_ov_temp Te 1 7:4 This register reads and resets the overtemperature flag. Default Access Description Activates/deactivates device temperature supervision. Default: Off – all other bits are only valid if this bit is set to 1. 1 W 0 = Temperature supervision is disabled. No reset will be generated if the device temperature exceeds 140ºC. 1 = Temperature supervision is enabled. 1 = Indicates that the overtemperature threshold has been reached; this flag is not cleared by an overtemperature N/A R reset. It has to be cleared using bit rst_ov_temp . The ov_temp flag is cleared by first setting this bit to 1, and 0 R/W then setting this bit to 0. N/A ca Addr: 29h www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 55 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.10 Serial Interface The AS3689 is controlled using serial interface pins CLK and DATA. The interface follows the two wire serial interface from the Philips specification. Figure 31 – Serial Interface Block diagram VDD_GPIO al id R5 1-10k DATA DATA Serial Interface Logic CLK lv CLK am lc s on A te G nt st il The clock line CLK is never held low by the AS3689 (as the AS3689 does not use clock stretching of the bus). 7.10.1 Serial Interface Features Fast Mode Capability (Maximum Clock Frequency is 400 kHz) 7-bit Addressing Mode Write Formats − Single-Byte Write − Page-Write Read Formats − Current-Address Read − Random-Read − Sequential-Read DATA Input Delay and CLK Spike Filtering by Integrated RC Components 7.10.2 Device Address Selection The serial interface address of the AS3689 has the following address: 80h – Write Commands ca 81h – Read Commands ch DATA ni Figure 32 – Complete Serial Data Transfer Te CLK S Start Condition 7.10.2.1 1-7 8 9 Address R/W ACK 1-7 8 Data 9 ACK 1-7 8 Data 9 ACK P Stop Condition Serial Data Transfer Formats Definitions used in the serial data transfer format diagrams are listed in the following table: www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 56 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 26 – Serial Data Transfer Byte Definitions R Notes 1 bit Repeated Start R 1 bit DW Device Address for Write R 10000010b (80h). DR Device Address for Read WA Word Address R A Acknowledge W 1 bit N Not Acknowledge R 1 bit reg_data Register Data/Write R 8 bits data (n) Register Data/read R 1 bit Stop Condition R 8 bits Increment Word Address Internally R P WA++ 10000011b (81h) R 8 bits lv Sr R/W (AS3689 Slave) al id Definition Start Condition after Stop During Acknowledge am lc s on A te G nt st il Symbol S Figure 33 – Serial Interface Byte Write S DW A WA A reg_data A P Write Register WA++ AS3689 (= Slave) receives data AS3689 (= Slave) transmits data Figure 34 – Serial Interface Page Write S DW A WA A reg_data 1 A reg_data 2 Write Register WA++ A … Write Register WA++ reg_data n A P Write Register WA++ ni ca AS3689 (= Slave) receives data AS3689 (= Slave) transmits data Byte Write and Page Write formats are used to write data to the slave. ch The transmission begins with the START condition, which is generated by the master when the bus is in IDLE state (the bus is free). The device-write address is followed by the word address. After the word address any number of data bytes can be sent to the slave. The word address is incremented internally, in order to write subsequent data bytes on subsequent address locations. Te For reading data from the slave device, the master has to change the transfer direction. This can be done either with a repeated START condition followed by the device-read address, or simply with a new transmission START followed by the device-read address, when the bus is in IDLE state. The device-read address is always followed by the 1st register byte transmitted from the slave. In Read Mode any number of subsequent register bytes can be read from the slave. The word address is incremented internally. The following diagrams show the serial read formats supported by the AS3689. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 57 - 70 AS3689 Datasheet, Confidential austriamicrosystems Figure 35 – Serial Interface Random Read S DW A WA A Sr DR A data N P Read Register WA++ al id AS3689 (= slave) receives data AS3689 (= slave) transmits data Random Read and Sequential Read are combined formats. The repeated START condition is used to change the direction after the data transfer from the master. lv The word address transfer is initiated with a START condition issued by the master while the bus is idle. The START condition is followed by the device-write address and the word address. am lc s on A te G nt st il In order to change the data direction a repeated START condition is issued on the 1st CLK pulse after the ACKNOWLEDGE bit of the word address transfer. After the reception of the device-read address, the slave becomes the transmitter. In this state the slave transmits register data located by the previous received word address vector. The master responds to the data byte with a NOT ACKNOWLEDGE, and issues a STOP condition on the bus. Figure 36 – Serial Interface Sequential Read S DW A WA A Sr DR A data 1 A data 2 ... A data n N P Read Register WA++ AS3689 (= slave) receives data AS3689 (= slave) transmits data Sequential Read is the extended form of Random Read, as multiple register-data bytes are subsequently transferred. ca In contrast to the Random Read, in a sequential read the transferred register-data bytes are responded by an acknowledge from the master. The number of data bytes transferred in one sequence is unlimited (consider the behavior of the word-address counter). To terminate the transmission the master has to send a NOT ACKNOWLEDGE following the last data byte and subsequently generate the STOP condition. Figure 37 – Serial Interface Current Address Read DR A data 1 A ni S Read Register WA++ … A data n N P Read Register WA++ ch Read Register WA++ data 2 AS3689 (= slave) receives data AS3689 (= slave) transmits data Te To keep the access time as small as possible, this format allows a read access without the word address transfer in advance to the data transfer. The bus is idle and the master issues a START condition followed by the DeviceRead address. Analogous to Random Read, a single byte transfer is terminated with a NOT ACKNOWLEDGE after the 1st register byte. Analogous to Sequential Read an unlimited number of data bytes can be transferred, where the data bytes must be responded to with an ACKNOWLEDGE from the master. For termination of the transmission the master sends a NOT ACKNOWLEDGE following the last data byte and a subsequent STOP condition. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 58 - 70 AS3689 Datasheet, Confidential austriamicrosystems 7.11 Operating Modes If the voltage on VDD_GPIO is less than 0.3V, the AS3689 is in shutdown mode and its current consumption is minimized (I(BAT) = ISHUTDOWN) and all internal registers are reset to their default values and the serial interface is disabled. Charge pump External charge pump Step up regulator Any current sink ADC conversion started PWM active Pattern mode active. lv Ldo am lc s on A te G nt st il al id If the voltage on VDD_GPIO rises above 1.5V, the AS3689 serial interface is enabled and the AS3689 and the standby mode is selected. The AS3689 is switched automatically from standby mode (I(BAT) = ISTANDBY) into normal mode (I(BAT) = IACTIVE) and back, if one of the following blocks are activated: If any of these blocks are already switched on the internal oscillator is running and a write instruction to the registers is directly evaluated within 1 internal CLK Cycle (Typ. 1usec) Te ch ni ca If all these blocks are disabled, a write instruction to enable these blocks is delayed by 64 CLK cycles (oscillator will startup, within max 200usec). www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 59 - 70 AS3689 Datasheet, Confidential austriamicrosystems 8 Register Map Table 27 – Registermap Register Definition Addr. Name Content Def ault b7 b6 b5 b4 b3 b2 b1 b0 0 0 cp_ext_ on step_u p_on cp _on ldo_on 0 00h 00 0 curr12 control 01h 00h curr52_mode curr51_mode curr2_mode curr rgb control 02h 00h curr6_mode rgb3_mode rgb2_mode curr3 control 1 03h 00h curr33_mode curr32_mode curr31_mode curr4 control 04h 00h curr43_mode curr42_mode GPIO output 05h 00h gpi_cur r33_en gpi_cur r32_en gpi_cur r31_en gpi_cur r30_en gpi_en gpio_o ut 0 0 GPIO signal 06h 00h gpi_cur r33_in gpi_cur r32_in gpi_cur r31_in gpi_cur r30_in gpi_in gpio_in 0 0 curr30_mode curr41_mode lv 00h Fus e Curr1 current 09h 00h curr1_current Curr2 current 0Ah 00h curr2_current Rgb1 current 0Bh 00h rgb1_current Rgb2 current 0Ch 00h rgb2_current Rgb3 current 0Dh 00h rgb3_current Curr3x strobe 0Eh 00h curr3x_strobe Curr3x preview 0Fh 00h curr3x_preview Curr3x other 10h 00h curr3x_other Curr3 strobe control 11h 00h ldo_pull d ca strobe_timing 00h 0 strobe_mode curr3x_ ext_ovt emp 0 ni 12h ldo_voltage 0 13h 00h curr41_current Curr42 current 14h 00h curr42_current curr43_current ch Curr41 current Curr43 current 15h 00h Pwm control 16h 01h pwm code 17h 00h Pattern control 18h 00h Pattern data0 19h 00h softdim _patter n pattern_data[7:0] Pattern data1 1Ah 00h pattern_data[15:8] Pattern data2 1Bh 00h pattern_data[23:16] Te rgb1_mode reserved 08h Curr3 control 2 curr1_mode am lc s on A te G nt st il 07h Ldo voltage al id Reg. control pwm_g pio pwm_dim_speed strobe_ctrl preview_ctrl preview _off_aft er strobe pwm_dim_mode pwm_m ode pattern_delay pattern_ color pwm_code curr33_ pattern www.austriamicrosystems.com (mlg, ptr) curr32_ pattern curr31_ pattern curr30_ pattern Revision 1.0.2 / 20070115 60 - 70 AS3689 Datasheet, Confidential Addr. Name Def ault Content b7 b6 b5 b4 b3 b2 Pattern data3 1Ch 00h pattern_data[31:24] Ext. Charge pump mode 1Dh 00h cp_ext_ lowcurr 1Eh NA GPIO_control 1Fh 0Ch GPIO driving cap 20h 00h 21h 00h DCDC control2 22h 04h CP control 23h CP mode Switch1 DCDC control1 b1 b0 cp_ext_clk cp_ext_mode gpio_pulls gpio_mode reserved al id Register Definition austriamicrosystems gpio_lo w_curr step_up_vtuning step_u p_fb_a uto 0 step_up_fb step_u p_lowc ur skip_fa st step_up _frequ curr6_p rot_on curr2_p rot_on curr1_p rot_on 00h cp_aut o_on cp_star t_debo unce cp_mode_switchin g 24h 00h rgb3_o n_cp rgb2_o n_cp rgb1_o n_cp curr33_ on_cp curr32_ on_cp curr31_ on_cp curr30_ on_cp CP mode Switch2 25h 00h curr6_o n_cp curr52_ on_cp curr51_ on_cp curr43_ on_cp curr42_ on_cp curr41_ on_cp curr2_o n_cp curr1_o n_cp ADC_control 26h 00h start_c onversi on ADC_MSB result 27h NA result_ not_rea dy D5 D4 D3 ADC_LSB result 28h NA D2 D1 D0 Overtemp control 29h 01h rst_ov_ temp ov_tem p ov_tem p_on Curr low voltage status1 2Ah NA curr6_l ow_v rgb3_lo w_v rgb2_lo w_v rgb1_lo w_v curr33_ low_v curr32_ low_v curr31_ low_v curr30_l ow_v Curr low voltage status2 2Bh NA curr52_ low_v curr51_ low_v ovtemp _ext curr43_ low_v curr42_ low_v curr41_ low_v curr2_l ow_v curr1_lo w_v gpio current 2Ch 00h step_u p_fb_p wm pattern _slow am lc s on A te G nt st il cp_mode D8 D7 D6 step_up_slope gpio2_current 00h curr51_current curr52 current 2Eh 00h curr52_current curr6 current 2Fh 00h curr6_current Adder Current 1 30h 00h adder_current1 (can be enabled for RGB1, CURR41, CURR1) Te ni ca D9 2Dh Adder Current 2 31h 00h adder_current2 (can be enabled for RGB2, CURR42, CURR2) Adder Current 3 32h 00h adder_current3 (can be enabled for RGB3, CURR43) Adder Enable 1 33h 00h Adder Enable 2 34h 00h ch cp_clk adc_select curr51 current www.austriamicrosystems.com (mlg, ptr) step_up _res lv step_u p_prot 0 curr43_ adder curr42_ adder Revision 1.0.2 / 20070115 curr41_ adder rgb3_a dder ext_ov_ temp_in v rgb2_a dder rgb1_ad der curr2_a dder curr1_a dder 61 - 70 AS3689 Datasheet, Confidential Addr. Name Def ault Content b7 b6 b5 b4 Subtract Enable 35h 00h ASIC ID1 37h C9h 1 1 0 0 ASIC ID2 38h 5xh 0 1 0 1 1 b2 b1 b0 sub_en 3 sub_en 2 sub_en 1 0 0 1 revision Te ch ni ca am lc s on A te G nt st il lv Note: If writing to register, write 0 to unused bits Note: Write to read only bits will be ignored Note: y yellow color = read only b3 al id Register Definition austriamicrosystems www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 62 - 70 AS3689 Datasheet, Confidential austriamicrosystems 9 External Components Table 28 – External Components List min typ 1µF max Tol (min) Rating (max) 4.7µF +/-20% 6.3V 1µF +/-20% 6.3V C5 1µF +/-20% 6.3V C6 1µF +/-20% 6.3V C7 1µF +/-20% 6.3V 0603 Ceramic, X5R (V2_5) (e.g. Taiyo Yuden JMK105BJ105KV-F) Ceramic, X5R (VBAT1, VBAT2) (e.g. Taiyo Yuden JMK107BJ225MA-T) Ceramic, X5R (Charge Pump) (e.g. Taiyo Yuden JMK107BJ225MA-T) Ceramic, X5R (Charge Pump) (e.g. Taiyo Yuden JMK107BJ225MA-T) Ceramic, X5R (Charge Pump Output) (e.g. Taiyo Yuden JMK107BJ225MA-T) Ceramic, X5R, X7R (Step Up DCDC converter output) (e.g. Taiyo Yuden TMK316BJ475KF) Ceramic, X5R (Step Up DCDC Feedback) 0402 0402 0402 0402 C9 C10 C11 C12 R1 R2 R3 +/-20% 6.3V 4.7µF +/-20% 25V 1.5nF +/-20% 25V 15nF +/-20% 6.3V 2.2µF +/-20% 6.3V 220kΩ +/-1% Ceramic, X5R (Step Up DCDC Feedback) Ceramic, X5R (RGB3/VANA) (e.g. Taiyo Yuden JDK105BJ225MV-F) (only if VANA LDO is used) Bias Resistor 100mΩ +/-5% Shunt Resistor 0805 1MΩ +/-1% Step Up DC/DC Converter Voltage Feedback 0201 +/-1% Step Up DC/DC Converter Voltage Feedback – not required for overvoltage protection 0201 1-10kΩ +/-1% I2C Bus Pullup resistor – usually already inside I2C master 0201 100kΩ ch ni R4 2.2µF ca C8 R5 Ceramic, X5R (SENSES_P) am lc s on A te G nt st il C4 Package (min) Notes al id C2 Value lv Part Number R6 10µH D1 CMDSH2-3, BAT760 or similar D2:D15 LED Te L1 www.austriamicrosystems.com (mlg, ptr) +/-20% Light Sensor Recommended Type: Coiltronics SD- 12-100 or Panasonic ELLSFG100MA Shottky Diode; Central Semiconductor (CMDSH2-3) Philips, STM (BAT760) 0603 1206 (0805) 0402 0402 0402 0201 ? SOD232 As required by application Revision 1.0.2 / 20070115 63 - 70 AS3689 Datasheet, Confidential Q1 Value min typ Tol (min) max Rating (max) Si1304, FDG313N or similar NMOS switching transistor; Vishay (Si1304), Fairchild (FDG313N) Package (min) SOT-232 Te ch ni ca am lc s on A te G nt st il lv Figure 38 – Layout Draft for AS3689 (Initial Placement only) Notes al id Part Number austriamicrosystems www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 64 - 70 AS3689 Datasheet, Confidential austriamicrosystems 10 Pinout and Packaging 10.1 Pin Description Table 29 – Pinlist CSP36-3x3mm; Ball assignment in preliminary Bmp Name Type A1 GPI A2 DCDC_FB AI A3 V2_5 AO3 A4 CURR41 Description DCDC feedback. Connect to resistor string. Output voltage of the Low-Power LDO; always connect a ceramic capacitor of 1µF (±20%) or 2.2µF (+100%/-50%). Caution: Do not load this pin during device startup. Analog current sink input (intended for RGB fun LED) lv AI al id DIO3 General purpose input A5 DCDC_GATE AO DCDC gate driver. A6 VSS VSS Ground pad B1 RBIAS B2 C2_N B3 RGB2 B4 RGB1 B5 CURR42 B6 SENSE_N C1 VBAT1 C2 C2_P C3 SENSE_P C4 CURR43 C5 VBAT2 C6 RGB3 (VANA) D1 CP_OUT D2 CURR31 D3 CURR30 AI Analog current sink input (intended for LED flash main LCD backlight). D4 VDD_GPIO S Supply pad for GPIOs and serial interface. D5 DATA D6 CURR2 E1 VSS_CP External resistor; always connect a resistor of 220kΩ (±1%) to ground. Caution: Do not load this pin. AIO Charge Pump flying capacitor; connect a ceramic capacitor of 2.2µF (±20%) to this pin. am lc s on A te G nt st il AIO AI RGB Current sink input AI RGB Current sink input AI Analog current sink input (intended for RGB fun LED) AIO S Negative sense input of shunt resistor for Step Up DC/DC Converter. Charge Pump supply pad. Always connect this pin to VBAT. AIO Charge Pump flying capacitor; connect a ceramic capacitor of 2.2µF (±20%) to this pin. AIO Positive sense input of shunt resistor for Step Up DC/DC Converter. AI Analog current sink input (intended for RGB fun LED) S Supply pad; always connect to VBAT. ca RGB Current sink input AI (AO) Alternative function: Output voltage of the Analog LDO VANA. Connect a ceramic capacitor of 1µF (±20%) or 2.2µF (+100%/-50%) if this ldo is used. AIO Analog current sink input (intended for LED flash main LCD backlight). Te ch ni AI Output voltage of the Charge Pump; connect a ceramic capacitor of 2.2µF (±20%) . DIO3 Serial interface data input/output. AI_HV Analog current sink input (intended for Keyboard backlight). VSS Ground pad Charge Pump flying capacitor; connect a ceramic capacitor of 2.2µF (±20%) to this pin. E2 C1_P AIO E3 CURR32 AI E4 CURR6 E5 CLK E6 CURR1 Analog current sink input (intended for LED flash main LCD backlight). AI_HV Analog current sink input (intended for Keyboard backlight). DI3 Clock input for serial interface. AI_HV Analog current sink input (intended for Keyboard backlight). www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 65 - 70 AS3689 Datasheet, Confidential austriamicrosystems Table 29 – Pinlist CSP36-3x3mm; Ball assignment in preliminary Bmp Name Type Description F1 CURR33 AI F2 C1_N AIO F3 CURR52 AI Analog current sink input (sub LCD backlight). F4 CURR51 AI Analog current sink input (sub LCD backlight). F5 GPIO DIO3 General purpose input/output. F6 VSS VSS Analog current sink input (intended for LED flash or main LCD backlight). Ground pad Table 30 – Pin Type Definitions Type DI3 DO DIO DIO3 OD AIO AI AI_HV AO AO3 S 3.3V Digital Input Digital Output Digital Input/Output 3.3V Digital Input/Output Open Drain (the device can only pulldown this type of pin) Analog Pad Analog Input High-Voltage (15V) Pin Analog Output (5V) Analog Output (3.3V) Supply Pad Ground Pad Te ch ni ca GND Description Digital Input am lc s on A te G nt st il DI lv al id Charge Pump flying capacitor; connect a ceramic capacitor of 2.2µF (±20%) to this pin. www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 66 - 70 AS3689 Datasheet, Confidential austriamicrosystems 10.2 Package Drawings and Markings Marking: AYWWIZZ am lc s on A te G nt st il lv al id Figure 39 – CSP 3x3mm A: Pb-Free Identifier Y: Last Digit of Manufacturing Year WW: Manufacturing Week I: Plant Identifier Te ch ni ca ZZ: Traceability Code www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 67 - 70 AS3689 Datasheet, Confidential austriamicrosystems Te ch ni ca am lc s on A te G nt st il lv al id Figure 40 – CSP 3x3mm – Detail Diagram www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 68 - 70 AS3689 Datasheet, Confidential austriamicrosystems 11 Ordering Information Package Type AS3689-PDR-Z AS3689-WAA-Z CSP36 Delivery Form* Description Tape and Reel 3 x 3mm, Pitch = 0.5mm Where: P = Package Type: W = CSP 3x3mm D = Delivery Form: A = Tape and Reel R = Revision Z = Pb-Free IC Package Te ch ni ca am lc s on A te G nt st il * Dry-pack sensitivity level = 3 in accordance with IPC/JEDEC J-STD-033A. al id Part Number lv Device ID www.austriamicrosystems.com (mlg, ptr) Revision 1.0.2 / 20070115 69 - 70 AS3689 Datasheet, Confidential austriamicrosystems Copyright Copyright © 1997-2007, austriamicrosystems AG, Schloss Premstaetten, 8141 Unterpremstaetten, AustriaEurope. Trademarks Registered ®. All rights reserved. The material herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner. al id All products and companies mentioned are trademarks of their respective companies. Disclaimer am lc s on A te G nt st il lv Devices sold by austriamicrosystems AG are covered by the warranty and patent identification provisions appearing in its Term of Sale. austriamicrosystems AG makes no warranty, express, statutory, implied, or by description regarding the information set forth herein or regarding the freedom of the described devices from patent infringement. austriamicrosystems AG reserves the right to change specifications and prices at any time and without notice. Therefore, prior to designing this product into a system, it is necessary to check with austriamicrosystems AG for current information. This product is intended for use in normal commercial applications. Applications requiring extended temperature range, unusual environmental requirements, or high reliability applications, such as military, medical life-support or life-sustaining equipment are specifically not recommended without additional processing by austriamicrosystems AG for each application. The information furnished here by austriamicrosystems AG is believed to be correct and accurate. However, austriamicrosystems AG shall not be liable to recipient or any third party for any damages, including but not limited to personal injury, property damage, loss of profits, loss of use, interruption of business or indirect, special, incidental or consequential damages, of any kind, in connection with or arising out of the furnishing, performance or use of the technical data herein. No obligation or liability to recipient or any third party shall arise or flow out of austriamicrosystems AG rendering of technical or other services. Contact Information Headquarters: ca austriamicrosystems AG Business Unit Communications A 8141 Schloss Premstätten, Austria T. +43 (0) 3136 500 0 F. +43 (0) 3136 5692 [email protected] ni For Sales Offices, Distributors and Representatives, please visit: Te ch www.austriamicrosystems.com austriamicrosystems www.austriamicrosystems.com (mlg, ptr) – a leap ahead Revision 1.0.2 / 20070115 70 - 70