I2C pin function multiplexing circuit and electronic chip
By designing the I2C pin function multiplexing circuit in an electronic chip, and using the comparison module and logic module to control the enable state of the I2C module and functional module, the problems of large circuit area and logic errors in the prior art are solved, and more efficient I2C signal multiplexing.
Patent Information
- Application Number
- CN202411096865.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-12
AI Technical Summary
In the prior art, electronic chips need to design multiple comparators when multiplexing signal lines of the I2C module, resulting in a large circuit area and a logical error in enabling both the functional module and the I2C module may occur during the communication stage.
Design an I2C pin function multiplexing circuit, receives the voltage signals of the serial clock line and data line of the I2C module through the first comparison module and the second comparison module, and outputs the level signal to the logic module using the reference voltage. Control the enable status of the function module and the I2C module according to the level signal, ensure that the I2C module is not enabled when the function module is enabled, and vice versa.
The number of comparison modules is reduced, the circuit area is reduced, and the logic error of the I2C chip when the functional module multiplexes the I2C signal lines is avoided.
Smart Images

Figure CN118944658A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the technical field of integrated circuits and related technical fields, and in particular, to a circuit suitable for multiplexing functions of I2C pins. Background Art
[0002] I2C (Inter-Integrated Circuit) is a serial communication bus protocol, commonly used to connect communications between various integrated circuits.
[0003] In the prior art, when an electronic chip has an I2C module and a functional module with an enable control, the enable signal of the functional module with the enable control can be input through the signal line (such as SCL and SDA signal lines) of the I2C module during the non-communication phase of the I2C module, thereby eliminating the external enable pin of the functional module and reducing the chip cost. However, in the process of the functional module multiplexing the signal line of the I2C module, multiple comparators need to be designed, resulting in a larger overall circuit area inside the electronic chip, and when the I2C module is in the communication phase, the SCL signal or the SDA signal is in the process of changing from a high level to a low level or from a low level to a high level, there will be a state where both the functional module and the I2C module are enabled, resulting in a logic error. Summary of the invention
[0004] The embodiments described herein provide an I2C pin function multiplexing circuit and an electronic chip, which can reduce the number of comparators in the process of enabling a function module of the electronic chip to reuse a signal line of an I2C module.
[0005] In a first aspect, according to the content of the present disclosure, an I2C pin function multiplexing circuit is provided, comprising: a first comparison module, a second comparison module and a logic module, wherein a first reference voltage of the first comparison module is greater than a low level threshold voltage of the I2C module, a second reference voltage of the second comparison module is less than a high level threshold voltage of the I2C module, and the first reference voltage is less than the second reference voltage;
[0006] The first comparison module is configured to receive a first voltage signal of a serial clock line of the I2C module and a second voltage signal of a serial data line of the I2C module, and compare a voltage signal with a lower voltage value between the first voltage signal and the second voltage signal with the first reference voltage to output a first level signal to the logic module;
[0007] The second comparison module is configured to receive the first voltage signal of the serial clock line and the second voltage signal of the serial data line, and compare the voltage signal with a higher voltage value between the first voltage signal and the second voltage signal with the second reference voltage to output a second level signal to the logic module;
[0008] The logic module is configured to output an enable signal to the functional module according to the first level signal and the second level signal to control the enable state of the functional module.
[0009] In some embodiments of the present disclosure, the logic module is further configured to invert the enable signal and then output a reverse enable signal to the I2C module to control the enable state of the I2C module.
[0010] In some embodiments of the present disclosure, the first comparison module includes a first selection unit, a first reference voltage receiving unit, a first current mirror unit, a first inversion unit and a first current source unit;
[0011] The first selection unit is configured to receive a first voltage signal of a serial clock line and a second voltage signal of a serial data line, and determine a first current outputted by the first selection unit to the first node according to the first voltage signal and the second voltage signal;
[0012] The first reference voltage receiving unit is configured to receive a first reference voltage and determine a second current output by the first reference voltage receiving unit according to the first reference voltage;
[0013] The first current mirror unit is configured to mirror the second current output by the first reference voltage receiving unit to the first node;
[0014] The first inverting unit is configured to determine a level signal of a first node according to the first current and the second current, invert the level signal of the first node to obtain a first level signal, and output the first level signal to the logic module;
[0015] The first current source unit is configured to output a current signal to the first selection unit and the first reference voltage receiving unit.
[0016] In some embodiments of the present disclosure, the first selection unit includes a first transistor and a second transistor, the first reference voltage receiving unit includes a third transistor, the first current mirror unit includes a fourth transistor and a fifth transistor, the first reverse unit includes a first inverter, the first current source unit includes a first current source, the first end of the first transistor, the first end of the second transistor and the first end of the third transistor are respectively electrically connected to the output end of the first current source, the second end of the first transistor and the second end of the second transistor are respectively electrically connected to the first node, the control end of the first transistor receives the second voltage signal of the serial data line, the control end of the second transistor receives the first voltage signal of the serial clock line, the second end of the third transistor is respectively electrically connected to the first end of the fourth transistor, the control end of the fourth transistor and the control end of the fifth transistor, the control end of the third transistor receives the first reference voltage, the first end of the fifth transistor is electrically connected to the first node, the second end of the fourth transistor and the second end of the fifth transistor are respectively electrically connected to the ground node, the input end of the first inverter is electrically connected to the first node, the output end of the first inverter outputs a first level signal, and the input end of the first current source is electrically connected to a power supply node.
[0017] In some embodiments of the present disclosure, the first transistor, the second transistor and the third transistor are PMOS transistors, and the fourth transistor and the fifth transistor are NMOS transistors.
[0018] In some embodiments of the present disclosure, the second comparison module includes a second selection unit, a second reference voltage receiving unit, a second current mirror unit, a second inversion unit, and a second current source unit;
[0019] Wherein, the second selection unit is configured to receive a first voltage signal of the serial clock line and a second voltage signal of the serial data line, and determine a third current output by the second selection unit according to the first voltage signal and the second voltage signal;
[0020] The second reference voltage receiving unit is configured to receive a second reference voltage and determine a fourth current output by the second reference voltage receiving unit according to the second reference voltage;
[0021] The second current mirror unit is configured to mirror the third current output by the second selection unit to the second node;
[0022] The second inverting unit is configured to determine a level signal of a second node according to the third current and the fourth current, invert the level signal of the second node to obtain a second level signal, and output the second level signal to the logic module;
[0023] The second current source unit is configured to receive the current signal output by the first selection unit and the second reference voltage receiving unit.
[0024] In some embodiments of the present disclosure, the second selection unit includes a sixth transistor and a seventh transistor, the second reference voltage receiving unit includes an eighth transistor, the second current mirror unit includes a ninth transistor and a tenth transistor, the second inverting unit includes a second inverter, and the second current source unit includes a second current source. The first end of the sixth transistor is electrically connected to the first end of the seventh transistor, the second end of the ninth transistor, the control end of the ninth transistor, and the control end of the tenth transistor, respectively. The second end of the sixth transistor, the second end of the seventh transistor, and the second end of the eighth transistor are electrically connected to the input end of the second current source, respectively. The control end of the sixth transistor receives a second voltage signal of a serial data line, and the control end of the seventh transistor receives a first voltage signal of a serial clock line. The first end of the eighth transistor is electrically connected to a second node, and the control end of the eighth transistor receives the second reference voltage. The first end of the ninth transistor and the first end of the tenth transistor are electrically connected to a power supply node, and the second end of the tenth transistor is electrically connected to the second node. The input end of the second inverter is electrically connected to the second node, and the output end of the second inverter outputs a second level signal. The output end of the second current source is electrically connected to a ground node.
[0025] In some embodiments of the present disclosure, the sixth transistor, the seventh transistor and the eighth transistor are NMOS transistors, and the ninth transistor and the tenth transistor are PMOS transistors.
[0026] In some embodiments of the present disclosure, the logic module includes an AND gate and a third inverter, the first input end of the AND gate receives the first level signal output by the first selection module, the second input end of the AND gate receives the second level signal output by the second selection module, the output end of the AND gate outputs an enable signal to the input end of the third inverter and the functional module, and the output end of the third inverter outputs a reverse enable signal to the I2C module.
[0027] In some embodiments of the present disclosure, the logic module further includes a filter, an input end of the filter is electrically connected to an output end of the AND gate, and an output end of the filter is electrically connected to input ends of the functional module and the third inverter, respectively.
[0028] In a second aspect, according to the content of the present disclosure, an electronic chip is provided, comprising the I2C pin function multiplexing circuit described in any one of the first aspect.
[0029] The I2C pin function multiplexing circuit provided by the embodiment of the present disclosure includes a first comparison module and a second comparison module by setting the circuit, the first comparison module compares the relationship between the voltage signal with a lower voltage value in the first voltage signal of the serial clock line and the second voltage signal of the serial data line and the first reference voltage, and then outputs a first level signal, the second comparison module compares the relationship between the voltage signal with a higher voltage value in the first voltage signal of the serial clock line and the second voltage signal of the serial data line and the second reference voltage, and then outputs a second level signal, the logic module controls the function module or the I2C module to be in an enabled state according to the first level signal and the second level signal, so that when the function module is in the enabled state, the I2C module is in In the non-enabled state, when the I2C module is in the enabled state, the functional module is in the non-enabled state, so as to avoid the logic error of the I2C chip caused by the I2C module and the functional module being in the enabled state during the process of the functional module multiplexing the signal line of the I2C module. In addition, in the embodiment of the present disclosure, only the first comparison module and the second comparison module are set to determine the relationship between the first voltage signal of the serial clock line input and the second voltage signal of the serial data line input and the low-level threshold voltage and the high-level threshold voltage of the I2C module, thereby reducing the number of comparison modules in the use scenario of the functional module multiplexing the I2C module and reducing the overall circuit area of the I2C function pin multiplexing circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:
[0031] Figure 1 It is a structural schematic diagram of an I2C pin function multiplexing circuit in a technology provided by an embodiment of the present disclosure;
[0032] Figure 2 It is a structural schematic diagram of an I2C pin function multiplexing circuit provided by an embodiment of the present disclosure;
[0033] Figure 3 It is a structural schematic diagram of another I2C pin function multiplexing circuit provided by an embodiment of the present disclosure;
[0034] Figure 4 Schematic diagram of the circuit structure of the first comparison module and the second comparison module provided in the embodiment of the present disclosure
[0035] Figure 5 is a timing diagram of an I2C pin function multiplexing circuit provided by an embodiment of the present disclosure;
[0036] Figure 6 It is a schematic diagram of the structure of an electronic chip provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0038] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0039] In all embodiments of the present disclosure, terms such as “first” and “second” are used only to distinguish one component (or a part of a component) from another component (or another part of a component).
[0040] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.
[0041] In one implementation, Figure 1As shown, the I2C pin function multiplexing circuit includes a first comparator, a second comparator, a third comparator, a fourth comparator and a logic module. When the first voltage signal output by the serial clock line SCL and the second voltage signal output by the serial data line SDA are both within the range of the first reference voltage VREF1 and the second reference voltage VREF2, the first comparator, the second comparator, the third comparator and the fourth comparator all output a high level to the logic module, at which time the function module is enabled; when the first voltage signal output by the serial clock line SCL and the second voltage signal output by the serial data line SDA are less than the first reference voltage VREF1, or greater than the second reference voltage VREF2, the I2C module is enabled. Since the I2C pin multiplexing circuit includes four comparators, the circuit area is relatively large.
[0042] Based on the problems existing in the prior art, the present invention provides an I2C pin function multiplexing circuit. Figure 2 is a schematic diagram of a structure of an I2C pin function multiplexing circuit provided by an embodiment of the present disclosure, such as Figure 2 As shown, the I2C pin function multiplexing circuit includes: a first comparison module 10, a second comparison module 20 and a logic module 30, the first reference voltage VREF1 of the first comparison module 10 is greater than the low level threshold voltage VIL of the I2C module, the second reference voltage VREF2 of the second comparison module 20 is less than the high level threshold voltage VIH of the I2C module, and the first reference voltage VREF1 is less than the second reference voltage VREF2; wherein the first comparison module 10 is configured to receive a first voltage signal V1 of a serial clock line SCL of the I2C module and a second voltage signal V2 of a serial data line SDA of the I2C module, and utilize the first voltage signal V1 and the second voltage signal V2 to generate a first voltage signal V1 of a serial clock line SCL of the I2C module and a second voltage signal V2 of a serial data line SDA of the I2C module, and generate a second voltage signal V1 of a first comparison module 10 and a second voltage signal V2 of a second comparison module 20; The voltage signal with a lower voltage value in the first voltage signal V2 is compared with the first reference voltage VREF1 to output a first level signal OUT1 to the logic module 30; the second comparison module 20 is configured to receive the first voltage signal V1 of the serial clock line SCL and the second voltage signal V2 of the serial data line SDA, and compare the voltage signal with a higher voltage value in the first voltage signal V1 and the second voltage signal V2 with the second reference voltage VREF2 to output a second level signal OUT2 to the logic module 30; the logic module 30 is configured to output an enable signal EN to the functional module according to the first level signal OUT1 and the second level signal OUT2 to control the enable state of the functional module.
[0043] Specifically, the first comparison module 10 receives the first voltage signal V1 of the serial clock line SCL and the second voltage signal V2 of the serial data line SDA respectively, and selects the voltage signal with a lower voltage value from the first voltage signal V1 and the second voltage signal V2 to compare with the first reference voltage VREF1 by comparing the voltage values of the first voltage signal V1 and the second voltage signal V2. When the voltage signal with a lower voltage value in the first voltage signal V1 and the second voltage signal V2 is less than the first reference voltage VREF1, the first level signal OUT1 output by the first comparison module 10 is a low level. When the voltage signal with a lower voltage value in the first voltage signal V1 and the second voltage signal V2 is greater than the first reference voltage VREF1, the first level signal OUT1 output by the first comparison module 10 is a high level.
[0044] The second comparison module 20 receives the first voltage signal V1 of the serial clock line SCL and the second voltage signal V2 of the serial data line SDA respectively, and selects a voltage signal with a higher voltage value from the first voltage signal V1 and the second voltage signal V2 to compare with the second reference voltage VREF2 by comparing the voltage values of the first voltage signal V1 and the second voltage signal V2. When the voltage signal with a higher voltage value among the first voltage signal V1 and the second voltage signal V2 is less than the second reference voltage VREF2, the second level signal OUT2 output by the second comparison module 20 is a high level. When the voltage signal with a higher voltage value among the first voltage signal V1 and the second voltage signal V2 is greater than the second reference voltage VREF2, the second level signal OUT2 output by the second comparison module 20 is a low level.
[0045] The logic module 30 determines the output enable signal EN according to the first level signal OUT1 output by the first comparison module 10 and the second level signal OUT2 output by the second comparison module 20. If the first level signal OUT1 output by the first comparison module 10 is high level and the second level signal OUT2 output by the second comparison module 20 is high level, then the enable signal EN output by the logic module 30 to the functional module is high level, and the functional module is in an enabled state. If the first level signal OUT1 output by the first comparison module 10 is low level and the second level signal OUT2 output by the second comparison module 20 is low level, then the enable signal output by the logic module 30 to the functional module is low level, and the functional module is in a disabled state.
[0046] Since the first reference voltage VREF1 of the first comparison module 10 is smaller than the low level threshold voltage of the I2C module, the second reference voltage VREF2 of the second comparison module 20 is smaller than the high level threshold voltage of the I2C module, and the first reference voltage VREF1 is smaller than the second reference voltage VREF2, when the first comparison module VREF1 compares the voltage signal with a lower voltage value among the first voltage signal V1 and the second voltage signal V2 with the first reference voltage VREF1 and outputs the first level signal OUT1, the first level signal OUT1 can indicate whether the smaller voltage signal among the first voltage signal V1 input by the serial clock line SCL and the second voltage signal V2 input by the serial data line SDA is the working voltage signal of the I2C module or the working voltage signal of the functional module, and when the second comparison module 20 compares the voltage signal with a higher voltage value among the first voltage signal V1 and the second voltage signal V2 with the second reference voltage VREF2 and outputs the second level signal OUT2, the second level signal OUT2 can indicate whether the larger voltage signal among the first voltage signal V1 input by the serial clock line SCL and the second voltage signal V2 input by the serial data line SDA is the working voltage signal of the I2C module or the working voltage signal of the functional module. Specifically, when the first level signal OUT1 output by the first comparison module 10 is at a high level, it is characterized that the voltage signal with a lower voltage value among the first voltage signal V1 input by the serial clock line SCL and the second voltage signal V2 input by the serial data line SDA is the working voltage signal of the functional module; when the first level signal OUT1 output by the first comparison module 10 is at a low level, it is characterized that the voltage signal with a lower voltage value among the first voltage signal V1 input by the serial clock line SCL and the second voltage signal V2 input by the serial data line SDA is the working voltage signal of the I2C module; when the second level signal OUT2 output by the second comparison module 20 is at a high level, it is characterized that the voltage signal with a higher voltage value among the first voltage signal V1 input by the serial clock line SCL and the second voltage signal V2 input by the serial data line SDA is the working voltage signal of the functional module; when the second level signal OUT2 output by the second comparison module 20 is at a low level, it is characterized that the voltage signal with a higher voltage value among the first voltage signal V1 input by the serial clock line SCA and the second voltage signal V2 input by the serial data line SDA is the working voltage signal of the I2C module. When the level signals output by the first comparison module 10 and the second comparison module 20 are both high level, the enable signal output by the logic module 30 is high level, at this time, the functional module is in an enabled state, and when there is a low level in the level signals output by the first comparison module 10 and / or the second comparison module 20, the enable signal output by the logic module 30 is low level, at this time, the functional module is in a disabled state.
[0047] It should be noted that in the embodiments of the present disclosure, the functional module may be a clock spectrum spreading module, a clock phase shift module, etc. inside the chip, and the embodiments of the present disclosure do not specifically limit the functional module.
[0048] The I2C pin function multiplexing circuit provided by the embodiment of the present disclosure includes a first comparison module and a second comparison module by setting the circuit, the first comparison module compares the relationship between the voltage signal with a lower voltage value in the first voltage signal of the serial clock line and the second voltage signal of the serial data line and the first reference voltage and then outputs a first level signal, the second comparison module compares the relationship between the voltage signal with a higher voltage value in the first voltage signal of the serial clock line and the second voltage signal of the serial data line and the second reference voltage and then outputs a second level signal, and the logic module outputs an enable signal to the functional module according to the first level signal and the second level signal to control the enable state of the functional module. In the embodiment of the present disclosure, only the first comparison module and the second comparison module are set to achieve the determination of the relationship between the first voltage signal of the serial clock line input and the second voltage signal of the serial data line input and the low level threshold voltage and the high level threshold voltage of the I2C module, thereby reducing the number of comparison modules in the use scenario of the functional module multiplexing I2C module, and reducing the overall circuit area of the I2C function pin multiplexing circuit.
[0049] In a specific implementation, the logic module is further configured to invert the enable signal EN and then output a reverse enable signal NEN to the I2C module to control the enable state of the I2C module.
[0050] If the first level signal OUT1 output by the first comparison module 10 is high level, and the second level signal OUT2 output by the second comparison module 20 is high level, at this time, the reverse enable signal NEN output by the logic module 30 to the I2C module is low level, and the I2C module is in a disabled state. If the first level signal OUT1 output by the first comparison module 10 is low level, and / or the second level signal OUT2 output by the second comparison module 20 is low level, at this time, the reverse enable signal output by the logic module 30 to the I2C module is high level, and the I2C module is in an enabled state.
[0051] The logic module controls the functional module or the I2C module to be in an enabled state according to the first level signal and the second level signal, so that when the functional module is in the enabled state, the I2C module is in a disabled state, and when the I2C module is in the enabled state, the functional module is in a disabled state, thereby avoiding the logic error of the I2C chip caused by the I2C module and the functional module being in an enabled state during the process of the functional module multiplexing the signal line of the I2C module.
[0052] In a specific embodiment, in combination with Figure 3 and Figure 4The first comparison module 10 includes a first selection unit 11, a first reference voltage receiving unit 12, a first current mirror unit 13, a first inverting unit 14 and a first current source unit 15; wherein the first selection unit 11 is configured to receive a first voltage signal V1 of a serial clock line SCL and a second voltage signal V2 of a serial data line SDA, and determine a first current outputted from the first selection unit 11 to a first node VX according to the first voltage signal V1 and the second voltage signal V2; the first reference voltage receiving unit 12 is configured to receive a first reference voltage VREF1, and determine a first current outputted from the first selection unit 11 to a first node VX according to the first voltage signal V1 and the second voltage signal V2; the first reference voltage receiving unit 12 is configured to receive a first reference voltage VREF1, and determine a first current outputted from the first selection unit 11 to a first node VX according to the first reference voltage VREF1 EF1 determines the second current output by the first reference voltage receiving unit 12; the first current mirror unit 13 is configured to mirror the second current output by the first reference voltage receiving unit 12 to the first node VX; the first inverting unit 14 is configured to determine the level signal of the first node VX according to the first current and the second current, invert the level signal of the first node VX to obtain the first level signal OUT1, and output the first level signal OUT1 to the logic module 30; the first current source unit 15 is configured to output the current signal to the first selection unit 11 and the first reference voltage receiving unit 12.
[0053] The first selection unit 11 includes a first transistor M1 and a second transistor M2, the first reference voltage receiving unit 12 includes a third transistor M3, the first current mirror unit 13 includes a fourth transistor M4 and a fifth transistor M5, the first reverse unit 14 includes a first inverter F1, the first current source unit 15 includes a first current source I1, the first end of the first transistor M1, the first end of the second transistor M2 and the first end of the third transistor M3 are respectively electrically connected to the output end of the first current source I1, the second end of the first transistor M1 and the second end of the second transistor M2 are respectively electrically connected to the first node VX, and the control end of the first transistor M1 receives the second voltage signal of the serial data line SDA V2, the control end of the second transistor M2 receives the first voltage signal V1 of the serial clock line SCL, the second end of the third transistor M3 is electrically connected to the first end of the fourth transistor M4, the control end of the fourth transistor M4 and the control end of the fifth transistor M5 respectively, the control end of the third transistor M3 receives the first reference voltage VREF1, the first end of the fifth transistor M5 is electrically connected to the first node VX, the second end of the fourth transistor M4 and the second end of the fifth transistor M5 are electrically connected to the ground node respectively, the input end of the first inverter F1 is electrically connected to the first node VX, the output end of the first inverter F1 outputs the first level signal OUT1, and the input end of the first current source I1 is electrically connected to the power supply node.
[0054] The first transistor M1 , the second transistor M2 and the third transistor M3 are PMOS transistors, and the fourth transistor M4 and the fifth transistor M5 are NMOS transistors.
[0055] Specific, combined Figure 3 and Figure 4 , the control end of the first transistor M1 receives the second voltage signal V2 of the serial data line SDA, and the control end of the second transistor M2 receives the first voltage signal V1 of the serial clock line SCL. When the second voltage signal V2 inputted by the serial data line SDA is less than the first voltage signal V1 inputted by the serial clock line SCL, combined with the characteristics of PMOS, since the sources of the first transistor M1 and the second transistor M2 are electrically connected to the power supply node respectively, when the gate of the first transistor M1 receives the second voltage signal V2, and the gate of the second transistor M2 receives the first voltage signal V1, and the first voltage signal V1 is greater than the second voltage signal V2, therefore , the gate-source voltage of the second transistor M2 is lower than the gate-source voltage of the first transistor M1, and the first transistor M1 is easier to be turned on than the second transistor M2. Since the first transistor M1 and the second transistor M2 are connected in parallel, when the first transistor M1 is turned on, the second transistor M2 is short-circuited. Therefore, in the first comparison unit 11, the first transistor M1 is turned on, and the first current output by the first comparison unit 11 to the first node VX is the current flowing through the first transistor M1. At this time, the first current represents the current corresponding to the voltage signal with a smaller voltage value between the first voltage signal V1 of the serial clock line and the second voltage signal V2 of the serial data line.
[0056] In addition, the control terminal of the third transistor M3 receives the first reference voltage VREF1, and the third transistor M3 is turned on under the action of the first reference voltage VREF1. The second current flowing through the third transistor M3 is related to the first reference voltage VREF1 received by the control terminal of the third transistor M3. At this time, the first current mirror unit composed of the fourth transistor M4 and the fifth transistor M5 mirrors the second current output by the third transistor M3 to the first node VX.
[0057] Since the sources of the first transistor M1 and the third transistor M3 are electrically connected to the power supply node respectively, when the second voltage signal V2 input to the first transistor M1 is greater than the first reference voltage VREF1 input to the third transistor M3, the second current flowing through the third transistor M3 is greater than the first current flowing through the first transistor M1. At this time, the first node VX is electrically connected to the ground node and outputs a high level after passing through the first inverter F1. When the second voltage signal V2 input to the first transistor M1 is less than the first reference voltage VREF1 input to the third transistor M3, the second current flowing through the third transistor M3 is less than the first current flowing through the first transistor M1. At this time, the first node VX is electrically connected to the power supply node and outputs a low level after passing through the first inverter F1.
[0058] In a specific embodiment, continue to combine Figure 3 and Figure 4The second comparison module 20 includes a second selection unit 21, a second reference voltage receiving unit 22, a second current mirror unit 23, a second inverting unit 24 and a second current source unit 25; wherein the second selection unit 21 is configured to receive a first voltage signal V1 of the serial clock line SCL and a second voltage signal V2 of the serial data line SDA, and determine the third current output by the second selection unit 21 according to the first voltage signal V1 and the second voltage signal V2; the second reference voltage receiving unit 22 is configured to receive a second reference voltage VREF2, and determine the third current output by the second selection unit 21 according to the second reference voltage VREF 2, determine the fourth current output by the second reference voltage receiving unit 22; the second current mirror unit 23, configured to mirror the third current output by the second selection unit 21 to the second node VY; the second inversion unit 24, configured to determine the level signal of the second node VY according to the third current and the fourth current, invert the level signal of the second node VY to obtain the second level signal OUT2, and output the second level signal OUT2 to the logic module 30; the second current source unit 25, configured to receive the current signal output by the first selection unit 21 and the second reference voltage receiving unit 22.
[0059] The second selection unit 21 includes a sixth transistor M6 and a seventh transistor M7, the second reference voltage receiving unit 22 includes an eighth transistor M8, the second current mirror unit 23 includes a ninth transistor M9 and a tenth transistor M10, the second inverting unit 24 includes a second inverter F2, the second current source unit 25 includes a second current source I2, the first end of the sixth transistor M6 is electrically connected to the first end of the seventh transistor M7, the second end of the ninth transistor M9, the control end of the ninth transistor M9 and the control end of the tenth transistor M10, the second end of the sixth transistor M6, the second end of the seventh transistor M7 and the second end of the eighth transistor M8 are electrically connected to the input terminal of the second current source I2, respectively. The first end of the eighth transistor M8 is electrically connected to the second node VY, the control end of the eighth transistor M8 receives the second reference voltage VREF2, the first end of the ninth transistor M9 and the first end of the tenth transistor M10 are electrically connected to the power supply node, the second end of the tenth transistor M10 is electrically connected to the second node VY, the input end of the second inverter F2 is electrically connected to the second node VY, the output end of the second inverter F2 outputs the second level signal OUT2, and the output end of the second current source I2 is electrically connected to the ground node.
[0060] The sixth transistor, the seventh transistor and the eighth transistor are NMOS transistors, and the ninth transistor and the tenth transistor are PMOS transistors.
[0061] Specific, combined Figure 4, the control end of the sixth transistor M6 receives the second voltage signal V2 of the serial data line, and the control end of the seventh transistor M7 receives the first voltage signal V1 of the serial clock line. When the second voltage signal V2 inputted from the serial data line is less than the first voltage signal V1 inputted from the serial clock line, combined with the characteristics of NMOS, since the sources of the sixth transistor M6 and the seventh transistor M7 are electrically connected to the ground node respectively, when the gate of the sixth transistor M6 receives the second voltage signal V2, and the gate of the seventh transistor M7 receives the first voltage signal V1, and the first voltage signal V1 is greater than the second voltage signal V2, therefore, the gate-source voltage of the seventh transistor M7 is greater than the gate-source voltage of the sixth transistor M6, and the seventh transistor M7 is connected to the ground node. The transistor M7 is easier to be turned on than the sixth transistor M6, and since the sixth transistor M6 and the seventh transistor M7 are connected in parallel, when the seventh transistor M7 is turned on, the sixth transistor M6 is short-circuited. Therefore, in the second comparison unit 21, the seventh transistor M7 is turned on, and the third current flowing through the seventh transistor M7 flows into the second node VY after being mirrored by the second current mirror unit composed of the ninth transistor M9 and the tenth transistor M10, that is, the third current flowing into the second node VY is the current flowing through the seventh transistor. At this time, the third current flowing through the second node represents the current corresponding to the voltage signal with a larger voltage value between the first voltage signal of the serial clock line and the second voltage signal of the serial data line.
[0062] In addition, the control terminal of the eighth transistor M8 receives the second reference voltage VREF2, the eighth transistor M8 is turned on under the effect of the second reference voltage VREF2, and the fourth current flowing through the eighth transistor M8 is related to the second reference voltage VREF2 received by the control terminal of the eighth transistor M8.
[0063] Since the sources of the seventh transistor M7 and the eighth transistor M8 are electrically connected to the ground node respectively, when the first voltage signal V1 input to the seventh transistor M7 is greater than the second reference voltage VREF2 input to the eighth transistor M8, the third current flowing through the seventh transistor M7 is greater than the fourth current flowing through the eighth transistor M8. At this time, the second node VY is electrically connected to the power supply node and outputs a low level after passing through the second inverter F2. When the first voltage signal input to the seventh transistor M7 is less than the second reference voltage input to the eighth transistor M8, the third current flowing through the seventh transistor M7 is less than the fourth current flowing through the eighth transistor M8. At this time, the second node VY is electrically connected to the ground node and outputs a high level after passing through the second inverter F2.
[0064] The disclosed embodiment sets a first comparison module and a second comparison module, and compares the voltage signal with a smaller voltage value of the first voltage signal and the second voltage signal with the first reference voltage based on the first comparison module, and compares the voltage signal with a larger voltage value of the first voltage signal and the second voltage signal with the second reference voltage based on the second comparison module, so as to determine the relationship between the first voltage signal inputted by the serial clock line and the second voltage signal inputted by the serial data line and the low-level threshold voltage and the high-level threshold voltage of the I2C module, thereby reducing the number of comparison modules in the use scenario of the functional module multiplexing I2C module, and reducing the overall circuit area of the I2C functional pin multiplexing circuit.
[0065] Based on the above embodiments, continue to refer to Figure 3 The logic module 30 includes an AND gate AND and a third inverter F3, wherein a first input end of the AND gate AND receives a first level signal OUT1 output by the first selection module 10, a second input end of the AND gate AND receives a second level signal OUT2 output by the second selection module 20, an output end of the AND gate AND outputs an enable signal EN to an input end of the third inverter F3 and a functional module, and an output end of the third inverter F3 outputs a reverse enable signal NEN to the I2C module.
[0066] By setting the logic module to include the third inverter F3 of the AND gate AND, when the first selection module 10 outputs a high level and the second selection module 20 outputs a high level, at this time, the enable signal output by the AND gate AND is a high level, the functional module is enabled, the enable signal output by the AND gate AND is inverted by the third inverter F3 and outputs a reverse enable signal of a low level, and the I2C module is disabled. When the first selection module 10 outputs a low level and / or the second selection module 20 outputs a low level, at this time, the enable signal output by the AND gate AND is a low level, the functional module is disabled, the enable signal output by the AND gate AND is inverted by the third inverter F3 and outputs a reverse enable signal of a high level, and the I2C module is enabled.
[0067] Based on the above embodiments, Figure 3 As shown, the logic module 30 further includes a filter, the input end of the filter is electrically connected to the output end of the AND gate AND, and the output end of the filter is electrically connected to the input end of the functional module and the third inverter F3 respectively.
[0068] By setting the logic module 30 to also include a filter, the first comparison module and the second comparison module simultaneously output high-level signals in the flipping process based on filtering out the first voltage signal of the serial clock line and the second voltage signal of the serial data line by the filter, such as Figure 5As shown, the time period t1 and the time period t3 are the flipping time periods of the first voltage signal and the second voltage signal. During this time period, the enable signal output by the logic module will be a high-level signal, but during this time period, it should be the I2C module enable stage. Therefore, by setting a filter, the glitch signal within this time period is filtered out based on the filter to avoid false triggering of the functional module.
[0069] The embodiment of the present disclosure also provides an electronic chip, such as Figure 6 As shown, the electronic chip includes the I2C pin function multiplexing circuit according to the embodiment of the present disclosure. The electronic chip is, for example, a power management chip.
[0070] The embodiments of the present disclosure also provide an electronic device. The electronic device includes an electronic chip according to the embodiments of the present disclosure. The electronic device is, for example, a smart terminal device, such as a tablet computer, a smart phone, etc.
[0071] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0072] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. In addition, the serial numbers of the embodiments of the present application mentioned above are only for description and do not represent the advantages and disadvantages of the embodiments.
[0073] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0074] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An I2C pin function multiplexing circuit, It is characterized in that include: A first comparison module, a second comparison module and a logic module, wherein a first reference voltage of the first comparison module is greater than a low level threshold voltage of the I2C module, a second reference voltage of the second comparison module is less than a high level threshold voltage of the I2C module, and the first reference voltage is less than the second reference voltage; The first comparison module is configured to receive a first voltage signal of a serial clock line of the I2C module and a second voltage signal of a serial data line of the I2C module, and compare a voltage signal with a lower voltage value between the first voltage signal and the second voltage signal with the first reference voltage to output a first level signal to the logic module; The second comparison module is configured to receive the first voltage signal of the serial clock line and the second voltage signal of the serial data line, and compare the voltage signal with a higher voltage value between the first voltage signal and the second voltage signal with the second reference voltage to output a second level signal to the logic module; The logic module is configured to output an enable signal to the functional module according to the first level signal and the second level signal to control the enable state of the functional module.
2. The circuit according to claim 1, It is characterized in that The logic module is further configured to invert the enable signal and then output an inverted enable signal to the I2C module to control the enable state of the I2C module.
3. The circuit according to claim 1, It is characterized in that The first comparison module includes a first selection unit, a first reference voltage receiving unit, a first current mirror unit, a first inversion unit and a first current source unit; The first selection unit is configured to receive a first voltage signal of a serial clock line and a second voltage signal of a serial data line, and determine a first current outputted by the first selection unit to the first node according to the first voltage signal and the second voltage signal; The first reference voltage receiving unit is configured to receive a first reference voltage and determine a second current output by the first reference voltage receiving unit according to the first reference voltage; The first current mirror unit is configured to mirror the second current output by the first reference voltage receiving unit to the first node; The first inverting unit is configured to determine a level signal of a first node according to the first current and the second current, invert the level signal of the first node to obtain a first level signal, and output the first level signal to the logic module; The first current source unit is configured to output a current signal to the first selection unit and the first reference voltage receiving unit.
4. The circuit according to claim 3, It is characterized in that The first selection unit includes a first transistor and a second transistor, the first reference voltage receiving unit includes a third transistor, the first current mirror unit includes a fourth transistor and a fifth transistor, the first reverse unit includes a first inverter, the first current source unit includes a first current source, the first end of the first transistor, the first end of the second transistor and the first end of the third transistor are respectively electrically connected to the output end of the first current source, the second end of the first transistor and the second end of the second transistor are respectively electrically connected to the first node, the control end of the first transistor receives the second voltage signal of the serial data line, the control end of the second transistor receives the first voltage signal of the serial clock line, the second end of the third transistor is respectively electrically connected to the first end of the fourth transistor, the control end of the fourth transistor and the control end of the fifth transistor, the control end of the third transistor receives the first reference voltage, the first end of the fifth transistor is electrically connected to the first node, the second end of the fourth transistor and the second end of the fifth transistor are respectively electrically connected to the ground node, the input end of the first inverter is electrically connected to the first node, the output end of the first inverter outputs a first level signal, and the input end of the first current source is electrically connected to a power supply node.
5. The circuit according to claim 4, It is characterized in that The first transistor, the second transistor and the third transistor are PMOS transistors, and the fourth transistor and the fifth transistor are NMOS transistors.
6. The circuit according to claim 1, It is characterized in that The second comparison module includes a second selection unit, a second reference voltage receiving unit, a second current mirror unit, a second inversion unit and a second current source unit; Wherein, the second selection unit is configured to receive a first voltage signal of the serial clock line and a second voltage signal of the serial data line, and determine a third current output by the second selection unit according to the first voltage signal and the second voltage signal; The second reference voltage receiving unit is configured to receive a second reference voltage and determine a fourth current output by the second reference voltage receiving unit according to the second reference voltage; The second current mirror unit is configured to mirror the third current output by the second selection unit to the second node; The second inverting unit is configured to determine a level signal of a second node according to the third current and the fourth current, invert the level signal of the second node to obtain a second level signal, and output the second level signal to the logic module; The second current source unit is configured to receive the current signal output by the first selection unit and the second reference voltage receiving unit.
7. The circuit according to claim 6, It is characterized in that The second selection unit includes a sixth transistor and a seventh transistor, the second reference voltage receiving unit includes an eighth transistor, the second current mirror unit includes a ninth transistor and a tenth transistor, the second inverting unit includes a second inverter, and the second current source unit includes a second current source. The first end of the sixth transistor is electrically connected to the first end of the seventh transistor, the second end of the ninth transistor, the control end of the ninth transistor, and the control end of the tenth transistor, respectively. The second end of the sixth transistor, the second end of the seventh transistor, and the second end of the eighth transistor are electrically connected to the input end of the second current source, respectively. The control end of the sixth transistor receives a second voltage signal of a serial data line, and the control end of the seventh transistor receives a first voltage signal of a serial clock line. The first end of the eighth transistor is electrically connected to a second node, and the control end of the eighth transistor receives the second reference voltage. The first end of the ninth transistor and the first end of the tenth transistor are electrically connected to a power supply node, and the second end of the tenth transistor is electrically connected to the second node. The input end of the second inverter is electrically connected to the second node, and the output end of the second inverter outputs a second level signal. The output end of the second current source is electrically connected to a ground node.
8. The circuit according to claim 1, It is characterized in that The logic module includes an AND gate and a third inverter, wherein the first input end of the AND gate receives the first level signal output by the first selection module, the second input end of the AND gate receives the second level signal output by the second selection module, the output end of the AND gate outputs an enable signal to the input end of the third inverter and the functional module, and the output end of the third inverter outputs a reverse enable signal to the I2C module.
9. The circuit according to claim 8, It is characterized in that The logic module further includes a filter, an input end of the filter is electrically connected to an output end of the AND gate, and an output end of the filter is electrically connected to input ends of the functional module and the third inverter, respectively.
10. An electronic chip, It is characterized in that The invention comprises the I2C pin function multiplexing circuit as described in any one of claims 1 to 9.
Citation Information
Cited By
Initiation signal processing circuit and communication system
CN120067000A
