This application claims the benefit of Italian Patent Application No. 102023000018681, filed on Sep. 12, 2023, entitled “Power supply circuit, related system and method,” which is hereby incorporated herein by reference to the maximum extent allowable by law.
Embodiments of the present description refer to power supply circuits and methods, such as power supply circuits configured to supply lighting modules, and associated methods.
In the example considered, each lighting module 20 includes one or more lighting sources. For example, in the example considered, each lighting module 20 including at least one LED (Light Emitting Diode) or OLED (organic light-emitting diode) L. For example, often each lighting module 20 includes a LED string, i.e., a plurality of LEDs connected in series, as schematically shown via two LEDs L1 and L2 connected in series.
The person skilled in the art will appreciate that a LED (or a LED chain) is usually not supplied with a constant voltage but rather via a current. Accordingly, in order to individually control the light intensity of each lighting module 20, the power supply circuit 1 usually comprises for each lighting module 20 a respective output terminal or channel OUT, such as output terminals OUT1 to OUTk, and the power supply circuit 1 is configured to provide to each output terminal OUT a respective current, such as currents il to ik.
Such power supply circuits 1 are well-known in the art. For example, the applicant of the present patent application sells LED driver integrated circuits, such as the L99LDLH32 having 32 channels. For example, the operation of the L99LDLH32 is described in the datasheet DS12879, “L99LDLH32-32-channel LED driver with automotive CAN FD Light interface,” e.g., revision 5 of 2021.
In many applications, the power supply circuit 1 should be able to monitor each of the currents il to ik. For example, such a monitoring may be useful in order to verify whether each current provided by the power supply circuit 1 corresponds to an expected value or more generally is within an expected tolerance range, which, e.g., permits determining whether the intensity of the light emitted by a lighting module 20 correspond to an expected value and/or whether a lighting module represents a malfunction, e.g., due to a short-circuit or open-load condition.
Considering the foregoing, an object of various embodiments of the present disclosure is to provide solutions for verifying the current supply conditions of a power supply circuit.
According to one or more embodiments, the above object is achieved by a power supply circuit having the distinctive elements set forth specifically in the ensuing claims. The embodiments moreover concern a related system and method.
The claims form an integral part of the technical teaching of the description provided herein.
As mentioned before, various embodiments of the present disclosure relate to a power supply circuit. In various embodiments, the power supply circuit comprises a plurality of output terminals, such as pads or pins of a respective integrated circuit comprising the power supply circuit, and for each output terminal a respective current supply circuit. Specifically, each current supply circuit is configured to provide an output current to the respective output terminal as a function of a respective first digital control signal.
For example, in various embodiments, each current supply circuit comprises a current digital-to-analog converter configured to receive a first reference current and the respective first digital control signal, wherein the first digital control signal is indicative of a first multiplier, and the current digital-to-analog converter is configured to generate a first current by multiplying the first reference current with the first multiplier. Moreover, each current supply circuit comprises a scaling circuit configured to generate the output current by generating an amplified version of the first current according to a first scaling factor.
For example, in various embodiments each current supply circuit comprises a first resistance connected between a regulated voltage and an output of the current digital-to-analog converter, a second resistance connected with the current path of the first FET between the regulated voltage and the respective output terminal, and an operational amplifier configured to drive the gate-source voltage of the first FET such that the voltage-drop at the second resistance corresponds to the voltage-drop at the first resistance. Accordingly, in this case, the ratio between the resistance value of the second resistance and the resistance value of the first resistance defines the first scaling factor.
In various embodiments, each current supply circuit comprises also a current sensor configured to provide a measurement current being proportional to the respective output current. For example, in various embodiments, the current sensor comprises a third resistance connected in series with the current path of a second FET to the regulated voltage, wherein the gate terminal of the second FET is connected to the gate terminal of the first FET. Accordingly, the resistance value of the third resistance and the scaling of the second FET with respect to the first FET define a second scaling factor. Preferably, the ratio between the first scaling factor and the second scaling factor is one.
Accordingly, in various embodiments, the current supply circuit comprises a first FET connected between the regulated voltage and the respective output terminal, and the current sensor comprises a second FET configured to provide the measurement current, wherein the current supply circuit is configured such that the gate-source voltage of the second FET corresponds to the gate-source voltage of the first FET.
In various embodiments, the power supply circuit comprises a first multiplexer circuit, a second multiplexer circuit, a comparison circuit and a control circuit. Specifically, the first multiplexer circuit is configured to provide a selected measurement current by selecting one of the measurement currents as a function of a selection signal indicating a selected current supply circuit. Conversely, the second multiplexer circuit is configured to provide a selected digital control signal by selecting one of the first digital control signals as a function of the selection signal indicating a selected current supply circuit.
In various embodiments, the comparison circuit is configured to generate a threshold current as a function of one or more digital threshold control signals. For example, in various embodiments, the one or more digital threshold control signals comprise a second digital control signal, and the comparison circuit comprises a further current digital-to-analog converter configured to receive a second reference current and the second digital control signal, wherein the second digital control signal is indicative of a second multiplier, and the further current digital-to-analog converter is configured to generate the threshold current by multiplying the second reference current with the second multiplier.
Moreover, in various embodiments the comparison circuit is configured to compare the selected measurement current with the threshold current. Specifically, in response to determining that the selected measurement current is greater than the threshold current, the comparison circuit de-asserts a comparison signal and, in response to determining that the selected measurement current is smaller than the threshold current, the comparison circuit assert the comparison signal.
For example, for this purpose, the comparison circuit may comprise a summation node configured to provide a current corresponding to the difference between the selected measurement current and the threshold current, and a current comparator configured to de-assert the comparison signal when current is greater than zero, and assert the comparison signal when the current is smaller than zero. Alternatively, the comparison circuit may comprise a first measurement resistance configured to be transversed by the threshold current and a second measurement resistance configured to be transversed by the selected measurement current. In this case, the comparison circuit may comprise a voltage comparator configured to assert the comparison signal when the voltage-drop at the first measurement resistance is greater than the voltage-drop at the second measurement resistance, and de-assert the comparison signal when the voltage-drop at the first measurement resistance is smaller than the voltage-drop at the second measurement resistance.
In various embodiments, the control circuit is configured to repeat various operations periodically. Specifically, the control circuit generates the selection signal in order to select a measurement current and a first digital control signal associated with a given current supply circuit. For example, the control circuit may sequentially select all or a subset of the current supply circuits. Next, the control circuit generates the one or more digital threshold control signals as a function of the selected digital control signal in order to set the threshold current during a first phase to a first value, wherein the first value is smaller than an expected value for the selected measurement current as indicated by the selected digital control signal. Moreover, the control circuit sets the threshold current during a second phase to a second value, wherein the second value is greater than the expected value for the selected measurement current as indicated by the selected digital control signal.
Accordingly, in various embodiments, the first value and the second value may be used to define a tolerance range for the expected value for the selected measurement current. For example, in various embodiments, the control circuit is configured to, during the first phase, set the second digital control signal to a first value being smaller than the selected digital control signal by a given first percentage and, during the second phase, set the second digital control signal to a second value being greater than the selected digital control signal by a given second percentage. Alternatively, the one or more digital threshold control signals may also comprise a reference current selection signal, and the control circuit may, during the first phase, set the second digital control signal to the value of the selected digital control signal and select via the reference current selection signal as the second reference current a current having a value being smaller than the first reference current by a given first percentage and, during the second phase, set the second digital control signal to the value of the selected digital control signal and select via the reference current selection signal as the second reference current a current having a value being greater than the first reference current by a given second tolerance percentage.
In various embodiments, the control circuit verifies then whether the comparison signal is de-asserted during the first phase and asserted during the second phase. Specifically, the control circuit asserts a status signal when the comparison signal is de-asserted during the first phase and asserted during the second phase, and de-asserts the status signal when the comparison signal is asserted during the first phase or de-asserted during the second phase.
Embodiments of the present disclosure will now be described with reference to the annexed drawings, which are provided purely by way of non-limiting example and in which:
In the following description, numerous specific details are given to provide a thorough understanding of embodiments. The embodiments can be practiced without one or several specific details, or with other methods, components, materials, etc. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the embodiments.
Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
The references used herein are for convenience only and do not interpret the scope or meaning of the embodiments.
In the following
Specifically, in the embodiment considered, the power supply circuit 1a comprises a plurality of output terminals OUT (e.g., pads of a die of the IC of the power supply circuit 1a or pins of a packaged IC of the power supply circuit 1a), such as k output terminals OUT1 to OUTk. In various embodiments, the power supply circuit 1a may be used in a lighting system, wherein one or more lighting modules 20, such as k lighting modules 201 to 20k, are connected to the output terminals OUT. In general, the number of lighting modules 20 connected to the power supply circuit 1a may correspond to the number k of output terminals OUT or may be smaller than the number k of output terminals OUT. For example, the number of output terminals, i.e., the channels, may be greater than 4, e.g., between 8 and 256. In various embodiments, each lighting module 20 includes one or more lighting sources, such as LEDs or OLEDs, or other solid state light sources, such as laser diodes. In general, the power supply circuit 1a may also be used to supply other types of loads.
As described in the foregoing, in various embodiments, the power supply circuit 1a is configured to provide to each output terminal OUT a respective current, such as currents il to ik. Specifically, in the embodiment considered, the power supply circuit 1a comprises for each output terminal OUT a respective current supply circuit 12, such as current supply circuits 121 to 12k, wherein each current supply circuit 12 is configured to provide a respective current.
In the embodiment considered, the current supply circuits 12 are supplied via a common DC voltage VREG applied between two nodes 102a and 102b, wherein the node 102b often represents a ground GND. Accordingly, in the example considered, each lighting module 20 and the respective current supply circuit 12 may thus be connected between the node 102a and the node 102b. In various embodiments, each current supply circuit 12 may be supplied by a respective voltage VREG or sub-sets of the current supply circuits 12 may be supplied by a respective voltage VREG. For example, the voltage VREG may be in a range between 5 V and 24 V, e.g., between 9 V and 14 V. However, the voltage VREG may also be greater than 24 V, e.g., in a range between 50 V and 100 V.
In various embodiments, the voltage(s) VREG may be received via input terminals of the power supply circuit 1a, such as two input terminals 100a and 100b (e.g., pads or pins of a respective IC). Alternatively, as shown in
In the embodiment considered, each current supply circuit 12 is configured to generate the respective current as a function of one or more respective control signals CTR, such as control signal(s) CTR1 for the current supply circuit 12, and control signal(s) CTRk for the current supply circuit 12k. In various embodiments, the power supply circuit 1a may comprise terminals for receiving the control signals CTR, e.g., from an external microprocessor. Conversely, in other embodiments, as shown in
For example, in various embodiments, the power supply circuit 1a comprises a communication interface 16, such as a serial communication interface, e.g., a Universal asynchronous receiver/transmitter (UART), Serial Peripheral Interface Bus (SPI), Inter-Integrated Circuit (I2C), Controller Area Network (CAN) bus, and/or Ethernet interface, which is connected to one or more terminals IF of the power supply circuit 1a. Accordingly, in the embodiment considered, the control circuit 14 may be configured to receive via the communication interface 16 data being indicative of requested values of the currents to be provided by the current supply circuits 12, and the control circuit 14 may generate the control signals CTR accordingly. In various embodiments, the control circuit 14 may also be connected to one or more sensors in order to generate the control signals CTR, such as one or more current sensors configured to monitor the currents generated via the current supply circuits 12, and/or the voltage VREG and/or the temperature of the power supply circuit 1a.
As mentioned before, various embodiments of the present disclosure relate to solutions for monitoring the currents il to ik provided by the power supply circuit 1a. For example, in the embodiment considered, the power supply circuit 1a comprises a current monitoring circuit 18 and each current supply circuit 12 comprises a current sensor 122 configured to provide a current iMON to the current monitoring circuit 18, wherein the current iMON is proportional to the current i provided by the respective current supply circuit 12. For example, as will be described in greater detail in the following, the current monitoring circuit 18 may determine whether the current i, or more specifically the monitored current iMON, is between a lower threshold and an upper threshold.
In general, as well-known to those of skill in the art, the intensity of the light emitted by a LED may be varied by varying the average current flowing through the LED. In this respect, the average current flowing through a lighting module 20 may be varied by varying the amplitude of the current i (usually identified as constant current or CC dimming) and/or via a Pulse-Width Modulation (PWM) of the current (usually identified as PWM dimming). Thus, while not shown in the figures, the power supply circuit 1a may also be configured to modulate each current il to ik via a respective PWM modulation, and/or modulate all currents il to ik via a common PWM modulation. For example, in the former case, the variable current source 120 of each current supply circuit 12 may be switched on and off via a respective further control signal CTR corresponding to a PWM signal, thereby implementing an individual PWM modulation of the current i provided to the respective lighting module 20. Conversely, in the latter case, the power supply circuit 1a may comprise an electronic switch configured to selectively connect the current supply circuits 12 and the lighting sources 20 to the voltage VREG. For example, in various embodiments, the lighting modules 20 may be connected via a common electronic switch to ground GND and the electronic switch is closed and opened via a further control signal CTR corresponding to a PWM signal, thereby implementing a common PWM dimming of all lighting modules 20, whereby the relative light intensity of the lighting modules may be set via the individual CC dimming via the current generator 120 (i.e., the amplitude of the currents i, to ix during the switch-on periods of the PWM modulation) and optionally the additional individual PWM dimming. Generally, such a PWM dimming of the currents il to ik will not be considered specifically in the following, because it is sufficient that the current monitoring circuit 18 is configured to monitor each current il to ik when the respective channel is enabled, i.e., during the switch-on periods of the optional PWM modulation(s).
In various embodiments, the current source 120 comprises a circuit 1204 for applying a scaled version of the current iSET to the respective output terminal OUT, i.e., i=m·iSET, wherein m represents a scaling factor. For example, in various embodiments, the circuit 1204 is implemented via a current mirror.
Conversely, in the embodiment shown in
Moreover, in the embodiment considered, the circuit 1204 comprises a second resistance 1208 connected with (the current path of) a Field-Effect Transistor (FET) 1212, such as a MOSFET, between the voltage VREG and the output terminal OUT. Accordingly, in the embodiment considered, the current i flows through the resistance 1208 and generates a voltage drop being proportional to the current i and the resistance value of the resistance 1208.
Finally, in the embodiment considered, the circuit 1204 comprises an operational amplifier (OpAmp) 1210 configured to drive the gate terminal of the FET 1212, such that the voltage drop at the resistance 1208 corresponds to the voltage drop at the resistance 1206. Accordingly, in the embodiment considered, the FET 1212 essentially acts as a variable current source.
For example, in various embodiments, the FET is a p-channel FET. In this case, a first terminal of the resistance 1208 is connected to the voltage VREG, a source terminal of the p-channel FET 1212 is connected to a second terminal of the resistance 1208 and a drain terminal of the p-channel FET 1212 is connected to the output terminal OUT. Moreover, when using a p-channel FET, the positive/non-inverting input of the OpAmp 1210 is connected to the intermediate node between the resistance 1206 and the IDAC 1200, and the negative/inverting input of the OpAmp 1210 is connected to the intermediate node between the resistance 1208 and the FET 1212 (source terminal of the FET 1212), wherein the output terminal of the OpAmp 1210 is connected to the gate terminal of the p-channel FET 1212.
Accordingly, in the steady state condition, the voltage drop at the resistance 1208 corresponds to the voltage drop at the resistance 1206. Accordingly, in order to obtain a scaled current i=m·iSET, the resistance 1206 has a resistance value corresponding to the resistance value of the resistance 1208 multiplied by m. For example, when indicating the resistance value of the resistance 1208 as Rs, the resistance 1206 has a resistance value of m·Rs. For example, the scaling factor m may be selected in a range between 5 and 100, e.g., between 10 and 30, e.g., m=20. In various embodiments, the resistances 1206 and 1208 are matched resistances, which ensures that the resistances 1206 and 1208 are subject to the same process, voltage, and temperature (PVT) variations. For example, in various embodiments, resistances 1206 and 1208 are arranged in close proximity within the IC of the power supply circuit 1a.
Accordingly, in the embodiment considered, in order to obtain a scaled current iMON=i/p, the resistance 1220 has a resistance value corresponding to the resistance value of the resistance 1208 multiplied by p, i.e., the resistance 1220 has a resistance value of p·Rs. Preferably, also the FET 1222 corresponds to a scaled version of the FET 1212, e.g., the FET 1222 has a width-to-length (W/L) ratio corresponding to the ratio W/L of the FET 1212 divided by the scaling factor p. In various embodiments, the resistances 1220 and 1208 are matched resistances, which ensures that the resistances 1220 and 1208 are subject to the same process, voltage, and temperature (PVT) variations. For example, in various embodiments, resistances 1206, 1208 and 1220 are arranged in close proximity within the IC of the power supply circuit 1a. As will be described in greater detail in the following, in various embodiments, the scaling factor p corresponds to the scaling factor m, i.e., p=m.
Similarly, when using a current mirror 1204, the current mirror 1204 may comprise an additional (output) branch providing the measurement current iMON. For example, such a current mirror 1204 may be implemented with three p-channel FETs having their source terminals connected to the voltage VREG, wherein the drain terminal of the first FET is connected to the output of the IDAC 1200, the drain terminal of the second FET provides the current i to the output OUT, the drain terminal of the third FET provides the measurement current iMON, and the gate terminals of the three FETs are connected to the drain terminal of the first FET (output of the IDAC 1200). Specifically, in this case, the scaling factor m corresponds to the scaling between the second FET and the first FET, and the scaling factor p corresponds to the scaling between the third FET and the second FET, wherein also in this case, the scaling factors preferably correspond, i.e., p=m.
For example, in the embodiment considered, the control circuit 14 of the power supply circuit 1a comprises a plurality of registers 142 for storing the values of the signals Curr_Set_CH1 to Curr_Set_CHk.
As mentioned before, in various embodiments, the values of the signals Curr_Set_CH1 to Curr_Set_CHk may be programmed by the control circuit 14. For example, in
Additionally or alternatively, the processing circuit 140 may vary the values of the signals Curr_Set_CH1 to Curr_Set_CHk as a function of data provided by one or more sensors of the power supply circuit 1a, such as data indicative of the value of the voltage VREG and/or data indicative of the temperature of one or more components of the power supply system 1a, such as the temperatures of the current supply circuits 12.
In the embodiment considered, the current monitoring circuit 18 comprises a multiplexer 184 configured to generate a current iMONi by selecting one of the currents iMON1 to iMONk as a function of a selection signal SEL generated by a (digital) control circuit 182 of the current monitoring circuit 18. For example, in the embodiment considered, the multiplexer 184 comprises k electronic switches SW1 to SWk, wherein each electronic switch SW1 to SWk is connected between a respective current supply circuit and a node A. Accordingly, in this case each electronic switch SW1 to SWk is configured to provide the respective current iMON1 to iMONk to the node A when the electronic switch SW1 to SWk is closed and the node A provides a current iMONi corresponding to the sum of the respective current iMON1 to iMONk for which the respective electronic switch SW1 to SWk is closed. Accordingly, in the embodiments considered, the multiplexer 184 may comprise a decoder 1840 configured to close one of the electronic switches SW1 to SWk as a function of the selection signal SEL, whereby the node A provides a current iMONi corresponding to one of the current iMON1 to iMONk. Accordingly, in the embodiment considered, the selection signal SEL may be used to select one of the channels of the power supply circuit.
Accordingly, in various embodiments, the control circuit 182 is configured to generate the selection signal SEL in order to sequentially select the signals iMON1 to iMONk (in any suitable order), and the current monitoring circuit 18 is configured to verify whether the selected current iMONi is within an expected value range, wherein the expected value range is determined as a function of the respective value Curr_Set_CH1 to Curr_Set_CHk associated with the selected current iMON1 to iMONk.
In general, the current monitoring circuit 18 could comprise an analog-to-digital converter (ADC) and the current monitoring circuit 18 could be configured to obtain a digital sample of the value of the selected current iMONi and verify whether the digital sample is within the expected value range determined as a function of the respective value Curr_Set_CH1 to Curr_Set_CHk. However, as mentioned before, also a significant number of currents iMON1 to iMONk may be generated. Accordingly, performing an AD conversion may not be feasible in many application scenarios, wherein a fast detection of abnormal conditions is required. Accordingly, in order to increase the speed of the verification operation, the current monitoring circuit 18 could comprise a plurality of ADCs in order to sample in parallel a plurality of currents iMON1 to iMONk. However, such ADCs are complex, which would increase the dimension and cost of the power supply circuit.
Accordingly, in the following will be described a solution, wherein the current monitoring circuit 18 is configured to verify the value of the selected current iMONi in analog.
Specifically, in various embodiments, the selected current iMONi is provided to a current comparison circuit 180. The current comparison circuit 180 receives also one or more threshold control signals TH indicative of a comparison threshold iTH and is configured to generate a comparison signal COMP by comparing the selected current iMONi with the comparison threshold iTH. For example, in various embodiments, the comparison circuit 180 is configured to assert, e.g., set to high, the comparison signal COMP when the current iMON is smaller than the comparison threshold iTH, i.e., iMONi<iTH, and de-assert, e.g., set to low, the comparison signal COMP when the current iMONi is greater than the comparison threshold iTH, i.e., iMONi>iTH.
In this respect, as described in the foregoing, in various embodiments, the current i provided by a current supply circuit corresponds to i=m·iSET, with iSET=C·iREF, i.e.:
wherein m is a constant scaling (or in general proportionality) factor of the variable current source 120 and the multiplier c is set via the signal Curr_Set_CH.
Moreover, the measurement current corresponds to iMON=i/p, which may be reformulated according to equation (1):
where p is a constant scaling (or in general proportionality) factor of the current sensor 122, i.e., the ratio m/p is fixed. In this respect, by selecting a scaling factor p corresponding to the scaling facto m, i.e., p=m, equation (2) may be simplified as follows:
Accordingly, equations (2) or (3) indicate the expected value iMON,exp for the current iMON for a given signal Curr_Set_CH. Equations (2) or (3) thus also apply to the expected value iMONi,exp for the selected current iMONi, wherein the expected value iMONi,exp may be calculated based on the respective signal Curr_Set_CHi. For example, as shown in
In this respect, as shown in
In general, the sequence of phases may also be inverted. Moreover, instead of using a tolerance range, the first amount and the second amount may be fixed or predetermined, e.g., programmable via the communication interface 16. Similarly, in various embodiments, the tolerance value x may be programmable via the communication interface 16.
Accordingly, as shown in
Conversely, as shown in
Conversely, as shown in
Accordingly, in various embodiments, the control circuit 182 generates the one or more threshold control signals TH in order to vary the threshold current iTH as indicated in the foregoing, and verifies whether the comparison signal COMP is de-asserted in the phase PH1 and asserted in the phase PH2. In this respect, in various embodiments, the control circuit 182 is configured to:
In various embodiments, the same operation could be obtained by performing the comparison in parallel via two comparison circuits 180, wherein the first comparison circuit 180 is configured to compare the current iMONi with the threshold iTH1, and the second comparison circuit 180 is configured to compare the current iMONi with the threshold iTH2. However, in this case, the control circuit 182 generates in parallel two threshold signals TH, i.e., a first threshold signal TH for setting the current iTH1 and a second threshold signal TH for setting the current iTH2. In this respect, the solution shown in
In various embodiments, the control circuit 14 of the power supply circuit 1a may comprise a register 144 and the value of the status signal STATUSi may be stored to a respective bit position associated with the channel selected via the selection signal SEL. For example, this is schematically shown in
In this respect, in various embodiments, instead of scanning all channels, the control circuit 182 may sequentially select (via the selection signal SEL) only a subset of the channels.
For example, in various embodiments, the control circuit 182 may just select the channels for which the value of the signals Curr_Set_CH1 to Curr_Set_CHk is different from 0.
Alternatively, in various embodiments, the control circuit 14 may also comprise a register for storing channel enable flags, which indicate for each current supply circuit 12 whether the respective current source 120 should be enabled. Accordingly, in this case, the control circuit 182 may just select the channels for which the respective channel enable flag indicates that the respective current source 120 is enabled. For example, such channel enable flags may be stored to the register 142 and may be used to generate for each current supply circuit 12 a further control signal CTR indicating whether the respective current source 120 should be enabled. In various embodiments, the channel enable flags may be programmable via the communication interface 16.
Alternatively, in various embodiments, the control circuit 14 may also comprise a register for storing channel monitoring flags, which indicate for each channel whether the respective channel should be monitored. Accordingly, in this case, the control circuit 182 may just select the channels for which the respective channel monitoring flag indicates that the respective channel should be monitored. For example, such channel monitoring flags may be stored to the register 144. In various embodiments, the channel monitoring flags may be programmable via the communication interface 16.
In the following will now be described possible embodiments of the comparison circuit 180 and the respective generation of the one or more threshold control signals TH by the control circuit 182. As described in the foregoing, in various embodiments, the current comparison circuit 180 receives the selected current iMONi and one or more threshold control signals TH indicative of the comparison threshold iTH and is configured to generate a comparison signal COMP by comparing the selected current iMONi with the comparison threshold iTH. Accordingly, in various embodiments, the comparison circuit 180 is configured to generate the comparison threshold iTH as a function of the one or more threshold control signals TH.
Specifically, as described with respect to equation (2), the monitored current corresponds to iMON=m/p·c·iREF. Accordingly, in various embodiments, the reference current iREF′ is selected as:
For example, in various embodiments, the scaling factors m and p are designed such that m/p=1, i.e., the reference current iREF′ corresponds to the reference current iREF, i.e., iREF′=iREF.
Accordingly, in various embodiments, the IDAC 1800 provides the following current:
In fact, in this way, the IDAC 1800 is configured to provide a current iDAC corresponding to the expected current iMONi,exp, i.e., iDAC=iMONi,exp, when the signal Curr_Set_TH corresponds to the signal Curr_Set_CHi of the currently selected channel, i.e., when q=c.
In the embodiment considered, the current iMONi is provided to a node B, and the IDAC 1800 is configured to sink the current iDAC from the node B, i.e., the node B provides a current iM=iMONi−iDAC. Moreover, the node B is connected to a current comparator 1804, i.e., the current comparator 1804 receives the current iM. Moreover, the current comparator 1804 is configured to:
Thus, in the embodiments considered, the operation of the comparator 1804 is inverted with respect to a conventional current comparator, which is schematically shown via the inverting “dot” at the output of the comparator 1804.
Accordingly, in the embodiment considered, in order to generate the currents iTH=iTH1 and iTH=iTH2 described with respect to
As described with respect to equation (4), the current iREF may indeed be replaced with m/p·iREF when the factor m does not correspond to the factor p.
For example, in order to vary the reference current iREF′, the current comparison circuit 180b may comprise indeed two reference current sources 1802a and 1802b configured to generate the currents iREFA and iREFB, respectively, and a switching circuit SERF configured to provide to the IDAC 1800 as reference current iREF either the current iREFA or the current iREB as a function of a selection signal CTH. According, in the embodiment considered, the control circuit 182 is configured to generate also the control signal CTH in order to:
Accordingly, in the embodiment shown in
Specifically, in the embodiment considered, the control circuit 182 and the IDAC 1800 are again configured to generate during the first phase PH1 a current iDAC=iTH1 and during the second phase PH2 a current iDAC=iTH2. For example, in
In the embodiment considered, the current monitoring circuit 180c comprises moreover two resistances Rmon1 and Rmon2, such as resistors, wherein the current iDAC flows through the resistance Rmon1, thereby generating a first voltage, and the current iMONi flows through the resistance Rmon2, thereby generating a second voltage. In the embodiment considered, the resistances Rmon1 and Rmon2 have the same resistance value and are preferably matched resistors. Accordingly, in the embodiment considered, the voltage comparator 1806 may receive at the positive input terminal the voltage (drop) at the resistance Rmon1 and at the negative input terminal the voltage (drop) at the resistance Rmon2, whereby the comparator 1806:
As mentioned before, the measurement circuit 18 could also comprise two comparison circuits 180, which operate in parallel with respective threshold values. However, since the comparison circuits 180 shown in
Moreover, in various embodiments, the control circuit changes the selection signal SEL at the beginning of each measurement cycle MPH (comprising the phases PH1 and PH2), e.g., in response to detecting the start of a first phase PH1 or end of a second phase PH2.
However, as shown in
Of course, without prejudice to the principle of the invention, the details of construction and the embodiments may vary widely with respect to what has been described and illustrated herein purely by way of example, without thereby departing from the scope of the present invention, as defined by the ensuing claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 102023000018681 | Sep 2023 | IT | national |