Hi we use the BQ24160a on our board. We expect the part to detect if either a USB charger (DCP, max current 1.5A, D+/D- shortened) or a standard downstream port is connected. In the latter case we expect that the part will limit current to 100mA while in the first case 1.5A should be possible.
We noticed that detection does not work reproduceably. The D+/D- lines are also connected to our local microcontroller that implements a USB device. I also tried setting bit 0 in register 3 to force a detection. But I always get IUSB_LIMIT[2:9]="000" after that. So the 1.5A charger is not detected.
Any idea?
Well I setup a couple of registers before trying to start the detection (battery voltage, charge current, ..)
When sould I expect the bq24160a to do it's detection? Later our device should charge with 1.5A when detecting a CDP and 500mA when running on a SDP (100mA via detection and then updated current by application).
So should I trigger detection on any event on the USB power inputs? But first let detection work.
Matthias