This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TWL6032: Enabling external charger doesn't work

Other Parts Discussed in Thread: TWL6032, BQ24156A

Hello,

I'm using custom omap4460 based board with twl6032 as PMIC.
There is an external charger bq24156a. Signals CHRG_EXTCHRG_STATZ and  CHRG_EXTCHRG_ENZ  are connected to corresponding pins of bq24156 (STAT and CD). There is a 10K pull-up resistor between CHRG_EXTCHRG_STATZ and VAUX1 and 10K pull-down resistor between CHRG_EXTCHRG_ENZ and ground.

The problem is that if I try to enable the external charger (0x18 is written to CONTROLLER_CTRL1 register) the signal CHRG_EXTCHRG_ENZ remains HIGH and bq24156 is in "charger disabled" mode.

Do I understand right, that only setting CONTROLLER_CTRL1=0x18 should cause HIGH to LOW transition at   CHRG_EXTCHRG_ENZ?

Any ideas how to debug this?

Best regards,

Eugen Wagner

  • can you please check what is the status on VAC pin and VBUS pin?

    Are both VAC and VBUS plugged in together? what comes first AC or VBUS?

    please share the shcematic also.

  • Hello Puneet,

    Thank you for your quick response.

    VAC and VBUS pins are connected. Therefore they come up simultaneously.  Actually, we don't have a dedicated AC power source but we use an external charger to charge from USB bus. The reason for this is that we don't place OMAP4 IC on our board directly, but we use the module ATCN081JS(with OMAP4460 and TWL6032), which has probably an issue with internal charger.

    In the mean time I  unplugged the OR resistor between CHRG_EXTCHRG_ENZ output and CD (charger disable) input on BQ24156 site and connected CD to ground in order to test BQ24156 itself. It seems to work, BQ24156 charges my battery. CHRG_EXTCHRG_ENZ remains HIGH - it is still driven by TWL6032 and I would like to know why.

    I uploaded the register dump of PMIC :

    2783.omapconf.dump.txt
    OMAPCONF (rev 1.68 built Mi 6. Nov 12:38:20 CET 2013)
    
    HW Platform:
      INCA_MOD
      OMAP4460 ES1.1 GP Device (STANDARD performance (1.2GHz))
      TPS62361
    Error: I2C Read failed
      UNKNOWN AUDIO IC
    
    SW Build Details:
      Build:
        Version: inca_mod-eng 4.2.2 JDQ39 eng.synthese.20130426.143241 test-keys
        Pastry: Jelly Bean
        Type: eng
        Date: Fri Apr 26 14:33:38 CEST 2013
    
      Kernel:
        Version: 3.4.34-01503-g96f7961-dirty
        Author: wagneren@ux1261
        Toolchain: gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
        Type: #175 SMP PREEMPT
        Date: Tue Mar 11 17:16:41 CET 2014
    
    REGISTER DUMP FOR TWL6032
    =========================================================
    BUS=1 SLAVE ADDR=0x48
    ---------------------------------------------------------
           0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f 
    0x00: 57 37 00 01 01 00 00 00 00 00 00 01 01 00 00 00 
    0x10: 01 02 00 00 00 00 00 00 00 00 00 00 00 00 00 01 
    0x20: c0 3b 03 0f 18 00 18 02 00 02 e0 00 20 c2 00 24 
    0x30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x40: 00 05 01 00 3c 00 00 05 01 00 00 06 00 00 00 00 
    0x50: 00 00 00 01 01 00 00 06 00 01 01 00 00 06 00 00 
    0x60: 00 00 00 00 00 05 01 00 29 00 00 00 00 00 00 00 
    0x70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x80: 00 05 01 0c 00 01 01 14 00 01 00 09 00 01 00 03 
    0x90: 00 05 01 09 00 05 01 09 00 03 00 15 00 01 00 0a 
    0xa0: 00 05 01 18 00 01 00 09 00 00 00 00 00 00 05 01 
    0xb0: 00 05 01 00 05 01 00 05 01 00 05 01 00 05 01 00 
    0xc0: 05 01 00 0d 01 00 05 01 00 05 00 00 01 01 00 05 
    0xd0: 01 01 54 e6 a4 18 c2 3f ff 3f 00 00 00 00 00 00 
    0xe0: 5b 00 11 00 07 10 5a 03 00 86 02 80 1a 7f 04 80 
    0xf0: 55 65 11 00 ff 01 53 a3 1e 31 01 00 29 00 00 00 
    =========================================================
    
    BUS=1 SLAVE ADDR=0x49
    ---------------------------------------------------------
           0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f 
    0x00: 51 04 32 c0 05 05 15 15 06 00 00 00 00 00 00 10 
    0x10: 00 00 00 00 01 01 00 00 00 00 00 00 00 00 00 00 
    0x20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6b 04 
    0x30: 00 00 00 00 00 12 06 00 00 00 00 c4 09 00 00 00 
    0x40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x90: 00 00 00 35 00 00 00 00 00 00 00 00 00 00 00 00 
    0xa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0xb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0xc0: 00 68 00 00 72 60 01 00 2c 00 2a 03 00 00 00 00 
    0xd0: 00 00 00 c6 f7 8a c6 f7 8a 00 00 18 02 03 40 00 
    0xe0: 04 18 20 4d 00 02 00 00 00 20 02 02 02 04 29 35 
    0xf0: 1e 64 00 00 ff 20 00 00 00 00 00 00 00 00 00 cd 
    =========================================================
    
    BUS=1 SLAVE ADDR=0x4A
    ---------------------------------------------------------
           0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f 
    0x00: 07 07 07 07 07 07 07 07 07 07 00 00 00 00 00 00 
    0x10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x40: 00 00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 
    0x50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    0x80: 20 0b 0b 61 30 2a 01 02 00 00 00 00 00 00 00 00 
    0x90: 01 23 1c 13 18 0f 97 27 25 97 00 06 08 0a 14 01 
    0xa0: 01 01 01 01 03 03 03 03 03 03 03 03 05 03 84 1d 
    0xb0: 02 02 02 00 84 1d 0f d4 1d 03 03 03 03 85 1d 02 
    0xc0: 86 1d 02 08 03 00 00 00 00 00 00 04 04 04 04 00 
    0xd0: 03 19 47 09 03 0d 04 00 00 07 08 03 07 07 05 38 
    0xe0: 44 b9 b9 00 00 32 32 01 23 10 04 03 16 00 fb 01 
    0xf0: 01 01 01 30 30 30 30 30 30 30 30 30 30 00 22 2c 
    =========================================================
    
    

    Related parts of schematics:

    On the schematic there is a pull-down resistor connected to VAC. This resistor is now removed and VAC is connected to VD_VBUS.

    Regards,

    Eugen

  • Hello,

    I solved it! The measured battery temperature was not within valid range. I changed values of resistors R811 and R810 and it works: CHRG_EXTCHRG_ENZ  changes to LOW if I activate external charger.  By the way, the internal charger of TWL6032 also works now!!! RTFM!!!

    Regards,

    Eugen

  • Glad to hear that, it worked for you. Just a suggestion VAC and VBUS are 2 seprate sense lines. I am not sure what the intent is but  they shoudl be seprate sense lines for different inputs.