Skip to content

isBattConnected() function name is misleading #32

Open
@cedricormond00

Description

@cedricormond00

I may have noticed a slight inconsistency with the function isBattConnected(). I agree that if the DPM is active, this implies the battery is connected, but from my understanding, we may have a connected battery, but no DPM active. This mean this function would say there is no battery connected, whereas there is in reality…

DPM description (https://www.ti.com/lit/ds/symlink/bq24195l.pdf, 8.3.2.2):

To meet maximum current limit in USB spec and avoid over loading the adapter, the bq24195L, bq24195 features Dynamic Power Management (DPM), which continuously monitors the input current and input voltage.

When input source is over-loaded, either the current exceeds the input current limit (REG00[2:0]) or the voltage falls below the input voltage limit (REG00[6:3]). The device then reduces the charge current until the input current falls below the input current limit and the input voltage rises above the input voltage limit.

When the charge current is reduced to zero, but the input source is still overloaded, the system voltage starts to drop. Once the system voltage falls below the battery voltage, the device automatically enters the supplement mode where the BATFET turns on and battery starts discharging so that the system is supported from both the input source and battery.

SYSTEM_STATUS_REGISTER description (refer to https://www.ti.com/lit/ds/symlink/bq24195l.pdf, 8.5.1.9)


Also, if the function is misnamed, how can we know if the battery is connected, using the BQ24195?


Also, could you please clarify the difference between "01 – USB host, 10 – Adapter port, 11 – OTG”, in the register 08, bit 6 and 7?

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions