Selection circuit, chip and electronic equipment

文档序号:571670 发布日期:2021-05-18 浏览:21次 中文

阅读说明:本技术 选择电路、芯片与电子设备 (Selection circuit, chip and electronic equipment ) 是由 熊谦理 于 2020-12-30 设计创作,主要内容包括:本发明提供了一种选择电路、芯片与电子设备,选择电路,包括:脉冲计数器与选择输出模块;所述脉冲计数器的第一端用于接入控制信号,所述脉冲计数器的第二端连接所述选择输出模块的输入端,所述选择输出模块的输出端连接处理模块;所述脉冲计数器用于对所述控制信号的脉冲进行计数,得到计数信息,并将所述计数信息反馈至所述选择输出模块;所述选择输出模块用于根据所述计数信息,确定并向所述处理模块输出对应的目标通道选择信号,其中,不同的通道选择信号表征了可供选择的多个储能单元中不同位置的储能单元。(The invention provides a selection circuit, a chip and an electronic device, wherein the selection circuit comprises: a pulse counter and a selection output module; the first end of the pulse counter is used for accessing a control signal, the second end of the pulse counter is connected with the input end of the selection output module, and the output end of the selection output module is connected with the processing module; the pulse counter is used for counting the pulses of the control signals to obtain counting information and feeding the counting information back to the selection output module; the selection output module is used for determining and outputting corresponding target channel selection signals to the processing module according to the counting information, wherein different channel selection signals represent the energy storage units at different positions in the plurality of energy storage units which can be selected.)

1. A selection circuit, comprising: a pulse counter and a selection output module; the first end of the pulse counter is used for accessing a control signal, the second end of the pulse counter is connected with the input end of the selection output module, and the output end of the selection output module is connected with the processing module;

the pulse counter is used for counting the pulses of the control signals to obtain counting information and feeding the counting information back to the selection output module;

the selection output module is used for determining and outputting corresponding target channel selection signals to the processing module according to the counting information, wherein different channel selection signals represent the energy storage units at different positions in the plurality of energy storage units which can be selected.

2. The selection circuit of claim 1, further comprising a signal monitor; the first end of the signal monitor is used for accessing the control signal, and the second end of the signal monitor is connected with the third end of the pulse counter;

the signal monitor is used for controlling the pulse counter to reset according to the control signal so that the pulse counter restarts counting.

3. The selection circuit of claim 2, wherein the signal monitor, when controlling the pulse counter to reset in accordance with the control signal, is specifically configured to:

if the rising edge and/or the falling edge of the control signal are not monitored within a preset first time period, the following steps are carried out: and controlling the pulse counter to reset.

4. The selection circuit of claim 2, wherein a third terminal of the signal monitor is connected to the processing module;

the signal monitor is further configured to send a target mode control signal to the processing module according to the control signal, where the target mode control signal is used to instruct the processing module to control the corresponding chip to be in a target mode.

5. The selection circuit of claim 4, wherein the target mode is a sleep mode and/or a low power mode;

when the signal monitor sends the target mode control signal to the processing module according to the control signal, the signal monitor is specifically configured to:

if the rising edge and/or the falling edge of the control signal are not monitored within a preset second time period, the following steps are carried out: and sending the target mode control signal to the processing module.

6. Selection circuit according to one of claims 1 to 5, characterized in that different values or value ranges of the counting information correspond to different channel selection signals.

7. Selection circuit according to any of claims 1 to 5, characterized in that the pulse counter is a cyclic pulse counter.

8. A chip comprising the selection circuit of any one of claims 1 to 7, and the processing module;

the processing module is used for:

determining a target energy storage unit in the plurality of energy storage units according to the target channel selection signal;

and executing preset target processing aiming at the target energy storage unit.

9. The chip of claim 8, wherein the processing module is further configured to: the target treatment comprises at least one of:

detecting electrical information of the target energy storage unit;

controlling the target energy storage unit to be charged;

prohibiting the target energy storage unit from being charged;

adjusting the charging parameters of the target energy storage unit;

controlling the target energy storage unit to participate in power supply;

forbidding the target energy storage unit to participate in power supply;

and adjusting the power supply parameters of the target energy storage unit.

10. An electronic device, characterized in that it comprises a chip according to claim 8 or 9.

Technical Field

The present invention relates to the field of signal processing, and in particular, to a selection circuit, a chip, and an electronic device.

Background

In some electronic devices, an energy storage unit (for example, an energy storage unit formed by an energy storage device such as a lithium battery, or a unit formed by other devices that can be used to store energy) and a chip for managing the energy storage unit may be configured. In some application scenarios of the chip, multiple managed energy storage units need to be selected (which may also be understood as selecting multiple channels), and further, processing may be performed on the corresponding energy storage units based on a result of the selection.

In the related art, when selecting a plurality of energy storage units, it is usually implemented by using a plurality of lines, for example, two lines and two energy storage units are taken as an example: if a signal is received from the first line, the selected energy storage unit is confirmed to be the corresponding first circuit unit; and if the signal is received from the second line, the selected energy storage unit is confirmed to be the corresponding second circuit unit.

It can be seen that the existing selection circuit is implemented based on multiple lines, and as the number of energy storage units (i.e. the number of channels) increases, the circuit structure becomes more complex, occupies a larger area, and is difficult to meet the requirements of miniaturization and light weight of chips and electronic devices.

Disclosure of Invention

The invention provides a selection circuit, a chip and electronic equipment, which aim to solve the problem that the requirements of miniaturization and light weight of the chip and the electronic equipment are difficult to meet.

According to a first aspect of the present invention, there is provided a selection circuit comprising: a pulse counter and a selection output module; the first end of the pulse counter is used for accessing a control signal, the second end of the pulse counter is connected with the input end of the selection output module, and the output end of the selection output module is connected with the processing module;

the pulse counter is used for counting the pulses of the control signals to obtain counting information and feeding the counting information back to the selection output module;

the selection output module is used for determining and outputting corresponding target channel selection signals to the processing module according to the counting information, wherein different channel selection signals represent the energy storage units at different positions in the plurality of energy storage units which can be selected.

Optionally, the selection circuit further includes a signal monitor; the first end of the signal monitor is used for accessing the control signal, and the second end of the signal monitor is connected with the third end of the pulse counter;

the signal monitor is used for controlling the pulse counter to reset according to the control signal so that the pulse counter restarts counting.

Optionally, when the signal monitor controls the pulse counter to reset according to the control signal, the signal monitor is specifically configured to:

if the rising edge and/or the falling edge of the control signal are not monitored within a preset first time period, the following steps are carried out: and controlling the pulse counter to reset.

Optionally, a third end of the signal monitor is connected to the processing module;

the signal monitor is further configured to send a target mode control signal to the processing module according to the control signal, where the target mode control signal is used to instruct the processing module to control the corresponding chip to be in a target mode.

Optionally, the target mode is a sleep mode and/or a low power consumption mode;

when the signal monitor sends the target mode control signal to the processing module according to the control signal, the signal monitor is specifically configured to:

if the rising edge and/or the falling edge of the control signal are not monitored within a preset second time period, the following steps are carried out: and sending the target mode control signal to the processing module.

Optionally, different values or value ranges of the counting information correspond to different channel selection signals.

Optionally, the pulse counter is a cyclic pulse counter.

According to a second aspect of the present invention, there is provided a chip comprising the selection circuit according to the first aspect and its alternatives, and the processing module;

the processing module is used for:

determining a target energy storage unit in the plurality of energy storage units according to the target channel selection signal;

and executing preset target processing aiming at the target energy storage unit.

Optionally, the target processing includes at least one of:

detecting electrical information of the target energy storage unit;

controlling the target energy storage unit to be charged;

prohibiting the target energy storage unit from being charged;

adjusting the charging parameters of the target energy storage unit;

controlling the target energy storage unit to participate in power supply;

forbidding the target energy storage unit to participate in power supply;

and adjusting the power supply parameters of the target energy storage unit.

According to a third aspect of the present invention, there is provided an electronic device comprising the chip according to the second aspect and its alternatives.

In the selection circuit, the chip and the electronic equipment provided by the invention, counting information obtained by counting by the pulse counter can be used as the basis for channel selection (namely circuit unit selection), and further, multichannel selection can be realized based on a single line.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

FIG. 1 is a first schematic diagram illustrating a selection circuit and an electronic device according to an embodiment of the present invention;

FIG. 2 is a second schematic diagram illustrating a structure of a selection circuit and an electronic device according to an embodiment of the invention;

FIG. 3 is a schematic diagram of the structure of a selection circuit according to an embodiment of the present invention;

FIG. 4 is a first schematic diagram of an electronic device according to an embodiment of the invention;

fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the invention.

Description of reference numerals:

1-a selection circuit;

11-a pulse counter;

12-a selection output module;

13-a signal monitor;

2-a processing module;

3-an energy storage unit;

4-execution module.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.

Referring to fig. 1 to 4, an embodiment of the invention provides a chip and also provides a selection circuit 1.

The chip may refer to any chip capable of managing the energy storage unit.

The management thereof may, for example, but not including the following: the method comprises the following steps of carrying out any treatment of managing external power supply of an energy storage device in an energy storage unit, carrying out any treatment of managing charging of an energy storage device, and carrying out any treatment of collecting information (including electrical information such as current and voltage, and other information such as temperature) of the energy storage device.

The single energy storage unit may refer to a single energy storage device, or may refer to a combination of multiple energy storage devices (for example, a circuit structure formed by connecting multiple energy storage devices in series and/or in parallel), and further, the energy storage units may be connected in series, or connected in parallel by partially connecting the energy storage units in series. In addition, for at least some of the energy storage units, different energy storage units may also be operated independently without being connected together.

In a further example, the energy storage device may be a lithium battery, and in an example, the plurality of energy storage units may refer to a plurality of lithium batteries connected in series, that is, a lithium battery string, and correspondingly, the selected different channels may also be understood as one or more lithium batteries at different positions in the lithium battery string. But is not limited to this example either.

Furthermore, in any situation (i.e., in any energy storage device, in any combination of energy storage devices), as long as a plurality of energy storage units are included in the electronic device and are managed by the same chip, the scope of the embodiments of the present invention is not limited.

Referring to fig. 1 to 4, in an embodiment of the present invention, the selection circuit 1 may include: a pulse counter 11 and a selection output module 12.

The first end of the pulse counter 11 is used for accessing a control signal, the second end of the pulse counter 11 is connected to the input end of the selection output module 12, and the output end of the selection output module 12 is connected to the processing module 2.

The pulse counter 11 is configured to count pulses of the control signal to obtain count information, and feed back the count information to the selection output module 12.

The selection output module 12 is configured to determine and output a corresponding channel selection signal to the processing module 2 according to the count information.

The channel selection signal can be understood as: the different channel selection signals characterize the energy storage units at different positions in the plurality of energy storage units which can be selected. Correspondingly, the target channel selection signal may be understood as a channel selection signal determined according to the counting information, and may also be understood as any signal capable of characterizing the target energy storage unit.

The above-mentioned control signal is understood to be a signal that characterizes the selected channel (i.e. the target energy storage unit) by the number of pulses (number of pulses in a certain time).

The control signal may be generated and acquired by any external circuit, where the external circuit may be, for example, a circuit of an upper computer or other equipment interacting with an electronic device (an electronic device having a chip according to an embodiment of the present invention), or may be generated and acquired by a chip or other circuits in an electronic device (an electronic device having a chip according to an embodiment of the present invention), and how it is generated and acquired does not depart from the scope of the embodiment of the present invention.

Taking fig. 3 as an example, the control signal can be characterized as a CTRL signal, which can be understood as a digital signal, and can be specifically a square wave signal or a signal similar to a square wave.

The count information described above can be understood as arbitrary information for accumulating the number of pulses, and may be a forward count or a reverse count. Correspondingly, the counter may be a forward counter or a backward counter, and further, the counter may be a cyclic pulse counter.

Taking FIG. 3 as an example, the signal of the counting information can be characterized as a CNT [ Y:0] signal, where Y is an integer greater than or equal to 1.

In one example, counting may be started from 0, and accumulated based on pulses, for example: each time a pulse is detected, it is accumulated once until it is accumulated to Y or reset, and counting from Y can also be started, the subtraction being based on pulses, for example: each time a pulse is detected, it is decremented once until it reaches 0 or is reset.

The above reference to the channel selection signal is to be understood as any signal that is capable of characterizing the selected channel, i.e. the target energy storage unit. Correspondingly, the selection output module may be any information capable of outputting the channel selection signal based on the count information. Further, the selection output module may include a decoder, and further, the signal of the count information may be decoded by the decoder, thereby outputting a desired channel selection signal.

Taking fig. 3 as an example, the channel selection signal can be characterized as CH _ SEL [ X:1], where X is 2 to 32 and is an integer, and in an actual design process, the number of channels can be set as needed, that is, a specific limit value of X is set as needed.

Different values or value ranges of the counting information correspond to different channel selection signals.

By way of further example, X, Y may satisfy: 2Y +1 is less than or equal to X. Furthermore, the number of bits of the pulse counter can be adjusted according to the number of channels.

Referring to fig. 5, different energy storage units 3 may be connected to different execution units in the execution module 4, and the power management chip may be connected to each execution unit through different channels, so that the process of selecting a target energy storage unit is to select which channel (i.e., target channel) the signal should be output, and the signal is output to the corresponding channel, so that the corresponding execution unit in the execution module may be driven to perform target processing on the corresponding energy storage unit. Therefore, the selection of the energy storage unit can also be understood as the selection of the channel.

It can be seen that the processing module 2 therein is operable to:

according to the target channel selection signal, determining a target energy storage unit in the plurality of energy storage units (namely determining a target channel in the plurality of channels);

for the target energy storage unit, executing preset target processing, which may specifically be: and outputting a signal corresponding to the target processing to a target channel.

The determined target energy storage unit (i.e. target channel) may be one, and in some schemes, may be configured by a reasonable circuit and algorithm, or may be multiple.

The target process (and the above-mentioned process for the energy storage unit) may include at least one of the following:

detecting electrical information of the target energy storage unit; the electrical information may be, for example, voltage, current, power, etc. of the corresponding energy storage unit;

controlling the target energy storage unit to be charged;

prohibiting the target energy storage unit from being charged;

adjusting the charging parameters of the target energy storage unit; the charging parameters may be, for example, charging voltage, charging current, information of charging mode, etc.;

controlling the target energy storage unit to participate in power supply;

forbidding the target energy storage unit to participate in power supply;

adjusting power supply parameters of the target energy storage unit; the power supply parameters may be, for example, power supply voltage, power supply current, information of power supply mode, and the like.

In an example, if the target processing includes detecting electrical information of the target energy storage unit, the corresponding execution unit may include, for example, a switch between a detection port (or a detection circuit connected to the detection port) of the processing module and the target energy storage unit, and the detection of the electrical information of the target energy storage unit by the detection port or the detection circuit may be implemented when the switch is controlled to be turned on.

For another example, if the target processing includes controlling or prohibiting the power supply of the target energy storage unit, the corresponding execution unit may include a switch connected in parallel to the energy storage unit, for example.

In another example, if the target process includes controlling or prohibiting charging of the target energy storage unit, the corresponding execution unit may include a switch connected between the charging circuit and the energy storage unit.

For another example, if the target processing includes adjusting a charging parameter or a power supply parameter of the target energy storage unit, the corresponding execution unit may include any device or a set of devices capable of adjusting charging or power supply, for example.

No matter what kind of processing is performed on the signal output by the selection output module, the processing can be understood as an application under the conception of the embodiment of the present invention, and further, the scope of the embodiment of the present invention is not deviated.

In a specific example, if the pulse number accumulated by the pulse counter 11 in a certain time is 5, the selection output module 12 may feed back a signal to the processing module according to the 5, and the processing module may select the 5 th channel to output the signal.

In the above scheme, counting information obtained by counting by the pulse counter is used as a basis for channel selection (namely, circuit unit selection), and then, multichannel selection can be realized based on a single line.

In one embodiment, referring to fig. 2 to 5, the selection circuit further includes a signal monitor 13; the first end of the signal monitor 13 is used for accessing the control signal, and the second end of the signal monitor 13 is connected to the third end of the pulse counter 11.

The signal monitor is used for controlling the pulse counter to reset according to the control signal so that the pulse counter restarts counting.

The third terminal of the pulse counter 11 can be understood as a RESET terminal because it can control the RESET of the pulse counter, and taking fig. 3 as an example, the signal for controlling the RESET thereof can be characterized as a RESET signal.

In a further aspect, when the signal monitor 13 controls the pulse counter to reset according to the control signal, the signal monitor is specifically configured to:

if the rising edge and/or the falling edge of the control signal are not monitored within a preset first time period, the following steps are carried out: and controlling the pulse counter to reset.

Wherein the signal monitor may monitor rising and falling edges of the CTRL signal and when no rising or falling edge of the CTRL signal is detected for a period of time (the first duration), a RESET signal may be generated to RESET the pulse counter to restart counting.

In one embodiment, referring to fig. 2 to fig. 5, a third terminal of the signal monitor 13 is connected to the processing module 2;

the signal monitor 13 is further configured to send a target mode control signal to the processing module according to the control signal, where the target mode control signal is used to instruct the processing module to control the corresponding chip to be in the target mode.

In a further aspect, the target mode is a sleep mode and/or a low power consumption mode; furthermore, based on the control signal, the chip can be triggered to enter a sleep mode or a low power consumption mode in time.

Wherein, when sending the target mode control signal to the processing module according to the control signal, the signal monitor is specifically configured to:

if the rising edge and/or the falling edge of the control signal are not monitored within a preset second time period, the following steps are carried out: and sending the target mode control signal to the processing module.

The second duration may be the same as the first duration or different from the first duration, and no matter how the first duration and the second duration are configured, the scope of the embodiments of the present invention is not deviated.

The signal monitor can monitor the rising edge and the falling edge of the CTRL signal, and generate a mode control signal when the rising edge or the falling edge of the CTRL signal is not detected for a period of time, so that the chip can enter a sleep mode or a low power consumption mode.

Through the scheme, energy consumption can be saved, and the cruising ability of the electronic equipment can be improved.

In addition to the above-mentioned chip and its selection circuit, embodiments of the present invention also provide an electronic device including the chip to which each of the above alternatives relates.

The electronic device may be any electronic device having a chip and an energy storage unit, and may be, for example (but not limited to the following examples): the mobile phone, the tablet computer, the intelligent wearable device, the medical equipment, the interactive equipment, the vehicle-mounted equipment, the energy storage equipment, the power supply equipment, the charging equipment, the industrial equipment and the like.

Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:恒温晶振频率和拐点的智能调整控制电路及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!