Home
STEVAL-ISB008V1, USB Li-Ion battery charger and gas gauge
Contents
1. 14 Manufacturer s ordering code Supplier Category Ref des Comp descr Package Manufacturer Supplier ordering orderable part number code or equivalent R1 R2 R3 R4 R6 R9 R13 R14 R15 R16 R17 R20 R22 10 SMD0805 Any R34 R36 R37 R38 R5 R7 0 SMD0805 Any R8 R10 220 SMD0805 Any R11 R18 1 ka SMD0805 Any R12 1 5 SMD0805 Any Resistors RESISTOR METAL A 5 Parti R19 STRIP 0 03 Q 1 SMD0805 Wet au 1 Farnell wea 0 125W R21 15 SMD0805 Any R23 R24 4 7 ka SMD0805 Any R25 R29 R30 R31 R32 R33 4700 SMD0805 Any R28 500 Q SMD0805 Any PTC 500 mA rating SMD0805 Any 6 mm X 6 mm Misc SW1 Pushbutton switch pushbutton Tyco Electronics FSM2JH Farnell Part 1555981 through hole Note PTC not mounted onboard replaced by a short The term equivalent has been used where the exact part number from the mentioned vendor may not have been used 8Z90INN References 0 0678 8 26 28 References 1 STw4102 datasheet 2 STMw32 datasheet 32 bit ARM Cortex MCU Doc ID 15407 Rev 1 UM0678 Revision history 9 Revision history Table 15 Document revision history Date 27 Jul 2010 Revision 1 Initial release Changes Doc ID 15407 Rev 1 27 28 0 0678 Please Read Carefully Information in this document is prov
2. WAS TAG connector Switch Battery connector USB mini Za EN Ami inr connector coa ee STW4102 STM32 Load connector Battery connector 5 V power connector LED indicator for charging and discharging s wes r 9 EI Capacity indicator AM03437v1 Doc ID 15407 Rev 1 5 28 Getting started UM0678 1 3 1 4 6 28 Hardware layout The hardware layout of the PCB is shown in Figure 3 which shows all the components mounted on the board Figure 3 Hardware layout details JTAG Connector Battei Connector Mini USB Connector STw4102 STM32 Power Connector n DEMO BOARD ONLY FOR EVALUATION PURPOSE Battery Connector LED s AM03438v1 System architecture description e The application works as a Li lon battery charger The system can be used both in USB mode and also adapter mode e The system consists of a battery charger section for a Li lon battery and a microcontroller section for controlling actions e LEDs available on the board indicate the status of the charging conditions Gas gauge battery capacity status through Leds in steps of 20 96 each e A JTAG connector is available to program the microcontroller Doc ID 15407 Rev 1 ky UM0678 System overview 2 System overview 2 1 General description of product architecture Figure 4 System architectur
3. 17 Mini B USB connector 18 Power supply 4 18 Microcontroller section 19 STw4102 battery charger MOSFET_STT5PF20V wall adaptor and anti tamper circuit SCHOMMAUCS 20 Boot jumpers JTAG connector power supply and USB 21 Doc ID 15407 Rev 1 ky UM0678 Getting started 1 Getting started 1 1 Package The STEVAL ISBOO8V1 demonstration board package includes the following items e Hardware content Demonstration board STEVAL ISBOO8V1 e Documentation User manual Schematics Gerber files BOM e Microcontroller firmware Pre programmed STMS2F103C6T6A device soldered onto the demonstration board Object files are also available for the firmware 1 2 Setting up the board e The USB Li lon battery charger can be set up as follows Connect the Li lon battery pack to the board with appropriate polarity Connect either the adapter or USB cable to the board If both voltage sources are connected then the adapter considers as source for battery charging Check the status of D2 LED D2 is green during charging of the battery and is red during discharging Five LEDs show the available capacity of the battery Figure 2 STEVAL ISBO08V1 USB Li lon battery charger parts
4. HZ AA Ez Stas STw4102 cvs 2 518 89 6 C32KHz 13 32 2 N 3V0 18 vio STDBY 14 STDBY_PA1 K I2C SCL PB6 4 17 sci vout 2 2 E I2C SDA PB7 4 16 m SENSE 9 lup 2p o RESETN PA4 15 RESETN SONA 9 STW4102 BATTERY CHARGER MOSFET STT5PF20V Anti tamper circuit 3V0 37 U7 SW1 C23 LOAD TC 1 6 PC13 R38 GND R36 3V0 605060 1 2 D A 9 T Me PB9 RR 3 D ae Bt SW PB SPST E 100nF STT5PF20V SOT23 6L 7 AB 10 Wall adaptor 3V0 2 10 J7 m D3 1 B WALL ADPTR VIN PA7 4 2 GND STPS1L30U sk CON3 AMO07750v1 20 28 Doc ID 15407 Rev 1 ky Hardware schematic 0 0678 Figure 16 Boot jumpers JTAG connector power supply and USB schematics 005115 lt 1 NIA ang asn a daasn dd asn mE wa wassn sn 99 asn AOLnZ Y eo vo 9H 30001 90 3400 Asasn Asasn wa asn NOILO3S 951 0 Xxvs86cqd1 NI Ino Alddfl H3MOd LIGIHNI SSVdAH QN9 In NNOO MOVOSG 5 15 584 OGLP SVIN MOLY OVI SL Vd pad LSHINC
5. 17 6 1 JTAG connector ATRIIS 17 6 2 USB 18 6 3 Power supply connector 18 7 Hardware schematic 19 7 1 Bill Of 22 8 References MEME rem 26 9 REVISION history 27 2 28 Doc ID 15407 Rev 1 ky UM0678 List of tables List of tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 Table 15 Description of firmware actions in USB charging 8 Different states of device shown through LED 02 8 J7 jumper setting sisse ea e m ee eoe ah 10 J4 jumper Setting 10 Battery capacity shown through level LEDs D4 to 08 11 J6 pin description 1 1 12 Microcontroller 1 13 STw4102 5 14 USBLCS details oe de Pe taste dera deae d eaux Ye wed bea A RE 14 Voltage regulator 1 1 0 5 14 MOSFET seit ex acit
6. i OAE aN st JOL VH HOLO3NNOO SVL M Ste 9 11009 SYAdWN 1009 01008 07751 1 21 28 Doc ID 15407 Rev 1 4 7 1 Bill of materials Table 14 BOM Manufacturer s ordering code Supplier Category Ref des Comp descr Package Manufacturer orderable part number Supplier id or equivalent Voltage regulator IC _ 5 U1 LD2985BM30R SOT23 5L STMicroelectronics LD2985BM30R ESD protection device U2 USBLC6 2P6 SOT23 6L STMicroelectronics USBLC6 2P6 Dual USB wall adapter U3 Li ion battery charger QFN24 STMicroelectronics STWA41021QT with gas gauge STw4102 8 ST devices Microcontroller STM32 U4 Family ARM based 32 LQFP48 STMicroelectronics STM32F103C6T6A m bit MCU S P Channel power 2 07 MOSFET STT5PF20V SOT23 6L STMicroelectronics STT5PF20V lt Low drop power D1 D3 Schottky rectifier SMA STMicroelectronics STPS1L30U STPS1L30U eye ana Yi Quartz crystal 8 MHz 11 35 mm x 4 35 Jauch Q 8 0 SS4 30 30 30 oscillator mm SS4 8o cc 8Z90INN 8o c 0 AI Table 14 BOM continued Manufacturer s ordering code Supplier Category Ref des Comp descr Package Manufacturer Supplier ordering orderable part number code or equivalent Box H
7. PD1 OSC OUT 2 4 10 30 PWRDETECTN GND g NRST PAS 20 C32KHZ PA8 SVO 9 VSSA 55 BAG 10 YODA PB15 25 PAO_WKUP 14 42 STDBY_PA1 11 PB13 20 USB PU PA2 12 PB12 25 2122 8282206 amp amp amp amp amp 0 99 N 3V0 e 2 2 Qe R25 470 4 D2 CA BIC T E 88 85 z 3 1 pi 9 T m 5 ao No z ul es zl 4 Dp 2 plod o Bo 59 gu 20 p Ovd o 6 a 2 gt i E oat 52 as a 58 tl 3 B ON e gt r4 og 2 ge 58 ES T ou AM03450v1 Doc ID 15407 Rev 1 19 28 Hardware schematic 0 0678 Figure 15 STw4102 battery charger MOSFET STT5PF20V wall adaptor and anti tamper circuit schematics CON2 B 2 B 1 25 _ cm U3 p 100nF WALL ADPTR 1 MAIN 1 M X sam B UE USBSV 3 USBPWR ics 12 13 PWRDETECTN FAS 24 PWRDETECTN BATT 20 od EGCHGSPATD 22 EOCHG BATTSENSE 21 XS AR 8 CVREF
8. Ti UM0678 J User manual STEVAL ISBOO8V1 USB Li lon battery charger and gas gauge based on the STw4102 July 2010 Introduction This user manual describes an easy compact and economical solution to charging Li lon batteries using a USB port and a DC adaptor In addition battery capacity monitoring can be done through the efficient built in gas gauge system of the STw4102 device The board has the following devices STwA4102 battery charging device m USBLC6 2 ESD protection device STM32F103C6 microcontroller m LD2985BXX30 voltage regulator Key features m The STw4102 is used for charging a battery through a USB or the external DC adaptor m The STw4102 supports gas gauge applications m An onboard STM32 microcontroller is used for enumeration and controlling the STw4102 to comply with USB specifications m Charging and discharging status is indicated by dual color LEDs m Gas gauge battery capacity status shown in five levels using LEDs in steps of 20 each m This can be used as a standalone Li lon battery charger in various applications The Li lon battery charger device can be used in the following applications m Standalone chargers already implemented in the STEVAL ISBOO8V1 An explanation is given in this document m USB powered chargers already implemented in the STEVAL ISBOO8V1 An explanation is given in this document PDAs Handheld devices Cellular phones GSM CDMA WCDMA Cordless phones Digit
9. OFF lt 60 D6 ON gt 60 OFF lt 40 D5 ON gt 40 OFF 20 D4 ON gt 20 OFF lt 10 In the case of charging when the Rcap 96 exceeds any level as defined in Table 5 the corresponding LEDs turn on and the other LEDs above that level keep on toggling For discharging when capacity drops to a certain level the corresponding LED turns off and the other LEDs below that level keeps on toggling Doc ID 15407 Rev 1 11 28 Working of board UM0678 12 28 Figure 8 Discharging the battery Fit the jumpers J6 connector AM03443v1 Connect the load to the load terminals of the board referring to Table 6 There is a MOSFET which acts as a switch between load and battery When the J4 jumper fits on pin 1 and 2 of J4 the MOSFET is turned on by the microcontroller by reading the state of the jumper The battery starts to supply power to the load When the battery voltage falls below the programmed critical voltage the discharging is stopped by the microcontroller In the demonstration board critical battery voltage is programmed to 3 1 V When the battery voltage falls below this voltage LED D2 turns on in red Table 6 J6 pin description Pin number Jumper Description 1 B Battery positive terminal 2 B Battery negative terminal 3 Load Load positive terminal 4 Gnd Ground Doc ID 15407 Rev 1 0 0678 Hardware design description 4 Hardware
10. Eae a ant Rer RI dera e 15 JTAG pin description 17 USB connector pin 18 BOM ETT 22 Document revision history 27 Doc ID 15407 Rev 1 3 28 List of figures UM0678 List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 4 28 STEVAL ISBOO8V1 USB Li lon battery charger 1 STEVAL ISBOO8V1 USB Li lon battery charger 5 Hardware layout details 1 6 System architecture 7 Initial setting for new battery before power on 9 Setting of jumpers after 10 Battery charging using the 6 4102 11 Discharging the 12 System block diagram 13 Firmware flow chart 1 1 16 JTAG connector hee Dh eddie REOR ee a
11. Rev 1
12. SW1 the D4 LED lights up indicating 300 mAh Press again to set 600 mAh The LED lights up according to BCD format The user must press the switch repeatedly to increase the capacity The maximum allowed is 2100 mAH e If the user exceeds the limit the D2 LED is red indicating the maximum capacity the user can enter as 2100 mAh If the user wants to enter less capacity the board should be restarted and the correct capacity of the battery entered e Once the capacity is entered by pressing the switch again set the jumper between pin 2 and 3 as shown in Figure 5 without powering off the demonstration board e When battery capacity is programmed to the board the value is stored in the internal flash of the microcontroller by EEPROM emulation Now the 5 LEDs show the available capacity of the battery according to the programmed capacity of the battery Once the battery capacity is programmed it is not necessary to reconfigure again ky Doc ID 15407 Rev 1 9 28 UM0678 Working of board 3 3 10 28 Table 3 J7 jumper setting Jumper Description 1 2 Set for normal operation once the capacity is entered 2 3 Enter the battery capacity Open Not allowed Figure 6 Setting of jumpers after power on accor ree Ss AR MERE LS Fit the jumper AMO3441v1 Battery charging and discharging in the case of the STw4102 The board supports the onboard J4 jumper to select the chargi
13. compatible with inhibit function at http www st com The STw4102 device needs 3 V input for one of the input pins for proper operation As the STM3 2 device supports a voltage range from 2 6 to 5 V V was chosen for the design Table 10 Voltage regulator Feature Description Sales type LD2985BM30R Package SOT23 5L Doc ID 15407 Rev 1 ky 0 0678 Hardware design description 4 5 Power MOSFET The MOSFET is used to connect the load to battery During the discharging process the microcontroller turns on the MOSFET so as to consume power from the battery For more details please refer to the STT3PF30L datasheet P Channel 30V 0 14 50723 61 STripFET Power MOSFET at http www st com Table 11 MOSFET Feature Description Sales type STT5PF20V Package SOT23 6L Doc ID 15407 Rev 1 15 28 Firmware architecture description UM0678 5 16 28 Firmware architecture description Figure 10 Firmware flow chart Configure device STw4102 and 5 32 in required configuration Check for new battery capacity entry Jumper J7 Not Required Required Enter capacity of new battery Check for Power source Wait for USB configuration Wall Adapter Enable and calibrate gas gauge Set STw4102 in fast charge mode Check for charging discharging Jumper J4 Charging Discharging C
14. design description The hardware block diagram is shown in Figure 9 Figure 9 System block diagram ES a EN Connector Preeeien STw4102 T Connector onion clum Voltage MOSFET mp Battery Load Realisation Connector Power Jack AM03444v1 4 1 Microcontroller STM32 The STM32 microcontroller is a 32 bit MCU based on the popular ARM 32 bit Cortex M3 CPU running at 72 MHz with a performance of 90 DMIPS with 1 25 DMIPS MHz The microcontroller has single cycle multiplication and hardware division The device supports low power modes like sleep stop and also standby The microcontroller has up to 9 communication interfaces which include two 12 5 400 kHz three USARTs 4 5 Mbps two SPls 18 MHz CAN 2 0B Active interface and USB 2 0 12 Mbps full speed interface For more details refer to the STM32 datasheet 32 bit ARM Cortex MCU and reference manual at http www st com For this application a minimum of one PC to interface with the STw4102 is needed USB to support the USB based charger and some general purpose lOs for user interface The part numbers used to develop this application are shown in Table 7 Table 7 Microcontroller details Feature Description Sales type STM32F103C6T6A Package LQFP 48 7 x 7 mm Flash Kbytes 32 SRAM Kbytes 10 Operating voltage 2 0 to 3 6 V Doc ID 15407 Rev 1 13 28 Hardware design description UM0678 4 2 4 3 4 4 14 28 Battery char
15. for the STW4102 can implement a software counter to measure the available capacity for higher capacity batteries The demonstration board firmware allows the user to change the maximum capacity up to 2100 mAh in steps of 300 mAh The STM32 is used to control and monitor the STw4102 battery charger device All the communication between the STw4102 and STM32 is done using the 2 interface This board has a USB connector and a connector for the DC adapter These can be used for charging the battery connected to the STw4102 device The board can supply a typical battery charging current of 400 mA in the case of a USB port whereas in the case of a DC adapter the range is extended to 800 mA ky Doc ID 15407 Rev 1 7 28 Working of board 0 0678 3 3 1 Table 1 Working of board Operational description Operation of the battery charger and gas gauge function mainly depends on the STw4102 battery charger device The STM32 microcontroller is used for charging and gas gauge processes In addition the microcontroller controls the discharging of the battery when a load is connected to the load terminals provided on the board Special care must be taken in the case of a USB to respect the USB specification The STM32 firmware smartly handles different states of charging during enumeration suspend mode and also in resume mode Description of firmware actions in USB charging mode USB state refer to USB specifica
16. ROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2010 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com 28 28 Doc ID 15407
17. al cameras USB appliances blue tooth devices etc Figure 1 STEVAL ISBOOS8V1 USB Li lon battery charger AM03436v1 Doc ID 15407 Rev 1 1 28 www st com Contents 0 0678 Contents 1 Getting started Lucas aca xc oic a o RD a s A Ra 5 1 1 dares oe IIR anne cer M adus 5 1 2 Setting up the board ccs cR E REFER RR RR OR bee Ree Dee SE 5 1 3 Hardware layout 6 1 4 System architecture description 6 2 System overview 7 2 1 General description of product architecture 7 3 Working of 8 3 1 Operational description 8 3 2 Initial settings for new 9 3 3 Battery charging and discharging in the case of the STw4102 10 4 Hardware design description 13 4 1 Microcontroller 6 2 13 42 Battery charger STW4102 14 4 3 ESD protection device 14 4 4 Voltage regulator 14 4 5 Power MOSFET Z2 seo PEG ou ee Seb Ie 15 5 Firmware architecture description 16 6 Connectors and jumpers
18. e charge or fast charge status End of charge pin goes low or charge is 100 D2 Green 02 Red Toggling Off On Off Doc ID 15407 Rev 1 ky UM0678 Working of board Table 2 Different states of device shown through LED D2 status continued Charge m D2 condition Description Green D2 Red Discharging When load is connected to board and charging is disabled Off Toggling When battery voltage is less than critical battery voltage or Battery low Reap lt 15 Battery absent When the battery pack is removed Off On 3 2 Initial settings for new battery To give flexibility to the user to connect any Li lon battery to the demonstration board firmware provides an option to the user to program the battery capacity in the demonstration board using a jumper switch and LEDs If the user wants to program the maximum battery capacity use the following steps Figure 5 Initial setting for new battery before power on Switch Fit the jumper LED s AM03440v1 e Set the J7 jumper between pin 1 and 2 before power on as shown in Figure 5 Connect either the adapter or the USB cable to power on the board e Using the SW1 set the capacity of the battery Pressing the switch once increases the battery capacity in multiples of 300 mAh up to a maximum of 2100 mAH The five levels of LEDs are used to indicate the capacity of the battery e When the user first presses
19. e details Wall Adapter JTAG Connector VD STM 32 1 0 Timer Out Vo 4 PWRDETECTN AM03439v1 As described in the block diagram the STw4102 battery charger in addition to the STM32 microcontroller acts as a completely standalone battery charger featuring gas gauge implementation which shows the remaining capacity of the battery in an efficient manner with the help of five LEDs assigned to different capacity levels The different capacity levels are mentioned in the user interface section Similarly two status LEDs show charging discharging and some faulty conditions The firmware programmed on the demonstration board considers the battery capacity as 1200 mAh by default This maximum capacity value is used to find out the percentage of the available battery capacity which is shown using the 5 LEDs The maximum capacity value can be changed by the user using the S1 switch and J7 jumper This needs to be done when the user connects a battery to the demonstration board which is different to the 1200 mAH rating This is further explained in Section 3 2 The STw4102 supports a 24 bit accumulator The LSB value corresponds to a charge of 54 5 nAh Under these conditions the 24 bit accumulator has a capacity of 914 mA Please refer to the STw4102 datasheet Dual source USB Li lon charger with gas gauge at http www st com for details In addition to this the microcontroller the host controller
20. eader J1 JTAG connector Straight 20way MULTICOMP MC9A12 2034 Farnell Part 1099258 2x10pin 2 54 mm x 2 54 mm pitch J2 Mini USB connector SMD USB Min B KYCON KMBX SMT 5S S 30TR 1 type connector Jumper 3 pin J3 J4 J7 3 pin jumper 1x3way 2 54 mm SAMTEC TSW 103 23 G S pitch Connectors and jumpers te pacem OCk screw J5 Terminal block termination CONTACT Partt 1711725 Farnell Parti 3041165 5 08 mm pitch Header 4 pin Rechargeable battery 1x4way right J6 Any connector angle 2 54 mm pitch J8 Power jack 2 5 mm Socket DC power i CLIFF electronic DC10B Farnell Part 224960 2 5 mm components uu SMD1206 OSRAM LGN971 Farnell 1226371 5 LEDs D2 Dual color LED common Through hole Any anode 8Z90INN 20791 AI 90d 8o Vc Table 14 BOM continued Manufacturer s ordering code Supplier Category Ref des Comp descr Package Manufacturer Supplier ordering orderable part number code or equivalent C6 C7 15 pF SMD0805 Any C9 C12 20 pF SMD0805 Any C3 C8 4 7 nF SMD0805 Any C1 10 nF SMD0805 Any C4 C5 C10 Capacitors 15 16 17 100 nF SMDO805 Any C18 C19 C20 C23 4 7 uF 10 V EIA 3216 18 C2 tantalum electrolytic size A any EIA 3528 21 C13 18 UF siza B Any 8Z90INN 82 46 20 91
21. ger STw4102 The STw4102 is a standalone constant current constant voltage CCCV linear charger dedicated to Li lon batteries The device has a dual charging capability which uses the main input adaptor wall or car adapter or a USB cable The STw4102 contains an accurate gas gauge based on a 13 bit AD converter and battery voltage monitor with a 7 to 12 bit AD converter For more details refer to the STw4102 datasheet Dual USB wall adapter Li ion battery charger with gas gauge at http www st com Table 8 STw4102 details Feature Description Order code STW41021QT Package QFN24 Operating voltage VUSB 4 25 to 5 5 V Operating voltage VMAIN 4 25 to 16 V ESD protection device USBLC6 2P6 is a monolithic application specific device dedicated to ESD protection of high speed interfaces such as USB 2 0 Ethernet links and video lines For more details please refer to the USBLC6 2P6 datasheet Very low capacitance ESD protection at http www st com Table 9 USBLC6 details Feature Description Order code USBLC6 2P6 Package SOT23 6L Voltage regulator The LD2985A Bxx is a 150 mA fixed output voltage regulator The ultra low drop voltage and the low quiescent current make them particularly suitable for low noise low power applications and in battery powered systems For more details please refer to the LD2985A Bxx datasheet Very low drop and low noise voltage regulator low ESR capacitor
22. heck for battery absent Check for battery absent YES ON D2 Red Disconnect load from battery Check for critical battery Check for end of charge No Read charge accumulator data Rcap e Rcap Cap extracted Max Cap accumulated Max Cap Show Rcap through status LEDs AM03445v1 Doc ID 15407 Rev 1 ky 0 0678 Connectors and jumpers 6 6 1 Connectors and jumpers JTAG connector Figure 11 JTAG connector Debug JTAG port 19 17 15 13 11 9 7 5 3 1 3 E CE B ap TOOTS pono gup 20 18 16 14 12 108 6 42 AM03447v1 Table 12 JTAG pin description Pin number Description Pin number Description 1 3 3 V power 2 3 3 V power 3 TRST 4 GND 5 TDI 6 GND 7 TMS 8 GND 9 TCK 10 GND 11 RTCK 12 GND 13 TDO 14 GND 15 nSRST 16 GND 17 DBGRQ 18 GND 19 DBGACK 20 GND The JTAG connector is available onboard for re programming the microcontroller and debugging Doc ID 15407 Rev 1 17 28 Connectors and jumpers UM0678 6 2 6 3 18 28 USB connector The standard USB mini B type 5 pin connector is used An additional 4 connections pins 6 9 in the schematics are connected to the body of the connector Confirm that these pins shell shield are connected to the ground through an RC circuit The maximum current drawn by the board fr
23. ided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL P
24. ng and discharging mode of battery By default the board supports charging mode Table 4 J4 jumper setting Jumper Description 1 2 Set the jumper for discharging mode 2 3 Set the jumper for charging mode Open Charging mode by default Doc ID 15407 Rev 1 UM0678 Working of board Figure 7 Battery charging using the STw4102 Charging mode mL bo Las l 7 Green LED indication Capacity indication of battery AMO3442v1 The board is programmed to support a charging voltage of 4 2 V When the battery voltage approaches the programmable charge voltage 4 20 V the charger enters into a constant voltage charging mode and the charging current decreases When the current level reaches the end of charge level the battery is almost fully charged and the charger enters maintenance mode The gas gauge system monitors the battery charging and discharging The demonstration board has 5 LEDs which are used to show the present status of the battery charge with respect to the mAH rating of the battery which was programmed by the user as shown in Table 5 To discharge the battery connect the jumper between pin 1 and 2 of J4 Connect the load to the J6 connector as shown in Figure 7 Table 5 Battery capacity shown through level LEDs D4 to D8 LEDs Charging Discharging Status Rcap Status Reap D7 ON 100 OFF lt 80 D8 ON gt 80
25. om the USB host hub is less than 500 mA in any condition to respect the USB specifications Figure 12 Mini B USB connector AM03448v1 Table 13 USB connector pin description Pin number Description Pin number Description supply rom USB bus SHIELD 2 DM USB D signal 7 SHIELD 3 USB D signal 8 SHIELD 4 9 SHIELD 5 GND ground signal Power supply connector The adaptor connector is available for connecting an external voltage source An adaptor of 5 V DC can be used Figure 13 Power supply connector DC 5V Viewed from front AM03449v1 Doc ID 15407 Rev 1 ky UM0678 Hardware schematic 7 Hardware schematic Figure 14 15 and 16 shows the schematic diagrams for the board Figure 14 Microcontroller section schematic d B eo to X Gia OE 1 ij lt ZEEE epo C ert Slo 01 2999 z Sol 5555 Ue SS 3399393995 O Oo LO st C 10 E cao a 3V0 ae VBAT VDD 2 dE m CTI 2 PC13 1 TAMP VSS 2 34 JTAG JIMS 13 CIS 4 14 OSC32 IN 22 USBDP PA12 OSC IN 5 PC15 OSC32 OUT PA12 55 USBDM PATI OSC OUT 27 PDO OSC IN PA11 4 10
26. tions Attached powered default address states USB power budgeting specification USB device can draw no more than 100 mA from Microcontroller actions USB section enabled EndpointO transactions Sets the USB ICHG bits of REG to 00b to draw more then 100 mA current STw4102 device actions The STw4102 supports a maximum of 60 mA current in this mode Configured USB device can draw up to 500 mA for high power bus powered functions or up to 100 mA for low power devices This rating is put in the configuration descriptor field bMaxPower USB state machine changed to configured and sets the USB ICHG bits of REG to 10b to draw no more then 500 mA from Vgus The STw4102 supports a maximum of 500 mA current in this mode Suspended USB device can draw 2 5 mA current from Vgus Microcontroller executes USB suspend interrupt and enters power saving mode reducing power consumption all LEDs are OFF microcontroller sets the USB ICHG bits of REG to 11b for charging current to zero ampere And disable the battery monitoring Put the gas gauge in standby mode by setting the STDBY pin as high The STw4102 device charging current set to zero Ampere 8 28 Table 2 Different states of device shown through LED D2 status Charge condition Charge in progress Charge done Description When the device is in trickl
Download Pdf Manuals
Related Search
Related Contents
照明器具CBA-701/CBA Instruction Tecnoware iUPS 900VA 筑後市立病院TV・床頭台等設置運営事業に関する委託業務仕様書 1 NOTAS EXPLICATIVAS - Sistema de Controle de Aviso de Licitações Samsung Galaxy S6 Bruksanvisning Philips SPA9200 loudspeaker Clasificandos Copyright © All rights reserved.
Failed to retrieve file