Current detection circuit, current detection method and electronic equipment
By designing a current sensing circuit in electronic equipment and using a current sensing resistor and voltage divider circuit to multiplex the platform power meter, the problem of waste of power meter resources in electronic equipment is solved, and the current detection with low power consumption is achieved, with an error of 3.3% Within, the increase in additional chips is avoided.
Patent Information
- Application Number
- CN202411520441.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2024-12-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In electronic devices, the power meter built in the platform chip is idle, resulting in waste of resources.
Design a current detection circuit, including a current sensing resistor, a first voltage divider circuit and a second voltage divider circuit, and sample the voltage difference in the current path through multiplexing platform battery meter, and calculate the detection current, avoiding the increase of additional chips. .
It realizes low-power current detection, avoids the waste of platform battery meter resources, and does not add additional chip burden. The error within 3.3% can achieve accurate current detection.
Smart Images

Figure CN119199247A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of current detection, and in particular to a current detection circuit, a current detection method and an electronic device. Background Art
[0002] As consumers' requirements for the battery life of electronic devices increase, battery equipment technology continues to develop, and high-energy density batteries (for example, silicon-carbon negative electrode batteries) are increasingly being used in electronic devices. Correspondingly, the fuel gauge used to detect various battery parameters in electronic devices also needs to have higher performance. At present, electronic devices usually use the built-in fuel gauge in the battery, or use an independent third-party fuel gauge to calculate the battery charge. However, since the platform chip of the electronic device already has a platform fuel gauge built in, using the built-in fuel gauge in the battery or using an independent third-party fuel gauge to calculate the battery charge will cause the platform fuel gauge to be idle, resulting in a waste of platform fuel gauge resources. Summary of the invention
[0003] The embodiments of the present application provide a current detection circuit, a current detection method and an electronic device, which realize a low-power current detection solution and avoid the waste of resources of a platform power meter.
[0004] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0005] In the first aspect, a current detection circuit is provided, and the current detection circuit is applied to an electronic device, and the electronic device includes a platform chip. The current detection circuit includes a current detection resistor, a first voltage divider circuit, a second voltage divider circuit, and a platform fuel gauge in the platform chip. Among them, the current detection resistor is used to be arranged in series in any current path of the electronic device. The sampling end of the first voltage divider circuit is coupled to the first end of the current detection resistor, and the sampling end of the second voltage divider circuit is coupled to the second end of the current detection resistor. The first end of the platform fuel gauge is coupled to the voltage divider end of the first voltage divider circuit, and is used to obtain a first voltage at the voltage divider end of the first voltage divider circuit, and the first voltage is related to the first voltage divider ratio of the first voltage divider circuit and the voltage of the sampling end of the first voltage divider circuit. The second end of the platform fuel gauge is coupled to the voltage divider end of the second voltage divider circuit, and is used to obtain a second voltage at the voltage divider end of the second voltage divider circuit, and the second voltage is related to the second voltage divider ratio of the second voltage divider circuit and the voltage of the sampling end of the second voltage divider circuit. The platform fuel gauge is configured to determine a detection current according to the first voltage, the second voltage, the first voltage division ratio, the second voltage division ratio and the resistance value of the current detection resistor, where the detection current is the current flowing through the current detection resistor.
[0006] In an implementation manner of the present application, a first voltage divider circuit and a second voltage divider circuit are provided to respectively sample a first voltage and a second voltage at both ends of a current detection resistor. The first voltage divider circuit and the second voltage divider circuit are both coupled to a platform fuel meter, and the platform fuel meter obtains the first voltage and the second voltage, and determines the current flowing through the current detection resistor according to a first voltage divider ratio of the first voltage divider circuit, a second voltage divider ratio of the second voltage divider circuit, and the resistance value of the current detection resistor. The current detection resistor can be set in any current path of the electronic device. In an implementation manner of the present application, a low-power current detection solution is implemented by multiplexing the platform fuel meter, thereby avoiding waste of resources of the platform fuel meter and not adding additional chips.
[0007] In some possible implementations, the first voltage divider circuit includes a first resistor and a second resistor. The first end of the first resistor is coupled to the sampling end of the first voltage divider circuit, the second end of the first resistor is coupled to the first end of the second resistor to the voltage divider end of the first voltage divider circuit, and the second end of the second resistor is grounded. In other words, the first voltage divider circuit is realized by connecting the first resistor and the second resistor in series to divide the voltage; the voltage divider end can divide the voltage of the sampling end according to the first voltage divider ratio to obtain a first voltage, and apply the first voltage to the first end of the platform fuel gauge.
[0008] In some possible implementations, the first voltage division ratio and the resistance value of the first resistor and the resistance value of the second resistor satisfy the relationship: Wherein, k1 is the first voltage division ratio, R1 is the resistance value of the first resistor, and R2 is the resistance value of the second resistor.
[0009] In some possible implementations, the second voltage divider circuit includes a third resistor and a fourth resistor. The first end of the third resistor is coupled to the sampling end of the second voltage divider circuit, the second end of the third resistor and the first end of the fourth resistor are coupled to the voltage divider end of the second voltage divider circuit, and the second end of the fourth resistor is grounded. In other words, the second voltage divider circuit is realized by connecting the third resistor and the fourth resistor in series to divide the voltage, wherein the voltage divider end can divide the voltage of the sampling end according to the second voltage divider ratio to obtain a second voltage, and apply the second voltage to the second end of the platform fuel gauge.
[0010] In some possible implementations, the second voltage division ratio and the resistance value of the third resistor and the resistance value of the fourth resistor satisfy the relationship: Wherein, k2 is the second voltage division ratio, R3 is the resistance value of the third resistor, and R4 is the resistance value of the fourth resistor.
[0011] In some possible implementations, the resistance value of the first resistor is equal to the resistance value of the third resistor, and the resistance value of the second resistor is equal to the resistance value of the fourth resistor, so that the first voltage division ratio is equal to the second voltage division ratio, which facilitates the platform fuel gauge to determine the detection current.
[0012] In some possible implementations, the resistance value of the first resistor is greater than the resistance value of the second resistor, so as to meet the requirements of the platform fuel gauge on the value range of the first voltage and the second voltage.
[0013] In the second aspect, a current detection method is provided, which is applied to an electronic device, and the electronic device includes a platform chip. The current detection method includes: the first end of the platform fuel gauge in the platform chip obtains the first voltage of the voltage dividing end of the first voltage dividing circuit; the first voltage is related to the first voltage dividing ratio of the first voltage dividing circuit and the voltage of the sampling end of the first voltage dividing circuit; wherein the sampling end of the first voltage dividing circuit is coupled to the first end of the current sensing resistor, and the current sensing resistor is used to be arranged in series in any current path of the electronic device. The second end of the platform fuel gauge obtains the second voltage of the voltage dividing end of the second voltage dividing circuit; the second voltage is related to the second voltage dividing ratio of the second voltage dividing circuit and the voltage of the sampling end of the second voltage dividing circuit; wherein the sampling end of the second voltage dividing circuit is coupled to the second end of the current sensing resistor. The platform fuel gauge determines the detection current according to the first voltage, the second voltage, the first voltage dividing ratio, the second voltage dividing ratio and the resistance value of the current sensing resistor, and the detection current is the current flowing through the current sensing resistor.
[0014] In a third aspect, an electronic device is provided, comprising a printed circuit board and the current detection circuit of any one of the first aspects, wherein the current detection circuit is arranged on the printed circuit board.
[0015] It should be understood that the technical effects of the second and third aspects can refer to the technical effects of the first aspect and any of its embodiments, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0017] Figure 2 A schematic diagram of the structure of a current detection circuit provided in an embodiment of the present application;
[0018] Figure 3 A schematic diagram of a flow chart of a current detection method provided in an embodiment of the present application.
[0019] 1. The electronic device of the present invention is shown in FIG. 1 . The electronic device of the present invention is shown in FIG. 1 . The platform chip of the present invention is shown in FIG. 1 . The platform fuel gauge of the present invention is shown in FIG. 1 . The internal memory of the present invention is shown in FIG. 1 . The power supply system of the present invention is shown in FIG. 1 . The mobile communication module of the present invention is shown in FIG. 1 . The first antenna of the present invention is shown in FIG. 1 . The wireless communication module of the present invention is shown in FIG. 1 . The second antenna of the present invention is shown in FIG. 1 . The audio module of the present invention is shown in FIG. 1 . The sensor module of the present invention is shown in FIG. 1 . The external memory interface of the present invention is shown in FIG. 1 . The USB interface of the present invention is shown in FIG. 1 . The SIM card interface of the present invention is shown in FIG. 1 . The button of the present invention is shown in FIG. 1 . The motor of the present invention is shown in FIG. 1 . The indicator of the present invention is shown in FIG. 1 . The camera of the present invention is shown in FIG. 1 . The display screen of the present invention is shown in FIG. 1 . The battery of the present invention is shown in FIG. 1 . The current detection circuit of the present invention is shown in FIG. 1 . The current detection resistor of the present invention is shown in FIG. 1 . The first voltage divider circuit of the present invention is shown in FIG. 1 . The first resistor of the present invention is shown in FIG. 1 . DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0021] The terms "first", "second", etc. involved in the embodiments of the present application are only used to distinguish features of the same type and cannot be understood as indicating relative importance, quantity, order, etc.
[0022] The terms "exemplary" or "for example" and the like in the embodiments of the present application are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the terms "exemplary" or "for example" is intended to present the related concepts in a specific way.
[0023] The terms "coupling" and "connection" involved in the embodiments of the present application should be understood in a broad sense. For example, they may refer to a direct physical connection, or an indirect connection achieved through electronic devices, such as a connection achieved through resistors, inductors, capacitors or other electronic devices.
[0024] The embodiment of the present application provides an electronic device, which can be mobile or fixed. The electronic device can be deployed on land (for example, indoors or outdoors, handheld or vehicle-mounted, etc.), on the water (for example, ships, etc.), or in the air (for example, airplanes, balloons, and satellites, etc.). The electronic device can be called user equipment (UE), access terminal, terminal unit, subscriber unit, terminal station, mobile station (MS), mobile station, terminal agent or terminal device, etc. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a smart bracelet, a smart screen, a smart watch, a headset, a smart speaker, a virtual reality (VR) device, an augmented reality (AR) device, a terminal in industrial control, a terminal in self driving, a terminal in remote medical, a terminal in smart grid, a terminal in transportation safety, a terminal in smart city, a terminal in smart home, etc. The embodiments of the present application do not limit the specific type and structure of the electronic device. A possible structure of the electronic device is described below.
[0025] Taking the electronic device 100 as a mobile phone as an example, Figure 1 1 shows a possible structure of the electronic device 100. The electronic device 100 may include a platform chip 110, an internal memory 120, a power supply system 130, a mobile communication module 140, a first antenna 141, a wireless communication module 150, a second antenna 151, an audio module 160, a sensor module 170, an external memory interface 181, a universal serial bus (USB) interface (hereinafter referred to as USB interface 182), a subscriber identification module (SIM) card interface (hereinafter referred to as SIM card interface 183), a button 191, a motor 192, an indicator 193, a camera 194, a display screen 195, a battery 200, and the like.
[0026] Among them, the sensor module 170 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0027] It is to be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0028] The platform chip 110 may include one or more processing units, for example, the processing unit may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), an application processor (AP), a graphics processing unit (GPU), an image signal processor (ISP), etc.
[0029] The external memory interface 181 can be used to connect an external memory card, such as a micro SanDisk (Micro SD) card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the platform chip 110 through the external memory interface 181 to implement the data storage function. For example, files such as music and videos are saved in the external memory card. The internal memory 120 can be used to store computer executable program codes, which include computer instructions. The platform chip 110 executes various functional applications and data processing of the electronic device 100 by running the computer instructions stored in the internal memory 120.
[0030] The wireless communication function of the electronic device 100 can be implemented by the first antenna 141, the second antenna 151, the mobile communication module 140, the wireless communication module 150, the modulation and demodulation processor, and the baseband processor. The first antenna 141 and the second antenna 151 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna.
[0031] The mobile communication module 140 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The wireless communication module 150 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), infrared technology (IR), and near field communication (NFC), etc., applied to the electronic device 100.
[0032] The electronic device 100 can implement audio functions through an audio module 160, a speaker, a receiver, a microphone, a headphone interface, and an application processor. The audio module 160 is used to convert digital audio information into an analog audio signal output, and is also used to convert analog audio input into a digital audio signal. The speaker, also known as a "speaker", is used to convert an audio electrical signal into a sound signal. The receiver, also known as a "earpiece", is used to convert an audio electrical signal into a sound signal. The microphone, also known as a "microphone" or "microphone", is used to convert a sound signal into an electrical signal. The electronic device 100 can be provided with at least one microphone. The headphone interface is used to connect a wired headset.
[0033] The sensor module 170 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, an angle sensor, and the like.
[0034] The button 191 includes a power button, a volume button, etc. The button 191 can be a mechanical button 191 or a touch button 191. The motor 192 can generate a vibration prompt. The motor 192 can be used for incoming call vibration prompts or for touch vibration feedback. The indicator 193 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 183 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 183 or pulled out from the SIM card interface 183 to achieve contact and separation with the electronic device 100.
[0035] The electronic device 100 can realize the shooting function through the ISP, the camera 194, the video codec, the GPU, the display screen 195 and the application processor. The ISP is used to process the data fed back by the camera 194. The electronic device 100 can realize the display function through the GPU, the display screen 195 and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 195 and the application processor. The display screen 195 is used to display images, videos, etc. The display screen 195 includes a display panel.
[0036] The battery 200 is coupled to the platform chip 110 through the power supply system 130. When the power supply system 130 is coupled to the power supply through the power adapter, the power supply system 130 can charge the battery 200 and supply power to the load (for example, the platform chip 110, the internal memory 120, the external memory interface 181, the display screen 195, the camera 194, and the wireless communication module 150, etc.). The power adapter can be wireless, for example, the power supply system 130 can be coupled to the power supply through the wireless charging coil of the electronic device 100. The power adapter can also be wired, for example, the power supply system 130 can be coupled to the power supply through the USB interface 182 and the USB data cable. When the power supply system 130 is disconnected from the power supply, the battery 200 can supply power to the load through the power supply system 130.
[0037] As consumers' requirements for the battery life of electronic devices 100 increase, battery 200 technology continues to develop, and high-energy-density batteries 200 are increasingly being used in electronic devices 100. Accordingly, the power meter used in the electronic device 100 to detect various parameters of the battery 200 also needs to have higher performance. Therefore, the electronic device 100 usually uses the power meter built into the battery 200, or uses an independent third-party power meter to calculate the power of the battery 200, which will cause the platform power meter 111 built into the platform chip 110 to be idle, resulting in a waste of resources.
[0038] like Figure 2 As shown, an embodiment of the present application provides a current detection circuit 300, which is applied to an electronic device 100, and the electronic device 100 includes a platform chip 110. The current detection circuit 300 includes a current detection resistor 310, a first voltage divider circuit 320, a second voltage divider circuit 330, and a platform electricity meter 111 in the platform chip 110. Among them, the current detection resistor 310 is used to be set in series in any current path of the electronic device 100. When the current passes through the current detection resistor 310, a voltage difference will appear across the current detection resistor 310. In some embodiments, the current detection resistor 310 is a resistor with a resistance value in the milliohm (mΩ) level, which helps to reduce the loss of electric energy. Exemplarily, the resistance value of the current detection resistor 310 is 10mΩ.
[0039] The sampling terminal P1 of the first voltage divider circuit 320 is coupled to the first end of the current detection resistor 310, and is used to sample the voltage of the first end of the current detection resistor 310. In some embodiments, the first voltage divider circuit 320 includes a first resistor 321 and a second resistor 322. The first end of the first resistor 321 is coupled to the sampling terminal P1 of the first voltage divider circuit 320, the second end of the first resistor 321 and the first end of the second resistor 322 are coupled to the voltage divider terminal P2 of the first voltage divider circuit 320, and the second end of the second resistor 322 is grounded.
[0040] The first voltage divider circuit 320 has a first voltage divider ratio k1. , R1 is the resistance value of the first resistor 321 , and R2 is the resistance value of the second resistor 322 .
[0041] The sampling terminal P3 of the second voltage divider circuit 330 is coupled to the second end of the current detection resistor 310 for sampling the voltage at the second end of the current detection resistor 310. In some embodiments, the second voltage divider circuit 330 includes a third resistor 331 and a fourth resistor 332. The first end of the third resistor 331 is coupled to the sampling terminal P3 of the second voltage divider circuit 330, the second end of the third resistor 331 is coupled to the first end of the fourth resistor 332, and the second end of the fourth resistor 332 is grounded. The coupling node between the third resistor 331 and the fourth resistor is coupled to the voltage divider terminal P4 of the second voltage divider circuit 330.
[0042] The second voltage dividing circuit 330 has a second voltage dividing ratio k2. , R3 is the resistance value of the third resistor 331 , and R4 is the resistance value of the fourth resistor 332 .
[0043] In some embodiments, the resistance value of the first resistor 321 is equal to the resistance value of the third resistor 331, and the resistance value of the second resistor 322 is equal to the resistance value of the fourth resistor 332. That is, the first voltage division ratio k1 is equal to the second voltage division ratio k2. In some embodiments, in order to meet the requirements of the first voltage and the second voltage to meet the platform fuel gauge 111, the resistance value of the first resistor 321 is greater than the resistance value of the second resistor 322. Exemplarily, R1=R3=100kΩ, R2=R4=3.3kΩ.
[0044] The first terminal of the platform fuel gauge 111 is coupled to the voltage dividing terminal P2 of the first voltage dividing circuit 320, and is used to obtain a first voltage U1 at the voltage dividing terminal P2 of the first voltage dividing circuit 320, where the first voltage U1 is equal to the first voltage dividing ratio k1 of the first voltage dividing circuit 320 multiplied by the voltage of the sampling terminal P1 of the first voltage dividing circuit 320. The second terminal of the platform fuel gauge 111 is coupled to the voltage dividing terminal P4 of the second voltage dividing circuit 330, and is used to obtain a second voltage U2 at the voltage dividing terminal P4 of the second voltage dividing circuit 330, where the second voltage U2 is equal to the second voltage dividing ratio k2 of the second voltage dividing circuit 330 multiplied by the voltage of the sampling terminal P3 of the second voltage dividing circuit 330. The platform fuel gauge 111 is configured to determine a detection current I according to the first voltage U1, the second voltage U2, the first voltage dividing ratio k1, the second voltage dividing ratio k2, and the resistance value R0 of the current detection resistor 310, where the detection current is the current flowing through the current detection resistor 310.
[0045] The detection current I, the first voltage U1, the second voltage U2, the first voltage division ratio k1, the second voltage division ratio k2 (exemplarily, k2=k1), and the resistance value R0 of the current detection resistor 310 satisfy the relationship: .
[0046] As shown in Table 1 below, if the actual current flowing through the current sensing resistor 310 is 1A, the voltage at the first end of the current sensing resistor 310 is 4.6V, and the resistance value R0 of the current sensing resistor 310 is 10mΩ, then a voltage drop of 1A×10mΩ=0.01V will be generated on the current sensing resistor 310, and the voltage at the second end of the current sensing resistor 310 is 4.59V. The first resistor 321, the second resistor 322, the third resistor 331, and the fourth resistor 332 are all resistors with a precision of 1%, R1=R3=100kΩ, R2=R4=3.3kΩ. That is, 99kΩ≤R1=R3≤101kΩ, 3.267kΩ≤R2=R4≤3.333kΩ.
[0047] Table 1
[0048]
[0049] The voltage at the first end of the current detection resistor 310 is sampled by the first voltage divider circuit 320 to obtain the first voltage U1, and the voltage at the second end of the current detection resistor 310 is sampled by the second voltage divider circuit 330 to obtain the second voltage U2, and the voltage difference between the first voltage U1 and the second voltage U2 is between 0.000313V and 0.000326V. As shown in Table 2 below, in the case of an error of 4μV, the platform fuel gauge 111 can obtain a sampled voltage difference between 0.000309V and 0.000330V based on the first voltage U1 and the second voltage U2.
[0050] Table 2
[0051]
[0052] In some examples, the platform fuel gauge 111 calculates the detection current according to the sampled voltage difference, the first voltage division ratio (the first voltage division ratio is equal to the second voltage division ratio) and the resistance value of the current detection resistor 310. For example:
[0053] .
[0054] In other examples, the platform fuel gauge 111 is provided with parameters of a configuration resistor, and the platform fuel gauge 111 calculates the detection current according to the sampled voltage difference, the first voltage division ratio (the first voltage division ratio is equal to the second voltage division ratio), the configuration resistor (for example, the configuration resistor is 5 mΩ), and the resistance value of the current detection resistor 310. For example:
[0055] .
[0056] It can be seen that the error between the detected current and the actual current in the implementation mode of the present application is within 3.3%, which can realize general detection of the current. The implementation mode of the present application implements a low-power current detection solution by reusing the platform power meter 111, thereby avoiding the waste of resources of the platform power meter 111 and not adding additional chips.
[0057] The present application also provides a current detection method, which is applied to an electronic device, wherein the electronic device includes a platform chip. Figure 3 As shown, the current detection method includes S110-S130, as follows:
[0058] S110 . A first terminal of a platform electricity meter in a platform chip obtains a first voltage at a voltage dividing terminal of a first voltage dividing circuit.
[0059] like Figure 2 As shown, in some embodiments, the sampling terminal P1 of the first voltage divider circuit 320 is coupled to the first end of the current detection resistor 310, and the current detection resistor 310 is used to be arranged in series in any current path of the electronic device 100. The voltage divider terminal P2 of the first voltage divider circuit 320 can apply a first voltage U1 to the first end of the platform fuel gauge 111; wherein the first voltage U1 is related to the first voltage divider ratio of the first voltage divider circuit 320 and the voltage of the first end of the current detection resistor 310.
[0060] S120. The second terminal of the platform electricity meter obtains a second voltage at a voltage dividing terminal of a second voltage dividing circuit.
[0061] Please continue to refer to Figure 2, the sampling terminal P3 of the second voltage divider circuit 330 is coupled to the second end of the current detection resistor 310. The voltage divider terminal P4 of the second voltage divider circuit 330 can apply a second voltage U2 to the second end of the platform fuel gauge 111; wherein the second voltage U2 is related to the second voltage divider ratio of the second voltage divider circuit 330 and the voltage at the second end of the current detection resistor 310.
[0062] S130: The platform electricity meter determines a detection current according to the first voltage, the second voltage, the first voltage division ratio, the second voltage division ratio, and the resistance value of the current detection resistor.
[0063] The detection current is the current flowing through the current detection resistor 310. In some embodiments, the detection current I and the first voltage U1, the second voltage U2, the first voltage division ratio k1, the second voltage division ratio k2 and the resistance value R0 of the current detection resistor 310 satisfy the relationship: The platform fuel gauge 111 can determine the detection current through the above relationship.
[0064] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0065] The present application also provides an electronic device 100. The printed circuit board of the electronic device 100 is provided with Figure 2 The current detection circuit 300 shown. The first voltage divider circuit 320 and the second voltage divider circuit 330 in the current detection circuit 300 respectively sample the first voltage and the second voltage at both ends of the current detection resistor 310. The first voltage divider circuit 320 and the second voltage divider circuit 330 are both coupled to the platform fuel meter 111. The platform fuel meter 111 obtains the first voltage and the second voltage, and determines the current flowing through the current detection resistor 310 according to the first voltage divider ratio of the first voltage divider circuit 320, the second voltage divider ratio of the second voltage divider circuit 330 and the resistance value of the current detection resistor 310. Among them, the current detection resistor 310 can be set in any current path of the electronic device 100. The current detection circuit 300 of the embodiment of the present application implements a low-power current detection solution by multiplexing the platform fuel meter 111, thereby avoiding the waste of resources of the platform fuel meter 111 and not adding additional chips.
[0066] In the several embodiments provided in the present application, it should be understood that the disclosed current detection circuit, current detection method and electronic device can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0067] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one device or distributed on multiple devices. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0068] In addition, each functional module in each embodiment of the present application may be integrated into one device, or each module may exist physically separately, or two or more modules may be integrated into one device.
[0069] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may include one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0070] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A current detection circuit, characterized in that: The current detection circuit is applied in an electronic device, the electronic device includes a platform chip, the current detection circuit includes a current detection resistor, a first voltage divider circuit, a second voltage divider circuit and a platform electricity meter in the platform chip; wherein, The current detection resistor is used to be arranged in series in any current path of the electronic device; The sampling end of the first voltage-dividing circuit is coupled to the first end of the current-detecting resistor, and the sampling end of the second voltage-dividing circuit is coupled to the second end of the current-detecting resistor; The first end of the platform fuel gauge is coupled to the voltage dividing end of the first voltage dividing circuit, and is used to obtain a first voltage at the voltage dividing end of the first voltage dividing circuit, wherein the first voltage is related to a first voltage dividing ratio of the first voltage dividing circuit and a voltage at a sampling end of the first voltage dividing circuit; The second end of the platform fuel gauge is coupled to the voltage dividing end of the second voltage dividing circuit, and is used to obtain a second voltage at the voltage dividing end of the second voltage dividing circuit, wherein the second voltage is related to a second voltage dividing ratio of the second voltage dividing circuit and a voltage at a sampling end of the second voltage dividing circuit; The platform fuel gauge is configured to determine a detection current according to the first voltage, the second voltage, the first voltage division ratio, the second voltage division ratio, and a resistance value of the current detection resistor, wherein the detection current is a current flowing through the current detection resistor.
2. The current detection circuit according to claim 1, characterized in that: The first voltage divider circuit includes a first resistor and a second resistor; wherein, The first end of the first resistor is coupled to the sampling end of the first voltage divider circuit, the second end of the first resistor and the first end of the second resistor are coupled to the voltage divider end of the first voltage divider circuit, and the second end of the second resistor is grounded.
3. The current detection circuit according to claim 2, characterized in that: The first voltage division ratio, the resistance value of the first resistor, and the resistance value of the second resistor satisfy: ; Wherein, k1 is the first voltage division ratio, R1 is the resistance value of the first resistor, and R2 is the resistance value of the second resistor.
4. The current detection circuit according to claim 2, characterized in that: The second voltage divider circuit includes a third resistor and a fourth resistor; wherein, The first end of the third resistor is coupled to the sampling end of the second voltage divider circuit, the second end of the third resistor and the first end of the fourth resistor are coupled to the voltage divider end of the second voltage divider circuit, and the second end of the fourth resistor is grounded.
5. The current detection circuit according to claim 4, characterized in that: The second voltage division ratio, the resistance value of the third resistor, and the resistance value of the fourth resistor satisfy: ; Wherein, k2 is the second voltage division ratio, R3 is the resistance value of the third resistor, and R4 is the resistance value of the fourth resistor.
6. The current detection circuit according to claim 4, characterized in that: The resistance value of the first resistor is equal to the resistance value of the third resistor, and the resistance value of the second resistor is equal to the resistance value of the fourth resistor.
7. The current detection circuit according to claim 6, characterized in that: The resistance value of the first resistor is greater than the resistance value of the second resistor.
8. A current detection method, characterized in that: The current detection method is applied in an electronic device, the electronic device includes a platform chip, and the current detection method includes: The first end of the platform fuel gauge in the platform chip obtains a first voltage at a voltage dividing end of a first voltage dividing circuit; the first voltage is related to a first voltage dividing ratio of the first voltage dividing circuit and a voltage at a sampling end of the first voltage dividing circuit; wherein the sampling end of the first voltage dividing circuit is coupled to a first end of a current sensing resistor, and the current sensing resistor is used to be arranged in series in any current path of the electronic device; The second end of the platform fuel gauge obtains a second voltage at a voltage dividing end of a second voltage dividing circuit; the second voltage is related to a second voltage dividing ratio of the second voltage dividing circuit and a voltage at a sampling end of the second voltage dividing circuit; wherein the sampling end of the second voltage dividing circuit is coupled to a second end of the current sensing resistor; The platform fuel gauge determines a detection current according to the first voltage, the second voltage, the first voltage division ratio, the second voltage division ratio, and the resistance value of the current detection resistor, where the detection current is a current flowing through the current detection resistor.
9. An electronic device, characterized in that: It comprises a printed circuit board, and the current detection circuit according to any one of claims 1 to 7; wherein the current detection circuit is arranged on the printed circuit board.
Citation Information
Patent Citations
Electric quantity detection circuit, electric quantity detection method and electronic equipment
CN112557915A
Three-phase electric energy meter and electric energy detection circuit
CN116660622A
Current detection circuit and current detection equipment
CN211718374U