This application claims the priority benefit of Italian Application for Patent No. 102024000000123, filed on Jan. 5, 2024, the content of which is hereby incorporated by reference in its entirety to the maximum extent allowable by law.
The description relates to electronic circuits (e.g., switching converters) provided with an Inter-Integrated Circuit (I2C) interface.
Switching converters with an embedded I2C interface may be implemented, for instance, in class-D power amplifiers (audio amplifiers) used in car radio apparatuses.
Switching devices such as class-D amplifiers and switching converters produce electronic noise that can propagate to the digital interfaces of the device itself and thus affect the proper operation of such interfaces. Typically, the higher the PWM switching frequency, the current and the voltage of the switching device, the higher the associated electronic noise.
A digital interface that can be affected by noise is the I2C interface (see, as a reference, the User manual UM10204 by NXP, “I2C-bus specification and user manual”, Rev. 7.0, 1 Oct. 2021, incorporated herein by reference). The input comparators of an I2C interface, which are designed to discern between the high level and the low level of an input digital signal, are thus usually designed to have large hysteresis so as to be robust against noise (i.e., avoid spurious commutations due to noise). In this respect, the I2C specification defines an (external) pull-up voltage Vpu, and defines as well the high-level digital input logic voltage threshold VIH and the low-level digital input logic voltage threshold VIL of the input comparators according to the following constraints: VIH<0.7*Vpu and VIL>0.3*Vpu.
At the same time, it is desirable that the input comparators of the I2C interface are compatible with at least two values of the pull-up voltage Vpu, such as 1.8 V and 3.3 V (which are conventional values of the supply voltage in CMOS technology).
The requirements of large hysteresis on one hand, and compatibility with at least two different pull-up voltage levels on the other hand, are in conflict. In fact, considering an example where compatibility with both Vpu18=1.8 V and Vpu33=3.3 V is desired at the same time, the values of the comparator thresholds VIH and VIL would be constrained by the following values:
The maximum difference VIH−VIL=0.27 V between the high threshold and the low threshold is not sufficient for accommodating possible threshold mismatch, process variations and parasitic voltage drops while still providing sufficient hysteresis for noise rejection.
A known solution to the issue discussed above is that of using a pin of the electronic device for receiving the external pull-up voltage Vpu. By receiving the pull-up voltage in the electronic device, the high threshold VIH and the low threshold VIL for the input comparators of the I2C interface can be generated within the device, and a wider range for hysteresis can be achieved. For instance, considering again an example where compatibility with both Vpu18=1.8 V and Vpu33=3.3 V is desired, the thresholds VIH and VIL could be generated as follows: if Vpu=3.3 V, then VIL=0.99 V and VIH=2.31 V; if Vpu=1.8 V, then VIL=0.54 V and VIH=1.26 V. Therefore, if Vpu=3.3 V the difference between the thresholds (to be used for hysteresis and accommodating mismatches) would be equal to 1.32 V, while if Vpu=1.8 V the difference would be equal to 0.72 V. Such a solution is known, for instance, from the datasheet of device TAS2764 by Texas Instruments, “TAS2764 Digital Input Mono Class-D Audio Amplifier With Speaker IV Sense”, SLOS998A, December 2020, Revised September 2021, incorporated herein by reference.
However, a drawback of the known solution discussed above is that a conductive trace has to be provided on the board (PCB) to route the pull-up voltage Vpu to the electronic device, and a pin of the electronic device has to be used for receiving the external pull-up voltage Vpu. In particular, for low-cost devices, the available pin count is limited and dedicating one pin to receiving the external pull-up voltage Vpu is undesirable.
Reference is also made to U.S. Pat. No. 10,447,269 B1 as a document of interest in this technological field which discloses a level shifter circuit that can be used in the comparator of an I2C interface to shift the level of the received/transmitted I2C signal when the internal logic of the chip operates at a certain voltage (e.g., 1.8 V) that is different from the voltage of the external device coupled to the I2C interface (e.g., 1.2 V).
Reference is also made to other documents of interest in this technological field including: Chinese Application No. 112650377 A; PCT Patent Publication WO 2020/218472 A1; Chinese Patent No. 106788354 B; U.S. Pat. No. 5,166,550 A; United States Patent Publication No. 2007/0296478 A1; the document “TI Designs—Precision: Verified Design—Comparator with Hysteresis Reference Design” by Texas Instruments, TIDU020A, May 2013, Revised June 2014; the document “Analog Engineer's Circuit—Programmable comparator circuit with hysteresis or latching output” by Texas Instruments, SLAAE20, May 2021; and the document Y. Yao and M. Jiang, “Design of Hysteresis Comparator with Wide Common Mode Operating Range,” 2022 IEEE 4th International Conference on Circuits and Systems (ICCS), Chengdu, China, 2022, pp. 91-94, doi: 10.1109/ICCS56666.2022.9936471. All of the foregoing references are incorporated herein by reference.
None of these known solutions provides an I2C interface circuit compatible with two (or more) different pull-up voltage levels and suitable for large hysteresis at the same time.
Therefore, there is a need in the art to provide improved I2C interface circuits that facilitate solving the issue mentioned above.
One or more embodiments of the present disclosure contribute in providing improved I2C interface circuits.
According to one or more embodiments, such an object can be achieved by an I2C interface circuit.
One or more embodiments may relate to a corresponding electronic device (e.g., a switching converter or switching power amplifier).
One or more embodiments may relate to a corresponding method of operation.
According to an aspect of the present description, an I2C interface circuit is operatable at a low pull-up voltage and at a high pull-up voltage. The I2C interface circuit includes a first pin configured to receive a clock signal and a second pin configured to receive a data signal. The I2C interface circuit includes a first comparator stage coupled to the first pin and configured to compare the received clock signal to a low threshold and a high threshold to produce an internal clock signal. The I2C interface circuit includes a second comparator stage coupled to the second pin and configured to compare the received data signal to the low threshold and the high threshold to produce an internal data signal. The first comparator stage and the second comparator stage are programmed by default to operate in a first operating mode. In the first operating mode the low threshold is set to a first fractional value of the high pull-up voltage and the high threshold is set to a second fractional value of the low pull-up voltage (e.g., with the first fractional value lower than the second fractional value). The first comparator stage and the second comparator stage are switchable, upon reception via the I2C interface of a programming frame that conveys a current value of the pull-up voltage, to a second operating mode. In the second operating mode, the low threshold is set to the first fractional value of the current pull-up voltage and the high threshold is set to the second fractional value of the current pull-up voltage.
One or more embodiments may thus provide an I2C interface circuit that is compatible with plural values of the pull-up voltage and is robust in terms of comparison hysteresis, without the need of routing the pull-up voltage to the interface itself.
According to another aspect of the present description, an electronic device includes an I2C interface circuit according to one or more embodiments, and a processing circuit. The processing circuit is configured to receive, via the I2C interface circuit, the programming frame that conveys the current value of the pull-up voltage, and switch the first comparator stage and the second comparator stage of the I2C interface circuit to the second operating mode as a function thereof.
According to another aspect of the present description, a method of operating an I2C interface circuit or an electronic device according to one or more embodiments includes: receiving a clock signal at the first pin and receiving a data signal at the second pin; comparing the received clock signal to a low threshold and a high threshold in the first comparator stage and producing an internal clock signal; comparing the received data signal to the low threshold and the high threshold in the second comparator stage and producing an internal data signal; programming by default the first comparator stage and the second comparator stage to operate in a first operating mode, wherein the low threshold is set to a first fractional value of the high pull-up voltage and the high threshold is set to a second fractional value of the low pull-up voltage; and switching, as a function of a programming frame received via the I2C interface that conveys a current value of the pull-up voltage, the first comparator stage and the second comparator stage to a second operating mode, wherein the low threshold is set to the first fractional value of the current pull-up voltage and the high threshold is set to the second fractional value of the current pull-up voltage.
One or more embodiments will now be described, by way of example, with reference to the annexed figures, wherein:
In the ensuing description, one or more specific details are illustrated, aimed at providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.
Reference to “an embodiment” or “one embodiment” in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is included in at least one embodiment. Hence, phrases such as “in an embodiment” or “in one embodiment” that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment. Moreover, particular configurations, structures, or characteristics may be combined in any adequate way in one or more embodiments.
The headings/references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.
Throughout the figures annexed herein, unless the context indicates otherwise, like parts or elements are indicated with like references/numerals and a corresponding description will not be repeated for the sake of brevity.
As known, an I2C interface includes two (bidirectional) communication lines, in particular a serial data line (SDA) and a serial clock line (SCL). Therefore, an I2C interface includes two I/O pins, each of which is connected to a respective comparator stage that is configured to discern between the high level and the low level of the respective input digital signal. In order to provide an I2C interface circuit compatible with at least two different pull-up voltage levels Vpu_low (low value of Vpu) and Vpu_high (high value of Vpu)—and thus, different levels of the input digital signals—and also having large hysteresis, one or more embodiments relate to an I2C interface circuit where the input comparator stage(s) are programmable, via the I2C interface itself (i.e., without the need of resorting to additional I/O pins), so as to switch between:
In particular, at device start-up, the comparator stages operate by default with small hysteresis and can operate at any one of the possible values Vpu_low and Vpu_high of the pull-up voltage (e.g., 1.8 V and 3.3 V). During the start-up phase, the device is idle, so it does not generate noise (e.g., because there is no ongoing switching activity) and a small hysteresis (obtained by setting VIH=0.7*Vpu_low and VIL=0.3*Vpu_high) is not an issue. In this phase, the I2C interface receives a frame indicating whether the actual pull-up voltage is equal to Vpu_low (e.g., 1.8 V) or Vpu_high (e.g., 3.3 V). Depending on this message, the comparator stages are programmed with the corresponding thresholds VIH and VIL (e.g., VH=0.7*Vpu_low and VIL=0.3*Vpu_low if Vpu=Vpu_low, and VIH=0.7*Vpu_high and VIL=0.3*Vpu_high if Vpu=Vpu_high, which result respectively in VIH=1.26 V and VIL=0.54 V if Vpu=Vpu_low=1.8 V, and VIH=2.31 V and VIL=0.99 V if Vpu=Vpu_high=3.3 V). Therefore, after being programmed, the comparator stage operates with larger hysteresis, and provides good rejection against the noise generated by the switching components of the device.
Operation as described above can be achieved by different architectures of the comparator stage of the I2C interface, as illustrated for instance in the example embodiments of
Operation of the I2C interface circuit 10 as exemplified in
Operation of the I2C interface circuit 30 as exemplified in
Operation of the I2C interface circuit 40 as exemplified in
With the novel architecture of the I2C interface disclosed herein, there is no need to bring the pull-up voltage Vpu to the device (insofar as the value of the pull-up voltage Vpu is communicated to the device via an I2C message during the start-up phase, when rejection to noise is not an issue), thus saving one conductive trace on the PCB and reducing the pin count of the integrated circuit.
Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described by way of example, without departing from the extent of protection.
The claims are an integral part of the technical teaching provided herein in respect of the embodiments.
The extent of protection is determined by the annexed claims.
Number | Date | Country | Kind |
---|---|---|---|
102024000000123 | Jan 2024 | IT | national |