With the reservation that this may be normal behaviour and that I may have misunderstood the documentation, what I am experiencing is the following:
As you probably already know the BQ25120A is a highly integrated charger. This is my schematic and I can provide PCB layout if you need it:
My intention was that while the device is powered from external power (via USB header P8), my circuit is powered from the integrated buck converter through header P5. I thought that this should be true whether the battery is connected or not connected i.e the buck converter will always be ON when external power is applied.
WITHOUT A BATTERY CONNECTED
What I am experiencing is that when external power is applied, without a load connected, the buck converter in 3 of the boards I made turns on and provides 1.8V and on the 4th board it provides ~700mV. The external power applied ranges from 4.9 to 5.1V. I tried both USB and stabilized power supply.
In this situation, if I connect the load (about 3mA @1.8V) the output at VSYS drops to about 300mV which implies that the buck converter has stopped. In all the boards if the load is connected before providing the external power, the output at VSYS after application of power is ~300mV.
WITH A BATTERY CONNECTED
When a battery is connected the output of the buck converter defaults to normal 1.8V as expected. Upon application of load the buck converter maintains normal regulation and the output remains at 1.8V. Upon application of external power nothing changes but the battery does not appear to charging.
Essentially what I would require is that I power the load from external power and charge the battery and as soon as external power is removed the charger switches to the battery.
ISET is connected to an 21K5 resistor which should provide about 9.8mA of charge current.
Looking in more detail in the datasheet, the battery must be connected before applying external power. I am still looking for a better description of what happens if the battery is not connected and one applies external power.
I am expecting the device to power up in default mode and it actually does (provided the battery is connected). I am going to configure it via the I2C port afterwards.
I am not using the MR pin. I left it floating since it is pulled internally to VBAT.
The problem that remains is that I don’t see 10mA flowing towards the battery to charge it although /CD is low and VIN>VUVLO.
Par9.3.21 states that: “For optimal operation and maximum power delivery allow VPMID>VSYS+0.7V”
My intention is to operate VSYS at 3V. I also intend to allow the battery to drop to about 3.3 to 3.4V. This means that VPMID=3.3V to 3.4V. Do you think this will be a problem?