0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
13892

13892

  • 厂商:

    FREESCALE(飞思卡尔)

  • 封装:

  • 描述:

    13892 - Power Management and User Interface IC - Freescale Semiconductor, Inc

  • 数据手册
  • 价格&库存
13892 数据手册
Freescale Semiconductor Advance Information Document Number: MC13892 Rev. 10.0, 11/2010 Power Management and User Interface IC The 13892 is a Power Management and User Interface component for Freescale’s i.MX51, i.MX37, i.MX35 and i.MX27 application processors, targeting netbooks, ebooks, mobile internet devices, smart phones, personal media players and personal navigation devices. Features • Battery charger system for wall charging and USB charging • 10 bit ADC for monitoring battery and other inputs, plus a coulomb counter support module • 4 adjustable output buck converters for direct supply of the processor core and memory • 12 adjustable output LDOs with internal and external pass devices • Boost converter for supplying RGB LEDs • Serial backlight drivers for displays and keypad, plus RGB LED drivers • Power control logic with processor interface and event detection • Real time clock and crystal oscillator circuitry, with coin cell backup and support for external secure real time clock on a companion system processor IC • Touch screen interface • SPI/I2C bus interface for control and register access • Two package offerings in 7 x 7 mm and 12 x 12 mm 13892 POWER MANAGEMENT IC VK SUFFIX 98ASA10820D 139-PIN 7X7MM BGA VL SUFFIX 98ASA10849D 186-PIN 12X12MM BGA ORDERING INFORMATION See Device Variation Table on Page 2. BT (+FM) DRAM IRDA TV Out Camera MMC Line In/Out Stereo Loudspeakers SSI Mic Inputs Audio IC Aud AP USB i.MX51 Apps Processor Display Backlight Stereo headphones Power NVR Camera SPI/I2C Power UI Backlight UI UI Adapter Charger LED Li Ion Battery MC13892 Power Mgmt & User Interface AP Aud& Pwr Mgmt RGB Color Indicators Touch Screen Coin Cell Battery Light Sensor Thermistor CALENDAR RTC Figure 1. 13892 Typical Operating Circuit * This document contains certain information on a new product. Specifications and information herein are subject to change without notice. © Freescale Semiconductor, Inc., 2010. All rights reserved. DEVICE VARIATIONS DEVICE VARIATIONS Table 1. MC13892 Device Variations Table Device Variation(1) MC13892VK(3) MC13892JVK(3) MC13892AJVK(2) MC13892BJVK(4) MC13892VL(3) MC13892JVL(3) MC13892AJVL(2) MC13892BJVL Notes 1. 2. 3. 4. (4) Package 139-PIN 7x7mm BGA Temperature Range (TA) -30 to +85 °C Errata Doc # MC13892ER Pin Out Figure 3 Supplemental Functionality Standard Part MC13892ER Figure 3 Global Reset Function Programmable Global Reset Function 186-PIN 12x12mm BGA -30 to +85 °C MC13892ER Figure 4 Standard Part MC13892ER Figure 4 Global Reset Function Programmable Global Reset Function For Tape and Reel product, add “/R2” as a suffix to the device number. Recommended for all new designs Not recommended for new designs Backward compatable replacement part for MC13892VK, MC13892JVK, MC13892VL and MC13892JVL 13892 2 Analog Integrated Circuit Device Data Freescale Semiconductor INTERNAL BLOCK DIAGRAM INTERNAL BLOCK DIAGRAM CHRGCTRL2 CHRGCTRL1 CHRGSE1B CHRGISNS CHRGRAW GNDCHRG BATTISNS CHRGLED BATTFET LEDMD BPSNS GNDBL LEDAD LEDKP BATT BP Battery Interface & Protection Charger Interface and Control: 4 bit DAC, Clamp, Protection, Trickle Generation LEDR LEDG LEDB GNDLED Backlight LED Drive Tri-Color LED Drive PWR Gate Drive & Chg Pump PWGTDRV1 PWGTDRV2 LICELL, UID, Die Temp, GPO4 GNDADC ADIN5 ADIN6 ADIN7 TSX1 TSX2 TSY1 TSY2 TSREF ADTRIG Touch Screen Interface A/D Control Trigger Handling Die Temp & Thermal Warning Detection To Interrupt Section MUX 10 Bit GP ADC A/D Result Voltage / Current Sensing & Translation O/P Drive SW1IN SW1OUT GNDSW1 SW1FB SW2IN SW2OUT GNDSW2 SW2FB SW3IN SW3OUT GNDSW3 SW3FB SW4IN SW4OUT GNDSW4 SW4FB DVS1 DVS2 SW1 1050 mA Buck SW2 800 mA Buck SW3 800 mA Buck O/P Drive O/P Drive BATTISNSCC CFP CFM BATT Coulomb CCOUT Counter SW4 800 mA Buck O/P Drive To SPI DVS CONTROL Package Pin Legend Output Pin MC13892 IC Input Pin Bi-directional Pin SPIVCC CS CLK MOSI MISO GNDSPI SPI Interface + Muxed I2C Optional Interface Shift Register SWBST 300 mA Boost O/P Drive SWBSTIN SWBSTOUT SWBSTFB GNDSWBST SPI Registers To Enables & Control SPI Control VVIDEO VVIDEODRV VVIDEO VINUSB2 VUSB2 VINAUDIO VAUDIO VINIOHI VIOHI VINPLL VPLL VINDIG VDIG VINCAMDRV VCAM Pass FET Shift Register VCORE VCOREDIG REFCORE GNDCORE Reference Generation MC13892 VBUS/ID Detectors VUSB2 Pass FET Pass FET Pass FET Pass FET Pass FET VAUDIO VIOHI VPLL Connector Interface UID UVBUS VDIG VCAM VSDDRV VSD VGEN1DRV VGEN1 VGEN2DRV VGEN2 VINGEN3DRV VBUSEN OTG 5V VUSB Regulator VSD SPI Control Logic Trim-In-Package To Trimmed Circuits VINUSB VUSB VGEN1 VGEN2 PUMS Startup Sequencer Decode Trim? Control Logic PLL Monitor Timer Switch Li Cell Charger 32 KHz Internal Osc LICELL LCELL RTC + Calibration SPI Result Registers Interrupt Inputs Enables & Control 32 KHz Buffers Switchers VGEN3 Pass FET VGEN3 BP LICELL BP Best of Supply GPO Control GNDREG1 GNDREG2 GNDREG3 32 KHz Crystal Osc Core Control Logic, Timers, & Interrupts VSRTC GNDSUB1 GNDSUB2 GNDSUB3 GNDSUB4 GNDSUB5 GNDSUB6 GNDSUB8 GNDSUB9 XTAL1 GNDSUB7 GNDRTC XTAL2 RESETB STANDBYSEC MODE WDI INT RESETBMCU STANDBY CLK32K CLK32KMCU PUMS1 GNDCTRL PWRON1 PWRON2 PWRON3 PUMS2 VSRTC Figure 2. 13892 Simplified Internal Block Diagram 13892 Analog Integrated Circuit Device Data Freescale Semiconductor GPO1 GPO2 GPO3 GPO4 3 PIN CONNECTIONS PIN CONNECTIONS 1 2 3 4 5 6 7 8 9 10 11 12 13 A V USB2 VUSB 2 VINU 2 SB SW TIN BS GND BST SW GN DBL N C MO DE VC ORE BATT CHRGR W A CHR GCTRL2 C GCTRL2 HR B V USB2 GP O1 DVS2 SW STOUT B LED B LED KP LEDR GND CORE VCOREDIG BP CH RGCTRL1 B ATTISNSCC C GCTRL2 HR Regulators C VINP LL VS V DDR C HRGISNS BATT S ISN Switchers D VB US VS D SWB STFB LEDMD DV S1 REFC ORE CHR GSE1B LIC ELL B ATTFE T BPSNS PW ON1 R Backlights E UV BUS VP LL LEDG GNDLED UID PUM S2 GND CHRG C HRGLE D PW 2 RON ADTRIG IN T GN DSW 1 Control Logic F GNDSW 3 VBU EN S S W3FB LEDAD GND SUB G UB NDS GN B DSU GP O3 GPO2 R ETBMCU ES RESETB S W1OUT Charger G S W3OUT VINU B S S W4FB GN DREG2 GND SUB G UB NDS GN B DSU PUM S1 W DI GPO 4 SW 1IN RTC Grounds H SW 3IN MIS O GNDS PI GN DREG3 GND SUB G UB NDS GN B DSU GN DCTRL SW 1FB STA YSEC NDB SW 2IN USB J SW 4IN MO SI CLK32KM CU STA Y NDB GND ADC GND REG1 PW ON3 R TS 1 X SW 2FB TSX2 S W2OUT ADC K S W4OUT SPIVC C PW GTDRV1 CLK32K VCA M CFP C FM ADIN 5 ADIN 6 VVID DR EO V GN DSW 2 SPI/I2C L GNDSW 4 C S TSY2 V EO VID No Connect M VG EN3 C LK V GEN2 VSRTC GND RTC VINCAM DRV PW GTDR V2 VD IG VIND IG V 1DRV GEN A DIN7 TSY1 TS REF N VG EN3 VGEN 3 VIN GEN3D RV VGE N2DR V XTAL2 XTAL1 VIN IO AUD VAU DIO VIOHI V IOHI IN VGE N1 TSREF TS REF Figure 3. 13892VK Pin Connections 13892 4 Analog Integrated Circuit Device Data Freescale Semiconductor PIN CONNECTIONS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A VUSB2 VINUSB2 SWBSTOUT SWBSTIN GNDSUB NC MODE VCORE BATT CHRGRAW CHRGCTRL2 CHRGISNS Regulators B VSDDRV GPO1 GNDSUB GNDSUB LEDR UID DVS1 REFCORE GNDCORE CHRGSE1B BP GNDCHRG BATTISNSCC BATTISNS Switchers C VSD DVS2 SWBSTFB LEDB LEDG LEDKP LEDAD PUMS2 VCOREDIG LICELL BATTFET BPSNS GPO3 PUMS1 Backlights D VUSB VPLL GNDSUB GNDSUB GNDSWBST GNDLED LEDMD GNDBL CHRGCTRL1 CHRGLED PWRON1 PWRON3 ADTRIG GPO4 Control Logic E UVBUS GNDREG2 VINPLL GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB PWRON2 GPO2 INT RESETBMCU Charger F SW3OUT VBUSEN VINUSB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDCTRL WDI RESETB SW1OUT RTC G GNDSW3 GNDSW3 SW3FB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB SW1FB GNDSW1 GNDSW1 Grounds H SW3IN SW3IN GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB SW1IN SW1IN USB J SW4IN SW4IN SW4FB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB SW2FB SW2IN SW2IN ADC K GNDSW4 GNDSW4 SPIVCC GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB GNDSUB VVIDEODRV GNDSW2 GNDSW2 SPI/I2C L SW4OUT CS GNDSPI GNDSUB GNDSUB GNDSUB VCAM VINAUDIO VDIG GNDSUB TSY2 STANDBYSEC VVIDEO SW2OUT No Connect M CLK VINGEN3DRV CLK32KMCU CLK32K VSRTC STANDBY VINCAMDRV CFP CFM VGEN1DRV VGEN1 TSX1 TSX2 TSY1 N VGEN3 MOSI VGEN2 GNDREG3 XTAL2 XTAL1 VAUDIO PWGTDRV2 VIOHI VINIOHI GNDADC ADIN5 ADIN7 TSREF P MISO PWGTDRV1 VGEN2DRV GNDSUB GNDRTC GNDSUB GNDSUB GNDSUB GNDSUB VINDIG GNDREG1 ADIN6 Figure 4. 13892VL Pin Connections 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 5 PIN CONNECTIONS Table 2. 13892 Pin Definitions A functional description of each pin can be found in the Functional Pin Description section beginning on page 32. Pin Number Pin Number on on the the 13982VL 13982VK 12x12 mm 7x7 mm A1, A2, B1 A3 A4 A5 A6 A7 A8 A9 A10 A2 A3 A5 D5 D8 A7 A8 A9 A10 Pin Name Rating Pin Function (V) 3.6 5.5 5.5 9.0 3.6 5.5 Output Power Power Ground Ground Input Output Input Formal Name Definition VUSB2 VINUSB2 SWBSTIN GNDSWBST GNDBL NC MODE VCORE BATT USB 2 Supply USB 2 Supply Input Switcher Boost Power Input Switcher Boost Ground Backlight LED Ground No Connect Mode Configuration Core Supply Battery Connection Output regulator for USB PHY Input regulator VUSB2 Switcher BST input Ground for switcher BST Ground for serial LED drive Do NOT connect USB LBP mode, normal mode, test mode selection & anti-fuse bias Regulated supply output for the IC analog core circuitry 1. Battery positive terminal 2. Battery current sensing point 2 3. Battery supply voltage sense A11 A11 CHRGRAW 20 I/O Charger Input 1. Charger input 2. Output to battery supplied accesories A12, A13, B13 B2 B3 B4 B5 B6 B7 B8 B9 B10 A12 B2 C2 A4 C4 C6 B5 B9 C9 B11 CHRGCTRL2 GPO1 DVS2 SWBSTOUT LEDB LEDKP LEDR GNDCORE VCOREDIG BP 5.5 3.6 3.6 7.5 7.5 28 7.5 1.5 5.5 Output Output Input Power Output Output Output Ground Output Power Charger Control 2 General Purpose Output 1 Dynamic Voltage Scaling Control 2 Driver output for charger path FETs M2 General purpose output 1 Switcher 2 DVS input pin Switcher Boost Output Switcher BST BP supply LED Driver LED Driver LED Driver Core Ground Digital Core Supply Battery Plus General purpose LED driver output Blue Keypad lighting LED driver output General purpose LED driver output Red Ground for the IC core circuitry Regulated supply output for the IC digital core circuitry 1. Application supply point 2. Input supply to the IC core circuitry 3. Application supply voltage sense B11 B12 C1 C2 C12 D9 B13 E3 B1 A13 CHRGCTRL1 BATTISNSCC VINPLL VSDDRV CHRGISNS 20 4.8 5.5 5.5 4.8 Output Input Power Output Input Charger Control 1 Battery Current Sense PLL Supply Input VSD Driver Charger Current Sense Driver output for charger path FETs M1 Accumulated current counter current sensing point Input regulator processor PLL Drive output regulated SD card Charge current sensing point 1 13892 6 Analog Integrated Circuit Device Data Freescale Semiconductor PIN CONNECTIONS Table 2. 13892 Pin Definitions (continued) A functional description of each pin can be found in the Functional Pin Description section beginning on page 32. Pin Number Pin Number on on the the 13982VL 13982VK 12x12 mm 7x7 mm C13 D1 D2 D4 D5 D6 D7 D8 D9 B14 D1 C1 C3 D7 B7 B8 B10 C10 Pin Name Rating Pin Function (V) 4.8 3.6 3.6 3.6 28 3.6 3.6 3.6 3.6 Input Output Output Input Output Input Output Input I/O Formal Name Definition BATTISNS VUSB VSD SWBSTFB LEDMD DVS1 REFCORE CHRGSE1B LICELL Battery Current Sense USB Supply SD Card Supply Switcher Boost Feedback LED Driver Dynamic Voltage Scaling Control 1 Core Reference Charger Select Coin Cell Connection Battery current sensing point 1 USB transceiver regulator output Output regulator SD card Switcher BST feedback Main display backlight LED driver output Switcher 1DVS input pin Main bandgap reference Charger forced SE1 detection input 1. Coin cell supply input 2. Coin cell charger output D10 D12 C11 C12 BATTFET BPSNS 4.8 4.8 Output Input Battery FET Connection Battery Plus Sense Driver output for battery path FET M3 1. BP sense point 2. Charge current sensing point 2 D13 E1 D11 E1 PWRON1 UVBUS 3.6 20 Input I/O Power On 1 USB Bus Power on/off button connection 1 1. USB transceiver cable interface 2. VBUS & OTG supply output E2 E4 E5 E6 E7 E8 E9 E10 E11 E12 E13 F1 F2 F4 F5 F6 D2 C5 D6 B6 C8 B12 D10 E11 D13 E13 G13, G14 G1, G2 F2 G3 C7 A6, B3, B4, D3, D4, E4, E5, E6 VPLL LEDG GNDLED UID PUMS2 GNDCHRG CHRGLED PWRON2 ADTRIG INT GNDSW1 GNDSW3 VBUSEN SW3FB LEDAD GNDSUB1 3.6 7.5 5.5 3.6 20 3.6 3.6 3.6 3.6 3.6 28 - Output Output Ground Input Input Ground Output Input Input Output Ground Ground Input Input Output Ground Voltage Supply for PLL PWM Driver for Green LED LED Ground USB ID Power Up Mode Select 2 Charger Ground Charger LED Power On 2 ADC Trigger Interrupt Signal Switcher 1 Ground Switcher 3 Ground VBUS Enable Switcher 3 Feedback Auxiliary Display LED Ground 1 Output regulator processor PLL General purpose LED driver output Green Ground for LED drivers USB OTG transceiver cable ID Power up mode supply setting 2 Ground for charger interface Trickle LED driver output 1 Power on/off button connection 2 ADC trigger input Interrupt to processor Ground for switcher 1 Ground for switcher 3 External VBUS enable pin for OTG supply Switcher 3 feedback Auxiliary display backlight LED driver output Non critical signal ground and thermal heat sink 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 7 PIN CONNECTIONS Table 2. 13892 Pin Definitions (continued) A functional description of each pin can be found in the Functional Pin Description section beginning on page 32. Pin Number Pin Number on on the the 13982VL 13982VK 12x12 mm 7x7 mm F7 F8 E7, E8, E9, E10, F4, F5, F6 F7, F8, F9, F10, G4, G5, G6, G7, G8 C13 E12 E14 F13 F14 F1 F3 J3 E2 G9, G10, G11, H3, H5, H6, H7, H8 H9, H10, H12, J5, J6, J7 J8, J9, J10, K4, K5, K6, K7 C14 F12 D14 H13, H14 H1, H2 P2 L3 N4 K8, K10, L4, L5, L6, L10 P5, P7, P8, P9, P10 Pin Name Rating Pin Function (V) Ground Ground Formal Name Definition GNDSUB2 GNDSUB3 Ground 2 Ground 3 Non critical signal ground and thermal heat sink Non critical signal ground and thermal heat sink General purpose output 3 General purpose output 2 Reset output for processor Reset output for peripherals Switcher 1 output Switcher 3 output Input option for UVUSB; tie to SWBST at top level Switcher 4 feedback Ground for regulators 2 Non critical signal ground and thermal heat sink Non critical signal ground and thermal heat sink Non critical signal ground and thermal heat sink Power up mode supply setting 1 Watchdog input General purpose output 4 Input voltage for switcher 1 Switcher 3 input Primary SPI read output Ground for SPI interface Ground for regulators 3 Non critical signal ground and thermal heat sink Non critical signal ground and thermal heat sink Non critical signal ground and thermal heat sink Ground for control logic F9 F10 F11 F12 F13 G1 G2 G4 G5 G6 GPO3 GPO2 RESETBMCU RESETB SW1OUT SW3OUT VINUSB SW4FB GNDREG2 GNDSUB4 3.6 3.6 3.6 5.5 5.5 7.5 3.6 - Output Output Output Output Output Output Input Input Ground Ground General Purpose Output 3 General Purpose Output 2 MCU Reset Peripheral Reset Switcher 1 Output Switcher 3 Output VUSB Supply Input Switcher 4 Feedback Regulator 2 Ground Ground 4 G7 G8 G9 G10 G12 G13 H1 H2 H4 H5 H6 H7 H8 H9 GNDSUB5 GNDSUB6 PUMS1 WDI GPO4 SW1IN SW3IN MISO GNDSPI GNDREG3 GNDSUB7 GNDSUB8 GNDSUB9 3.6 3.6 3.6 5.5 5.5 3.6 - Ground Ground Input Input Output Input Power I/O Ground Ground Ground Ground Ground Ground Ground 5 Ground 6 Power Up Mode Select 1 Watchdog Input General Purpose Output 4 Switcher 1 Input Switcher 3 Input Master In Slave Out SPI Ground Regulator 3 Ground Ground 7 Ground 8 Ground 9 Logic Control Ground F11 GNDCTRL 13892 8 Analog Integrated Circuit Device Data Freescale Semiconductor PIN CONNECTIONS Table 2. 13892 Pin Definitions (continued) A functional description of each pin can be found in the Functional Pin Description section beginning on page 32. Pin Number Pin Number on on the the 13982VL 13982VK 12x12 mm 7x7 mm H10 H12 H13 J1 J2 J4 J5 J6 J7 J8 J9 J10 J12 J13 K1 K2 K4 K5 K6 K7 K8 K9 K10 K12 K13 L1 L2 L12 L13 M1, N1, N2 M2 G12 L12 J13, J14 J1, J2 N2 M3 M6 N11 P12 D12 M12 J12 M13 L14 L1 K3 P3 M4 L7 M8 M9 N12 P13 K12 K13, K14 K1, K2 L2 L11 L13 N1 M1 Pin Name Rating Pin Function (V) 3.6 3.6 5.5 5.5 3.6 3.6 3.6 3.6 3.6 3.6 3.6 5.5 5.5 3.6 4.8 3.6 3.6 4.8 4.8 4.8 4.8 5.5 3.6 3.6 3.6 3.6 3.6 Input Input Input Power Input Output Input Ground Ground Input Input Input Input Output Output Input Output Output Output Passive Passive Input Input Output Ground Ground Input Input Output Output Input Formal Name Definition SW1FB STANDBYSEC SW2IN SW4IN MOSI CLK32KMCU STANDBY GNDADC GNDREG1 PWRON3 TSX1 SW2FB TSX2 SW2OUT SW4OUT SPIVCC PWGTDRV1 CLK32K VCAM CFP CFM ADIN5 ADIN6 VVIDEODRV GNDSW2 GNDSW4 CS TSY2 VVIDEO VGEN3 CLK Switcher 1 Feedback Secondary Standby Signal Switcher 2 Input Switcher 4 Input Master Out Slave In 32 kHz Clock for MCU Standby Signal ADC Ground Regulator 1 Ground Power On 3 Touch Screen Interface X1 Switcher 2 Feedback Touch Screen Interface X2 Switcher 2 Output Switcher 4 Output Switcher 1 feedback Standby input signal from peripherals Input voltage for Switcher 2 Switcher 4 input Primary SPI write input 32 kHz clock output for processor Standby input signal from processor Ground for A to D circuitry Ground for regulators 1 Power on/off button connection 3 Touch screen interface X1 Switcher 2 feedback Touch screen interface X2 Switcher 2 output Switcher 4 output Supply Voltage for SPI Supply for SPI bus and audio bus Power Gate Driver 1 32 kHz Clock Camera Supply Current Filter Positive Power gate driver 1 32 kHz clock output for peripherals Output regulator camera Accumulated current filter cap plus terminal Current Filter Negative Accumulated current filter cap minus terminal ADC Channel 5 Input ADC Channel 6 Input VVIDEO Driver Switcher 2 Ground Switcher 4 Ground Chip Select Touch Screen Interface Y2 Video Supply General Purpose Regulator 3 Clock ADC generic input channel 5 ADC generic input channel 6 Drive output regulator VVIDEO Ground for switcher 2 Ground for switcher 4 Primary SPI select input Touch screen interface Y2 Output regulator TV DAC Output GEN3 regulator Primary SPI clock input 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 9 PIN CONNECTIONS Table 2. 13892 Pin Definitions (continued) A functional description of each pin can be found in the Functional Pin Description section beginning on page 32. Pin Number Pin Number on on the the 13982VL 13982VK 12x12 mm 7x7 mm M3 M4 M5 M6 N3 M5 P6 M7 Pin Name Rating Pin Function (V) 3.6 3.6 5.5 Output Output Ground I/O Formal Name Definition VGEN2 VSRTC GNDRTC VINCAMDRV General Purpose Regulator 2 SRTC Supply Real Time Clock Ground Camera Regulator Supply Input and Driver Output Output GEN2 regulator Output regulator for SRTC module on processor Ground for the RTC block 1. Input regulator camera using internal PMOS FET. 2. Drive output regulator for camera voltage using external PNP device. Power gate driver 2 Output regulator digital Input regulator digital Drive output GEN1 regulator ADC generic input channel 7, group 1 Touch screen interface Y1 Touch screen reference 1. Input VGEN3 regulator 2. Drive VGEN3 output regulator Drive output GEN2 regulator 32.768 kHz oscillator crystal connection 2 32.768 kHz oscillator crystal connection 1 Input regulator VAUDIO Output regulator for audio Output regulator high voltage IO, efuse Input regulator high voltage IO Input GEN1 regulator M7 M8 M9 M10 M11 M12 M13, N12, N13 N3 N8 L9 P11 M10 N13 M14 N14 M2 PWGTDRV2 VDIG VINDIG VGEN1DRV ADIN7 TSY1 TSREF VINGEN3DRV 4.8 3.6 5.5 5.5 4.8 3.6 3.6 5.5 Output Output Input Output Input Input Output Power/ Output Output Input Input Power Output Output Input Output Power Gate Driver 2 Digital Supply VDIG Supply Input VGEN1 Driver ADC Channel 7 Input Touch Screen Interface Y1 Touch Screen Reference VGEN3 Supply Input and Driver Output VGEN2 Driver Crystal Connection 2 Crystal Connection 1 Audio Supply Input Audio Supply High Voltage IO Supply High Voltage IO Supply Input General Purpose Regulator 1 N4 N5 N6 N7 N8 N9 N10 N11 P4 N5 N6 L8 N7 N9 N10 M11 VGEN2DRV XTAL2 XTAL1 VINAUDIO VAUDIO VIOHI VINIOHI VGEN1 5.5 2.5 2.5 5.5 3.6 3.6 5.5 3.6 13892 10 Analog Integrated Circuit Device Data Freescale Semiconductor ELECTRICAL CHARACTERISTICS MAXIMUM RATINGS ELECTRICAL CHARACTERISTICS MAXIMUM RATINGS Table 3. Maximum Ratings All voltages are with respect to ground unless otherwise noted. Exceeding these ratings may cause a malfunction or permanent damage to the device. Ratings ELECTRICAL RATINGS Charger and USB Input Voltage(5) MODE pin Voltage Main/Aux/Keypad Current Sink Voltage VCHRGR VMODE VLEDMD, VLEDAD, VLEDKP VBATT VLICELL VESD (9) Symbol Value Unit -0.3 to 20 -0.3 to 9.0 -0.3 to 28 V V V Battery Voltage Coin Cell Voltage ESD Voltage(6) -0.3 to 4.8 -0.3 to 3.6 V V V Human Body Model - HBM with Mode pin excluded Charge Device Model - CDM THERMAL RATINGS Ambient Operating Temperature Range Operating Junction Temperature Range Storage Temperature Range THERMAL RESISTANCE ±1500 ±250 TA TJ TSTG -30 to +85 -30 to +125 -65 to +150 °C °C °C Peak Package Reflow Temperature During Reflow(7), (8) TPPRT Note 8 °C Notes 5. USB Input Voltage applies to UVBUS pin only 6. ESD testing is performed in accordance with the Human Body Model (HBM) (CZAP = 100 pF, RZAP = 1500 W) and the Charge Device Model (CDM), Robotic (CZAP = 4.0pF). 7. Pin soldering temperature limit is for 10 seconds maximum duration. Not designed for immersion soldering. Exceeding these limits may cause malfunction or permanent damage to the device. 8. Freescale’s Package Reflow capability meets Pb-free requirements for JEDEC standard J-STD-020C. For Peak Package Reflow Temperature and Moisture Sensitivity Levels (MSL), Go to www.freescale.com, search by part number [e.g. remove prefixes/suffixes and enter the core ID to view all orderable parts. (i.e. MC33xxxD enter 33xxx), and review parametrics. 9. Mode Pin is not ESD protected. Table 4. Dissipation Ratings Rating Parameter Junction to Ambient Natural Convection Junction to Ambient Natural Convection Junction to Ambient (@200 ft/min) Junction to Ambient (@200 ft/min) Junction to Board Junction to Case Junction to Package Top Natural Convection Condition Single layer board (1s) Four layer board (2s2p) Single layer board (1s) Four layer board (2s2p) Symbol RθJA RθJMA RθJMA RθJMA RθJB RθJC θJT VK Package 104 54 88 49 32 29 7.0 VL Package 65 42 55 38 28 22 5.0 Unit °C/W °C/W °C/W °C/W °C/W °C/W °C/W 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 11 ELECTRICAL CHARACTERISTICS STATIC ELECTRICAL CHARACTERISTICS STATIC ELECTRICAL CHARACTERISTICS Table 5. Static Electrical Characteristics Characteristics noted under conditions - 30°C ≤ TA ≤ 85 °C, GND = 0 V unless otherwise noted. Typical values noted reflect the approximate parameter means at TA = 25 °C under nominal conditions, unless otherwise noted. Characteristic CURRENT CONSUMPTION RTC Mode All blocks disabled, no main battery attached, coin cell is attached to LICELL(10) RTC OFF Mode (All blocks disabled, main battery attached)(10) 13892 core and RTC module Power Cut Mode (All blocks disabled, no main battery attached, coin cell is attached and valid)(10) 13892 core and RTC module ON Standby mode - Low power mode 4 buck switches in low power mode, 3 regulators ON Mode - Typical use case 4 buck switches in PWMPS mode, 5 Regulators(12) 32KHZ CRYSTAL OSCILLATOR Operating Voltage Oscillator and RTC Block from BP Coincell Disconnect Threshold At LICELL Output Low CLK32K, CLK32KMCU Output sink 100 µA Output High CLK32K Output source 100 µA CLK32KMCU Output source 100 µA VSRTC GENERAL Operating Input Voltage Range VINMIN to VINMAX Valid Coin Cell range Or valid BP Operating Current Load Range ILMIN to ILMAX Bypass Capacitor Value Notes 10. Valid at 25 °C only. 11. VPLL, VIOHI, VGEN2 12. VPLL, VIOHI, VGEN2, VAUDIO, VVIDEO VLICELL BP ISRTC CSRTC 1.8 UVDET 0 1.0 3.6 4.65 50 µA µF V VCLKHI VCLKMCUHI SPIVCC-0.2 VSRTC-0.2 SPIVCC VSRTC VCLKLO 0 0.2 V VLCD 1.8 2.0 V VXTAL 1.2 4.65 V V ION 459 1500 (11) Symbol Min Typ Max Unit µA IRTC IOFF - 3.00 6.00 µA IPCUT ISTBY - 10 30 µA 3.0 230 6.0 µA 295 µA 13892 12 Analog Integrated Circuit Device Data Freescale Semiconductor ELECTRICAL CHARACTERISTICS STATIC ELECTRICAL CHARACTERISTICS Table 5. Static Electrical Characteristics Characteristics noted under conditions - 30°C ≤ TA ≤ 85 °C, GND = 0 V unless otherwise noted. Typical values noted reflect the approximate parameter means at TA = 25 °C under nominal conditions, unless otherwise noted. Characteristic VSRTC ACTIVE MODE – DC Output Voltage VOUT VINMIN < VIN < VINMAX, ILMIN < IL < ILMAX Active Mode Quiescent Current VINMIN < VIN < VINMAX, IL = 0 CLK AND MISO Input Low CS, MOSI, CLK VINCSLO VINMOSILO VINCLKLO VINCSHI VINMOSIHI VINCLKHI VOMISOLO VOINTLO 0 0.3*SPIVCC V IRTCQS 0.8 1.0 VSRTC 1.15 1.20 1.25 µA V Symbol Min Typ Max Unit Input High CS, MOSI, CLK V 0.7*SPIVCC SPIVCC+0.3 V 0 SPIVCC-0.2 1.75 0.2 V SPIVCC 3.1 V Output Low MISO, INT Output sink 100 µA Output High MISO, INT Output source 100 µA SPIVCC Operating Range BUCK CONVERTERS Operating Input Voltage PWM operation, 0 < IL < IMAX PFM operation, 0 < IL < IMAX Extended PWM or PFM operation(13) Output Voltage Range Switcher 1 Switchers 2, 3, and 4 Output Accuracy PWM mode including ripple, load regulation, and transients PFM Mode, including ripple, load regulation, and transients Maximum Continuous Load Current, IMAX, VINMIN UVDET Max Output Noise - VIN = VINMIN, IL = 0.75*ILmax 100 Hz – 1.0 kHz >1.0 kHz – 10 kHz >10 kHz – 1.0 MHz Turn-on Time Enable to 90% of end value, VIN = VINMIN, VINMAX, IL = 0 Turn-off Time Disable to 10% of initial value, VIN = VINMIN, VINMAX, IL = 0 Transient Load Response - See Transient Waveforms on page 84, VIN = VINMIN, VINMAX Transient Line Response - See Transient Waveforms on page 84 IL = 75% of ILMAX VPLL AND VDIG ACTIVE MODE - AC PSRR - IL = 75% of ILMAX, 20 Hz to 20 kHz VIN = UVDET VIN = VNOM + 1.0 V, > UVDET Output Noise - VIN = VINMIN, IL = 0.75*ILMAX 100 Hz – 1.0 kHz >1 kHz – 1.0 MHz Turn-on Time Enable to 90% of end value, VIN = VINMIN, VINMAX, IL = 0 Turn-off Time Disable to 10% of initial value, VIN = VINMIN, VINMAX, IL = 0 VPLLtOFF 0.1 10 VPLLtON 100 ms VPLLON 20 2.5 dB/dec µV/√Hz µs VPLLPSSR 35 50 40 60 dB VAUDIOTLOR VAUDIOTLIR 5.0 8.0 1.0 2.0 mV VAUDIOtOFF 0.1 10 % VAUDIOtON 1.0 ms VAUDIOON -114 -124 -129 ms VAUDIOPSSR 35 50 40 60 dBV/√Hz dB VVIDEOMTR 1.0 2.0 VVIDEOtMOD 100 % VVIDEOTLIR 5.0 8.0 µs VVIDEOTLOR 1.0 2.0 mV VVIDEOtOFF 0.1 10 % ms Symbol Min Typ Max Unit 13892 26 Analog Integrated Circuit Device Data Freescale Semiconductor ELECTRICAL CHARACTERISTICS DYNAMIC ELECTRICAL CHARACTERISTICS Table 6. Dynamic Electrical Characteristics Characteristics noted under conditions 3.1 V ≤ BATT ≤ 4.65 V, -30 ≤ TA ≤ 85 °C, GND = 0 V, unless otherwise noted. Typical values noted reflect the approximate parameter means at TA = 25 °C under nominal conditions unless otherwise noted. Characteristic VPLL AND VDIG ACTIVE MODE - AC (CONTINUED) Transient Load Response - See Transient Waveforms on page 84 VIN = VINMIN, VINMAX Transient Line Response - See Transient Waveforms on page 84 IL = 75% of ILMAX VIOHI ACTIVE MODE - AC PSRR - IL = 75% of ILMAX, 20 Hz to 20 kHz VIN = VINMIN + 100 mV, > UVDET VIN = VNOM + 1.0 V, > UVDET Output Noise - VIN = VINMIN, IL = 0.75*ILMAX 100 Hz – 1.0 kHz >1.0 kHz – 1.0 MHz Turn-on Time Enable to 90% of end value, VIN = VINMIN, VINMAX, IL = 0 Turn-off Time Disable to 10% of initial value, VIN = VINMIN, VINMAX, IL = 0 Transient Load Response - See Transient Waveforms on page 84 VIN = VINMIN, VINMAX Transient Line Response - See Transient Waveforms on page 84 IL = 75% of ILMAX Mode Transition Time - See Transient Waveforms on page 84 From low power to active, VIN = VINMIN, VINMAX, IL = ILMAXLP Mode Transition Response From low power to active and from active to low power, VIN = VINMIN, VINMAX, IL = ILMAXLP VCAM ACTIVE MODE - AC PSRR - IL = 75% of ILMAX, 20 Hz to 20 kHz VIN = VINMIN + 100 mV VIN = VNOM + 1.0 V Output Noise - VIN = VINMIN, IL = 0.75*ILMAX 100 Hz – 1.0 kHz >1.0 kHz – 1.0 MHz Turn-on Time (Enable to 90% of end value, VIN = VINMIN, VINMAX, IL = 0) Turn-off Time (Disable to 10% of initial value, VIN = VINMIN, VINMAX, IL = 0) Transient Load Response - See Transient Waveforms on page 84 VIN = VINMIN, VINMAX VCAM = 01, 10, 11 VCAM = 00 Transient Line Response - See Transient Waveforms on page 84 IL = 75% of ILMAX VCAMLIR 5.0 8.0 1.0 50 2.0 70 % mV mV VCAMtON VCAMtOFF VCAMLOR VCAMON 0.1 20 1.0 1.0 10 dB/dec µV/√Hz ms ms VCAMPSSR 35 50 40 60 dB VIOHIMTR 1.0 2.0 VIOHIMTR 10 % VIOHITLIR 5.0 8.0 µs VIOHITLOR 1.0 2.0 mV VIOHItOFF 0.1 10 % VIOHItON 1.0 ms VIOHION 20 1.0 dB/dec µV/√Hz ms VIOHIPSSR 35 50 40 60 dB VPLLTLOR, VDIGTLOR VPLLTLIR, VDIGTLIR mV 50 70 mV 5.0 8.0 Symbol Min Typ Max Unit 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 27 ELECTRICAL CHARACTERISTICS DYNAMIC ELECTRICAL CHARACTERISTICS Table 6. Dynamic Electrical Characteristics Characteristics noted under conditions 3.1 V ≤ BATT ≤ 4.65 V, -30 ≤ TA ≤ 85 °C, GND = 0 V, unless otherwise noted. Typical values noted reflect the approximate parameter means at TA = 25 °C under nominal conditions unless otherwise noted. Characteristic VCAM ACTIVE MODE - AC (CONTINUED) Mode Transition Time - See Transient Waveforms on page 84 From low power to active, VIN = VINMIN, VINMAX, IL = ILMAXLP Mode Transition Response From low power to active and from, active to low power, VIN = VINMIN, VINMAX, IL = ILMAXLP VSD ACTIVE MODE - AC PSRR - IL = 75% of ILMAX, 20 Hz to 20 kHz VIN = VINMIN + 100 mV VIN = VNOM + 1.0 V Max Output Noise - VIN = VINMIN, IL = 75% of ILMAX 100 Hz – 1.0 kHz >1.0 kHz – 10 kHz >10 kHz – 1.0 MHz Turn-on Time (Enable to 90% of end value, VIN = VINMIN, VINMAX, IL = 0) Turn-off Time (Disable to 10% of initial value, VIN = VINMIN, VINMAX, IL = 0) Transient Load Response - See Transient Waveforms on page 84 VIN = VINMIN, VINMAX - VSD[2:0] = 010 to 111 - VSD[2:0] = 000 to 001 Transient Line Response - See Transient Waveforms on page 84 IL = 75% of ILMAX Mode Transition Time - See Transient Waveforms on page 84 From low power to active, VIN = VINMIN, VINMAX, IL = ILMAXLP Mode Transition Response - See Transient Waveforms on page 84 From low power to active and from active to low power, VIN = VINMIN, VINMAX, IL = ILMAXLP VUSB ACTIVE MODE - AC PSRR - IL = 75% of ILMAX, 20 Hz to 20 kHz VIN = VINMIN + 100 mV Max Output Noise - VIN = VINMIN, IL = 75% of ILMAX 100 Hz – 50 kHz >50 kHz – 1.0 MHz VUSB2 ACTIVE MODE - AC PSRR - IL = 75% of ILMAX, 20 Hz to 20 kHz VIN = VINMIN + 100 mV VIN = VNOM + 1.0 V Output Noise - VIN = VINMIN, IL = 0.75*ILMAX 100 Hz – 1.0 kHz >1.0 kHz – 1.0 MHz VUSB2ON 20 0.2 dB/dec µV/√Hz VUSB2PSSR 35 50 40 60 dB VUSBON 1.0 0.2 VUSBPSSR 35 40 µV/√Hz dB VSDMTR 1.0 2.0 VSDtMOD 100 % VSDTLIR 5.0 8.0 µs 1.0 2.0 70 % mV mV VSDtON VSDtOFF VSDTLOR VSDON 0.1 -115 -126 -132 1.0 10 ms ms VSDPSSR 35 50 40 60 dBV/√Hz dB VCAMMTR 1.0 2.0 VCAMtMOD 100 % µs Symbol Min Typ Max Unit 13892 28 Analog Integrated Circuit Device Data Freescale Semiconductor ELECTRICAL CHARACTERISTICS DYNAMIC ELECTRICAL CHARACTERISTICS Table 6. Dynamic Electrical Characteristics Characteristics noted under conditions 3.1 V ≤ BATT ≤ 4.65 V, -30 ≤ TA ≤ 85 °C, GND = 0 V, unless otherwise noted. Typical values noted reflect the approximate parameter means at TA = 25 °C under nominal conditions unless otherwise noted. Characteristic VUSB2 ACTIVE MODE - AC (CONTINUED) Turn-on Time Enable to 90% of end value, VIN = VINMIN, VINMAX, IL = 0 Turn-off Time Disable to 10% of initial value, VIN = VINMIN, VINMAX, IL = 0 Start-up Overshoot VIN = VINMIN, VINMAX, IL = 0 Transient Load Response - See Transient Waveforms on page 84 VIN = VINMIN, VINMAX Transient Line Response - See Transient Waveforms on page 84 IL = 75% of ILMAX UVBUS ACTIVE MODE DC Turn-on Time VBUS Rise Time per USB OTG with max loading of 6.5 µF+10 µF Turn-off Time Disable to 0.8 V, per USB OTG specification parameter VA_SESS_VLD, VIN = VINMIN, VINMAX, IL = 0 VGEN1 ACTIVE MODE - AC PSRR - IL = 75% of ILMAX, 20 Hz to 20 kHz VIN = UVDET VIN = VNOM + 1.0 V, > UVDET Max Output Noise - VIN = VINMIN, IL = 0.75*ILMAX 100 Hz – 1.0 kHz >1.0 kHz – 10 kHz >10 kHz – 1.0 MHz Turn-on Time Enable to 90% of end value VIN = VINMIN, VINMAX, IL = 0 Turn-off Time Disable to 10% of initial value VIN = VINMIN, VINMAX, IL = 0 Transient Load Response - See Transient Waveforms on page 84 VIN = VINMIN, VINMAX - VGEN1[1:0] = 10 to 11 - VGEN[1:0] = 00 to 01 Transient Line Response - See Transient Waveforms on page 84 IL = 75% of ILMAX Mode Transition Time - See Transient Waveforms on page 84 From low power to active VIN = VINMIN, VINMAX, IL = ILMAXLP Mode Transition Response - See Transient Waveforms on page 84 From low power to active and from active to low power VIN = VINMIN, VINMAX, IL = ILMAXLP VGEN1MTR 1.0 2.0 VGEN1tMOD 100 % VGEN1TLIR 5.0 8.0 µs 1.0 3.0 70 % mV mV VGEN1TLOR VGEN1tOFF 0.1 10 VGEN1tON 1.0 ms VGEN1ON -115 -126 -132 ms VGEN1PSSR 35 50 40 60 dBV/√Hz dB UVBUStOFF 1.3 UVBUStON 100 sec ms VUSB2TLIR 5.0 8.0 VUSB2TLOR 1.0 2.0 mV VUSB2OS 1.0 2.0 % VUSBtOFF 0.1 10 % VUSB2tON 100 ms µs Symbol Min Typ Max Unit 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 29 ELECTRICAL CHARACTERISTICS DYNAMIC ELECTRICAL CHARACTERISTICS Table 6. Dynamic Electrical Characteristics Characteristics noted under conditions 3.1 V ≤ BATT ≤ 4.65 V, -30 ≤ TA ≤ 85 °C, GND = 0 V, unless otherwise noted. Typical values noted reflect the approximate parameter means at TA = 25 °C under nominal conditions unless otherwise noted. Characteristic VGEN2 ACTIVE MODE - AC PSRR - IL = 75% of ILMAX, 20 Hz to 20 kHz VIN = VINMIN + 100 mV VIN = VNOM + 1.0 V Max Output Noise - VIN = VINMIN, IL = ILMAX 100 Hz – 1.0 kHz >1.0 kHz – 10 kHz >10 kHz – 1.0 MHz Turn-on Time Enable to 90% of end value VIN = VINMIN, VINMAX, IL = 0 Turn-off Time (Disable to 10% of initial value VIN = VINMIN, VINMAX, IL = 0) Transient Load Response - See Transient Waveforms on page 84 VIN = VINMIN, VINMAX - VGEN2[2:0] = 100 to 111 - VGEN2[2:0] = 000 to 011 Transient Line Response - See Transient Waveforms on page 84 IL = 75% of ILMAX Mode Transition Time - See Transient Waveforms on page 84 From low power to active VIN = VINMIN, VINMAX, IL = ILMAXLP Mode Transition Response - See Transient Waveforms on page 84 From low power to active and from active to low power VIN = VINMIN, VINMAX, IL = ILMAXLP VGEN3 ACTIVE MODE - AC PSRR IL = 75% of ILMAX, 20 Hz to 20 kHz, VIN = VINMIN +100 mV VIN = VNOM+1.0 V Output Noise - VIN = VINMIN, IL = 75% of ILMAX 100 Hz – 1.0 kHz >1.0 kHz – 1.0 MHz Turn-on Time Enable to 90% of end value VIN = VINMIN, VINMAX, IL = 0 Turn-off Time Disable to 10% of initial value VIN = VINMIN, VINMAX, IL = 0 Transient Load Response VIN = VINMIN, VINMAX - VGEN3 = 1 - VGEN3 = 0 Transient Line Response (IL = 75% of ILMAX) VGEN3TLIR 1.0 5.0 2.0 70 8.0 % mV mV VGEN3TLOR VGEN3tOFF 0.1 5.0 VGEN3tON 1.0 ms VGEN3ON 20 1.0 dB/dec µV/√Hz ms VGEN3PSSR 35 45 40 50 dB VGEN2MTR 1.0 2.0 VGEN2tMOD 100 % VGEN2TLIR 5.0 8.0 µs 1.0 3.0 70 % mV mV VGEN2tOFF VGEN2TLOR VGEN2tON 0.1 1.0 10 ms VGEN2ON -115 -126 -132 ms VGEN2PSSR 35 50 40 60 dBV/√Hz dB Symbol Min Typ Max Unit 13892 30 Analog Integrated Circuit Device Data Freescale Semiconductor ELECTRICAL CHARACTERISTICS DYNAMIC ELECTRICAL CHARACTERISTICS Table 6. Dynamic Electrical Characteristics Characteristics noted under conditions 3.1 V ≤ BATT ≤ 4.65 V, -30 ≤ TA ≤ 85 °C, GND = 0 V, unless otherwise noted. Typical values noted reflect the approximate parameter means at TA = 25 °C under nominal conditions unless otherwise noted. Characteristic VGEN3 ACTIVE MODE - AC (CONTINUED) Mode Transition Time From low power to active VIN = VINMIN, VINMAX, IL = ILMAXLP Mode Transition Response From low power to active and from active to low power, VIN = VINMIN, VINMAX, IL = ILMAXLP UVBUS - ACTIVE MODE DC Turn-on Time - VBUS Rise Time por USB OTG with max loading of 6.5 µF+10 µF Turn-off Time - Disable to 0.8 V, per USB OTG specification parameter VA_SESS_VLD VIN = VINMIN, VINMAX, IL=0 ADC Conversion Time per Channel - PLLX[2:0] = 100 Turn On Delay If Switcher PLL was active If Switcher PLL was inactive TOUCH SCREEN Turn-on Time - 90% of output 500 µs 0 5 10 10 µs µs 100 1.3 ms sec VGEN3MTR 1.0 2.0 VGEN3tMOD 100 % µs Symbol Min Typ Max Unit 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 31 FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION CHARGER CHRGRAW 1. Charger input. The charger voltage is measured through an ADC at this pin. The UVBUS pin must be shorted to CHRGRAW in cases where the charger is being supplied from the USB cable. The minimum voltage for this pin depends on BATTMIN threshold value (see Battery Interface and Control). 2. Output to battery supplied accessories. The battery voltage can be applied to an accessory by enabling the charge path for the accessory via the CHRGRAW pin. To accomplish this, the charger needs to be configured in reverse supply mode. CHRGCTRL1 Driver output for charger path FET M1. CHRGCTRL2 Driver output for charger path FET M2. CHRGISNS Charge current sensing point 1. The charge current is read by monitoring the voltage drop over the charge current 100 mΩ sense resistor connected between CHRGISNS and BPSNS. BPSNS 1. BP sense point. BP voltage is sensed at this pin and compared with the voltage at CHRGRAW. 2. Charge current sensing point 2. The charge current is read by monitoring the voltage drop over the charge current 100 mΩ sense resistor. This resistor is connected between CHRGISNS and BPSNS. BP This pin is the application supply point, the input supply to the IC core circuitry. The application supply voltage is sensed through an ADC at this pin. BATTFET Driver output for battery path FET M3. If no charging system is required or single path is implemented, the pin BATTFET must be floating. BATTISNS Battery current sensing point 1. The current flowing out of and into the battery can be read via the ADC by monitoring the voltage drop over the sense resistor between BATT and BATTISNS. BATT Battery positive terminal. Battery current sensing point 2. The supply voltage of the battery is sensed through an ADC on this pin. The current flowing out of and into the battery can be read via the ADC by monitoring the voltage drop over the sense resistor between BATT and BATTISNS. BATTISNSCC Accumulated current counter current sensing point. This is the coulomb counter current sense point. It should be connected directly to the 0.020 Ω sense resistor via a separate route from BATTISNS. The coulomb counter monitors the current flowing in/ out of the battery by integrating the voltage drop over the BATTISNCC and the BATT pin. 13892 32 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION CFP AND CFM Accumulated current filter cap plus and minus terminals respectively. The coulomb counter will require a 10 µF output capacitor connected between these pins to perform a first order filtering of the signal across R1. CHRGSE1B An unregulated wall charger configuration can be built in which case this pin must be pulled low. When charging through USB, it can be left open since it is internally pulled up to VCORE. The recommendation is to place an external FET that can pull it low or left it open, depending on the charge method. CHRGLED Trickle LED driver output 1. Since normal LED control via the SPI bus is not always possible in the standalone operation, a current sink is provided at the CHRGLED pin. This LED is to be connected between this pin and CHRGRAW. GNDCHRG Ground for charger interface. LEDR, LEDG AND LEDB General purpose LED driver output Red, Green and Blue respectively. Each channel provides flexible LED intensity control. These pins can also be used as general purpose open drain outputs for logic signaling, or as generic PWM generator outputs. GNDLED Ground for LED drivers IC CORE VCORE Regulated supply output for the IC analog core circuitry. It is used to define the PUMS VIH level during initialization. The bandgap and the rest of the core circuitry are supplied from VCORE. Place a 2.2 μF capacitor from this pin to GNDCORE. VCOREDIG Regulated supply output for the IC digital core circuitry. No external DC loading is allowed on VCOREDIG. VCOREDIG is kept powered as long as there is a valid supply and/or coin cell. Place a 2.2 μF capacitor from this pin to GNDCORE. REFCORE Main bandgap reference. All regulators use the main bandgap as the reference. The main bandgap is bypassed with a capacitor at REFCORE. No external DC loading is allowed on REFCORE. Place a 100 nF capacitor from this pin to GNDCORE. GNDCORE Ground for the IC core circuitry. POWER GATING PWGTDRV1 AND PWGTDRV2 Power Gate Drivers. PWGTDRV1 is provided for power gating peripheral loads sharing the processor core supply domain(s) SW1, and/or SW2, and/or SW3. In addition, PWGTDRV2 provides support to power gate peripheral loads on the SW4 supply domain. In typical applications, SW1, SW2, and SW3 will both be kept active for the processor modules in state retention, and SW4 retained for the external memory in self refresh mode. SW1, SW2, and SW3 power gating FET drive would typically be connected to PWGTDRV1 (for parallel NMOS switches). SW4 power gating FET drive would typically be connected to PWGTDRV2. When low power Off mode is activated, the power gate drive circuitry will be disabled, turning off the NMOS power gate switches to isolate the maintained supply domains from any peripheral loading. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 33 FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION SWITCHERS SW1IN, SW2IN, SW3IN AND SW4IN Switchers 1, 2, 3, and 4 input. Connect these pins to BP to supply Switchers 1, 2, 3, and 4. SW1FB, SW2FB, SW3FB AND SW4FB Switchers 1, 2, 3, and 4 feedback. Switchers 1, 2, 3, and 4 output voltage sense respectively. Connect these pins to the farther point of each of their respective SWxOUT pin, in order to sense and maintain voltage stability. SW1OUT Switcher 1 output. Buck switcher for processor core(s). GNDSW1 Ground for Switcher 1. SW2OUT Switcher 2 output. Buck switcher for processor SOG, etc. GNDSW2 Ground for Switcher 2. SW3OUT Switcher 3 output. Buck switcher for internal processor memory and peripherals. GNDSW3 Ground for switcher 3. SW4OUT Switcher 4 output. Buck switcher for external memory and peripherals. GNDSW4 Ground for switcher 4. DVS1 AND DVS2 Switcher 1 and 2 DVS input pins. Provided for pin controlled DVS on the buck switchers targeted for processor core supplies. The DVS pins may be reconfigured for Switcher Increment / Decrement (SID) mode control. When transitioning from one voltage to another, the output voltage slope is controlled in steps of 25 mV per time step. These pins must be set high in order for the DVS feature to be enabled for each of switchers 1 or 2, or low to disable it. SWBSTIN Switcher BST input. The 2.2 μH switcher BST inductor must be connected here. SWBSTOUT Power supply for gate driver for the internal power NMOS that charges SWBST inductor. It must be connected to BP. SWBSTFB Switcher BST feedback. When SWBST is configured to supply the UVBUS pin in OTG mode the feedback will be switched to sense the UVBUS pin instead of the SWBSTFB pin. GNDSWBST Ground for switcher BST. 13892 34 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION REGULATORS VINIOHI Input of VIOHI regulator. Connect this pin to BP in order to supply VIOHI regulator. VIOHI Output regulator for high voltage IO. Fixed 2.775 V output for high voltage level interface. VINPLL AND VINDIG The input of the regulator for processor PLL and Digital regulators respectively. VINDIG and VINPLL can be connected to either BP or a 1.8 V switched mode power supply rail, such as from SW4 for the two lower set points of each regulator (the 1.2 and 1.25 V output for VPLL, and 1.05 and 1.25 V output for VDIG). In addition, when the two upper set points are used (1.50 and 1.8V outputs for VPLL, and 1.65 and 1.8V for VDIG), they can be connected to either BP or a 2.2V nominal external switched mode power supply rail, to improve power dissipation. VPLL Output of regulator for processor PLL. Quiet analog supply (PLL, GPS). VDIG Output regulator Digital. Low voltage digital (DPLL, GPS). VVIDEODRV Drive output for VVIDEO external PNP transistor. VVIDEO Output regulator TV DAC. This pin must be connected to the collector of the external PNP transistor of the VVIDEO regulator. VINAUDIO Input regulator VAUDIO. Typically connected to BP. VAUDIO Output regulator for audio supply. VINUSB2 Input regulator VUSB2. This pin must always be connected to BP even if the regulators are not used by the application. VUSB2 Output regulator for powering USB PHY. VINCAMDRV 1. Input regulator camera using internal PMOS FET. Typically connected to BP. 2. Drive output regulator for camera voltage using external PNP device. In this case, this pin must be connected to the base of the PNP in order to drive it. VCAM Output regulator for the camera module. When using an external PNP device, this pin must be connected to its collector. VSDDRV Drive output for the VSD external PNP transistor. VSD Output regulator for multi-media cards such as micro SD, RS-MMC. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 35 FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION VGEN1DRV Drive output for the VGEN1 external PNP transistor. VGEN1 Output of general purpose 1 regulator. VGEN2DRV Drive output for the VGEN2 external PNP transistor. VGEN2 Output of general purpose 2 regulator. VINGEN3DRV 1. Input for the VGEN3 regulator when no external PNP transistor used. Typically connected to BP. 2. Drive output for VGEN3 in case an external PNP transistor is used on the application. In this case, this pin must be connected the base of the PNP transistor. VGEN3 Output of general purpose 3 regulator. VSRTC Output regulator for the SRTC module on the processor. The VSRTC regulator provides the CLK32KMCU output level (1.2 V). Additionally, it is used to bias the Low Power SRTC domain of the SRTC module integrated on certain FSL processors. GNDREG1 Ground for regulators 1. GNDREG2 Ground for regulators 2. GNDREG3 Ground for regulators 3. GENERAL OUTPUTS GPO1 General purpose output 1. Intended to be used for battery thermistor biasing. In this case, connect a 10 KΩ resistor from GPO1 to ADIN5, and one from ADIN5 to GND. GPO2 General purpose output 2. GPO3 General purpose output 3. GPO4 General purpose output 4. It can be configured for a muxed connection into Channel 7 of the GP ADC. 13892 36 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION CONTROL LOGIC LICELL Coin cell supply input and charger output. The LICELL pin provides a connection for a coin cell backup battery or supercap. If the main battery is deeply discharged, removed, or contact-bounced (i.e., during a power cut), the RTC system and coin cell maintained logic will switch over to the LICELL for backup power. This pin also works as a current-limited voltage source for battery charging. A small capacitor should be placed from LICELL to ground under all circumstances. XTAL1 32.768 kHz Oscillator crystal connection 1. XTAL2 32.768 kHz Oscillator crystal connection 2. GNDRTC Ground for the RTC block. CLK32K 32 kHz Clock output for peripherals. At system start-up, the 32 kHz clock is driven to CLK32K (provided as a peripheral clock reference), which is referenced to SPIVCC. The CLK32K is restricted to state machine activation in normal on mode. CLK32KMCU 32 kHz Clock output for processor. At system start-up, the 32 kHz clock is driven to CLK32KMCU (intended as the CKIL input to the system processor) referenced to VSRTC. The driver is enabled by the start-up sequencer and the CLK32KMCU is programmable for Low Power Off mode control by the state machine. RESETB AND RESETBMCU Reset output for peripherals and processor respectively. These depend on the Power Control Modes of operation (See Functional Device Operation on page 41). These are meant as reset for the processor, or peripherals in a power up condition, or to keep one in reset while the other is up and running. WDI Watchdog input. This pin must be high to stay in the On mode. The WDI IO supply voltage is referenced to SPIVCC (normally connected to SW4 = 1.8 V). SPIVCC must therefore remain enabled to allow for proper WDI detection. If WDI goes low, the system will transition to the Off state or Cold Start (depending on the configuration). STANDBY AND STANDBYSEC Standby input signal from processor and from peripherals respectively. To ensure that shared resources are properly powered when required, the system will only be allowed into Standby when both the application processor (which typically controls the STANDBY pin) and peripherals (which typically control the STANDBYSEC pin) allow it. This is referred to as a Standby event. The Standby pins are programmable for Active High or Active Low polarity, and that decoding of a Standby event will take into account the programmed input polarities associated with each pin. Since the Standby pin activity is driven asynchronously to the system, a finite time is required for the internal logic to qualify and respond to the pin level changes. The state of the Standby pins only have influence in the On mode and are therefore ignored during start up and in the Watchdog phase. This allows the system to power up without concern of the required Standby polarities, since software can make adjustments accordingly, as soon as it is running. INT Interrupt to processor. Unmasked interrupt events are signaled to the processor by driving the INT pin high. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 37 FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION PWRON1, 2 AND 3 A turn on event can be accomplished by connecting an open drain NMOS driver to the PWRONx pin of the 13892, so that it is in effect a parallel path for the power key. In addition to the turn on event, the 13892A/B versions include a global reset feature on the PWRON3 pin. The 13892A version has the global reset feature enabled by default. The 13892B version has the global reset feature disabled by default, but can be enabled by setting the SPI bit GLBRSTENB = 0. The global reset feature powers down the part, disables the charger, resets the SPI registers to their default value and then powers back on. To enable a global reset the PWRON3 pin needs to be pulled low for greater than 12 seconds and then pulled back high. If the PWRON3 pin is held low for less than 12 seconds the pin will act as a normal PWRON pin. PUMS1 AND PUMS2 Power up mode supply setting. Default start-up of the device is selectable by hardwiring the Power Up Mode Select pins. The Power Up Mode Select pins (PUMS1 and PUMS2) are used to configure the start-up characteristics of the regulators. Supply enabling and output level options are selected by hardworking the PUMS pins for the desired configuration. MODE USB LBP mode, normal mode, test mode selection & anti-fuse bias. During evaluation and testing, the IC can be configured for normal operation or test mode via the MODE pin as summarized in the following table. MODE PIN STATE Ground VCOREDIG VCORE MODE Normal Operation USB Low Power Boot Allowed Test Mode GNDCTRL Ground for control logic. SPIVCC Supply for SPI bus and audio bus CS CS held low at Cold Start configures the interface for SPI mode. Once activated, CS functions as the SPI Chip Select. CS tied to VCORE at Cold Start configures the interface for I2C mode; the pin is not used in I2C mode other than for configuration. Because the SPI interface pins can be reconfigured for reuse as an I2C interface, a configuration protocol mandates that the CS pin is held low during a turn on event for the IC (a weak pull-down is integrated on the CS pin). CLK Primary SPI clock input. In I2C mode, this pin is the SCL signal (I2C bus clock). MOSI Primary SPI write input. In I2C mode, the MOSI pin hard wired to ground or VCORE is used to select between two possible addresses (A0 address selection). MISO Primary SPI read output. In I2C mode, this pin is the SDA signal (bi-directional serial data line). GNDSPI Ground for SPI interface. 13892 38 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION USB UID This pin identifies if a mini-A or mini-B style plug has been connected to the application. The state of the ID detection can be read via the SPI, to poll dedicated sense bits for a floating, grounded, or factory mode condition on the UID pin. UVBUS 1. USB transceiver cable interface. 2. OTG supply output. When SWBST is configured to supply the UVBUS pin in OTG mode, the feedback will switch to sense the UVBUS pin instead of the SWBSTFB pin. VUSB This is the regulator used to provide a voltage to an external USB transceiver IC. VINUSB Input option for VUSB; supplied by SWBST. This pin is internally connected to the UVBUS pin for OTG mode operation (for more details about OTG mode). Note: When VUSBIN = 1, UVBUS will be connected via internal switches to VINUSB and incur some current drain on that pin, as much as 270 μA maximum, so care must be taken to disable this path and set this SPI bit (VUSBIN) to 0 to minimize current drain, even if SWBST and/or VUSB are disabled. VBUSEN External VBUS enable pin for the OTG supply. VBUS is defined as the power rail of the USB cable (+5.0 V). A TO D CONVERTER Note: The ADIN5/6/7 inputs must not exceed BP. ADIN5 ADC generic input channel 5. ADIN5 may be used as a general purpose unscaled input, but in a typical application, ADIN5 is used to read out the battery pack thermistor. The thermistor must be biased with an external pull-up to a voltage rail greater than the ADC input range. In order to save current when the thermistor reading is not required, it can be biased from one of the general purpose IOs such as GPO1. A resistor divider network should assure the resulting voltage falls within the ADC input range, in particular when the thermistor check function is used. ADIN6 ADC generic input channel 6. ADIN6 may be used as a general purpose unscaled input, but in a typical application, the PA thermistor is connected here. ADIN7 ADC generic input channel 7, group 1. ADIN7 may be used as a general purpose unscaled input or as a divide by 2 scaled input. In a typical application, an ambient light sensor is connected here. A second general purpose input ADIN7B is available on channel 7. This input is muxed on the GPO4 pin. In the application, a second ambient light sensor is supposed to be connected here. TSX1 AND TSX2, TSY1 AND TSY2 - Note: The TS[xy] [12] inputs must not exceed BP or VCORE. Touch Screen Interfaces X1 and X2, Y1 and Y2. The touch screen X plate is connected to TSX1 and TSX2, while the Y plate is connected to Y1 and Y2. In inactive mode, these pins can also be used as general purpose ADC inputs. They are respectively mapped on ADC channels 4, 5, 6, and 7. In interrupt mode, a voltage is applied to the X-plate (TSX2) via a weak current source to VCORE, while the Y-plate is connected to ground (TSY1). 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 39 FUNCTIONAL DESCRIPTION FUNCTIONAL PIN DESCRIPTION TSREF Touch Screen Reference regulator. This regulator is powered from VCORE. In applications not supporting touch screen, the TSREF can be used as a low current general purpose regulator, or it can be kept disabled and the bypass capacitor omitted. ADTRIG ADC trigger input. A rising edge on this pin will start an ADC conversion. GNDADC Ground for A to D circuitry. THERMAL GROUNDS GNDSUB1-9 General grounds and thermal heat sinks. 13892 40 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION PROGRAMMABILITY FUNCTIONAL DEVICE OPERATION PROGRAMMABILITY INTERFACING OVERVIEW AND CONFIGURATION OPTIONS The 13892 contains a number of programmable registers for control and communication. The majority of registers are accessed through a SPI interface in a typical application. The same register set may alternatively be accessed with an I2C interface that is muxed on SPI pins. The following table describes the muxed pin options for the SPI and I2C interfaces. Further details for each interface mode follow in this chapter. Table 7. SPI / I2C Bus Configuration Pin Name CS CLK MISO MOSI SPI Clock Master In, Slave Out (data output) Master Out, Slave In (data input) SPI Mode Functionality Configuration (31) I2C Mode Functionality Configuration (32) SCL: I2C bus clock SDA: Bi-directional serial data line A0 Address Selection (33) , Chip Select Notes 31. CS held low at Cold Start configures interface for SPI mode; once activated, CS functions as the SPI Chip Select. 32. CS tied to VCORE at Cold Start configures interface for I2C mode; the pin is not used in I2C mode other than for configuration. 33. In I2C mode, the MOSI pin hardwired to ground or VCORE is used to select between two possible addresses. SPI INTERFACE The 13892 contains a SPI interface port, which allows access by a processor to the register set. Via these registers, the resources of the IC can be controlled. The registers also provide status information about how the IC is operating, as well as information on external signals. The SPI interface pins can be reconfigured for reuse as an I2C interface. As a result, a configuration protocol mandates that the CS pin is held low during a turn on event for the IC (a weak pull-down is integrated on the CS pin. With the CS pin held low during startup (as would be the case if connected to the CS driver of an unpowered processor, due to the integrated pull-down), the bus configuration will be latched for SPI mode. The SPI port utilizes 32-bit serial data words comprised of 1 write/read_b bit, 6 address bits, 1 null bit, and 24 data bits. The addressable register map spans 64 registers of 24 data bits each. The general structure of the register set is given in the following table. Bit names, positions, and basic descriptions are provided in SPI Bitmap. Expanded bit descriptions are included in the following functional chapters for application guidance. For brevity's sake, references are occasionally made herein to the register set as the “SPI map” or “SPI bits”, but note that bit access is also possible through the I2C interface option, so such references are implied as generically applicable to the register set accessible by either interface. Table 8. Register Set Register 0 1 2 3 4 5 6 7 8 9 10 11 Interrupt Status 0 Interrupt Mask 0 Interrupt Sense 0 Interrupt Status 1 Interrupt Mask 1 Interrupt Sense 1 Power Up Mode Sense Identification Unused ACC 0 ACC 1 Unused 16 17 18 19 20 21 22 23 24 25 26 27 Register Unused Unused Memory A Memory B RTC Time RTC Alarm RTC Day RTC Day Alarm Switchers 0 Switchers 1 Switchers 2 Switchers 3 32 33 34 35 36 37 38 39 40 41 42 43 Register Regulator Mode 0 Regulator Mode 1 Power Miscellaneous Unused Unused Unused Unused Unused Unused Unused Unused ADC 0 48 49 50 51 52 53 54 55 56 57 58 59 Register Charger 0 USB0 Charger USB1 LED Control 0 LED Control 1 LED Control 2 LED Control 3 Unused Unused Trim 0 Trim 1 Test 0 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 41 FUNCTIONAL DEVICE OPERATION PROGRAMMABILITY Table 8. Register Set Register 12 13 14 15 Unused Power Control 0 Power Control 1 Power Control 2 28 29 30 31 Register Switchers 4 Switchers 5 Regulator Setting 0 Regulator Setting 1 44 45 46 47 Register ADC 1 ADC 2 ADC 3 ADC4 60 61 62 63 Register Test 1 Test 2 Test 3 Test 4 The SPI interface is comprised of the package pins listed in Table 9. Table 9. SPI Interface Pin Description SPI Bus CLK MOSI MISO CS Interrupt INT Supply SPIVCC Processor SPI bus supply Interrupt to processor Description Serial data input line Serial data output line Clock enable line, active high Description Description Clock input line, data shifting occurs at the rising edge SPI INTERFACE DESCRIPTION The control bits are organized into 64 fields. Each of these 64 fields contains 32 bits. A maximum of 24 data bits are used per field. In addition, there is one “dead” bit between the data and address fields. The remaining bits include 6 address bits to address the 64 data fields and one write enable bit to select whether the SPI transaction is a read or a write. The register set will be to a large extent compatible with the MC13783 in order to facilitate software development. For each SPI transfer, first a one is written to the read/write bit if this SPI transfer is to be a write. A zero is written to the read/ write bit if this is to be a read command only. The CS line must remain high during the entire SPI transfer. To start a new SPI transfer, the CS line must go inactive and then go active again. The MISO line will be tri-stated while CS is low. To read a field of data, the MISO pin will output the data field pointed to by the 6 address bits loaded at the beginning of the SPI sequence. Figure 5. SPI Transfer Protocol Single Read/Write Access 13892 42 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION PROGRAMMABILITY Figure 6. SPI Transfer Protocol Multiple Read/Write Access SPI ELECTRICAL & TIMING REQUIREMENTS The following diagram and table summarize the SPI electrical and timing requirements. The SPI input and output levels are set independently via the SPIVCC pin by connecting it to the desired supply. This would typically be tied to SW4 programmed for 1.80 V. The strength of the MISO driver is programmable through the SPIDRV[1:0] bits. Figure 7. SPI Interface Timing Diagram 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 43 FUNCTIONAL DEVICE OPERATION PROGRAMMABILITY Table 10. SPI Interface Timing Specifications Parameter TSELSU TSELHLD TSELLOW TCLKPER TCLKHIGH TCLKLOW TWRTSU TWRTHLD TRDSU TRDHLD TRDEN TRDDIS Description Time CS has to be high before the first rising edge of CLK Time CS has to remain high after the last falling edge of CLK Time CS has to remain low between two transfers Clock period of CLK Part of the clock period where CLK has to remain high Part of the clock period where CLK has to remain low Time MOSI has to be stable before the next rising edge of CLK Time MOSI has to remain stable after the rising edge of CLK Time MISO will be stable before the next rising edge of CLK Time MISO will remain stable after the falling edge of CLK Time MISO needs to become active after the rising edge of CS Time MISO needs to become inactive after the falling edge of CS T min (ns) 15 15 15 38 15 15 4.0 4.0 4.0 4.0 4.0 4.0 Notes 34. This table reflects a maximum SPI clock frequency of 26 MHz Table 11. SPI Interface Logic IO Specifications Parameter Input Low CS, MOSI, CLK Input High CS, MOSI, CLK Output Low MISO, INT Output High MISO, INT SPIVCC Operating Range CL = 50 pF, SPIVCC = 1.8 V SPIDRV[1:0] = 00 (default) MISO Rise and Fall Time SPIDRV[1:0] = 01 SPIDRV[1:0] = 10 SPIDRV[1:0] = 11 11 6.0 High Z 22 ns ns ns ns Output sink 100 μA Output source 100 μA Condition Min 0 0.7*SPIVCC 0 SPIVCC-0.2 1.75 Typ Max 0.3*SPIVCC SPIVCC+0.3 0.2 SPIVCC 3.1 Units V V V V V 13892 44 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION I2C INTERFACE I2C INTERFACE I2C CONFIGURATION When configured for I2C mode (see Table 7) the interface may be used to access the complete register map previously described for SPI access. The MC13892 can function only as an I2C slave device, not as a host. I2C interface protocol requires a device ID for addressing the target IC on a multi-device bus. To allow flexibility in addressing for bus conflict avoidance, pin programmable selection is provided through the MOSI pin to allow configuration for the address LSB(s). This product supports 7-bit addressing only; support is not provided for 10-bit or General Call addressing. The I2C mode of the interface is implemented generally following the Fast Mode definition which supports up to 400 kbits/s operation. Timing diagrams, electrical specifications, and further details can be found in the I2C specification. Standard I2C protocol utilizes packets of 8 bits (bytes), with an acknowledge bit (ACK) required between each byte. However, the number of bytes per transfer is unrestricted. The register map of the MC13892 is organized in 24 bit registers which corresponds to the 24 bit words supported by the SPI protocol of this product. To ensure that the I2C operation mimics SPI transactions in behavior of a complete 24 bit word being written in one transaction, software is expected to perform write transactions to the device in 3 byte sequences, beginning with the MSB. Internally, data latching will be gated by the acknowledge at the completion of writing the third consecutive byte. Failure to complete a 3 byte write sequence will abort the I2C transaction and the register will retain its previous value. This could be due to a premature STOP command from the master. I2C read operations are also performed in byte increments separated by an ACK. Read operations also begin with the MSB and 3 bytes will be sent out, unless a STOP command or NACK is received prior to completion. The following examples show how to write and read data to the IC. The host initiates and terminates all communication. The host sends a master command packet after driving the start condition. The device will respond to the host if the master command packet contains the corresponding slave address. In the following examples, the device is shown always responding with an ACK to transmissions from the host. If at any time a NAK is received, the host should terminate the current transaction and retry the transaction. I2C DEVICE ID The I2C interface protocol requires a device ID for addressing the target IC on a multi-device bus. To allow flexibility in addressing for bus conflict avoidance, pin programmable selection is provided to allow configuration for the address LSB(s). This product supports 7-bit addressing only. Support is not provided for 10-bit or General Call addressing. Because the MOSI pin is not utilized for I2C communication, it is reassigned for pin programmable address selection by hardwiring to VCORE or GND at the board level, when configured for I2C mode. MOSI will act as Bit 0 of the address. The I2C address assigned to FSL PM ICs (shared amongst our portfolio) is as follows: 00010-A1-A0, where the A1 and A0 bits are allowed to be configured for either 1 or 0. It is anticipated for a maximum of two FSL PM ICs on a given board, which could be sharing an I2C bus. The A1 address bit is internally hardwired as a “0”, leaving the LSB A0 for board level configuration. The A1 bit will be implemented such that it can be re-wired as a “1” (with a metal change or fuse trim), if conflicts are encountered before the final production material is manufactured. The designated address is defined as: 000100-A0. I2C OPERATION The I2C mode of the interface is implemented, generally following the Fast mode definition, which supports up to 400 kbits/s operation. The exceptions to the standard are noted to be 7-bit only addressing, and no support for General Call addressing. Timing diagrams, electrical specifications, and further details can be found in the I2C specification, which is available for download at: http://www.nxp.com/acrobat_download/literature/9398/39340011.pdf Standard I2C protocol utilizes bytes of 8 bits, with an acknowledge bit (ACK) required between each byte. However, the number of bytes per transfer are unrestricted. The register map is organized in 24 bit registers, which corresponds to the 24 bit words supported by the SPI protocol of this product. To ensure that I2C operation mimics SPI transactions in behavior of a complete 24 bit word being written in one transaction. The software is expected to perform write transactions to the device in 3 byte sequences, beginning with the MSB. Internally, data latching will be gated by the acknowledge at the completion of writing the third consecutive byte. Failure to complete a 3 byte write sequence will abort the I2C transaction, and the register will retain its previous value. This could be due to a premature STOP command from the master, for example. I2C read operations are also performed in byte 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 45 FUNCTIONAL DEVICE OPERATION I2C INTERFACE increments separated by an ACK. Read operations also begin with the MSB, and 3 bytes will be sent out unless a STOP command or NACK is received prior to completion. The following examples show how to write and read data to the IC. The host initiates and terminates all communication. The host sends a master command packet after driving the start condition. The device will respond to the host if the master command packet contains the corresponding slave address. In the following examples, the device is shown always responding with an ACK to transmissions from the host. If at any time a NAK is received, the host should terminate the current transaction and retry the transaction. Figure 8. I2C 3 Byte Write Example Figure 9. I2C 3 Byte Read Example 13892 46 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION I2C INTERFACE INTERRUPT HANDLING CONTROL The MC13892 has interrupt generation capability to inform the system on important events occurring. An interrupt is signaled to the processor by driving the INT pin high. This is true whether the communication interface is configured for the SPI or I2C. Each interrupt is latched so that even if the interrupt source becomes inactive, the interrupt will remain set until cleared. Each interrupt can be cleared by writing a 1 to the appropriate bit in the Interrupt Status register. This will also cause the interrupt line to go low. If a new interrupt occurs while the processor clears an existing interrupt bit, the interrupt line will remain high. Each interrupt can be masked by setting the corresponding mask bit to a 1. As a result, when a masked interrupt bit goes high, the interrupt line will not go high. A masked interrupt can still be read from the Interrupt Status register. This gives the processor the option of polling for status from the IC. The IC powers up with all interrupts masked except the USB Low power boot, so the processor must initially poll the device to determine if any interrupts are active. Alternatively, the processor can unmask the interrupt bits of interest. If a masked interrupt bit was already high, the interrupt line will go high after unmasking. The sense registers contain status and input sense bits so the system processor can poll the current state of interrupt sources. They are read only, and not latched or clearable. Interrupts generated by external events are debounced, meaning that the event needs to be stable throughout the debounce period before an interrupt is generated. BIT SUMMARY Table 12 summarizes all interrupt, mask, and sense bits associated with INT control. For more detailed behavioral descriptions, refer to the related chapters. Table 12. Interrupt, Mask and Sense Bits Interrupt ADCDONEI ADCBISDONEI TSI CHGDETI USBOVI CHGREVI CHGSHORTI Mask ADCDONEM ADCBISDONEM TSM CHGDETM CHGENS USBOVM CHGREVM CHGSHORTM USBOVS CHGDETS Sense Purpose ADC has finished requested conversions ADCBIS has finished requested conversions Touch screen wake-up Charger detection sense is 1 if detected Charger state sense is 1 if active VBUS over-voltage Sense is 1 if above threshold Charger path reverse current Charger path short circuit Charger fault detection 00 = Cleared, no fault 01 = Charge source fault 10 = Battery fault 11 = Battery temperature Charge current below threshold Sense is 1 if above threshold CCCVI transition detection BP turn on threshold detection. Sense is 1 if above threshold. Low battery detect Sense is 1 if below LOBATL threshold USB B-session valid BVALIDI BVALIDM BVALIDS Sense is 1 if above threshold Dual Trigger DebounceTi me L2H L2H Dual Dual 100 ms Dual L2H L2H 60 μs 1.0 ms 1.0 ms page 88 page 88 page 88 0 0 30ms 32 ms page 88 Section page 99 page 99 page 99 CHGFAULTI CHGFAULTM CHGFAULTS[1:0] L2H 10 ms page 88 CHGCURRI CCCVI BPONI LOBATLI CHGCURRM CCCVM BPONM LOBATLM CHGCURRS CCCVS BPONS LOBATLS H2L Dual L2H L2H 1.0 ms 100 ms 30 ms 0 L2H: 2024 ms H2L: 812 ms page 88 page 88 page 55 page 55 page 110 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 47 FUNCTIONAL DEVICE OPERATION I2C INTERFACE Table 12. Interrupt, Mask and Sense Bits Interrupt LOBATHI Mask LOBATHM Sense LOBATHS Purpose Low battery warning Sense is 1 if above LOBATH threshold. Detects A-Session Valid on VBUS ID floating detect. Sense is 1 if above threshold USB ID ground detect. Sense is 1 if not to ground ID voltage for Factory mode detect Sense is 1 if above threshold Wall charger detect Regulator short-circuit protection tripped Short circuit protection trip detection Battery removal detect 1.0 Hz time tick Time of day alarm PWRON1 event Sense is 1 if pin is high. PWRON2 event Sense is 1 if pin is high. PWRON3 event Sense is 1 if pin is high. System reset through PWRONx pins WDI silent system restart Power cut event Warm Start event Memory Hold event CLKS THWARNHS THWARNLS LPBS Clock source change Sense is 1 if source is XTAL RTC reset or intrusion has occurred Thermal warning higher threshold Sense is 1 if above threshold Thermal warning lower threshold Sense is 1 if above threshold Low power boot interrupt Trigger Dual DebounceTi me 30 μs L2H: 2024 ms H2L: 812 ms 90 μs 90 μs 90 μs 1.0 ms 200 μs 0 30 ms 0 0 30 ms (1) 30 ms 30 ms (35) 30 ms 30 ms (35) 30 ms 0 0 0 0 0 0 0 30 ms 30 ms 1.0 ms Section page 55 VBUSVALIDI VBUSVALIDM VBUSVALIDS Dual page 110 IDFLOATI IDGNDI IDFACTORYI CHRGSE1BI SCPI BATTDETBI 1HZI TODAI PWRON1I PWRON2I PWRON3I SYSRSTI WDIRESETI PCI WARMI MEMHLDI CLKI RTCRSTI THWARNHI THWARNLI LPBI IDFLOATM IDGNDM IDFACTORYM CHRGSE1BM SCPS BATTDETBM 1HZM TODAM PWRON1M PWRON2M PWRON3M SYSRSTM WDIRESETM PCM WARMM MEMHLDM CLKM RTCRSTM THWARNHM THWARNLM LPBM IDFLOATS IDGNDS IDFACTORYS CHRSE1BS BATTDETBS PWRON1S PWRON2S PWRON3S - Dual Dual Dual Dual L2H L2H Dual L2H L2H H2L L2H H2L L2H H2L L2H L2H L2H L2H L2H L2H Dual L2H Dual Dual Dual page 110 page 110 page 110 page 88 page 71 page 99 page 50 page 50 page 55 page 55 page 55 page 55 page 55 page 55 page 55 page 55 page 55 page 55 page 55 page 50 page 50 page 71 page 71 page 88 Notes 35. Debounce timing for the falling edge can be extended with PWRONxDBNC[1:0]; refer to Power Control System for details. Additional sense bits are available to reflect the state of the power up mode selection pins, as summarized in Table 13. 13892 48 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION I2C INTERFACE Table 13. Additional Sense Bits Sense MODES[1:0] 00 = MODE grounded 10 = MODE to VCOREDIG 11 = MODE to VCORE 00 = PUMS grounded 01 = PUMS open 10 = PUMS to VCOREDIG 11 = PUMS to VCORE 0 = Single path 1 = Serial path Description Section page 41 PUMSxS[1:0] page 55 CHRGSSS page 88 SPECIFIC REGISTERS IDENTIFICATION The 13892 parts can be identified though identification bits which are hardwired on chip. The version of the 13892 can be identified by the ICID[2:0] bits. This is used to distinguish future derivatives or customizations of the 13892. The bits are set to ICID[2:0] = 111 and are located in the revision register. The revision of the 13892 is tracked with the revision identification bits REV[4:0]. The bits REV[4:3] track the full mask set revision, where bits REV[2:0] track the metal revisions. These bits are hardwired. Table 14. IC Revision Bit Assignment Bits REV[4:0] 10001 IC Revision Pass 3.1 The bits FIN[3:0] are Freescale use only and are not to be explored by the application. The 13892 die is produced using different wafer fabrication plants. The plants can be identified via the FAB[1:0] bits. These bits are hardwired. MEMORY REGISTERS The 13892 has a small general purpose embedded memory of 2 times 24 bits to store critical data. The data is maintained when the device is turned off and when in a power cut. The contents are only reset when a RTC reset occurs, see Clock Generation and Real Time Clock. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 49 FUNCTIONAL DEVICE OPERATION CLOCK GENERATION AND REAL TIME CLOCK CLOCK GENERATION AND REAL TIME CLOCK CLOCK GENERATION The 13892 generates a 32.768 kHz clock as well as several 32.768 kHz derivative clocks that are used internally for control. Support is also provided for an external Secure Real Time Clock (SRTC) which may be integrated on a companion system processor IC. For media protection in compliance with Digital Rights Management (DRM) system requirements, the CLK32KMCU can be provided as a reference to the SRTC module where tamper protection is implemented. CLOCKING SCHEME The 13892 contains an internal 32 kHz oscillator, that delivers a 32 kHz nominal frequency (20%) at its outputs when an external 32.768 kHz crystal is not present. If a 32.768 kHz crystal is present and running, then all control functions will run off the crystal derived 32 kHz oscillator. In absence of a valid supply at the BP supply node (for instance due to a dead battery), the crystal oscillator continues running, supplied from the coin cell battery until the coin cell is depleted. The 32 kHz clock is driven to two output pins, CLK32KMCU (intended as the CKIL input to the system processor) is referenced to VSRTC, and CLK32K (provided as a clock reference for the peripherals) is referenced to SPIVCC. The driver is enabled by the startup sequencer, and CLK32KMCU is programmable for Low Power Off mode, controlled by the state machine. Additionally, a SPI bit CLK32KMCUEN bit is provided for direct SPI control. The CLK32KMCUEN bit defaults to a 1 and resets on RTCPORB, to ensure the buffer is activated at the first power up and configured as desired for subsequent power ups. CLK32K is restricted to state machine activation in normal On mode. The drive strength of the CLK32K output drivers are programmable with CLK32KDRV[1:0] (master control bits that affect the drive strength of CLK32K). During a switchover between the two clock sources (such as when the crystal oscillator is starting up), the output clock is maintained at a stable active low or high phase of the internal 32 kHz clock to avoid any clocking glitches. If the XTAL clock source suddenly disappears during operation, the IC will revert back to the internal clock source. Given the unpredictable nature of the event and the startup times involved, the clock may be absent long enough for the application to shut down during this transition, for example, due to a sag in the switchover output voltage, or absence of a signal on the clock output pins. A status bit, CLKS, is available to indicate to the processor which clock is currently selected: CLKS=0 when the internal RC is used, and CLKS=1 if the XTAL source is used. The CLKI interrupt bit will be set whenever a change in the clock source occurs, and an interrupt will be generated if the corresponding CLKM mask bit is cleared. OSCILLATOR SPECIFICATIONS The crystal oscillator has been designed for use in conjunction with the Micro Crystal CC7V-T1A-32.768 kHz-9pF-30 ppm or equivalent (such as Micro Crystal CC5V-T1A or Epson FC135). Table 15. RTC Crystal Specifications Nominal Frequency Make Tolerance Temperature Stability Series Resistance Maximum Drive Level Operating Drive Level Nominal Load Capacitance Pin-to-pin Capacitance Aging 32.768 kHz +/-30 ppm -0.038 ppm /C2 80 kOhm 1.0 μW 0.25 to 0.5 μW 9.0 pF 1.4 pF 3 ppm/year The oscillator also accepts a clock signal from an external source. This clock signal is to be applied to the XTAL1 pin, where the signal can be DC or AC coupled. A capacitive divider can be used to adapt the source signal to the XTAL1 input levels. When applying an external source, the XTAL2 pin is to be connected to VCOREDIG. The electrical characteristics of the 32 kHz Crystal oscillator are given in the table below, taking into account the above crystal characteristics 13892 50 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION CLOCK GENERATION AND REAL TIME CLOCK Table 16. Crystal Oscillator Main Characteristics Parameter Operating Voltage Coin cell Disconnect Threshold RTC oscillator startup time XTAL1 Input Level XTAL1 Input Range Output Low CLK32K, CLK32KMCU Output High At LICELL Upon application of power External clock source External clock source Output sink 100 μA CLK32K Output source 100 μA CLK32KMCU Output source 100 μA CL=50 pF CLK32KDRV[1:0] = 00 (default) CLK32K Rise and Fall Time CLK32KDRV[1:0] = 01 CLK32KDRV[1:0] = 10 CLK32KDRV[1:0] = 11 CLD32KMCU Rise and Fall Time CLK32K and CLK32KMCU Output Duty Cycle CL=12 pF Crystal on XTAL1, XTAL2 pins 45 22 11 High Z 44 22 55 ns ns ns ns ns % Condition Oscillator and RTC Block from BP Min 1.2 1.8 0.3 -0.5 0 SPIVCC-0.2 VSRTC-0.2 Typ Max 4.65 2.0 1.0 1.2 0.2 SPIVCC VSRTC Units V V sec VPP V V V V OSCILLATOR APPLICATION GUIDELINES The guidelines below may prove to be helpful in providing a crystal oscillator that starts reliably and runs with minimal jitter. PCB leakage: The RTC amplifier is a low current circuit. Therefore, PCB leakage may significantly change the operating point of the amplifier and even the drive level to the crystal. (Changing the drive level to the crystal may change the aging rate, jitter, and even the frequency at a given load capacitance.) The traces should be kept as short as possible to minimize the leakage, and good PCB manufacturing processes should be maintained. Layout: The traces from the 13892 to the crystal, load capacitance, and the RTC Ground are sensitive. They must be kept as short as possible with minimal coupling to other signals. The signal ground for the RTC is to be connected to GNDRTC, and via a single connection, GNDRTC to the system ground. The CLK32K and CLK32KMCU square wave outputs must be kept away from the crystal / load capacitor leads, as the sharp edges can couple into the circuit and lead to excessive jitter. The crystal / load capacitance leads and the RTC Ground must form a minimal loop area. Crystal Choice: Generally speaking, crystals are not interchangeable between manufacturers, or even different packages for a given manufacturer. If a different crystal is considered, it must be fully characterized with the MC13892 before it can be considered. Tuning Capacitors: The nominal load capacitance is 9.0 pF, therefore the total capacitance at each node should be 18 pF, composed out of the load capacitance, the effective input capacitance at each pin, plus the PCB stray capacitance for each pin. SRTC SUPPORT The MC13892 provides support for processors which have an integrated SRTC for Digital Rights Management (DRM), by providing a VSRTC voltage to bias the SRTC module of the processor, as well as a CLK32KMCU at the VSRTC output level. When configured for DRM mode (SPI bit DRM = 1), the CLK32MCU driver will be kept enabled through all operational states, to ensure that the SRTC module always has its reference clock. If DRM = 0, the CLK32KMCU driver will not be maintained in the Off state. Refer to Table 23 for the operating behavior of the CLK32KMCU output in User Off, Memory Hold, User off Wait, and internal MEMHOLD PCUT modes. It is also necessary to provide a means for the processor to do an RTC initiated wake-up of the system, if it has been programmed for such capability. This can be accomplished by connecting an open drain NMOS driver to the PWRON pin of the MC13892, so that it is in effect a parallel path for the power key. The MC13892 will not be able to discern the turn on event from a normal power key initiated turn on, but the processor should have the knowledge, since the RTC initiated turn on is generated locally. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 51 FUNCTIONAL DEVICE OPERATION CLOCK GENERATION AND REAL TIME CLOCK Figure 10. SRTC block diagram VSRTC The VSRTC regulator provides the CLK32KMCU output level. It is also used to bias the Low Power SRTC domain of the SRTC module integrated on certain FSL processors. The VSRTC regulator is enabled as soon as the RTCPORB is detected. The VSRTC cannot be disabled. Table 17. VSRTC Specifications Parameter General Operating Input Voltage Range, VINMIN to VINMAX Operating Current Load Range ILMIN to ILMAX Bypass Capacitor Value Active Mode - DC Output Voltage VOUT Active Mode Quiescent Current VINMIN < VIN < VINMAX ILMIN < IL < ILMAX VINMIN < VIN < VINMAX IL = 0 1.150 1.20 0.8 1.25 1.0 V μA Valid Coin Cell range or valid BP 1.8 UVDET 0 1.0 3.6 4.65 50 V V μA μF Condition Min Typ Max Units REAL TIME CLOCK A real Time Clock (RTC) function is provided including time and day counters as well as an alarm function. The utilizes a 32 kHz clock, either the RC oscillator or the 32.768 kHz crystal oscillator as a time base, and is powered by the coin cell backup supply when BP has dropped below operational range. In configurations where the SRTC is used, the RTC can be disabled to conserve current drain by setting the RTCDIS bit to a 1 (defaults on at power up). TIME AND DAY COUNTERS The 32 kHz clock is divided down to a 1.0 Hz time tick which drives a 17 bit Time Of Day (TOD) counter. The TOD counter counts the seconds during a 24 hour period from 0 to 86,399, and will then roll over to 0. When the roll over occurs, it increments 13892 52 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION CLOCK GENERATION AND REAL TIME CLOCK the 15 bit DAY counter. The DAY counter can count up to 32767 days. The 1.0 Hz time tick can be used to generate a 1HZI interrupt if unmasked. TIME OF DAY ALARM A Time Of Day Alarm (TODA) function can be used to turn on the application and alert the processor. If the application is already on, the processor will be interrupted. The TODA and DAYA registers are used to set the alarm time. Only a single alarm can be programmed at a time. When the TOD counter is equal to the value in TODA, and the DAY counter is equal to the value in DAYA, the TODAI interrupt will be generated. At initial power up of the application (application of the coin cell), the state of the TODA and DAYA registers will be all 1's. The interrupt for the alarm (TODAI) is backed up by LICELL and will be valid at power up. If the mask bit for the TOD alarm (TODAM) is high, then the TODAI interrupt is masked and the application will not turn on with the time of day alarm event (TOD[16:0] = TODA[16:0] and DAY[14:0] = DAYA[14:0]). By default, the TODAM mask bit is set to 1, thus masking the interrupt and turn on event. TIMER RESET As long as the supply at BP is valid, the real time clock will be supplied from VCORE. If not, it can be backed up from a coin cell via the LICELL pin. When the backup voltage drops below RTCUVDET, the RTCPORB reset signal is generated and the contents of the RTC will be reset. Additional registers backed up by coin cell will also reset with RTCPORB. To inform the processor that the contents of the RTC are no longer valid due to the reset, a timer reset interrupt function is implemented with the RTCRSTI bit. RTC TIMER CALIBRATION A clock calibration system is provided to adjust the 32,768 cycle counter that generates the 1.0 Hz timer for RTC timing registers to comply with digital rights management specifications of ±50 ppm. This calibration system can be disabled, if not needed to reduce the RTC current drain. The general implementation relies on the system processor to measure the 32.768 kHz crystal oscillator against a higher frequency and more accurate system clock such as a TCXO. If the RTC timer needs a correction, a 5 bit 2's complement calibration word can be sent via the SPI to compensate the RTC for inaccuracy in its reference oscillator as defined in Table 18. Table 18. RTC Calibration Settings Code in RTCCAL[4:0] 01111 00011 00001 00000 11111 11101 10001 10000 Correction in Counts per 32768 +15 +3 +1 0 -1 -3 -15 -16 Relative correction in ppm +458 +92 +31 0 -31 -92 -458 -488 Note that the 32.768 kHz oscillator is not affected by RTCCAL settings. Calibration is only applied to the RTC time base counter. Therefore, the frequency at the clock outputs CLK32K and CLK32KMCU are not affected. The RTC system calibration is enabled by programming the RTCCALMODE[1:0] for desired behavior by operational mode. Table 19. RTC Calibration Enabling RTCCALMODE 00 01 10 11 Function RTC Calibration disabled (default) RTC Calibration enabled in all modes except coin cell only Reserved for future use. Do not use. RTC Calibration enabled in all modes A slight increase in consumption will be seen when the calibration circuitry is activated. To minimize consumption and maximize lifetime when the RTC system is maintained by the coin cell, the RTC Calibration circuitry can be automatically disabled 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 53 FUNCTIONAL DEVICE OPERATION CLOCK GENERATION AND REAL TIME CLOCK when main battery contact is lost, or if it is so deeply discharged that RTC power draw is switched to the coin cell (configured with RTCCALMODE = 01). Because of the low RTC consumption, RTC accuracy can be maintained through long periods of the application being shut down, even after the main battery has discharged. However, it is noted that the calibration can only be as good as the RTCCAL data that has been provided, so occasional refreshing is recommended to ensure that any drift influencing environmental factors have not skewed the clock beyond desired tolerances. COIN CELL BATTERY BACKUP The LICELL pin provides a connection for a coin cell backup battery or supercap. If the main battery is deeply discharged, removed, or contact-bounced (i.e., during a power cut), the RTC system and coin cell maintained logic will switch over to the LICELL for backup power. This switch over occurs for a BP below the UVDET threshold with LICELL greater than BP. A small capacitor should be placed from LICELL to ground under all circumstances. Upon initial insertion of the coincell, it is not immediately connected to the on chip circuitry. The cell gets connected when the IC powers on, or after enabling the coincell charger when the IC was already on. During operation, coincells can get damaged and their lifetime reduced when deeply discharged. In order to avoid such, the internal circuitry supplied from LICELL is automatically disconnected for voltages below the coincell disconnect threshold. The cell gets reconnected again under the same conditions as for initial insertion. The coin cell charger circuit will function as a current-limited voltage source, resulting in the CC/CV taper characteristic typically used for rechargeable Lithium-Ion batteries. The coin cell charger is enabled via the COINCHEN bit. The coin cell voltage is programmable through the VCOIN[2:0] bits. The coin cell charger voltage is programmable in the ON state where the charge current is fixed at ICOINHI. If COINCHEN=1 when the system goes into Off or User Off state, the coin cell charger will continue to charge to the predefined voltage setting but at a lower maximum current ICOINLO. This compensates for self discharge of the coin cell and ensures that if/when the main cell gets depleted, that the coin cell will be topped off for maximum RTC retention. The coin cell charging will be stopped for the BP below UVDET. The bit COINCHEN itself is only cleared when an RTCPORB occurs. Table 20. Coin cell Charger Voltage Specifications VCOIN[2:0] 000 001 010 011 100 101 110 111 Output Voltage 2.50 2.70 2.80 2.90 3.00 3.10 3.20 3.30 Table 21. Coin cell Charger Specifications Parameter Voltage Accuracy Coin Cell Charge Current in On and Watchdog modes ICOINHI Coin Cell Charge Current in Off and Low Power Off modes (User Off / Memory Hold) ICOINLO Current Accuracy LICELL Bypass Capacitor LICELL Bypass Capacitor as coin cell replacement LICELL Bypass Capacitor LICELL Bypass Capacitor as coin cell replacement Typ 100 60 10 30 100 4.7 100 4.7 Units mV μA μA % nF μF nF μF 13892 54 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION POWER CONTROL SYSTEM POWER CONTROL SYSTEM INTERFACE The power control system on the MC13892 interfaces with the processor via different IO signals and the SPI/I2C bus. It also uses on chip signals and detector outputs. Table 22 gives a listing of the principal elements of this interface. Table 22. Power Control System Interface Signals Name PWRON1 PWRON2 PWRON3 PWRONxI/M/S PWRON1DBNC[1:0] PWRON2DBNC[1:0] PWRON3DBNC[1:0] PWRON1RSTEN PWRON2RSTEN PWRON3RSTEN RESTARTEN SYSRSTI/M WDI WDIRESET WDIRESETI/M RESET RESETMCU PUMS1 PUMS2 STANDBY STANDBYINV STANDBYSEC STANDBYSECINV STBYDLY[1:0] BPON BPONI/M/S LOBATH LOBATHI/M/S LOBATL LOBATLI/M/S BPSNS [1:0] UVDET LICELL CLK32KMCU CLK32K CLK32KMCUEN DRM PCEN PCI/M PCT[7:0] PCCOUNTEN PCCOUNT[3:0] PCMAXCNT[3:0] PCUTEXPB Type of Signal Input pin Input pin Input pin SPI bits SPI bits SPI bits SPI bits SPI bit SPI bit SPI bit SPI bit SPI bits Input pin SPI bit SPI bits Output pin Output pin Input pin Input pin Input pin SPI bit Input pin SPI bit SPI bits Threshold SPI bits Threshold SPI bits Threshold SPI bits SPI bits Threshold Input pin Output pin Output pin SPI bit SPI bit SPI bit SPI bits SPI bits SPI bit SPI bits SPI bits SPI bit Power on/off 1 button connection Power on/off 2 button connection Power on/off 3 button connection PWRONx pin interrupt /mask / sense bits Sets time for the PWRON1 pin hardware debounce Sets time for the PWRON2 pin hardware debounce Sets time for the PWRON3 pin hardware debounce Allows for system reset through the PWRON1 pin Allows for system reset through the PWRON2 pin Allows for system reset through the PWRON3 pin Allows for system restart after a PWRON initiated system reset PWRONx System restart interrupt / mask bits Watchdog input has to be kept high by the processor to keep the MC13892 active Allows for system restart through the WDI pin WDI System restart interrupt / mask bits Reset Bar output (active low) to the application. Requires an external pull-up Reset Bar output (active low) to the processor core. Requires an external pull-up Switchers and regulators power up sequence and defaults selection 1 Switchers and regulators power up sequence and defaults selection 2 Signal from primary processor to put the MC13892 in a low power mode Standby signal polarity setting Signal from secondary processor to put the MC13892 in a low power mode Secondary standby signal polarity setting Sets delay before entering standby mode Threshold validating turn on events BP turn on threshold interrupt / mask / sense bits Threshold for a low battery warning Low battery warning interrupt / mask / sense bits Threshold for a low battery detect Low battery detect interrupt / mask / sense bits Selects for different settings of LOBATL and LOBATH thresholds Threshold for under-voltage detection, will shut down the device Connection for Lithium based coin cell Low frequency system clock output for the processor 32.768 kHz Low frequency system clock output for application (peripherals) 32.768 kHz Enables the CLK32KMCU clock output Keeps VSRTC and CLK32KMCU active in all states for digital rights management, including off mode Enables power cut support Power cut detect interrupt / mask bits Allowed power cut duration Enables power cut counter Power cut counter Maximum number of allowed power cuts Indicates a power cut timer counter expired 13892 Function Analog Integrated Circuit Device Data Freescale Semiconductor 55 FUNCTIONAL DEVICE OPERATION OPERATING MODES OPERATING MODES POWER CONTROL STATE MACHINE Figure 11 shows the flow of the power control state machine. This diagram serves as the basis for the description in the remainder of this chapter. Figure 11. Power Control State Machine Flow Diagram 13892 56 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION OPERATING MODES POWER CONTROL MODES DESCRIPTION Following are text descriptions of the power states of the system, which give additional details of the state machine, and complement Figure 11. Note that the SPI control is only possible in the Watchdog, On, and User Off Wait states, and that the interrupt line INT is kept low in all states except for Watchdog and On. Off If the supply at BP is above the UVDET threshold, only the IC core circuitry at VCOREDIG and the RTC module are powered, all other supplies are inactive. To exit the Off mode, a valid turn on event is required. No specific timer is running in this mode. If the supply at BP is below the UVDET threshold no turn on events are accepted. If a valid coin cell is present, the core gets powered from LICELL. The only active circuitry is the RTC module, with BP greater than UVDET detection, and the SRTC support circuitry, if so configured. Cold Start Entered upon a Turn On event from Off, Warm Boot, successful PCUT, or Silent System Restart. The switchers and regulators are powered up sequentially to limit the inrush current. See the Power Up section for sequencing and default level details. The reset signals RESETB and RESETBMCU are kept low. The Reset timer starts running when entering a Cold Start. When expired, the Cold Start state is exited for the Watchdog state, and both RESETB and RESETBMCU become high (open drain output with external pull ups). The input control pins WDI, and STANDBYx are ignored. Watchdog The system is fully powered and under SPI control. RESETB and RESETBMCU are high. The Watchdog timer starts running when entering the Watchdog state. When expired, the system transitions to the On state, where WDI will be checked and monitored. The input control pins WDI and STANDBYx are ignored while in the Watchdog state. On The system is fully powered and under SPI control. RESETB and RESETBMCU are high. The WDI pin must be high to stay in this mode. The WDI IO supply voltage is referenced to SPIVCC (Normally connected to SW4). SPIVCC must therefore remain enabled to allow for proper WDI detection. If WDI goes low, the system will transition to the Off state or Cold Start (depending on the configuration. Refer to the section on Silent System Restart with WDI Event for details). User Off Wait The system is fully powered and under SPI control. The WDI pin no longer has control over the part. The Wait mode is entered by a processor request for User Off by setting the USEROFFSPI bit high. This is normally initiated by the end user via the power key. Upon receiving the corresponding interrupt, the system will determine if the product has been configured for User Off or Memory Hold states (both of which first require passing through User Off Wait) or just transition to Off. The Wait timer starts running when entering User Off Wait mode. This leaves the processor time to suspend or terminate its tasks. When expired, the Wait mode is exited for User Off mode or Memory Hold mode, depending on warm starts being enabled or not via the WARMEN bit. The USEROFFSPI bit is being reset at this point by RESETB going low. Memory Hold and User Off (Low Power Off states) As noted in the User Off Wait description, the system is directed into low power Off states based on a SPI command in response to an intentional turn off by the end user. The only exit then will be a turn on event. To an end user, the Memory Hold and User Off states look like the product has been shut down completely. However, a faster startup is facilitated by maintaining external memory in self-refresh mode (Memory Hold and User Off mode) as well as powering portions of the processor core for state retention (User Off only). The switcher mode control bits allow selective powering of the buck switchers for optimizing the supply behavior in the Low Power Off modes. Linear regulators and most functional blocks are disabled (the RTC module, and Turn On event detection are maintained). Memory Hold RESETB and RESETBMCU are low, and both CLK32K and CLK32KMCU are disabled. If DRM is set, the CLK32KMCU is kept active. To ensure that SW1, SW2, and SW3 shut off in Memory Hold, appropriate mode settings should be used such as SW1MHMODE = SW2MHMODE = SW3MHMODE = 0 (refer to the mode control description later in this chapter). Since SW4 should be powered in PFM mode, SW4MHMODE could be set to 1. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 57 FUNCTIONAL DEVICE OPERATION OPERATING MODES Any peripheral loading on SW4 should be isolated from the SW4 output node by the PWGT2 switch, which opens in both low power off modes due to the RESETB transition. In this way, leakage is minimized from the power domain maintaining the memory subsystem. Upon a Turn On event, the Cold Start state is entered, the default power up values are loaded, and an the MEMHLDI interrupt bit is set. A Cold Start out of the Memory Hold state will result in shorter boot times compared to starting out of the Off state, since software does not have to be loaded and expanded from flash. The startup out of Memory Hold is also referred to as Warm Boot. No specific timer is running in this mode. Buck switchers that are configured to stay on in MEMHOLD mode by their SWxMHMODE settings will not be turned off when coming out of MEMHOLD and entering a Warm Boot. The switchers will be reconfigured for their default settings as selected by the PUMS pin in the normal time slot that would affect them. User Off RESETB is low and RESETBMCU is kept high. The 32 kHz peripheral clock driver CLK32K is disabled. CLK32KMCU (connected to the processor's CKIL input) is maintained in this mode if the CLK32KMCUEN and USEROFFCLK bits are both set, or if DRM is set. The memory domain is held up by setting SW4UOMODE = 1. Similarly, the SW1, and/or SW2, and/or SW3 supply domains can be configured for SWxUOMODE = 1 to keep them powered through the User Off event. If one of the switchers can be shut down on in User Off, its mode bits would typically be set to 0. Any peripheral loading on SW1 and/or SW2 should be isolated from the output node(s) by the PWGT1 switch, which opens in both Low Power Off modes due to the RESETB transition. In this way, leakage is minimized from the power domain maintaining the processor core. Since power is maintained for the core (which is put into its lowest power state) and since MCU RESETBMCU does not trip, the processor's state may be quickly recovered when exiting USEROFF upon a turn on event. The CLK32KMCU clock can be used for very low frequency / low power idling of the core(s), minimizing battery drain while allowing a rapid recovery from where the system left off before the USEROFF command. Upon a turn on event, Warm Start state is entered, and the default power up values are loaded. A Warm Start out of User Off will result in an almost instantaneous startup of the system, since the internal states of the processor were preserved along with external memory. No specific timer is running in this mode. Warm Start Entered upon a Turn On event from User Off. The switchers and regulators are powered up sequentially to limit the inrush current; see the Power Up section for sequencing and default level details. If SW1, SW2, SW3, and/or SW4 were configured to stay on in User Off mode, they will not be turned off when coming out of User Off and entering a Warm Start. The buck switchers will be reconfigured for their default settings as selected by the PUMS pin in the respective time slot defined in the sequencer selection. RESETB is kept low and RESETBMCU is kept high. CLK32KMCU is kept active if enabled via the SPI. The reset timer starts running when entering Warm Start. When expired, the Warm Start state is exited for the Watchdog state, a WARMI interrupt is generated, and RESETB will go high. Internal MemHold Power Cut Refer to the next section for details about Power Cuts and the associated state machine response. POWER CUT DESCRIPTION When the supply at BP drops below the UVDET threshold due to battery bounce or battery removal, the Internal MemHold Power Cut mode is entered and a Power Cut (PCUT) timer starts running. The backup coin cell will now supply the RTC as well as the on chip memory registers and some other power control related bits. All other supplies will be disabled. The maximum duration of a power cut is determined by the PCUT timer PCT[7:0] preset via SPI. When a PCUT occurs, the PCUT timer will internally be decremented till it expires, meaning counted down to zero. The contents of PCT[7:0] does not reflect the actual count down value but will keep the programmed value and therefore does not have to be reprogrammed after each power cut. If power is not reestablished above BPON before the PCUT timer expires, the state machine transitions to the Off mode at expiration of the counter, and clears the PCUTEXB bit by setting it to 0. This transition is referred to as an “unsuccessful” PCUT. Upon re-application of power before expiration (an “successful PCUT”, defined as BP first rising above the UVDET threshold and then above the BPON threshold before the PCUT timer expires), a Cold Start is engaged. 13892 58 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION OPERATING MODES In order to distinguish a non-PCUT initiated Cold Start from a Cold Start after a PCUT, the PCI interrupt should be checked by software. The PCI interrupt is cleared by software or when cycling through the Off state. Because the PCUT system quickly disables all of the power tree, the battery voltage may recover to a level with the appearance of a valid supply once the battery is unloaded. However, upon a restart of the IC and power sequencer, the surge of current through the battery and trace impedances can once again cause the BP node to drop below UVDET. This chain of cyclic power down / power up sequences is referred to as “ambulance mode”, and the power control system includes strategies to minimize the chance of a product falling into and getting stuck in ambulance mode. First, the successful recovery out of a PCUT requires the BP node to rise above BPON, providing hysteretic margin from the UVDET threshold. Secondly, the number of times the PCUT mode is entered is counted with the counter PCCOUNT[3:0], and the allowed count is limited to PCMAXCNT[3:0] set through the SPI. When the contents of both become equal, then the next PCUT will not be supported and the system will go to Off mode. After a successful power up after a PCUT (i.e., valid power is reestablished, the system comes out of reset, and the processor reassumes control), software should clear the PCCOUNT[3:0] counter. Counting of PCUT events is enabled via the PCCOUNTEN bit. This mode is only supported if the power cut mode feature is enabled by setting the PCEN bit. When not enabled, in case of a power failure, the state machine will transition to the Off state. SPI control is not possible during a PCUT event and the interrupt line is kept low. SPI configuration for PCUT support should also include setting the PCUTEXPB=1 (see the Silent Restart from PCUT Event section later in this chapter). Internal MemHold Power Cut As described above, a momentary power interruption will put the system into the Internal MemHold Power Cut state if PCUTs are enabled. The backup coin cell will now supply the MC13892 core along with the 32 kHz crystal oscillator, the RTC system and coin cell backed up registers. All regulators and switchers will be shut down to preserve the coin cell and RTC as long as possible. Both RESETB and RESETBMCU are tripped, bringing the entire system down along with the supplies and external clock drivers, so the only recovery out of a Power Cut state is to reestablish power and initiate a Cold Start. If the PCT timer expires before power is reestablished, the system transitions to the Off state and awaits a sufficient supply recovery. SILENT RESTART FROM PCUT EVENT If a short duration power cut event occurs (such as from a battery bounce, for example), it may be desirable to perform a silent restart, so the system is reinitialized without alerting the user. This can be configured by setting the PCUTEXPB bit to a “1” at booting or after a Cold Start. This bit resets on RTCPORB, therefore any subsequent Cold Start can first check the status of PCUTEXPB and the PCI bit. The PCUTEXPB is cleared to “0” when transitioning from PCUT to Off. If there was a PCUT interrupt and PCUTEXPB is still a “1”, then the state machine has not transitioned through Off, which confirms that the PCT timer has not expired during the PCUT event (i.e., a successful power cut). In case of a successful power cut, a silent restart may be appropriate. If PCUTEXPB is found to be a “0” after the Cold Start where PCI is found to be a “1”, then it is inferred that the PCT timer has expired before power was reestablished, flagging an unsuccessful power cut or first power up, so the startup user greeting may be desirable for playback. SILENT SYSTEM RESTART WITH WDI EVENT A mechanism is provided for recovery if the system software somehow gets into an abnormal state which requires a system reset, but it is desired to make the reset a silent event so as to happen without end user awareness. The default response to WDI going low is for the state machine to transition to the Off state (when WDIRESET = 0). However, if WDIRESET = 1, the state machine will go to Cold Start without passing through Off mode A WDIRESET event will generate a maskable WDIRESETI interrupt and also increment the PCCOUNT counter. This function is unrelated to PCUTs, but it shares the PCUT counter so that the number of silent system restarts can be limited by the programmable PCMAXCNT counter. When PCUT support is used, the software should set the PCUTEXPB bit to “1”. Since this bit resets with RTCPORB, it will not be reset to “0” if a WDI falls and the state machine goes straight to the Cold Start state. Therefore, upon a restart, the software can detect a silent system restart, if there is a WDIRESETI interrupt and PCUTEXPB = 1. The application may then determine that an inconspicuous restart without showing may be more appropriate than launching into the welcoming routine. A PCUT event does not trip the WDIRESETI bit. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 59 FUNCTIONAL DEVICE OPERATION OPERATING MODES GLOBAL SYSTEM RESTART A global system restart can be enabled by clearing the GLBRSTENB bit. If this bit is cleared, a 12 second press to the PWRON3 button will reset the system and the following actions will take place: • - Power down • - Disable the charger • - Reset the registers all the registers including the RTCPORB registers • - Power back up after the difference between the 12 sec timer, and when the user releases the button as the power off time (for example, if the power button was held for 12.1 s, then the time that the IC would be off would be only 100 mS) If PWRON3 is held low for less than 12 seconds, it will act as a normal PWRON pin. This feature is enabled by default in the 13892A, and disabled by default in 13892B. CLK32KMCU CLOCK DRIVER CONTROL THROUGH STATES As described previously, the clocking behavior is influenced by the state machine is in and the setting of the clocking related SPI bits. A summary is given in Table 23 for the clock output CLK32KMCU. Table 23. CLK32MCU Control Logic Table Mode Off, Memory Hold, Internal MEMHOLD PCUT DRM 0 1 0 On, Cold Start, Warm Start, Watchdog, User Off Wait 1 0 0 User Off 1 0 CLK32KMCUEN X X 0 X 1 X X 1 USEROFFCLK X X X X X 0 X 1 Clock Output CLK32KMCU Disabled Enabled Disabled Enabled Enabled Disabled Enabled TURN ON EVENTS When in Off mode, the MC13892 can be powered on via a Turn On event. The Turn On events are listed in Table 24. To indicate to the processor what event caused the system to power on, an interrupt bit is associated with each of the Turn On events. Masking the interrupts related to the turn on events will not prevent the part to turn on, except for the time of day alarm. Power Button Press PWRON1, PWRON2, or PWRON3 pulled low with corresponding interrupts and sense bits PWRON1I, PWRON2I, or PWRON3I, and PWRON1S, PWRON2S, or PWRON3S. A power on/off button is connected here. The PWRONx can be hardware debounced through a programmable debouncer PWRONxDBNC[1:0] to avoid the application to power up upon a very short key press. In addition, a software debounce can be applied. BP should be above UVDET. The PWRONxI interrupt is generated for both the falling and the rising edge of the PWRONx pin. By default, a 30 ms interrupt debounce is applied to both falling and rising edges. The falling edge debounce timing can be extended with PWRONxDBNC[1:0] as defined in the following table. The PWRONxI interrupt is cleared by software or when cycling through the Off mode. Table 24. PWRONx Hardware Debounce Bit Settings Bits State 00 PWRONxDBNC[1:0] 01 10 11 Turn On Debounce (ms) 0 31.25 125 750 Falling Edge INT Debounce (ms) 31.25 31.25 125 750 Rising Edge INT Debounce (ms) 31.25 31.25 31.25 31.25 Notes 36. The sense bit PWRONxS is not debounced and follows the state of the PWRONx pin 13892 60 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION OPERATING MODES Charger Attach CHRGRAW is pulled high with corresponding interrupt and sense bits CHGDETI and CHGDETS. This is equivalent to plugging in a charger. BP should be above BPON. The charger turn on event is dependent on the charge mode selected. For details on the charger detection and turn on, see Battery Interface and Control. Battery Attach BP crossing the BPON threshold which corresponds to attaching a charged battery to the product. A corresponding BPONI interrupt is generated, which can be cleared by software or when cycling through the Off mode. Note that BPONI is also generated after a successful power cut and potentially when applying a charger. USB Attach VBUS pulled high with corresponding interrupt and sense bits BVALIDI and BVALIDS. This is equivalent to plugging in a USB cable. BP should be above BPON and the battery voltage above BATTON. For details on the USB detection, see Connectivity. RTC Alarm TOD and DAY become equal to the alarm setting programmed. This allows powering up a product at a preset time. BP should be above BPON. For details and related interrupts, see Clock Generation and Real Time Clock. System Restart System restart may occur after a system reset. This is an optional function, see also the following Turn Off events section. BP should be above BPON. TURN OFF EVENTS Power Button Press User shut down of a product is typically done by pressing the power button connected to the PWRONx pin. This will generate an interrupt (PWRONxI), but will not directly power off the part. The product is powered off by the processor's response to this interrupt, which will be to pull WDI low. Pressing the power button is therefore under normal circumstances not considered as a turn off event for the state machine. Note that software can configure a user initiated power down via a power button press for transition to a low power off mode (Memory Hold or User Off) for a quicker restart than the default transition into the Off state. Power Button System Reset A secondary application of the PWRON pin is the option to generate a system reset. This is recognized as a Turn Off event. By default, the system reset function is disabled but can be enabled by setting the PWRONxRSTEN bits. When enabled, a 4 second long press on the power button will cause the device to go to the Off mode and as a result the entire application will power down. An SYSRSTI interrupt is generated upon the next power up. Alternatively, the system can be configured to restart automatically by setting the RESTARTEN bit. Thermal Protection If the die gets overheated, the thermal protection will power off the part to avoid damage. A Turn On event will not be accepted while the thermal protection is still being tripped. The part will remain in Off mode until cooling sufficiently to accept a Turn On event. There are no specific interrupts related to this other than the warning interrupts. Under-Voltage Detection When the voltage at BP drops below the under-voltage detection threshold UVDET, the state machine will transition to Off mode if PCUT is not enabled, or if the PCT timer expires when PCUT is enabled. TIMERS The different timers as used by the state machine are in Table 25. This listing does not include RTC timers for timekeeping. A synchronization error of up to one clock period may occur with respect to the occurrence of an asynchronous event. The duration listed below is therefore the effective minimum time period. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 61 FUNCTIONAL DEVICE OPERATION OPERATING MODES Table 25. Timer Main Characteristics Timer Under-voltage Timer Reset Timer Watchdog Timer Power Cut Timer 4.0 ms 40 ms 128 ms Programmable 0 to 8 seconds in 31.25 ms steps Duration TIMING DIAGRAMS A Turn On event timing diagram example shows in Figure 12. Figure 12. Power Up Timing Diagram POWER UP At power up, switchers and regulators are sequentially enabled in time slots of 2.0 ms steps to limit the inrush current after an initial delay of 8.0 ms, in which the core circuitry gets enabled. To ensure a proper power up sequence, the outputs of the switchers are discharged at the beginning of a Cold Start. For that reason, an 8.0 ms delay allows the outputs of the linear regulators to be fully discharged as well through the built-in discharge path. Time slots which include multiple regulator startups will be sub-sequenced for additional inrush balancing. The peak inrush current per event is limited. Any under-voltage detection at BP is masked while the power up sequencer is running. The Power Up mode Select pins (PUMS1 and 2) are used to configure the startup characteristics of the regulators. Supply enabling and output level options are selected by hardwiring the PUMSx pins for the desired configuration. The state of the PUMSx pins can be read out via the sense bits PUMSSxx[1:0]. Tying the PUMSx pins to ground corresponds to 00, open to 01, VCOREDIG to 10, and VCORE to 11. The recommended power up strategy for end products is to bring up as little of the system as possible at booting, essentially sequestering just the bare essentials, to allow processor startup and software to run. With such a strategy, the startup transients are controlled at lower levels, and the rest of the system power tree can be brought up by software. This allows optimization of supply ordering where specific sequences may be required, as well as supply default values. Software code can load up all of the required programmable options to avoid sneak paths, under/over-voltage issues, startup surges, etc., without any change in hardware. For this reason, the Power Gate drivers are limited to activation by software rather than the sequencer, allowing the core(s) to startup before any peripheral loading is introduced. The power up defaults Table 26 shows the initial setup for the voltage level of the switchers and regulators, and whether they get enabled. 13892 62 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION OPERATING MODES Table 26. Power Up Defaults Table i.MX PUMS1 PUMS2 SW1 (37) 37/51 GND Open 0.775 1.025 1.200 1.800 Off 3.300 (38) 2.600 1.800 1.250 2.775 3.150 Off 37/51 Open Open 1.050 1.225 1.200 1.800 Off 3.300 (38) 2.600 1.800 1.250 2.775 Off Off 37/51 VCOREDIG Open 1.050 1.225 1.200 1.800 Off 3.300 (38) 2.600 1.800 1.250 2.775 3.150 Off 37/51 VCORE Open 0.775 1.025 1.200 1.800 Off 3.300 (38) 2.600 1.800 1.250 2.775 Off Off 35 GND GND 1.200 1.350 1.800 1.800 5.000 3.300 (40) 2.600 1.500 1.250 2.775 3.150 3.150 27/31 Open GND 1.200 1.450 1.800 1.800 5.000 3.300 (40) 2.600 1.500 1.250 2.775 3.150 3.150 SW2 (37) SW3 (37) SW4 (37) SWBST VUSB VUSB2 VPLL VDIG VIOHI VGEN2 VSD Notes 37. The switchers SWx are activated in PWM pulse skipping mode, but allowed when enabled by the startup sequencer. 38. USB supply VUSB, is only enabled if 5.0 V is present on UVBUS. 39. The following supplies are not included in the matrix since they are not intended for activation by the startup sequencer: VCAM, VGEN1, VGEN3, VVIDEO, and VAUDIO 40. SWBST = 5.0 V powers up and does VUSB regardless of 5.0 V present on UVBUS. By default VUSB will be supplied by SWBST. The power up sequence is shown in Table 27. VCOREDIG, VSRTC, and VCORE are brought up in the pre-sequencer startup. Once VCOREDIG is activated (i.e., at the first-time power application), it will be continuously powered as long as a valid coin cell is present. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 63 FUNCTIONAL DEVICE OPERATION OPERATING MODES Table 27. Power Up Sequence Tap x 2ms 0 1 2 3 4 5 6 7 8 9 PUMS2 = Open (I,MX37, i.MX51) SW2 SW4 VIOHI VGEN2 SW1 SW3 VPLL VDIG VUSB (43), VUSB2 PUMS2 = GND (i.MX35, i.MX27) SW2 VGEN2 SW4 VIOHI, VSD SWBST, VUSB (44) SW1 VPLL SW3 VDIG VUSB2 Notes 41. Time slots may be included for blocks which are defined by the PUMS pin as disabled to allow for potential activation. 42. The following supplies are not included in the matrix since they are not intended for activation by the startup sequencer: VCAM, VGEN1, VGEN3, VVIDEO, and VAUDIO. SWBST is not included on the PUMS2 = Open column. 43. USB supply VUSB, is only enabled if 5.0 V is present on UVBUS. 44. SWBST = 5.0 V powers up and so does VUSB regardless of 5.0 V present on UVBUS. By default VUSB will be supplied by SWBST. POWER MONITORING The voltage at BPSNS and BP is monitored by detectors as summarized in Table 28. Table 28. BP Detection Thresholds Threshold in V Bit setting BPSNS1 0 0 1 1 BPSNS0 0 1 0 1 UVDET 2.55 2.55 2.55 2.55 Falling Edge LOBATL 2.8 2.9 3.0 3.1 LOBATH 3.0 3.1 3.3 3.4 Rising Edge BPON 3.2 3.2 3.2 3.2 Notes 45. Default setting for BPSNS[1:0] is 00. The above specified thresholds are ±50 mV accurate for the indicated edge. A hysteresis is applied to the detectors on the order of 100 mV. BPON is monitoring BP. UVDET, LOBATL and LOBATH are monitoring BPSNS and thresholds are correlated. The UVDET and BPON thresholds are related to the power on/off events as described earlier in this chapter. The LOBATH threshold is used as a weak battery warning. An interrupt LOBATHI is generated when crossing the threshold (dual edge). The LOBATL threshold is used as a low battery detect. An interrupt LOBATLI is generated when dropping below the threshold. The sense bits are coded in line with previous generation parts. Table 29. Power Monitoring Summary BPSNS < LOBATL LOBATL-LOBATH LOBATH-BPON >BPON BPONS 0 0 0 1 LOBATHS 0 0 1 1 LOBATLS 1 0 0 0 13892 64 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION OPERATING MODES POWER SAVING SYSTEM STANDBY A product may be designed to go into DSM after periods of inactivity, such as if a music player completes a play list and no further activity is detected, or if a gaming interface sits idle for an extended period. Two Standby pins are provided for board level control of timing in and out of such deep sleep modes. When a product is in DSM it may be able to reduce the overall platform current by lowering the switcher output voltage, disabling some regulators, or forcing some GPO low. This can be obtained by SPI configuration of the Standby response of the circuits along with control of the Standby pins. To ensure that shared resources are properly powered when required, the system will only be allowed into Standby when both the STANDBY and the STANDBYSEC are activated. The states of the Standby pins only have influence in On mode. A command to transition to one of the Low Power Off states (User Off or Memory Hold, initiated with USEROFFSPI = 1) has priority over Standby. Note that the Standby pins are programmable for Active High or Active Low polarity, and that decoding of a Standby event will take into account the programmed input polarities associated with each pin. Table 30. Standby Pin and Polarity Control STANDBY (Pin) 0 x 1 x 0 0 1 1 STANDBYINV (SPI bit) 0 x 1 x 1 1 0 0 STANDBYSEC (Pin) x 0 x 1 0 1 0 1 STANDBYSECINV (SPI bit) x 0 x 1 1 0 1 0 STANDBY Control (46) 0 0 0 0 1 1 1 1 Notes 46. STANDBY = 0: System is not in Standby; STANDBY = 1: System is in Standby and Standby programmability is activated. When requesting standby, a programmable delay (STBYDLY) of 0 to 3 clock cycles of the 32 kHz clock is applied before actually going into standby (i.e. before turning off some supplies). No delay is applied when coming out of standby. Table 31. Delay of STANDBY- Initiated Response STBYDLY[1:0] 00 01 10 11 No Delay One 32 K period (default) Two 32 K periods Three 32 K periods Function (1) REGULATOR MODE CONTROL The regulators with embedded pass devices (VDIG, VPLL, VIOHI, VUSB, VUSB2, and VAUDIO) have an adaptive biasing scheme, thus, there are no distinct operating modes such as a Normal mode and a Low Power mode. Therefore, no specific control is required to put these regulators in a Low Power mode. The regulators with external pass devices (VSD, VVIDEO, VGEN1, and VGEN2) can also operate in a Normal and Low Power mode. However, since a load current detection cannot be performed for these regulators, the transition between both modes is not automatic and is controlled by setting the corresponding mode bits for the operational behavior desired. The regulators VGEN3 and VCAM can be configured for using the internal pass device or external pass device as explained in Power Control System. For both configurations, the transition between Normal and Low Power modes is controlled by setting the VxMODE bit for the specific regulator. Therefore, depending on the configuration selected, the automatic Low Power mode is available. The regulators can be disabled and the general purpose outputs can be forced low when going into Standby as described previously. Each regulator and GPO has an associated SPI bit for this. When the bit is not set, STANDBY is of no influence. The actual operating mode of the regulators as a function of STANDBY is not reflected through the SPI. In other words, the SPI will read back what is programmed, not the actual state. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 65 FUNCTIONAL DEVICE OPERATION OPERATING MODES Table 32. LDO Regulator Control (External Pass Device LDOs) VxEN 0 1 1 1 1 1 VxMODE X 0 1 X 0 1 VxSTBY X 0 0 1 1 1 STANDBY X X X 0 1 1 Regulator Vx Off On Low Power On Off Low Power Notes 47. This table is valid for regulators with an external pass device 48. STANDBY refers to a Standby event as described earlier For regulators with internal pass devices and general outputs, the previous table can be simplified. Table 33. LDO Regulator Control (Internal Pass Device LDOs) VxEN 0 1 1 1 VxSTBY X 0 1 1 STANDBY X X 0 1 Regulator Vx Off On On Off Notes 49. This table is valid for regulators with an internal pass device 50. STANDBY refers to a Standby event as described earlier BUCK SWITCHERS Operational modes of the Buck switchers can be controlled by direct SPI programming, altered by the state of the STANDBY pins, by direct state machine influence, or by load current magnitude when so configured. Available modes include PWM with No Pulse Skipping (PWM), PWM with Pulse Skipping (PWMPS), Pulse Frequency Mode (PFM), and Off. The transition between the two modes PWMPS and PFM can occur automatically, based on the load current. Therefore, no specific control is required to put the switchers in a Low Power mode. When the buck switchers are not configured in the Auto mode, power savings may be achieved by disabling switchers when not needed, or running them in PFM mode if loading conditions are light enough. SW1, SW2, SW3, and SW4 can be configured for mode switching with STANDBY or autonomously based on load current with adaptive mode control (Auto). Additionally, provisions are made for maintaining PFM operation in USEROFF and MEMHOLD modes to support state retention for faster startup from the low power Off modes for Warm Start or Warm Boot. Table 34 summarizes the Buck switcher programmability for Normal and Standby modes. Table 34. Switcher Mode Control for Normal and Standby Operation SWxMODE[3:0] 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 Normal mode(51) Off PWM PWMPS PFM Auto PWM PWM NA Auto PWM PWMPS PWMPS Auto PWM Standby Mode(51) Off Off Off Off Off PWM Auto NA Auto PWMPS PWMPS Auto PFM PFM 13892 66 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION OPERATING MODES Table 34. Switcher Mode Control for Normal and Standby Operation SWxMODE[3:0] 1110 1111 Normal mode(51) PWMPS PFM Standby Mode(51) PFM PFM Notes 51. STANDBY defined as logical AND of STANDBY and STANDBYSEC pin In addition to controlling the operating mode in Standby, the voltage setting can be changed. The transition in voltage is handled in a controlled slope manner, see Supplies, for details. Each switcher has an associated set of SPI bits for Standby mode set points. By default the Standby settings are identical to the non-Standby settings, which are initially defined by PUMS programming. The actual operating mode of the switchers as a function of STANDBY pins is not reflected through the SPI. The SPI will read back what is programmed in SWxMODE[3:0], not the actual state that may be altered as described previously. Table 35 and Table 36 show the switcher mode control in the Low Power Off states. Note that a Low Power Off activated SWx should use the Standby set point as programmed by SWxSTBY[4:0]. The activated switcher(s) will maintain settings for mode and voltage until the next startup event. When the respective time slot of the startup sequencer is reached for a given switcher, its mode and voltage settings will be updated the same as if starting out of the Off state (except that switchers active through a Low Power Off mode will not be off when the startup sequencer is started). Table 35. Switcher Control In Memory Hold SWxMHMODE 0 1 Memory Hold Operational Mode (52) Off PFM Notes 52. For Memory Hold mode, an activated SWx should use the Standby set point as programmed by SWxSTBY[4:0]. Table 36. Switcher Control In User Off SWxUOMODE 0 1 User Off Operational Mode (53) Off PFM Notes 53. For User Off mode, an activated SWx should use the Standby set point as programmed by SWxSTBY[4:0]. POWER GATING SYSTEM The Low Power Off states are provided to allow faster system booting from two pseudo Off conditions: Memory Hold, which keeps the external memory powered for self refresh, and User Off, which keeps the processor powered up for state retention. For reduced current drain in Low Power Off states, parts of the system can benefit from power gating to isolate the minimum essentials for such operational modes. It is also necessary to ensure that the power budget on backed up domains are within the capabilities of switchers in PFM mode. An additional benefit of power gating peripheral loads during system startup is to enable the processor core to complete booting, and begin running software before additional supplies or peripheral devices are powered. This allows system software to bring up the additional supplies and close power gating switches in the most optimum order, to avoid problems with supply sequencing or transient current surges. The power gating switch drivers and integrated control are included for optimizing the system power tree. The power gate drivers could be used for other general power gating as well. The text herein assumes the standard application of PWGT1 for core supply power gating and PWGT2 for Memory Hold power gating. USER OFF POWER GATING User Off configuration maintains PFM mode switchers on both the processor and external memory power domains. PWGTDRV1 is provided for power gating peripheral loads sharing the processor core supply domain(s) SW1, and/or SW2, and/ or SW3. In addition, PWGTDRV2 is provided support to power gate peripheral loads on the SW4 supply domain. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 67 FUNCTIONAL DEVICE OPERATION OPERATING MODES In the typical application, SW1, SW2, and SW3 will all be kept active for the processor modules in state retention, and SW4 retained for the external memory in self refresh mode. SW1, SW2, and SW3 power gating FET drive would typically be connected to PWGTDRV1 (for parallel NMOS switches); SW4 power gating FET drive would typically be connected to PWGTDRV2. When Low Power Off mode is activated, the power gate drive circuitry will be disabled, turning off the NMOS power gate switches to isolate the maintained supply domains from any peripheral loading. The power gate switch driver consist of a fully integrated charge pump (~5.0 V) which provides a low power output to drive the gates of external NMOS switches placed between power sources and peripheral loading. The processor core(s) would typically be connected directly to the SW1 output node so that it can be maintained by SW1, while any circuitry that is not essential for booting or User Off operation is decoupled via the power gate switch. If multiple power domains are to be controlled together, power gating NMOS switches can share the PWGT1 gate drive. However, extra gate capacitance may require additional time for the charge pump gate drive voltage to reach its full value for minimum switch RDS_on. Figure 13. Power Gating Diagram MEMORY HOLD POWER GATING As with the User Off power gating strategy described previously, Memory Hold power gating is intended to allow isolation of the SW4 power domain, to selected circuitry in Low Power modes while cutting off the switcher domain from other peripheral loads. The only difference is that processor supplies SW1, and/or SW2, and/or SW3, are shut down in Memory Hold, so just the external memory is maintained in self refresh mode. An external NMOS is to be placed between the direct-connected memory supply and any peripheral loading. The PWGTDRV2 pin controls the gate of the external NMOS and is normally pulled up to a charge pumped voltage (~5.0 V). During Memory Hold or User Off, PWGTDRV2 will go low to turn off the NMOS switch and isolate memory on the SW4 power domain. 13892 68 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION OPERATING MODES Figure 14. Memory Hold Circuit EXITING FROM LOW POWER OFF MODES When a Turn On event occurs, any switchers that are active through Low Power Off modes will stay in PFM mode at their Standby voltage set points until the applicable time slot of the startup sequencer. At that point, the respective switcher is updated for the PUMSx defined default state for mode and voltage. Subsequent closing of the power gate switches will be coordinated by software to complete restoration of the full system power tree. POWER GATING SPECIFICATIONS AND CONTROL Table 37. Power Gating Characteristics Parameter Output Voltage VOUT Turn-on Time (54), (55) Turn Off Time Average Bias Current PWGTx Input Voltage DC Load Current Load Capacitance (54) Output High Output Low Enable to VOUT = VOUTMIN -250 mV Disable to VOUT < 1.0 V t > 500 μs after Enable NMOS drain voltage At PWGTDRVx output Used as a condition for the other parameters Condition Min 5.0 0.6 0.5 Typ 5.40 50 1.0 Max 5.70 100 100 1 5 2.0 100 1.0 Units V mV μs μs μA V nA nF Notes 54. Larger capacitive loading values will lead to longer turn on times exceeding the given limits; smaller values will lead to larger ripple at the output. 55. Input supply is assumed in the range of 3.0 < BP < 4.65 V; lower BP values may extend turn on time, and functionality not supported for BP less than ~2.7 V. A power gate driver pulled low may be thought of as power gating being active since this is the condition where a power source is isolated (or power gated) from its loading on the other side of the switch. The power gate drive outputs are SPI controlled in the active modes as shown in Table 38. Table 38. Power Gate Drive State Control Mode Off Cold Start Warm Start Watchdog, On, User Off Wait User Off, Memory Hold, Internal Memory Hold Power Cut PWGTDRV1 Low Low Low SPI Controlled Low PWGTDRV2 Low Low Low SPI Controlled Low 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 69 FUNCTIONAL DEVICE OPERATION OPERATING MODES When SPI controlled (Watchdog, On, and User Off Wait states), the PWGTDRVx power gate drive pin states are determined by SPI enable bits PWGTxSPIEN, according to Table 39. Table 39. Power Gating Logic Table PWGTxSPIEN 1 0 PWGTDRVx Low High Notes 56. Applicable for Watchdog, On and User Off Wait modes only. If PWGT1SPIEN AND PWGT2SPIEN both = 1 then the charge pump is disabled. GENERAL PURPOSE OUTPUTS GPO drivers included can provide useful system level signaling with SPI enabling and programmable Standby control. Key use cases for GPO outputs include battery pack thermistor biasing and enabling of peripheral devices, such as light sensor(s), camera flash, or even supplemental regulators. SPI enabling can be used for coordinating GPOs with ADC conversions for consumption efficiency and desired settling characteristics. Four general purpose outputs are provided, summarized in Table 40 and Table 41 (active high polarities assumed). Table 40. GPO Control Bits SPI Bit GPOxEN GPOxSTBY x = 1, 2, 3, or 4 GPO Control GPOx enable GPOx controlled by STANDBY Table 41. GPO Control Scheme GPOxEN 0 1 1 1 GPOxSTBY X 0 1 1 STANDBY X X 0 1 Output GPOx Low High High Low Notes 57. GPO1 is automatically made active high when a charger is detected, see Battery Interface and Control for more information. The GPO1 output is intended to be used for battery thermistor biasing. For accurate thermistor reading by the ADC, the output resistance of the GPO1 driver is of importance; see ADC Subsystem. Table 42. GPO1 Driver Output Characteristics Parameter GPO1 Output Impedance Condition Output VCORE Impedance to VCORE Min 200 Typ Max 500 Units Ohm Finally, a muxing option is included to allow GPO4 to be configured for a muxed connection into Channel 7 of the GP ADC. As an application example, for a dual light sensor application, Channel 7 can be toggled between the ADIN7 (ADINSEL7 = 00) and GPO4 (ADINSEL7 = 11) for convenient connectivity and monitoring of two sensors. The GPO4 pin is configured for ADC input mode by default (GPO4ADIN = 1) so that the GPO driver stage is high-impedance at power up. The GPO4 pin can be configured by software for GPO operation with GPO4ADIN = 0. Refer to ADC Subsystem for GP ADC details. 13892 70 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION SUPPLIES SUPPLIES SUPPLY FLOW The switched mode power supplies and the linear regulators are dimensioned to support a supply flow based upon Figure 15. Charger Protect and Accessory USB Cable Interface Detect Voltage & Current Control Battery Power Audio CC Charge RTC, MEMA/B Coincell BP Peripherals UVBUS SWBST 5.0V SW4 1.8V PGATE IO and Digital External Memory VUSB USB PHY Coin Cell Vcoredig Serial Backlight Drivers Alternate hardwired bias option from SW4 Core GPOs Processor Interfaces VUSB2 SW1 0.6 to 1.15V SW2 0.6 to 1.25V SW3 1.25V Peripherals PGATE Internal Processor Memory Alternate hardwired bias option from external 2.2V switcher GP Core DVS Domain SOG Core DVS Domain Vcore Vcam PNP Viohi Vpll Vdig VVIDEO PNP VAUDIO Vsd PNP VGEN3 PNP VGEN1 PNP VGEN2 PNP Camera Peripherals IO, EFUSE Core PLLs (Analog) GPS Core TV-DAC Audio SD, Tflash Peripherals WLAN, BT MLC NAND Legend System Supplies External Loads Internal Loads Energy Source Figure 15. Supply Distribution While maintaining the performance as specified, the minimum operating voltage for the supply tree is 3.0 V. For lower voltages, the performance may be degraded. Table 43 summarizes the available power supplies. Table 43. Power Tree Summary Supply SW1 SW2 SW3 SW4 SWBST VIOHI VPLL VDIG VSD VUSB2 VVIDEO VAUDIO Purpose (Typical Application) Buck switcher for processor core(s) Buck switcher for processor SOG, etc. Buck switcher for internal processor memory and peripherals Buck switcher for external memory and peripherals Boost switcher for USB OTG, Tri-color LED drivers IO and Peripheral supply, eFuse support Quiet Analog supply (PLL, GPS) Low voltage digital (DPLL, GPS) SD Card, external PNP External USB PHY supply TV DAC supply, external PNP Audio supply Output Voltage (in V) 0.600-1.375 0.600-1.375; 1.100-1.850 0.600-1.375; 1.100-1.850 0.600-1.375; 1.100-1.850 5.0 2.775 1.2/1.25/1.5/1.8 1.05/1.25/1.65/1.8 1.8/2.0/2.6/2.7/2.8/2.9/3.0/3.15 2.4/2.6/2.7/2.775 2.5/2.6/2.7/2.775 2.3/2.5/2.775/3.0 Load Capability (in mA) 1050 800 800 800 300 100 50 50 250 50 350 150 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 71 FUNCTIONAL DEVICE OPERATION SUPPLIES Table 43. Power Tree Summary Supply VCAM VGEN1 VGEN2 VGEN3 VUSB Purpose (Typical Application) Camera supply, internal PMOS Camera supply, external PNP General peripherals supply #1, external PNP General peripherals supply #2, external PNP General peripherals supply #3, internal PMOS General peripherals supply #3, external PNP USB Transceiver supply Output Voltage (in V) 2.5/2.6/2.75/3.0 2.5/2.6/2.75/3.0 1.2/1.5/2.775/3.15 1.2/1.5/1.6/1.8/2.7/2.8/3.0/3.15 1.8/2.9 1.8/2.9 3.3 Load Capability (in mA) 65 250 200 350 50 250 100 BUCK SWITCHER SUPPLIES Four buck switchers are provided with integrated power switches and synchronous rectification. In a typical application, SW1 and SW2 are used for supplying the application processor core power domains. Split power domains allow independent DVS control for processor power optimization, or to support technologies with a mix of device types with different voltage ratings. SW3 is used for powering internal processor memory as well as low voltage peripheral devices and interfaces which can run at the same voltage level. SW4 is used for powering external memory as well as low voltage peripheral devices and interfaces which can run at the same voltage level. An anticipated platform use case applies SW1 and SW2 to processor power domains that require voltage alignment to allow direct interfacing without bandwidth limiting synchronizers. The buck switchers have to be supplied from the system supply BP, which is drawn from the main battery or the battery charger (when present). Figure 16 shows a high level block diagram of the buck switchers. Figure 16. Buck Switcher Architecture 13892 72 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION SUPPLIES The Buck switcher topology includes an integrated synchronous rectifier, meaning that the rectifying diode is implemented on the chip as a low ohmic FET. The placement of an external diode is therefore not required, but overall switcher efficiency may benefit from this. The buck converters permit a 100% duty cycle operation. During normal operation, several power modes are possible depending on the loading. For medium and full loading, synchronous PWM control is the most efficient, while maintaining a constant switching frequency. Two PWM modes are available: the first mode sacrifices low load efficiency for a continuous switching operation (PWM-NPS). The second mode offers better low load efficiency by allowing the absence of switching cycles at low output loading (PWM-PS). This pulse skipping feature improves efficiency by reducing dynamic switching losses by simply switching less often. In its lowest power mode, the switcher can regulate using hysteresis control known as a Pulse Frequency Modulation (PFM) control scheme. The frequency spectrum in this case will be a function of input and output voltage, loading, and the external components. Due to its spectral variance and lighter drive capability, PFM mode is generally reserved for non-active radio modes and Deep Sleep operation. Buck modes of operation are programmable for explicitly defined or load-dependent control (Adaptive). Refer to the Buck Switchers section in Power Control System for details. Common control bits available to each buck regulator may be designated with a suffix “x” within this specification, where x stands for 1, 2, 3, or 4 (i.e., SWx = SW1, SW2, SW3, and SW4). The output voltages of the buck switchers are SPI configurable, and two output ranges are available, individually programmed with SWxHI for SW2, SW3, and SW4 bucks, SW1 is limited to only one output range. Presets are available for both the Normal and Standby operation. SW1 and SW2 also include pin controlled DVS operation. When transitioning from one voltage to another, the output voltage slope is controlled in steps of 25 mV per time step (time step as defined for DVS stepping for SW1 and SW2, fixed at 4.0 μs for SW3 and SW4). This allows for support of dynamic voltage scaling (DVS) by using SPI driven voltage steps, state machine defined modes, and direct DVSx pin control. When initially activated, switcher outputs will apply controlled stepping to the programmed value. The soft start feature limits the inrush current at startup. A built-in current limiter ensures that during normal operation, the maximum current through the coil is not exceeded. This current limiter can be disabled by setting the SWILIMB bit. Point of Load feedback is intended for minimizing errors due to board level IR drops. SWITCHING FREQUENCY The switchers are driven by a high frequency clock. By default, the PLL generates an effective 3.145728 MHz signal based upon the 32.768 kHz oscillator signal by multiplying it by 96. To reduce spurious radio channels, the PLL can be programmed via PLLX[2:0] to different values as shown in Table 44. Table 44. PLL Multiplication Factor PLLX[2:0] 000 001 010 011 100 (default) 101 110 111 Multiplication Factor 84 87 90 93 96 99 102 105 Switching Frequency (Hz) 2 752 512 2 850 816 2 949 120 3 047 424 3 145 728 3 244 032 3 342 336 3 440 640 To reduce overall current drain, the PLL is automatically turned off if all switchers are in a PFM mode or turned off, and if the PLL clock signal is not needed elsewhere in the system. The clocking system provides nearly instantaneously, a high frequency clock to the switchers when the switchers are activated or exit the PFM mode for PWM mode. The PLL can be configured for continuous operation by setting the SPI bit PLLEN = 1. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 73 FUNCTIONAL DEVICE OPERATION SUPPLIES Table 45. PLL Main Characteristics Parameter Frequency Accuracy PLLEN = 1 1 Buck Switcher active 2 Buck Switchers active 3 Buck Switchers active 4 Buck Switchers active Cold Start PFM to PWM 50 100 115 130 145 Condition (58) Min Typ Max 100 80 150 170 190 210 700 600 Units ppm μA μA μA μA μA ns ns Bias Current Start up Time Notes 58. Clock input to PLL is 32.768 kHz Table 46. PLL Control Registers Name PLLEN PLLX[2:0] R/W R/W R/W Reset Signal RESETB RESET Reset State 0 100 Description 1 = Forces PLL on 0 = PLL automatically enabled Selects PLL multiplication factor BUCK SWITCHER CORE Table 47. Buck Switchers (SW1, 2, 3, 4) Output Voltage Programmability Set point 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 SWx[4:0] 00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 01011 01100 01101 01110 01111 10000 10001 10010 10011 10100 10101 10110 10111 11000 11001 11010 11011 11100 SWx Output, SWxHI = 0 (Volts) 0.600 0.625 0.650 0.675 0.700 0.725 0.750 0.775 0.800 0.825 0.850 0.875 0.900 0.925 0.950 0.975 1.000 1.025 1.050 1.075 1.100 1.125 1.150 1.175 1.200 1.225 1.250 1.275 1.300 SWx Output (59), SWxHI = 1 (Volts) 1.100 1.125 1.150 1.175 1.200 1.225 1.250 1.275 1.300 1.325 1.350 1.375 1.400 1.425 1.450 1.475 1.500 1.525 1.550 1.575 1.600 1.625 1.650 1.675 1.700 1.725 1.750 1.775 1.800 13892 74 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION SUPPLIES Table 47. Buck Switchers (SW1, 2, 3, 4) Output Voltage Programmability Set point 29 30 31 59. SWx[4:0] 11101 11110 11111 SWx Output, SWxHI = 0 (Volts) 1.325 1.350 1.375 SWx Output (59), SWxHI = 1 (Volts) 1.825 1.850 1.850 Output range not available for SW1. SW1 output range is 0.600-1.375, therefore SW1HI = 1 does not apply to SW1. The SW1HI bit should always be set to 0. Since the startup default values of the buck switchers are dependent on the state of the PUMS pin, the SWxHI bit settings will likewise be determined by the PUMS pin. The settings are aligned to the likely application ranges for use cases as given in the Defaults tables in Power Control System. The following tables define the SWxHI bit states after a startup event is completed, but can be reconfigured via the SPI if desired, if an alternate range is needed. Care should be taken when changing SWxHI bit to avoid unintended jumps in the switcher output. The SWxHI setting applies to Normal, Standby, and DVS set points for the corresponding switcher. Table 48. SWxHI States for Power Up Defaults PUMS1 PUMS2 SW1HI SW2HI SW3HI SW4HI Ground Open 0 0 0 1 Open Open 0 0 0 1 VCOREDIG Open 0 0 0 1 VCORE Open 0 0 0 1 Ground Ground 0 1 1 1 Open Ground 0 1 1 1 Note that the following efficiency curves were measured with the MC13892 in a socket. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 75 FUNCTIONAL DEVICE OPERATION SUPPLIES SW1 PFM mode Efficiency Vout = 0,7 25 V 100% 90% 80% 70% E ffi ciency (%) 60% 50% 40% 30% 20% 10% 0% 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 Il oad (m A) Vin = 2, 800 V Vin = 3, 600 V Vin = 4, 650 V SW2 PFM mode Efficiency Vout = 1.2 50 V 100% 90% 80% 70% E ffi ciency (%) 60% 50% 40% 30% 20% 10% 0% 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 Il oad (m A) Vin = 2, 800 V Vin = 3, 600 V Vin = 4, 650 V SW4 PFM mode Efficiency Vout = 1.8 00 V 100% 90% 80% 70% E ffi ciency (%) 60% 50% 40% 30% 20% 10% 0% 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 Il oad (m A) Vin = 2, 800 V Vin = 3, 600 V Vin = 4, 650 V Figure 17. Buck Switcher PFM Efficiency 13892 76 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION SUPPLIES S W1 P WM No P ulse Ski pp ing mode Efficien cy V out = 0,725 V 100 % 90 % 80 % 70 % 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 10 20 30 40 50 Ilo a d (m A) 60 70 80 90 10 0 Ef fic ien cy (% ) Ef fic ien cy (% ) Vin = 3 ,00 0 V Vin = 3 ,60 0 V Vin = 4 ,65 0 V 100 % 90 % 80 % 70 % 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 50 S W4 P WM No P ul se S kipp ing mode Efficien cy V out = 1.800 V Vin = 3,0 00 V Vin = 3,6 00 V Vin = 4,6 50 V 1 00 1 50 20 0 2 50 30 0 35 0 400 450 5 00 5 50 60 0 65 0 700 750 8 00 850 9 00 Il oa d (m A) S W2 P WM No P ulse Ski pp ing mode Efficien cy V out = 1.250 V 100 % 90 % 80 % 70 % Ef fic ien cy (% ) Ef fic ien cy (% ) 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 10 20 30 40 50 Ilo a d (m A) 60 70 80 90 10 0 Vin = 3 ,00 0 V Vin = 3 ,60 0 V Vin = 4 ,65 0 V 100 % 90 % 80 % 70 % 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 50 S W2 P WM No P ul se S kipp ing mode Efficien cy V out = 1.250 V Vin = 3,0 00 V Vin = 3,6 00 V Vin = 4,6 50 V 1 00 1 50 20 0 2 50 30 0 35 0 400 450 5 00 5 50 60 0 65 0 700 750 8 00 850 9 00 Il oa d (m A) S W4 P WM No P ulse Ski pp ing mode Efficien cy V out = 1.800 V 100 % 90 % 80 % 70 % Ef fic ien cy (% ) Ef fic ien cy (% ) 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 10 20 30 40 50 Ilo a d (m A) 60 70 80 90 10 0 Vin = 3 ,00 0 V Vin = 3 ,60 0 V Vin = 4 ,65 0 V 100 % 90 % 80 % 70 % 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 50 S W4 P WM No P ul se S kipp ing mode Efficien cy V out = 1.800 V Vin = 3,0 00 V Vin = 3,6 00 V Vin = 4,6 50 V 1 00 1 50 20 0 2 50 30 0 35 0 400 450 5 00 5 50 60 0 65 0 700 750 8 00 850 9 00 Il oa d (m A) Figure 18. Buck Switcher PWM (No Pulse Skipping) Efficiency 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 77 FUNCTIONAL DEVICE OPERATION SUPPLIES S W1 P WM Pu lse S kip pi ng mo de E ffi ciency Vo ut = 0, 725 V 100 % 90 % 80 % Ef fic ien cy (% ) 70 % Ef fic ien cy (% ) 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 10 20 30 40 50 Ilo a d (m A) 60 70 80 90 10 0 Vin = 3 ,00 0 V Vin = 3 ,60 0 V Vin = 4 ,65 0 V 100 % 90 % 80 % 70 % 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 S W1 PWM P ulse Ski ppi ng mo de E ffi ciency Vo ut = 0, 725 V Vin = 3,0 00 V Vin = 3,6 00 V Vin = 4,6 50 V 50 1 00 150 200 25 0 300 35 0 4 00 450 50 0 55 0 6 00 650 70 0 7 50 800 85 0 90 0 9 50 10 0 1 05 0 Il oa d (m A) 0 S W2 P WM Pu lse S kip pi ng mo de E ffi ciency Vo ut = 1. 250 V 100 % 90 % 80 % 70 % Ef fic ien cy (% ) 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 10 20 30 40 50 Ilo a d (m A) 60 70 80 90 10 0 Ef fic ien cy (% ) Vin = 3 ,00 0 V Vin = 3 ,60 0 V Vin = 4 ,65 0 V 100 % 90 % 80 % 70 % 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 50 S W2 P WM Pu lse S kip pin g m od e E ffici ency V ou t = 1.250 V Vin = 3, 000 V Vin = 3, 600 V Vin = 4, 650 V 1 00 1 50 20 0 25 0 300 350 4 00 4 50 50 0 55 0 600 Ilo a d (m A) 650 7 00 7 50 80 0 85 0 900 S W4 P WM Pu lse S kip pi ng mo de E ffi ciency Vo ut = 1. 800 V 100 % 90 % 80 % 70 % Ef fic ien cy (% ) 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 10 20 30 40 50 Ilo a d (m A) 60 70 80 90 10 0 Ef fic ien cy (% ) Vin = 3 ,00 0 V Vin = 3 ,60 0 V Vin = 4 ,65 0 V 100 % 90 % 80 % 70 % 60 % 50 % 40 % 30 % 20 % 10 % 0% 0 50 S W4 PWM P ulse Ski ppi ng mo de E ffi ciency Vo ut = 1. 800 V Vin = 3,0 00 V Vin = 3,6 00 V Vin = 4,6 50 V 1 00 1 50 20 0 2 50 30 0 35 0 400 450 5 00 5 50 60 0 65 0 700 750 8 00 850 9 00 Il oa d (m A) Figure 19. Buck Switcher PWM (Pulse Skipping) Efficiency DYNAMIC VOLTAGE SCALING To reduce overall power consumption, processor core voltages can be varied depending on the mode or activity level of the processor. SW1 and SW2 allow for three different set points with controlled transitions to avoid sudden output voltage changes, which could cause logic disruptions on their loads. Preset operating points for SW1 and SW2 can be set up for: • Normal operation: output value selected by SPI bits SWx[4:0]. Voltage transitions initiated by SPI writes to SWx[4:0] are governed by the same DVS stepping rate that is programmed for DVSx pin initiated transitions. • DVS: output can be higher or lower than normal operation for tailoring to application requirements. Configured by SPI bits SWxDVS[4:0] and controlled by a DVSx pin transition. • Standby (Deep Sleep): can be higher or lower than normal operation, but is typically selected to be the lowest state retention voltage of a given process. Set by SPI bits SWxSTBY[4:0] and controlled by a Standby event (STANDBY logically and'd with STANDBYSEC). Voltage transitions initiated by Standby are governed by the same DVS stepping that is programmed for DVSx pin initiated transitions. The following tables summarize the set point control and DVS time stepping applied to SW1 and SW2. Table 49. DVS Control Logic Table for SW1 and SW2 STANDBY (60) 0 0 1 DVSx Pin 0 1 X Set Point Selected by SWx[4:0] SWxDVS[4:0] SWxSTBY[4:0] Notes 60. STANDBY is the logical anding of STANDBY and STANDBYSEC 13892 78 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION SUPPLIES Table 50. DVS Speed Selection for SW1 and SW2 SWxDVSSPEED[1:0] 00 01 (default) 10 11 Function 25 mV step each 2.0 μs 25 mV step each 4.0 μs 25 mV step each 8.0 μs 25 mV step each 16 μs Since the switchers have a strong sourcing capability but no active sinking capability, the rising slope is determined by the switcher, but the falling slope can be influenced by the load. Additionally, as the current capability in PFM mode is reduced, controlled DVS transitions in PFM mode could be affected. Critically timed DVS transitions are best assured with PWM mode operation. Note that there is a special mode of DVS control for Switcher Increment / Decrement (SID) operation described later in this chapter. DVS pin controls are not included for SW3 and SW4. However, voltage transitions programmed through the SPI will step in increments of 25 mV per 4.0 μs, to allow SPI controlled voltage stepping with SWx[4:0]. Additionally, SW3 and SW4 include Standby mode set point programmability. Figure 20 shows the general behavior for the switchers when initiated with pin controlled DVS, SPI programming or standby control. Figure 20. SW1 Voltage Stepping with Pin Controlled DVS Note that the DVSx input pins are reconfigured for Switcher Increment / Decrement (SID) control mode when SPI bit SIDEN = 1. Refer to the SID description below for further details. SWITCHER INCREMENT / DECREMENT A scheme for incrementing or decrementing the operating set points of SW1 and SW2 is desirable for improved Dynamic Process and Temperature Compensation (DPTC) control in support of fine tuning power domains for the processor supply tree. An increment command will increase the set point voltage by a single 25 mV step. A decrement command will decrease the set point by a single 25 mV step. The transition time for the step will be the same as programmed with SWxDVSSPEED[1:0] for DVS stepping. If a switcher runs out of programmable range (in either direction), as constrained by programmable stops, then the increment or decrement command shall be ignored. The Switcher Increment / Decrement (SID) function is enabled with SIDEN = 1. This will reassign the function of the DVS1 and DVS2 pins, from the default toggling between Normal and DVS operating modes, to a jog control mode for the switcher which DVSx is assigned. Once enabled, the switcher being controlled will start at the Normal mode set point as programmed with SWx[4:0] and await any jog commands from the processor. The adjustment scheme essentially intercepts the Normal mode set point SPI bits (i.e., but not DVS or Standby programmed set points), and makes any necessary adjustments based on jog up or jog down commands. The modified set point bits are then immediately passed to the switching regulator, which would then do a DVS step in the appropriate direction. The SPI bits containing Normal mode programming are not directly altered. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 79 FUNCTIONAL DEVICE OPERATION SUPPLIES When configured for SID mode, a high pulse on the DVSx pin will indicate one of 3 actions to take, with the decoding as a function of how many contiguous SPI clock falling edges are seen while the DVSx pin is held high. Table 51. SID Control Protocol Number of SPI CLK Falling Edges while DVSx = 1 0 1 2 3 or more Function No action. Switcher stays at its presently programmed configuration Jog down. Drive buck switcher output down a single DVS step Jog up. Drive buck switcher output up a single DVS step Panic Mode. DVS step the buck switcher output to the Normal mode value as programmed in the SPI register The SID protocol is illustrated by way of example, assuming SIDEN = 1, and that DVS1 is controlling SW1. SW1 starts out at its default value of 1.250 V (SW1 = 11010) and is stepped both up and down via the DVS1 pin. The SPI bits SW1 = 11010 do not change. The set point adjustment takes place in the SID block prior to bit delivery to the switcher's digital control. Starting Value SW1 output 1.250 DVS Up DVS Down 1.250 1.275 DVS Down 1.225 DVS1 Up Down Down SPICLK 1 2 SPICLK shut down when not used 1 1 Figure 21. SID Control Example for Increment & Decrement SID Panic Mode is provided for rapid recovery to the programmed Normal mode output voltage, so the processor can quickly recover to its high performance capability with a minimum of communication latency. In Figure 22, Panic Mode recovery is illustrated as an Increment step, initiated by the detection of the second falling SPI clock edge, followed by a continuation to the programmed SW1[4:0] level (1.250 V in this example), due to the detection of the third contiguous falling edge of SPI clock while DVS1 is held high. SID Panic Mode Example Starting Value SW1 output 1.050 DVS Up DVS step all the way back to 1.250V (SW1[4:0] programmed value = 1.250V) DVS1 Up Panic SPICLK 1 2 3 SPICLK shut down when not used Figure 22. SID Control Example for Panic Mode Recovery The system will not respond to a new jog command until it has completed a DVS step that may be in progress. Any missed jog requests will not be stored. For instance, if a switcher is stepping up in voltage with a 25 mV step over a 4.0 μs time, response to the DVSx pin for another step will be ignored until the DVS step period has expired. However, the Panic Mode step recovery should respond immediately upon detection of the third SPICLK edge while the corresponding DVSx pin is high, even if the initial decode of the jog up command is ignored, because it came in before the previous step was completed. 13892 80 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION SUPPLIES While in SID mode, programmable stops are used to set limits on how far up and how far down a SID-controlled buck switcher will be allowed to step. The SWxSIDMIN[3:0] and SWxSIDMAX[3:0] bits can be used to ensure that voltage stepping is confined to within the acceptable bounds for a given process technology used for the BB IC. To contain all of the SWx voltage setting bits in single banks, the SWxSIDMIN[3:0] word is shortened to 4 bits, but should be decoded by logic to have an implied leading 0 (i.e., MSB = 0, but is not included in the programmable word). For instance, SW1SIDMIN = 1000 (default value) should be decoded as 01000, which corresponds to 0.800 V (assuming SW1HI = 0). Likewise, the SWxSIDMAX[3:0] word is shortened to 4 bits, but should be decoded by logic to have an implied leading 1 (MSB = 1, but is not included in the programmable word). For instance, SW1SIDMAX = 1010 (default value) should be decoded as 11010, which corresponds to 1.250 V (again, assuming SW1HI = 0). A new SPI write for the active switcher output value with SWx[4:0] should take immediate effect, and this becomes the new baseline from which succeeding SID steps are referenced. The SWxDVS[4:0] value is not considered during SID mode. The system only uses the SWx[4:0] bits and the min/max stops SWxSIDMIN[3:0] and SWxSIDMAX[3:0]. When in SID mode, a STANDBY = 1 event (pin states of STANDBY and STANDBYSEC) will have the “immediate” effect (after any STBYDLY delay has timed out) of changing the set point and mode to those defined for Standby operation. Exiting Standby puts the system back to the normal mode set point with no stored SID adjustments -- the system will recalibrate itself again from the refreshed baseline. BOOST SWITCHER SWBST is a boost switching regulator with a fixed 5.0 V output. It runs at 2/3 of the switcher PLL frequency. SWBST supplies the VUSB regulator for the USB system in OTG mode, and it also supplies the power for the RGB LED's. When SWBST is configured to supply the VBUS pin in OTG mode, the feedback will be switched to sense the UVBUS pin instead of the SWBSTFB pin. Therefore, when driving the VBUS for OTG mode the output of the switcher may rise to 5.75 V to compensate for the voltage drops on the internal switches. Note that the parasitic leakage path for a boost switcher will cause the output voltage SWBSTOUT and SWBSTFB to sit at a Schottky drop below the battery voltage whenever SWBST is disabled. The switching NMOS transistor is integrated on-chip. An external fly back Schottky diode, inductor and capacitor are required. Figure 23. Boost Switcher Architecture Enabling of SWBST is accomplished through the SWBSTEN SPI control bit. Table 52. Switch Mode Supply SWBST Control Function Summary Parameter SWBSTEN Value 0 1 Function SWBST OFF SWBST ON 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 81 FUNCTIONAL DEVICE OPERATION SUPPLIES 5V Boost Efficien cy (Vin = 3.6V, Vout = 5V) 100.00 Efficiency (%) 95.00 90.00 85.00 80.00 0 100 200 300 Boost Load Cur rent (m A) Figure 24. Boost Switcher Efficiency LINEAR REGULATORS This section describes the linear regulators provided. For convenience, these regulators are named to indicate their typical or possible applications, but the supplies are not limited to these uses and may be applied to any loads within the specified regulator capabilities. A low power standby mode controlled by STANDBY is provided in which the bias current is aggressively reduced. This mode is useful for deep sleep operation where certain supplies cannot be disabled, but active regulation can be tolerated with lesser parametric requirements. The output drive capability and performance are limited in this mode. Refer to STANDBY Event Definition and Control in Power Control System for more details. Some dedicated regulators are covered in their related chapters rather than in the Supplies chapter (i.e., the VUSB and VUSB2 supplies are included in Connectivity). Apart from the integrated linear regulators, there are also GPO output pins provided to enable and disable discrete regulators or functional blocks, or to use as a general purpose output for any system need. For example, one application may be to enable a battery pack thermistor bias in synchronization with timed ADC conversions. All regulators use the main bandgap as the reference. The main bandgap is bypassed with a capacitor at REFCORE. The bandgap and the rest of the core circuitry is supplied from VCORE. The performance of the regulators is directly dependent on the performance of VCOREDIG and the bandgap. No external DC loading is allowed on VCOREDIG or REFCORE. VCOREDIG is kept powered as long as there is a valid supply and/or coin cell. Table 53 captures the main characteristics of the core circuitry. Table 53. Core Specifications Reference VCOREDIG (Digital core supply) Parameter Output voltage in ON mode (61),(62) Output voltage in Off mode(62) Bypass Capacitor Output voltage in ON mode (61),(62) Output voltage in Off mode (62) Bypass Capacitor Output voltage (61) Absolute Accuracy Temperature Drift Bypass Capacitor Target 1.5 V 1.2 V 2.2 μF typ (0.65 μF derated) 2.775 V 0V 2.2 μF typ (0.65 μF derated) 1.20 V 0.50% 0.25% 100 nF typ (65 nF derated) VCORE (Analog core supply) REFCORE (Bandgap / Regulator Reference) Notes 61. 3.0 V < BP < 4.65 V, no external loading on VCOREDIG, VCORE, or REFCORE. Extended operation down to UVDET, but no system malfunction. 62. The core is in On mode when charging or when the state machine of the IC is not in the Off mode nor in the power cut mode. Otherwise, the core is in Off mode. 13892 82 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION SUPPLIES REGULATORS GENERAL CHARACTERISTICS The following applies to all linear regulators unless otherwise specified. • Specifications are for an ambient temperature of -30 to +85 °C. • Advised bypass capacitor is the Murata™ GRM155R60G225ME15 which comes in a 0402 case. • In general, parametric performance specifications assume the use of low ESR X5R ceramic capacitors with 20% accuracy and 15% temperature spread, for a worst case stack up of 35% from the nominal value. Use of other types with wider temperature variation may require a larger room temperature nominal capacitance value to meet performance specs over temperature. In addition, capacitor derating as a function of DC bias voltage requires special attention. Finally, minimum bypass capacitor guidelines are provided for stability and transient performance. Larger values may be applied; performance metrics may be altered and generally improved, but should be confirmed in system applications. • Regulators which require a minimum output capacitor ESR (those with external PNPs) can avoid an external resistor if ESR is assured with capacitor specifications, or board level trace resistance. • The output voltage tolerance specified for each of the linear regulators include process variation, temperature range, static line regulation, and static load regulation. • The PSRR of the regulators is measured with the perturbed signal at the input of the regulator. The power management IC is supplied separately from the input of the regulator and does not contain the perturbed signal. During measurements care must be taken not to reach the drop out of the regulator under test. • In the Low Power mode the output performance is degraded. Only those parameters listed in the Low Power mode section are guaranteed. In this mode, the output current is limited to much lower currents than in the Active mode. • Regulator performance is degraded in the extended input voltage range. This means that the supply still behaves as a regulator and will try to hold up the output voltage by turning the pass device fully on. As a result, the bias current will increase and all performance parameters will be heavily degraded, such as PSRR and load regulation. • Note that in some cases, the minimum operating range specifications may be conflicting due to numerous set point and biasing options, as well as the potential to run BP into one of the software or hardware shutdown thresholds. The specifications are general guidelines which should be interpreted with some care. • When a regulator gets disabled, the output will be pulled towards ground by an internal pull-down. The pull-down is also activated when RESETB goes low. • 32 kHz spur levels are specified for fully loaded conditions. • Short-circuit protection (SCP) is included on certain LDOs (see the SCP section later in this chapter). Exceeding the SCP threshold will disable the regulator and generate a system interrupt. The output voltage will not sag below the specified voltage for the rated current being drawn. For the lower current LDOs without SCP, they are less accessible to the user environment and essentially self-limiting. • The power tree of a given application must be scrubbed for critical use cases to ensure consistency and robustness in the power strategy. TRANSIENT RESPONSE WAVEFORMS The transient load and line response are specified with the waveforms as depicted in Figure 25. Note that the transient load response refers to the overshoot only, excluding the DC shift itself. The transient line response refers to the sum of both overshoot and DC shift. This is also valid for the mode transition response. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 83 FUNCTIONAL DEVICE OPERATION SUPPLIES Figure 25. Transient Waveforms SHORT-CIRCUIT PROTECTION The higher current LDOs and those most accessible in product applications include short-circuit detection and protection (VVIDEO, VAUDIO, VCAM, VSD, VGEN1, VGEN2, and VGEN3). The short-circuit protection (SCP) system includes debounced fault condition detection, regulator shutdown, and processor interrupt generation, to contain failures and minimize chance of product damage. If a short-circuit condition is detected, the LDO will be disabled by resetting its VxEN bit while at the same time an interrupt SCPI will be generated to flag the fault to the system processor. The SCPI interrupt is maskable through the SCPM mask bit. The SCP feature is enabled by setting the REGSCPEN bit. If this bit is not set, then not only is no interrupt generated, but also the regulators will not automatically be disabled upon a short-circuit detection. However, the built-in current limiter will continue to limit the output current of the regulator. Note that by default, the REGSCPEN bit is not set, so at startup none of the regulators that are in an overload condition will be disabled VAUDIO AND VVIDEO SUPPLIES The primary applications of these power supplies are for audio, and TV-DAC. However these supplies could also be used for other peripherals if one of these functions is not required. Low Power modes and programmable Standby options can be used to optimize power efficiency during Deep Sleep modes. 13892 84 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION SUPPLIES An external PNP is utilized for VVIDEO to avoid excess on-chip power dissipation at high loads, and large differential between BP and output settings. For stability reasons a small minimum ESR may be required. In the Low Power mode for VVIDEO an internal bypass path is used instead of the external PNP. External PNP devices are always to be connected to the BP line in the application. The recommended PNP device is the ON Semiconductor NSS12100XV6T1G which is capable of handling up to 250mW of continuous dissipation at minimum footprint and 75 °C of ambient. For use cases where up to 500mW of dissipation is required, the recommended PNP device is the ON Semiconductor™ NSS12100UW3TCG. For stability reasons a small minimum ESR may be required. VAUDIO is implemented with an integrated PMOS pass FET and has a dedicated input supply pin VINAUDIO. The following tables contain the specifications for the VVIDEO, VAUDIO. Table 54. VVIDEO and VAUDIO Voltage Control Parameter Value 00 VVIDEO 01 10 11 00 VAUDIO 01 10 11 Function Output = 2.700 V Output = 2.775 V Output = 2.500 V Output = 2.600 V Output = 2.300 V Output = 2.500 V Output = 2.775 V Output = 3.000 V ILoad max 250 mA / 350 mA 250 mA / 350 mA 250 mA / 350 mA 250 mA / 350 mA 150 mA 150 mA 150 mA 150 mA LOW VOLTAGE SUPPLIES VDIG and VPLL are provided for isolated biasing of the Baseband system PLLs for clock generation in support of protocol and peripheral needs. Depending on the lineup and power requirements, these supplies may be considered for sharing with other loads, but noise injection must be avoided and filtering added if necessary, to ensure suitable PLL performance. The VDIG and VPLL regulators have a dedicated input supply pin: VINDIG for the VDIG regulator, and VINPLL for the VPLL regulator. VINDIG and VINPLL can be connected to either BP or a 1.8V switched mode power supply rail, such as from SW4 for the two lower set points of each regulator VPLL[1:0] and VDIG[1:0] = [00], [01]. In addition, when the two upper set points are used VPLL[1:0] and VDIG[1:0] = [10], [11], the inputs (VINDIG and VINPLL) can be connected to either BP of a 2.2 V nominal external switched mode power supply rail to improve power dissipation. Table 55. VPLL and VDIG Voltage Control Parameter Value 00 VPLL[1:0] 01 10 11 00 VDIG[1:0] 01 10 11 Function output = 1.2 V output = 1.25 V output = 1.5 V output = 1.8 V output = 1.05 V output = 1.25 V output = 1.65 V output = 1.8 V ILoad max 50 mA 50 mA 50 mA 50 mA 50 mA 50 mA 50 mA 50 mA Input Supply BP or 1.8 V BP or 1.8 V BP or External Switcher BP or External Switcher BP or 1.8 V BP or 1.8 V BP or External Switcher BP or External Switcher PERIPHERAL INTERFACING IC interfaces in the lineups generally fall in two categories: low voltage IO primarily associated with the AP IC and certain peripherals at SPIVCC level (powered from SW4), and a higher voltage interface level associated with other peripherals not compatible with the 1.8 V SPIVCC. VIOHI is provided at a fixed 2.775 V level for such interfaces, and may also be applied to other system needs within the guidelines of the regulator specifications. The input VINIOHI is not only used by the VIOHI regulator, but also by other blocks, therefore it should always be connected to BP, even if the VIOHI regulator is not used by the system. VIOHI has an internal PMOS pass FET which will support loads up to 100 mA. CAMERA The camera module is supplied by the regulator VCAM. This allows powering the entire module independent of the rest of other parts of the system, as well as to select from a number of VCAM output levels for camera vendor flexibility. In applications 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 85 FUNCTIONAL DEVICE OPERATION SUPPLIES with a dual camera, it is anticipated that only one of the two cameras is active at a time, allowing the VCAM supply to be shared between them. VCAM has an internal PMOS pass FET which will support up to 2 Mpixel Camera modules ( 100 mA and above Current Limit Tolerance(65) ICHRG[3:0] =0 001 ICHRG[3:0] = 0100 ICHRG[3:0] = 0110 All other settings Start-up Overshoot Configuration Input Capacitance Load Capacitor Cable Length CHRGRAW (66) BPSNS (67) (66) Condition Min BATTMIN -1.5 -3.0 68 360 500 - Typ 80 400 560 - Max 17 0.35 1.5 1.5 92 440 620 15 2.0 Units V % % % mA mA mA % % Unloaded 10 - 2.2 - 4.7 3.0 μF μF m Notes 65. Excludes spread and tolerances due to board routing and 100 mOhm sense resistor tolerances. 66. An additional derating of 35% is allowed. 67. This condition applies when using an external charger with a 3.0 m long cable. OVER-VOLTAGE PROTECTION In order to protect the application, the voltage at the CHRGRAW pin is monitored. When crossing the threshold, the charge path regulator will be turned off immediately, by opening M1 and M2, while M3 gets closed. When the over-voltage condition disappears for longer than the debounce time, charging will resume and previously programmed SPI settings will be reloaded. An interrupt CHGFAULTI is generated with associated CHGFAULTM mask bit with the CHGFAULTS[1:0] bits set to 01. In order to ensure immediate protection, the control of M1, M2, and M3 occurs real-time, so asynchronously to the charger state machine. As a result, for over-voltage conditions of up to 30 μs, the charger state machine may not always end up in the over-voltage fault state, and therefore an interrupt may not always be generated. Table 65. Charger Over-voltage Protection Characteristics Parameter Over-voltage Comparator High Voltage Threshold Over-voltage Comparator Debounce Time Condition High to Low, Low to High High to Low Min 16 Typ 10 Max 20 Units V ms The VBUS pin is also protected against over-voltages. This will occur at much lower levels for CHRGRAW. When a VBUS over-voltage is detected the internal circuitry of the USB block is disconnected. A USBOVI is generated in this case. For more details see Connectivity. When the maximum voltage of the IC is exceeded, damage will occur to the IC and the state of M1 and M2 cannot be guaranteed. If the user wants to protect against these failure conditions, additional protection will be required. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 91 FUNCTIONAL DEVICE OPERATION BATTERY INTERFACE AND CONTROL POWER DISSIPATION Since the charge path operates in a linear fashion, the dissipation can be significant and care must be taken to ensure that the external pass FETs M1 and M2 are not over dissipating when charging. By default, the charge system will protect against this by a built-in power limitation circuit. This circuit will monitor the voltage drop between CHRGRAW and CHRGISNS, and the current through the external sense resistor connected between CHRGISNS and BPSNS. When required,.a duty cycle is applied to the M1 and M2 drivers and thus the charge current, in order to stay within the power budget. At the same time M3 is forced to conduct to keep the application powered. In case of excessive supply conditions, the power limiter minimum duty cycle may not be sufficiently small to maintain the actual power dissipation within budget. In that case, the charge path will be disabled and the CHGFAULTI interrupt generated with the CHGFAULTS[1:0] bits set to 01. The power budget can be programmed by SPI through the PLIM[1:0] bits. The power dissipation limiter can be disabled by setting the PLIMDIS bit. In this case, it is advised to use close software control to estimate the dissipated power in the external pass FETs. The power limiter is automatically disabled in serial path factory mode and in reverse mode. Since a charger attachment can be a Turn-on event when a product is initially in the Off state, any non-default settings that are intended for PLIM[1:0] and PLIMDIS, should be programmed early in the configuration sequence, to ensure proper supply conditions adapted to the application. To avoid any false detection during power up, the power limiter output is blanked at the start of the charge cycle. As a safety precaution though, the power dissipation is monitored and the desired duty cycle is estimated. When this estimated duty cycle falls below the power limiter minimum duty cycle, the charger circuit will be disabled. Table 66. Charger Power Dissipation Limiter Control PLIM[1:0] 00 (default) 01 10 11 Power Limit (mW) 600 800 1000 1200 Table 67. Charger Power Dissipation Limiter Characteristics Parameter Power Limiter Accuracy Power Limiter Control Period Power Limiter Blanking Period Power Limiter Minimum Duty Cycle Upon charging enabling Condition Up to 2x the power set by PLIM[1:0] Min Typ 500 1500 10 Max 15 Units % ms ms % REVERSE SUPPLY MODE The battery voltage can be applied to an external accessory via the charge path, by setting the RVRSMODE bit high. The current through the accessory supply path is monitored via the charge path sense resistor R2, and can be read out via the ADC. The accessory supply path is disabled and an interrupt CHGSHORTI is generated when the slow or fast threshold is crossed. The reverse path is disabled when a current reversal occurs and an interrupt CHREVI is generated. Table 68. Accessory Supply Main Characteristics Parameter Short-circuit Current Slow Threshold Slow Threshold Debounce Time Short-circuit Current Fast Threshold Fast Threshold Debounce Time Current Reversal Threshold Current from Accessory Condition Min 500 Typ 1.0 100 CHGCURR Max 1840 Units mA ms mA μs mA 13892 92 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION BATTERY INTERFACE AND CONTROL INTERNAL TRICKLE CHARGE CURRENT SOURCE An internal current source between BP and BATTISNS provides small currents to the battery in cases of trickle charging a dead battery. As can be seen under the description of the standalone charging, this source is activated by the charger state machine, and its current level is selected based on the battery voltage. The source can also be enabled in software controlled charging mode by setting the TREN bit. This source cannot be used in single path configurations because in that case, BATTISNS and BP are shorted on the board. Table 69. Internal Trickle Charger Control BATT 0 < BATT < BATTMIN BATTMIN < BATT < BATTON Trickle Charge Current (mA) 40 80 Table 70. Internal Trickle Charger Characteristics Parameter Trickle Charge Current Accuracy Operating Voltage Extended Operating Range (68) BATTISNS BP-BATTISNS BP-BATTISNS Condition Min 0 1 0.3 Typ Max 30 Units % V V V Notes 68. The effective trickle current may be significantly reduced CHARGER DETECTION AND COMPARATORS The charger detection is based on three comparators. The “charger valid” monitors CHRGRAW, the “charger presence” that monitors the voltage drop between CHRGRAW and BPSNS, and the “CHGCURR” comparator that monitors the current through the sense resistor connected between CHRGISNS and BPSNS. A charger insertion is detected based on the charger presence comparator and the “charger valid” comparator both going high. For all but the lowest current setting, a charger removal is detected based on both the “charger presence” comparator going low and the charger current falling below CHGCURR. In addition, for the lowest current settings or if not charging, the “charger valid” comparator going low is an additional cause for charger removal detection. The table below summarizes the charger detection logic. Table 71. Charger Detection Setting ICHRG[3:0] Charger Valid Comparator 0 0000, 0001 1 1 X Other Settings X X Charger Presence Comparator X 0 1 0 1 X CHGCURR Comparator X X X 0 X 1 Charger Detected No No Yes No Yes Yes In addition to the aforementioned comparators, three more comparators play a role in battery charging. These comparators are “BATTMIN”, which monitors BATT for the safe charging battery voltage, “BATTON”, which monitors BATT for the safe operating battery voltage, and “BATTCYCL”, which monitors BPSNS for the constant current to constant voltage transition. The BATTMIN and BATTON comparators have a normal and a long (slow) debounced output. The slow output is used in some places in the charger flow to provide enough time to the battery protection circuit to reconnect the battery cell. Table 72. Charger Detectors main characteristics Parameter BATTMIN Threshold BATTON Threshold BATTCYCL Threshold Charger Presence At BATT At BATT At BPSNS relative to VCHRG[2:0] CHRGRAW-BPSNS Condition Min 2.9 3.3 10 Typ 98 Max 3.1 3.5 50 Units Volts Volts % mV 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 93 FUNCTIONAL DEVICE OPERATION BATTERY INTERFACE AND CONTROL Table 72. Charger Detectors main characteristics Parameter Charger Valid CHGCURR Threshold CHRGRAW CHRGISNS-BPSNS, current from charger BATTMIN, BATTON rising edge (normal BATTMIN, BATTON rising edge (slow) BATTMIN falling edge (slow) Debounce Period BATTMIN falling edge (fast) BATTCYCL dual edge CHGCURR Charger Detect dual edge Condition Min 10 Typ 3.8 32 1.0 1.0 1.0 100 1.0 100 Max 50 Units V mA ms s s s ms ms ms Crossing the thresholds BATTCYCL and CHGCURR will generate the interrupts CCCVI and CHGCURRI respectively. These interrupts can be used as a simple way to implement a 3-bar battery meter. BATTERY THERMISTOR CHECK CIRCUITRY A battery pack may be equipped with a thermistor, which value decreases over temperature (NTC). The relationship between temperature T (in Kelvin) and the thermistor value (RT) is well characterized and can be described as RT = R0*e^(B*(1/T-1/T0), with T0 being room temperature, R0 the thermistor value at T0 and B being the so called B-factor which indicates the slope of the thermistor over temperature. In order to read out the thermistor value, it is biased from GPO1 through a pull-up resistor RPU. See also the ADC chapter. The battery thermistor check circuit compares the fraction of GPO1 at ADIN5 with two preset thresholds, which correspond to 0 and 45 °C, see Table 73. Charging is generally allowed when the thermistor is within the range, see next section for details. Table 73. Battery Thermistor Check Main Characteristics Temperature Threshold Tlow Thigh Voltage at ADIN5 24/32 * GPO1 10/32 * GPO1 Corresponding Resistor Values Rpu 10 k 10 k RT 30 k 45 k Corresponding Temperature (in °C) * B=3200 -3.0 +49 B=3500 0 +46 B=3900 +2.0 +44 CHARGE LED INDICATOR Since normal LED control via the SPI bus is not always possible in the charging mode, an 8.0 mA max current sink is provided at the CHRGLED pin for an LED connected to CHRGRAW. The LED will be activated when standalone charging is started, and will remain under control of the state machine also when the application is powered on. At the end of charge, the LED is automatically disabled. Through the CHRGLEDEN bit, the LED can be forced on. In software controlled charging, the LED is under full control of this CHRGLEDEN bit. Table 74. Charge LED Drivers Main Characteristics Parameter Trickle LED current Condition CHRGLED = 2.5 V CHRGLED = 0.7 V Min 5.0 Typ Max 8.0 Units mA mA Notes 69. Above conditions represent respectively a USB and a collapsed charger case Table 75. Charge LED Driver Control CHRGLEDEN 0 (default) 1 CHRGLED Auto On 13892 94 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION BATTERY INTERFACE AND CONTROL CHARGER OPERATION USB CHARGING The USB VBUS line in this case, is used to provide a supply within the USB voltage limits and with at least 500 mA of current drive capability. When trickle charging from the USB cable, it is important not to exceed the 100 mA, in case of a legacy USB bus. The appropriate charge current level ICHRG[2:0] = (0001) is 80 mA typical which accounts for the additional current through the charge LED indicator. WALL CHARGING No distinction can be made between a USB Host or a wall charger. Therefore, when attaching a wall charger, the CHRGSE1B pin must be forced low as a charger attach indicator. The CHRGSE1B pin has a built-in weak pull-up to VCORE. In the application, this pin is preferably pulled low, with for instance an NPN of which the base is pulled high through a resistor to CHRGRAW. The state of the CHRGSE1B pin is reflected through the CHRGSE1BS bit. When CHRGSE1B changes state a CHRGSE1BI is generated. No specific debounce is applied to the CHRGSE1B detector. Table 76. Charger Detector Characteristics Parameter CHRGSE1B Pull Up Logic Low Logic High Condition To VCORE Min 0 1.0 Typ 100 Max 0.3 VCORE Units kOhm V V If an application is to support wall chargers and USB on separate connectors, it is advised to separate the VBUS and the CHRGRAW on the PCB. For these applications, charging from USB is no longer possible. For proper operation, a 120 kOhm pull-down resistor should be placed at VBUS. STANDALONE CHARGING A standalone charge mode of operation is provided to minimize software interaction. It also allows for a completely discharged battery to be revived without processor control. This is especially important when charging from a USB host or when in single path configuration (M3 replaced by short, BATTFET floating). Since the default voltage and current setting of the charge path regulator may not be the optimum choice for a given application, these values can be reprogrammed through the SPI if the CHGAUTOVIB bit is set. Note that the power limiter can be programmed independent of this bit being set. Upon connecting a USB host to the application with a dead battery, the trickle cycle is started and the current set to the lowest charge current level (80 mA). When the battery voltage rises above the BATTON = 3.4 V threshold, a power up sequence is automatically initiated. The lowest charge current level remains selected until a higher charge current level is set through the SPI after negotiation with the USB host. In case of a power up failure, a second power up will not be initiated to avoid an ambulance mode, the charger circuitry will though continue to charge. The USB dead battery operation following the low power boot scheme is described further in this chapter. Upon connecting a charger to an application with a dead battery the behavior will be different for serial path and single path configurations. In serial path (M3 present), the application will be powered up with the current through M1M2 set to 500 mA minimum. The internal trickle charge current source will be enabled, set to its lowest level (40 mA) up to BATTMIN, followed by the highest setting (80 mA). The internal trickle charge current is not programmable, but can be turned off by the SPI. In this mode, the voltage and current regulation to BP through the external pass devices M1M2 can be reprogrammed through the SPI. Once the battery is greater than BATTON, it will be connected to BP and further charged through M1/M2 at the same time as the application. In single path (M3 replaced by a short, BATTFET floating), the battery (and therefore BP) is below the BPON threshold. This will be detected and the external charge path will be used to precharge the battery, up to BATTMIN at the lowest level (80 mA), and above at the 500 mA minimum level. Once exceeding BPON, a turn on event is generated and the voltage and current levels can be reprogrammed. When in the serial path and upon initialization of the charger circuitry, and it appears BP stays below BPON, the application will not be powered up, and the same charging scheme is followed as for single path. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 95 FUNCTIONAL DEVICE OPERATION BATTERY INTERFACE AND CONTROL The precharge will time-out and stop charging, in case it did not succeed in raising the battery to a high enough level: BATTON for internal precharge, external precharge in the case of USB, and BPON for the external precharge, in case of a charger. This is a fault condition and is flagged to the processor by the CHGFAULTI interrupt, and the CHGFAULTS[1:0] bits are set to 10. The charging circuit will stop charging and generate a CHGCURRI interrupt after the battery is fully charged. This is detected by the charge current dropping below the CHGCURR limit. The charger automatically restarts if the battery voltage is below BATTCYCL. Software can bypass this cyclic mode of operation by setting the CYCLB bit. Setting the bit does not prevent interrupts to be generated. During charging, a charge timer is running. When expiring before the CHGCURR limit is reached, the charging will be stopped and an interrupt generated. The charge timer can be reset before it expires by setting the self clearing CHGTMRRST bit. After expiration, the charger needs to be restarted. Proper charge termination and restart is a relatively slow process. Therefore in both of the previous cases, the charging will rapidly resume, in case of a sudden battery bounce. This is detected by BP dropping below the BATTON threshold. Out of any state and after a time-out, the charger state machine can be restarted by removing and reapplying the charger. A software restart can also be initiated by setting the self clearing CHGRESTART bit. The state of the charger logic is reflected by means of the CHGENS bit. This bit is therefore a 1 in all states of the charger state machine, except when in a fault condition or when at the end of charge. In low power boot mode, the bit is not set until the ACKLPB bit is set. This also means that the CHGENS bit is not cleared when the power limiter interacts, or when the battery temperature is out of range. The charge LED At CHRGLED follows the state of the CHGENS bit with the exception that software can force the LED driver on. The detection of a serial path versus a single path is reflected through the CHRGSSS bit. A logic 1 indicates a serial path. In cases of single path, the pin BATTFET must be left floating. The charging circuit will stop charging, in case the die temperature of the IC exceeds the thermal protection threshold. The state machine will be re-initiated again when the temperature drops below this threshold. Table 77. Charger Timer Characteristics Parameter Charger Timer Precharge Timer External precharge 80 mA Internal precharge 40/80 mA External precharge 400/560 mA Condition Min Typ 120 270 60 Max Units min min min Table 78. Charger Fault Conditions Fault Condition Cleared or no fault condition Over-voltage at CHRGRAW Excessive dissipation on M1/M2 Sudden battery drop below BATTMIN Any charge time-out Out of temperature CHGFAULTS[1:0] 00 01 01 10 10 11 CHGFAULTI Not generated Rising edge Rising edge Rising edge Rising edge Dual edge SOFTWARE CONTROLLED CHARGING The charger can also be operated under software control. By setting CHGAUTOB = 1, full control of the charger settings is assumed by software. The state machine will no longer determine the mode of charging. The only exceptions to this are a charger removal, a charger over-voltage detection and excessive power dissipation in M1/M2. For safety reasons, when a RESETB occurs, the software controlled charging mode is exited for the standalone charging operation mode. In the software controlled charging mode, the internal trickle charger settings can be controlled as well as the M3 operation through FETCTRL (1 = conducting). The latter is only possible if the FETOVRD bit is set. If a sudden drop in BP occurs (BP < BPON) while M3 is open, the charger control logic will immediately close M3 under the condition that BATT > BATTMIN. 13892 96 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION BATTERY INTERFACE AND CONTROL FACTORY MODE In factory mode, power is provided to the application with no battery present. It is not a situation which should occur in the field. The factory mode is differentiated from a USB Host by, in addition to a valid VBUS, a UID being pulled high to the VBUS level during the attach, see Connectivity. In case of a serial path (M3 present), the application will be powered up with M1M2 fully on. The M3 is opened (non conducting) to a separate BP from BATT. However, the internal trickle charge current source is not enabled. All the charger timers as well as the power limiter are disabled. In case of a single path (M3 replaced by a short, BATTFET floating), the behavior is similar to a normal charging case. The application will power up and the charge current is set to the 500 mA minimum level. All the internal timers and pre-charger timers are enabled, while only the charger timer and power limiter function are disabled. In both cases, by setting the CHGAUTOVIB bit, the charge voltage and currents can be programmed. When setting the CHGAUTOB bit the factory mode is exited. USB LOW POWER BOOT USB low power boot allows the application to boot with a dead battery within the 100 mA USB budget until the processor has negotiated for the full current capability. This mode expedites the charging of the dead battery and allows the software to bring up the LCD display screen with the message “Charging battery”. This is enabled on the IC by hardwiring the MODE pin on the PCB board, as shown in Table 79. Table 79. MODE Pin Programming MODE Pin State Ground VCOREDIG Mode Normal Operation Low Power Boot Allowed Below are the steps required for USB low power booting: 1. First step: detect a potential low power boot condition, and qualify if it is enabled. a) VBUS present and not in Factory Mode (either via a wall charger or USB host, since the IC has no knowledge of what kind of device is connected) b) BPBPON) c) Board level enabling of LPB with MODE pin hardwired to VCOREDIG d) M3 included in charger system (Serial path charging, not Single). If all of these are true, then LPBS=1 and the system will proceed with LPB sequence. If any are false, LPBS = 0. 2. If LPBS = 0, then a normal booting of the system will take place as follows: a) MODE = GND. The INT pin should behave normally, i.e. can go high during Watchdog phase based on any unmasked interrupt. If BP>BATTON, the application will turn on. If BP < BATTON, the PMIC will default to trickle charge mode and a turn on event will occur when the battery is charged above the BATTON threshold. The processor does not support a low power boot mode, so it powers up normally. b) MODE = VCOREDIG. When coming from Cold Start the INT is kept low throughout the watchdog phase. The processor detects this and will boot normally. The INT behavior is becomes 'normal' when entering On mode, and also when entering watchdog phase from warm start. 3. If LPBS = 1, then the system will boot in low power as follows: a) Cold Start is initiated in a “current starved bring-up” limited by the charger system's DAC step ICHRG[3:0] = 0001 to stay within 100 mA USB budget. The startup sequence and defaults as defined in the startup table will be followed. Since VBUS is present the USB supplies will be enabled. The charge LED driver is maintained off. b) After the power up sequence, but before entering Watchdog phase, thus releasing the reset lines, the charger DAC current is stepped up to ICHRG[3:0] = 0100. This is in advance of negotiation and the application has to ensure that the total loading stays below the un-negotiated 100 mA limit. c) The INT pin is made high before entering watchdog phase and releasing RESETBMCU. All other interrupts are held off during the watchdog phase. The processor detects this and starts up in a Low Power mode at low clock speed. d) The application processor will enable the PHY in serial FS mode for enumeration. e) If the enumeration fails to get the stepped up current, the processor will bring WDI low. The power tree is shut down, and the charging system will revert to trickle recovery, LPBS reset to 0. (or any subsequent failure: WDI = 0). Also if RESETB transitions to 0 while in LPB (i.e., if BP loading misbehaves and causes a UVDET for example), the system will transition to USB trickle recover, LPBS reset to 0. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 97 FUNCTIONAL DEVICE OPERATION BATTERY INTERFACE AND CONTROL f) If the enumeration is successful to get the stepped up current the processor will hold WDI high and continues with the booting procedure. • When the SPI is activated, the LPB interrupt LPBI can be cleared; other unmasked interrupts may now become active. When leaving watchdog phase for the On mode, the interrupts will work 'normally' even if LPBI is not cleared. • The SPI bit ACKLPB bit is set to enable the internal trickle charger. The charge LED gets activated. When the battery crosses the BATTMIN threshold the M3.transistor is automatically closed and the battery is charged with the current not taken by the application. • When BP exceeds BPON, the charger state machine will successfully exit the trickle charge mode. This will make LPBS = 0 which generates a LPBI. This interrupt will inform the processor that a full turn on is allowed. Once this happens the application code is allowed to run full speed. BATTERY THERMISTOR CHECK OPERATION By default, the battery thermistor value is taken into account for charging the battery. Upon detection of a supply at CHRGRAW, the core circuitry powers up including VCORE. As soon as VCORE is ready, the output GPO1 is made active high, independently of the state of GPO1EN bit. The resulting voltage at ADIN5 is compared to the corresponding temperature thresholds. If the voltage at ADIN5 is within range, the charging will behave as described thus far, however if out of range the charger state machine will go to a wait state, pause the charge timers, and no current will be sourced to the battery. When the temperature comes back in range, charging is continued again. The actual behavior depends on the configuration the charger circuitry at the moment the temperature range is exceeded. Table 80. Battery Thermistor Check Charger States Configuration Internal precharging on a charger Internal precharging on USB in USB Low Power Boot All other non fault charging modes and configurations State for temperature out of range M1M2 = 560 mA / SPI setting, M3 = Open, Itrickle = 0mA M1M2 = 400 mA M3 = Open, Itrickle = 0mA M1M2 = 0 mA M3 Closed State for temperature back in range ICin “On” State Internal precharge Low Power Boot Precharge Initialization IC in “Off” State Initialization Initialization Initialization The battery thermistor check can be disabled by setting the THCHKB bit. This is useful in applications where battery packs without thermistor may be used. This bit defaults to '0', which means that initial power up only can be achieved with an already charged battery pack or on a charger, but not on a USB Host without low power boot support. Alternatively, one can bias ADIN5 to get within the temperature window. Setting the SPI bit to disable the thermistor check will also inhibit the automatic enabling of the GPO1 output. The GPO1 output still remains controllable through GPO1EN. As an additional feature, the charger state machine will end up in an out of temperature state when the die temperature is below -20 °C, independent of the setting of the THCHKB bit. Notes: • When using the battery charger as the only source of power, as in a battery-less application, the following precautions should be observed: • It is still necessary to connect ADIN5 to either VCOREDIG or a midpoint of a divider from GPIO1 to ground since the battery charger will still interpret this voltage as the battery pack thermistor by default. • Very careful budgeting of the total current consumption and voltage standoff from CHRGRAW to BPSNS must be made, since the power limiter is operational by default, and a battery less system won't have a source of current if the power dissipation limit is reached. • If operating from a USB host the unit load limit (100 mA max.) must still be observed. • If operating from a “wall charger”, and if there is no battery, there is an period of approximately 85 ms after RESETB is released, but before the current limit is set to a nominal 560 mA. If the total current demand is greater than this limit, the voltage may collapse and RESETB may pulse a few times (depending in part in the system load and dependence on RESETB.) Therefore, at the end of this time, RESETB may or may not be active. It may be necessary to use one of the other turn on events (such as PWRONx) to turn it back on. 13892 98 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM ADC SUBSYSTEM CONVERTER CORE The ADC core is a 10 bit converter. The ADC core and logic run on 2/3 of the switcher PLL generated frequency, so approximately 2.0 MHz. If an ADC conversion is requested while the PLL was not active, it will automatically be enabled by the ADC. A 32.768 kHz equivalent time base is derived from this to the ADC time events. The ADC is supplied from VCORE. The ADC core has an integrated auto calibration circuit which reduces the offset and gain errors. The switcher PLL is programmable, see Supplies. When the switcher frequency is changed, the frequency applied to the ADC converter will change accordingly. Although the conversion time is inversely proportional to the PLLX[2:0] setting, this will not influence the ADC performance. The locally derived 32.768 kHz will remain constant in order not to influence the different timings depending on this time base. INPUT SELECTOR The ADC has 8 input channels. Table 81 gives an overview of the attributes of the A to D channels. Table 81. ADC Inputs Channel 0 1 2 3 4 5 6 ADA1[2:0] ADA2[2:0] 000 001 010 011 100 101 110 Signal read Battery Voltage (BATT) Battery Current (BATT-BATTISNSCC) Application Supply (BPSNS) Charger Voltage (CHRGRAW) Charger Current (CHRGISNS-BPSNS) General Purpose ADIN5 (Battery Pack Thermistor) General Purpose ADIN6 Backup Voltage (LICELL) General Purpose ADIN7/ADIN7B General Purpose ADIN7 7 111 General Purpose ADIN7B Die Temperature UID Notes 70. Equivalent to -3.0 to +3.0 A of current with a 20 mOhm sense resistor 71. Equivalent to -3.0 to +3.0 A of current with a 100 mOhm sense resistor Input Level 0 – 4.8 V -60 mV – 60 mV 0 – 4.8 V 0 – 12 V 0 – 20 V -300 mV – 300 mV 0 – 2.4 V 0 – 2.4 V 0 – 3.6 V 0 – 2.4 V 0 – BP 0 – VIOHI – 0 – 4.8 V (71) (70) Scaling /2 x20 /2 /5 /10 x4 x1 x1 x2/3 x1 /2 /2 – /2 Scaled Version 0 – 2.4 V -1.2 – 1.2 V 0 – 2.4 V 0 – 2.4 V 0 – 2.4 V -1.2 – 1.2 V 0 – 2.4 V 0 – 2.4 V 0 – 2.4 V 0 – 2.4 V 0 – 2.4 V 0 – 1.4 V 1.2 – 2.4 V 0 – 2.4 V The above table is valid when setting the bit ADSEL = 0 (default). If setting the bit to a 1, the touch screen interface related inputs are mapped on the ADC channels 4 to 7 and channels 0 to 3 become unused. For more details see the touch screen interface section. Some of the internal signals are first scaled to adapt the signal range to the input range of the ADC. The charge current and the battery current are indirectly read out by the voltage drop over the resistor in the charge path and battery path respectively. For details on scaling see the dedicated readings section. In case the source impedance is not sufficiently low on the directly accessible inputs ADIN5, ADIN6, ADIN7, and the muxed GPO4 path, an on chip buffer can be activated through the BUFFEN bit. If this bit is set, the buffer will be active on these specific inputs during an active conversion. Outside of the conversions the buffer is automatically disabled. The buffer will add some offset, but will not impact INL and DNL numbers except for input voltages close to zero. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 99 FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM Table 82. ADC Input Specification Parameter Source Impedance Input Buffer Offset Input Buffer Input Range Condition No bypass capacitor at input Bypass capacitor at input 10 nF BUFFEN = 1 BUFFEN = 1 Min -5 0.02 Typ Max 5.0 30 5.0 2.4 Units kOhm kOhm mV V When considerably exceeding the maximum input of the ADC at the scaled or unscaled inputs, the reading result will return a full scale. It has to be noted that this full scale does not necessarily yield a 1023 DEC reading, due to the offsets and calibration applied. The same applies for when going below the minimum input where the corresponding 0000 DEC reading may not be returned. CONTROL The ADC parameters are programmed by the processors via the SPI. Up to 2 ADC requests can be queued, and locally these requests are arbitrated and executed. When a conversion is finished, an interrupt ADCDONEI is generated. The interrupt can be masked with the ADCDONEM bit. The ADC can start a series of conversions by a rising edge on the ADTRIG pin or through the SPI programming by setting the ASC bit. The ASC bit will self clear once the conversions are completed. A rising edge on the ADTRIG pin will automatically make the ASC bit high during the conversions. When started, always 8 conversions will take place; either 1 for each channel (multiple channel mode, RAND = 0) or 8 times the same channel (single channel mode, bit RAND = 1). In single channel mode, the to be converted channel needs to be selected with the ADA1[2:0] setting. This setting is not taken into account in multiple channel mode. In order to perform an auto calibration cycle, a series of ADC conversions is started with ADCCAL = 1. The ADCCAL bit is cleared automatically at the end of the conversions and an ADCDONEI interrupt is generated. The calibration only needs to be performed before a first utilization of the ADC after a cold start. The conversion will begin after a small synchronization error of a few microseconds plus a programmable delay from 1 (default) to 256 times the 32 kHz equivalent time base by programming the bits ATO[7:0]. This delay cannot be programmed to 0 times the 32 kHz in order to allow the ADC core to be initialized during the first 32 kHz clock cycle. The ATO delay can also be included between each of the conversions by setting the ATOX bit. Once a series of eight A/D conversions is complete, they are stored in a set of 8 internal registers and the values can be read out by software (except when having done an auto calibration cycle). In order to accomplish this, the software must set the ADA1[2:0] and ADA2[2:0] address bits to indicate which values will be read out. This is set up by two sets of addressing bits to allow any two readings to be read out from the 8 internal registers. For example, if it is desired to read the conversion values stored in addresses 2 and 6, the software will need to set ADA1[2:0] to 010 and ADA2[2:0] to 110. A SPI read of the A/D result register will return the values of the conversions indexed by ADA1[2:0] and ADA2[2:0]. ADD1[9:0] will contain the value indexed by ADA1[2:0], and ADD2[9:0] will contain the conversion value indexed by ADA2[2:0]. An additional feature allows for automatic incrementing of the ADA1[2:0] and ADA2[2:0] addressing bits. This is enabled with bits ADINC1 and ADINC2. When these bits are set, the ADA1[2:0] and ADA2[2:0] addressing bits will automatically increment during subsequent readings of the A/D result register. This allows for rapid reading of the A/D results registers with a minimum of SPI transactions. The ADC core can be reset by setting the self clearing ADRESET bit. As a result the internal data and settings will be reset but the SPI programming or readout results will not. To restart a new ADC conversion after a reset, all ADC SPI control settings should therefore be reprogrammed. 13892 100 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM DEDICATED READINGS CHANNEL 0 BATTERY VOLTAGE The battery voltage is read at the BATT pin at channel 0. The battery voltage is first scaled as V(BATT)/2 in order to fit the input range of the ADC. Table 83. Battery Voltage Reading Coding Conversion Code ADDn[9:0] 1 111 111 111 1 000 010 100 0 000 000 000 Voltage at input ADC in V 2.400 1.250 0.000 Voltage at BATT in V 4.800 2.500 0.000 CHANNEL 1 BATTERY CURRENT The current flowing out of and into the battery can be read via the ADC, by monitoring the voltage drop over the sense resistor between BATT and BATTISNSCC. This function is enabled by setting BATTICON = 1. The battery current can be read either in multiple channel mode or in single channel mode. In both cases, the battery terminal voltage at BATT, and the voltage difference between BATT and BATTISNS, are sampled simultaneously but converted one after the other. This is done to effectively perform the voltage and current reading at the same time. In multiple channel mode, the converted values are read at the assigned channel. In single channel mode and ADA1[2:0] = 001, the converted result is available in 4 pairs of battery voltage and current reading as shown in Table 84. Table 84. Battery Current Reading Sequence ADC Trigger 0 1 2 3 4 5 6 7 Signals Sampled BATT, BATT – BATTISNSCC BATT, BATT – BATTISNSCC BATT, BATT – BATTISNSCC BATT, BATT – BATTISNSCC Signal Converted BATT BATT – BATTISNSCC BATT BATT – BATTISNSCC BATT BATT – BATTISNSCC BATT BATT – BATTISNSCC Readout Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 Channel 5 Channel 6 Channel 7 BATT BATT – BATTISNSCC BATT BATT – BATTISNSCC BATT BATT – BATTISNSCC BATT BATT – BATTISNSCC Contents If the BATTICON bit is not set, the ADC will return a 0 reading for channel 1. The voltage difference between BATT and BATTISNS is first amplified to fit the ADC input range as V(BATT-BATTISNS)*20. Since battery current can flow in both directions, the conversion is read out in 2's complement format. Positive readings correspond to the current flow out of the battery, and negative readings to the current flowing into the battery. Table 85. Battery Current Reading Coding Conversion Code, ADDn[9:0] 0 111 111 111 0 000 000 001 0 000 000 000 1 111 111 111 1 000 000 000 Voltage at Input, ADC in mV 1200.00 2.346 0 -2.346 -1200.00 BATT – BATTISNS in mV 60 0.117 0 -0.117 -60 Current through 20 mOhm in mA 3000 5.865 0 5.865 3000 Current Flow From battery From battery To battery To battery 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 101 FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM The value of the sense resistor used, determines the accuracy of the result as well as the available conversion range. Note that excessively high values can impact the operating life of the device due to extra voltage drop across the sense resistor. Table 86. Battery Current Reading Specification Parameter Amplifier Gain Amplifier Offset Sense Resistor Condition Min 19 -2.0 Typ 20 20 Max 21 2.0 mV mOhm Units CHANNEL 2 APPLICATION SUPPLY The application supply voltage is read at the BP pin at channel 2. The battery voltage is first scaled as V(BP)/2 in order to fit the input range of the ADC. Table 87. Application Supply Voltage Reading Coding Conversion Code ADDn[9:0] 1 111 111 111 1 000 010 101 0 000 000 000 Voltage at input ADC in V 2.400 1.250 0.000 Voltage at BP in V 4.800 2.500 0.000 CHANNEL 3 CHARGER VOLTAGE The charger voltage is measured at the CHRGRAW pin at channel 3. The charger voltage is first scaled in order to fit the input range of the ADC. If the CHRGRAWDIV bit is set to a 1 (default), then the scaling factor is a divide by 5, when set to a 0 a divide by 10. Table 88. Charger Voltage Reading Coding Conversion Code ADDn[9:0] 1 101 010 100 0 000 000 000 Voltage at input ADC in V 2.000 0.000 Voltage at CHGRAW in V, CHRGRAWDIV = 0 20.000 0.000 Voltage at CHGRAW in V, CHRGRAWDIV = 1 10.000 0.000 CHANNEL 4 CHARGER CURRENT The charge current is read by monitoring the voltage drop over the charge current sense resistor. This resistor is connected between CHRGISNS and BPSNS. The voltage difference is first amplified to fit the ADC input range as V(CHRGISNS-BPSNS)*4. The conversion is read out in a 2's complement format, see Table 89. The positive reading corresponds to the current flow from charger to battery, the negative reading to the current flowing into the charger terminal. Unlike the battery current and voltage readings, the charger current readings are not interleaved with the charger voltage readings, so when RAND = 1 a total of 8 readings are executed. The conversion circuit is enabled by setting the CHRGICON bit to a one. If the CHRGICON bit is not set, the ADC will return a 0 reading for channel 4. Table 89. Charge Current Reading Coding Conversion Code ADDn[9:0] 0 111 111 111 0 000 000 001 0 000 000 000 1 111 111 111 1 000 000 000 Voltage at input ADC in mV 1200 2.4 0 -2.346 -1200 CHRGISNS – BPSNS in mV 300.0 0.586 0 -0.586 -300.0 Current through 100 mOhm in mA 3000 5.865 0 5.865 3000 Current Flow To application/battery To application/battery To charger connection To charger connection The value of the sense resistor used determines not only the accuracy of the result as well as the available conversion range, but also the charge current levels. It is therefore advised not to select another value than 100 mOhm. 13892 102 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM CHANNEL 5 ADIN5 AND BATTERY THERMISTOR AND BATTERY DETECT On channel 5, ADIN5 may be used as a general purpose unscaled input, but in a typical application, ADIN5 is used to read out the battery pack thermistor. The thermistor will have to be biased with an external pull-up to a voltage rail greater than the ADC input range. In order to save current when the thermistor reading is not required, it can be biased from one of the general purpose IO's such as GPO1. A resistor divider network should assure the resulting voltage falls within the ADC input range in particular when the thermistor check function is used, see Battery Thermistor Check Circuitry. When the application is on and supplied by the charger, a battery removal can be detected by a battery thermistor presence check. When the thermistor terminal becomes high-impedance, the battery is considered being removed. This detection function is available at the ADIN5 input and can be enabled by setting the BATTDETEN bit. The voltage at ADIN5 is compared to the output voltage of the GPO1 driver, and when the voltage exceeds the battery removal detect threshold, the sense bit BATTDETBS is made high and after a debounce the BATTDETBI interrupt is generated. Table 90. Battery Removal Detect Specification Parameter Battery Removal Detect Threshold(72) Condition Min Typ 31/32 * GPO1 Max Units V Notes 72. This is equivalent to a 10 kOhm pull-up and a 10 kOhm thermistor at -35 °C. CHANNEL 6 ADIN6 AND COIN CELL VOLTAGE On channel 6, ADIN6 may be used as a general purpose unscaled input. In addition, on channel 6, the voltage of the coin cell connected to the LICELL pin can be read (LICON=1). Since the voltage range of the coin cell exceeds the input voltage range of the ADC, the LICELL voltage is first scaled as V(LICELL)*2/3. In case the voltage at LICELL drops below the coin cell disconnect threshold (see Clock Generation and Real Time Clock), the voltage at LICELL can still be read through the ADC. Table 91. Coin Cell Voltage Reading Coding Conversion Code Voltage at ADC input (V) ADDn[9:0] 1 111 111 111 1 000 000 000 0 000 000 000 2.400 1.200 0.000 Voltage at LICELL (V) 3.6 1.8 0 CHANNEL 7 ADIN7 AND ADIN7B, UID AND DIE TEMPERATURE On channel 7, ADIN7 may be used as a general purpose unscaled input (ADIN7DIV = 0) or as a divide by 2 scaled input (ADIN7DIV = 1). The latter allows converting signals that are up to twice the ADC converter core input range. In a typical application, an ambient light sensor is connected here. A second general purpose input ADIN7B is available on channel 7. This input is muxed on the GPO4 pin. The input voltage can be scaled by setting the ADIN7DIV bit. In the application, a second ambient light sensor is supposed to be connected here. Note that the GPO4 will have to be configured to allow for the proper routing of GPO4 to the ADC, see General Purpose Outputs. In addition, on channel 7, the voltage of the USB ID line connected to the UID pin can be read. Since the voltage range of the ID line exceeds the input voltage range of the ADC, the UID voltage is first scaled as V(UID)/2. Table 92. UID Voltage Reading Coding Conversion Code Voltage at ADC input (V) ADDn[9:0] 1 111 111 111 0 000 000 000 2.400 0.000 Voltage at UID (V) 4.80 - 5.25 0 Also on channel 7, the die temperature can be read out. The relation between the read out code and temperature is given in Table 93. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 103 FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM Table 93. Die Temperature Voltage Reading Parameter Die Temperature Read Out Code at 25 °C Temperature change per LSB Slope error Minimum Typical 680 +0.4244 °C Maximum 5.0 Unit Decimal °C/LSB % Table 94. ADC Channel 7 Scaling Selection ADIN7DIV 0 1 x x 0 1 ADIN7SEL1 0 0 0 1 1 1 ADIN7SEL0 0 0 1 0 1 1 Channel 7 Routing and Scaling General purpose input ADIN7, Scaling = 1 General purpose input ADIN7, Scaling = 1 / 2 Die temperature UID pin voltage, Scaling = 1 / 2 General purpose input ADIN7B, Scaling = 1 General purpose input ADIN7B, Scaling = 1 / 2 ADC ARBITRATION The ADC converter and its control is based on a single ADC converter core with the possibility to store two requests, and to store both their results as shown in Figure 27. This allows two independent pieces of software to perform ADC requests. Figure 27. ADC Request Handling The programming for the two requests, the one to the 'ADC' and to the 'ADC BIS', uses the same SPI registers. The write access to the control of 'ADC BIS' is handled via the ADCBISn bits located at bit position 23 of the ADC control registers, which functions as an extended address bit. By setting this bit to a 1, the control bits which follow are destined for the 'ADC BIS'. ADCBISn will always read back 0 and there is no read access to the control bits related to 'ADC BIS'. The read results from the 'ADC' and 'ADC BIS' conversions are available in two separate registers. The following diagram schematically shows how the ADC control and result registers are set-up. 13892 104 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM 8 Bit Address Header Location 43 Location 44 Location 45 Location 46 Location 47 ADC Control Register 0 ADC Control Register 1 ADC Result Register ADC0 ADC Control Register 2 ADC Result Register ADC1 R/W Bi t R/W Bi t R/W Bi t R/W Bi t R/W Bi t Address Bits Address Bits Address Bits Address Bits Address Bits Nul l ADC Bi t BIS0 Nul l ADC Bi t BIS1 Nul l Bi t Nul l ADC Bi t BIS2 Nul l Bi t 24 B it Data ADC Control Bits ADC Control Bits ADC Result Bits ADC Control Bits ADC BIS Result Bits Figure 28. ADC Register Set for ADC BIS Access There are two interrupts available to inform the processor when the ADC has finished its conversions, one for the standard ADC conversion ADCDONEI, and one for the ADCBIS conversion ADCBISDONEI. These interrupts will go high after the conversion, and can be masked. When two requests are queued, the request for which the trigger event occurs the first will be converted the first. During the conversion of the first request, an ADTRIG trigger event of the other request is ignored, if for the other request the TRIGMASK bit was set to 1. When this bit is set to 0, the other request ADTRIG trigger event is memorized, and the conversion will take place directly after the conversions of the first request are finished. The following diagram shows the influence of the TRIGMASK bit. The TRIGMASK bit is particularly of use when an ADC conversion has to be lined up to a periodically ADTRIG initiated conversion. In case of ASC initiated conversions, the TRIGMASK bit is of no influence. Figure 29. TRIGMASK Functional Diagram To avoid results of previous conversions getting overwritten by a periodical ADTRIG signal, a single shot function is enabled by setting the ADONESHOT bit to a one. In that case, only at the first following conversion, an ADTRIG trigger event is accepted. ASC events are not affected by this setting. Before performing a new single shot conversion, the ADONESHOT bit first needs to be cleared. Note that this bit is available for each of the conversion requests 'ADC' or 'ADC BIS', so can be set independently. It is possible to queue two ADTRIG triggered conversions. Both conversions will be executed with a priority based on the TRIGMASK setting. If both conversion requests have identical TRIGMASK settings, priority is given to the 'ADC' conversion over the 'ADC BIS' conversion. Note that the ADONESHOT is also taken into account. To avoid that the ADTRIG input inadvertently triggers a conversion, the ADTRIGIGN bit can be set which will ignore any transition on the ADTRIG pin. The ADC completely ignores either ADTRIG or ASC pulses while ADEN is low. When reading conversion results, it is preferable to make ADEN = 0. 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 105 FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM TOUCH SCREEN INTERFACE The touch screen interface provides all circuitry required for the readout of a 4-wire resistive touch screen. The touch screen X plate is connected to TSX1 and TSX2 while the Y plate is connected to TSY1 and TSY2. A local supply TSREF will serve as a reference. Several readout possibilities are offered. In order to use the ADC inputs and properly convert and readout the values, the bit ADSEL should be set to a 1. This is valid for touch screen readings as well as for general purpose reading on the same inputs. The touch screen operating modes are configured via the TSMOD[2:0] bits show in the following table. Table 95. Touch Screen Operating Mode TSMOD2 TSMOD1 TSMOD0 Mode Description x 0 1 0 1 0 0 0 1 1 0 1 1 x x Inactive Interrupt Reserved Touch Screen Reserved Inputs TSX1, TSX2, TSY1, TSY2 can be used as general purpose ADC inputs Interrupt detection is active. Generates an interrupt TSI when plates make contact. TSI is dual edge sensitive and 30 ms debounced Reserved for a different interrupt mode ADC will control a sequential reading of 2 times a XY coordinate pair and 2 times a contact resistance Reserved for a different reading mode In inactive mode, the inputs TSX1, TSX2, TSY1, and TSY2 can be used as general purpose inputs. They are respectively mapped on ADC channels 4, 5, 6, and 7. In interrupt mode, a voltage is applied to the X-plate (TSX2) via a weak current source to VCORE, while the Y-plate is connected to ground (TSY1). When the two plates make contact both will be at a low potential. This will generate a pen interrupt to the processor. This detection does not make use of the ADC core or the TSREF regulator, so both can remain disabled. In touch screen mode, the XY coordinate pairs and the contact resistance are read. The X-coordinate is determined by applying TSREF over the TSX1 and TSX2 pins while performing a high-impedance reading on the Y-plate through TSY1. The Y coordinate is determined by applying TSREF between TSY1 and TSY2, while reading the TSX1 pin. The contact resistance is measured by applying a known current into the TSY1 terminal of the touch screen and through the terminal TSX2, which is grounded. The voltage difference between the two remaining terminals TSY2 and TSX1 is measured by the ADC, and equals the voltage across the contact resistance. Measuring the contact resistance helps in determining if the touch screen is touched with a finger or stylus. To perform touch screen readings, the processor will have to select the touch screen mode, program the delay between the conversions via the ATO and ATOX settings, trigger the ADC via one of the trigger sources, wait for an interrupt indicating the conversion is done, and then read out the data. In order to reduce the interrupt rate and to allow for easier noise rejection, the touch screen readings are repeated in the readout sequence. Table 96. Touch Screen Reading Sequence ADC Conversion Signals sampled Readout Address (73) 0 1 2 3 4 5 6 7 X position X position Dummy Y position Y position Dummy Contact resistance Contact resistance 000 001 010 011 100 101 110 111 Notes 73. Address as indicated by ADA1[2:0] and ADA2[2:0] The dummy conversion inserted between the different readings is to allow the references in the system to be pre-biased for the change in touch screen plate polarity and will read out as '0'. 13892 106 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM Figure 30 shows how the ATO and ATOX settings determine the readout sequence. The ATO should be set long enough so that the touch screen can be biased properly before conversions start. Touchscreen Readout for ATOX=0 1/32K T rigger Touchscreen Polarization Touchscreen Readout for ATOX=1 1/32K ATO+1 ATO+1 ATO+1 ATO+1 Etc. ATO+1 Conversions 0, 1, 2 End of Conversi on 2 New Touchscreen Polarization ATO+1 Conversions 3, 4, 5 End of Conversion 5 New Touchscreen Polarization ATO+1 Conversions 6, 7 End of Conversion 7 Touchscreen De-Polarization T rigger Touchscreen Polarization Conversion 0 Conversion 1 C onversion 2 C onversion 3 End of Conversion 2 New Touchscreen Pol arization Figure 30. Touch Screen Reading Timing The main resistive touch screen panel characteristics are listed in Table 5. The switch matrix and readout scheme is designed such that the on chip switch resistances are of no influence on the overall readout. The readout scheme however does not account for contact resistances as present in the touch screen connectors. Therefore, the touch screen readings will have to be calibrated by the user or in the factory where one has to point with a stylus the opposite corners of the screen. When reading out the X-coordinate, the 10-bit ADC reading represents a 10-bit coordinate with '0' for a coordinate equal to TSX2, and full scale '1023' when equal to TSX1. When reading out the Y-coordinate, the 10-bit ADC reading represents a 10-bit coordinate with '0' for a coordinate equal to TSY2, and full scale '1023' when equal to TSY1. When reading the contact resistance the 10-bit ADC reading represents the voltage drop over the contact resistance created by the known current source multiplied by 2. Table 97. Touchscreen Interface Characteristics Parameter Interupt Threshold for Pressure Application Interupt Threshold for Pressure Removal Current Source Inaccuracy Over-temperature Condition Min Typ Max Unit 40 60 - 50 80 - 60 95 20 kOhm kOhm % The reference for the touch screen is TSREF and is powered from VCORE. In touch screen operation, TSREF is a dedicated regulator. No other loads than the touch screen should be connected here. When the ADC performs non touch screen conversions, the ADC does not rely on TSREF and the reference can be disabled. In applications not supporting touch screen at all, the TSREF can be used as a low current general purpose regulator, or it can be kept disabled and the bypass capacitor omitted. The operating mode of TSREF can be controlled with the TSREFEN bit in the same way as some other general purpose regulators are controlled, see Linear Regulators. COULOMB COUNTER As indicated earlier on in this Section, the current into and from the battery can be read out through the general purpose ADC as a voltage drop over the R1 sense resistor. Together with battery voltage reading, the battery capacity can be estimated. A more accurate battery capacity estimation can be obtained by using the integrated Coulomb Counter. The Coulomb Counter (or CC) monitors the current flowing in/out of the battery by integrating the voltage drop across the battery current sense resistor R1, followed by an A to D conversion. The result of the A to D conversion is used to increase/ decrease the contents of a counter that can be read out by software. This function will require a 10 μF output capacitor to perform 13892 Analog Integrated Circuit Device Data Freescale Semiconductor 107 FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM a first order filtering of the signal across R1. Due to the sampling of the A to D converter and the filtering applied, the longer the software waits before retrieving the information from the CC, the higher the accuracy. The capacitor will be connected between the pins CFP and CFM, see Figure 31. Figure 31. Coulomb Counter Block Diagram The CC results are available in the 2's complement CCOUT[15:0] counter. This counter is preferably reflecting 1 Coulomb per LSB. As a reminder, 1 Coulomb is the equivalent of 1 Ampere during 1 second, so a current of 20 mA during 1 hour is equivalent to 72C. However, since the resolution of the A to D converter is much finer than 1C, the internal counts are first to be rescaled. This can be done by setting the ONEC[14:0] bits. The CCOUT[15:0] counter is then increased by 1 with every ONEC[14:0] counts of the A to D converter. For example, ONEC[14:0] = 000 1010 0011 1101 BIN = 2621 DEC yields 1C count per LSB of CCOUT[15:0] with R1 = 20 mOhm. The CC can be reset by setting the RSTCC bit. This will reset the digital blocks of the CC and will clear the CCOUT[15:0] counter. The RSTCC bit gets automatically cleared at the end of the reset period which may take up to 40 μs. The CC is started by setting the STARTCC bit. The CC is disabled by setting this bit low again. This will not reset the CC settings nor its counters, so when restarting the CC with STARTCC, the count will continue. When the CC is running it can be calibrated. An analog and a digital offset calibration is available. The digital portion of the CC is by default permanently corrected for offset and gain errors. This function can be disabled by setting the CCCALDB bit. However, this is not advisable. In order to calibrate the analog portion of the CC, the CCCALA bit is set. This will disconnect the inputs of the CC from the sense resistor and will internally short them together. The CCOUT[15:0] counter will accumulate the analog error over time. The calibration period can be freely chosen by the implementer and depends on the accuracy required. By setting the ONEC[14:0] = 1 DEC this process is sped up significantly. By reading out the contents of the CCOUT[15:0] and taking into account the calibration period, software can now calculate the error and account for it. Once the calibration period has finished the CCCALA bit should be cleared again. One optional feature is to apply a dithering to the A to D converter to avoid any error in the measurement due to repetitive events. To enable dithering the CCDITHER bit should be set. In order for this feature to be operational, the digital calibration should remain enabled, so the CCCALDB bit should not be set. Table 98. Coulomb Counter Characteristics Parameter Condition Min Typ Max Unit Sense resistor R1 Sensed current On consumption Resolution Placed in Battery path of Charger system Through R1 CC active 1LSB Increment ±1.0 20 10 381.47 ±3000 mΩ mA μA μC - 20 - 13892 108 Analog Integrated Circuit Device Data Freescale Semiconductor FUNCTIONAL DEVICE OPERATION ADC SUBSYSTEM As follows from the previous description, using the CC requires a number of programming steps. A typical programming example is given below. 1. SPI Access 1: Initialize • Reg 9: Write STARTCC = 1, RSTCC = 1, CCCALA = 1, CCDITHER = 1, CCCALDB = 0 • RSTCC will be self clearing • Register 10 is NOT to be programmed since by default the ONEC[14:0] scaler is set to 1 2. Wait for analog calibration period 3. SPI Access 2: Set scaler • Reg 10: Write ONEC to desired value for CC use, for instance 2621DEC 4. SPI Access 3: Read analog offset and reset CC • Reg 9: Write STARTCC = 1, RSTCC = 1, CCCALA = 0, CCDITHER = 1, CCCALDB = 0 • During the write access, on the MISO read line the most recent CCOUT[15:0] is available • RSTCC will be self clearing From this point on the ACC is running properly and CCOUT[15:0] reflects the accumulated charge. In order to be sure the contents of the CCOUT[15:0] are valid, a CCFAULT bit is available. CCFAULT will be set '1' if the CCOUT content is no longer valid, this means the bit gets set when a fault condition occurs and stays latched till cleared by software. There is no interrupt associated to this bit. The following fault conditions are covered. Counter roll over: CCOUT[15:0] = 8000HEX This occurs when the contents of CCOUT[15:0] go from a negative to a positive value or vice versa. Software may interpret incorrectly the battery charge by this change in polarity. When CCOUT[15:0] becomes equal to 8000HEX the CCFAULT is set. The counter stays counting so its contents can still be exploited. Battery removal: 'BP
13892 价格&库存

很抱歉,暂时无法提供与“13892”相匹配的价格&库存,您可以联系我们找货

免费人工找货