| CPC H02J 7/00304 (2020.01) [H02J 7/00041 (2020.01); H02J 7/0013 (2013.01); H02J 7/0068 (2013.01)] | 12 Claims |

|
1. A charging and discharging circuit, which is connected to a battery module and a system-side circuit, the charging and discharging circuit comprising:
a charging and discharging control circuit having a first input terminal, a second input terminal, an identification terminal, a battery terminal and an output terminal, wherein the battery terminal is connected to the battery module, and the output terminal is connected to the system-side circuit;
a first connection port;
a first switch circuit connected between the first connection port and the first input terminal to form a first charging path;
a second switch circuit connected between the first connection port and the output terminal to form a first discharging path;
a second connection port;
a third switch circuit connected between the second connection port and the second input terminal to form a second charging path;
a fourth switch circuit connected between the second connection port and the output terminal to form a second discharging path; and
an identification logic circuit connected to the first connection port and configured to determine whether a mode of the first connection port is a first charging mode or a first discharging mode according to a first channel configuration signal of the first connection port in response to the first port being connected to a first signal source,
wherein the charging and discharging control circuit is configured to control the first switch circuit to be switched in the first charging mode to enable the first charging path, or to control the second switch circuit to be switched in the first discharging mode to enable the first discharging path; wherein the charging and discharging control circuit is configured to receive a second channel configuration signal from the second connection port through the identification terminal in response to the second connection port being connected to a second signal source, so as to determine whether a mode of the second connection port is in a second charging mode or a second discharging mode, and the charging and discharging control circuit is configured to control the third switch circuit to be switched in the second charging mode to enable the second charging path, or to control the fourth switch circuit to be switched in the second discharging mode to enable the second discharging path,
wherein, when the first connection port is in the first charging mode and the second connection port is in the second charging mode, the charging and discharging control circuit enables one of the first charging path and the second charging path and disable another one of the first charging path and the second charging path,
wherein, when one of the first charging path and the first discharging path is enable, another one of the first charging path and the first discharging path is disable, and when one of the second charging path and the second discharging path is enable, another one of the second charging path and the second discharging path is disable,
wherein the first charging path, the second charging path, the first discharging path and the second discharging path are independent with one another.
|