A system for multiplexing selectable internal pull-up resistors across voltage domains
By adopting a cross-voltage domain design in the optional built-in pull-up resistor multiplexing system, using the SCL/SDA interface and PMOS transistors, combined with the logic retention module and bias voltage, the power backfeed problem during communication between different power domains is solved. It improves the application range of the chip and avoids power leakage.
Patent Information
- Application Number
- CN201911263777.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-04
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-12-04
AI Technical Summary
The existing optional built-in pull-up resistor multiplexing system is prone to power supply voltage backfeed problems when communicating between chips with different power supply voltages, resulting in current leakage and limiting the application range of the chip.
A cross-voltage domain optional built-in pull-up resistor multiplexing system is designed, using the SCL/SDA interface, the first and second pull-up resistors, PMOS transistors and logic retention modules. By setting the bias voltage Vbias and the selection voltage Vsel, Ensure that the pull-up resistor is effectively turned on and off under different power supply voltage conditions to prevent power supply voltage backfeed.
It achieves the avoidance of power supply voltage backfeed during communication between different power domains, improves the application range of the chip, and avoids leakage current from the power supply to the ground.
Smart Images

Figure CN110932716B
Abstract
Description
Technical Field
[0001] The invention relates to electronic circuits, and in particular to a cross-voltage domain selectable built-in pull-up resistor multiplexing system. Background Art
[0002] In existing circuits, SDA and SCL are communication interfaces of interfaces such as I2C, and need to be connected to pull-up resistors respectively. In order to reduce system board components, many designs set the pull-up resistors as built-in. When the interface is reused for other applications, it is hoped that there will be no pull-up resistors. In this case, the path from SDA / SCL to the power supply VDD must be cut off.
[0003] A known structure diagram of an optional built-in pull-up resistor multiplexing system is shown in FIG. Figure 1 As shown, one end of R1 and R2 and the other end of R1 and R2 are connected to the drain of PMOS transistors MP1 and MP2 respectively, the gates of MP1 and MP2 are connected to the selection signal SEL (the corresponding voltage is recorded as Vsel), and the source and substrate of MP1 and MP2 are connected to the power supply voltage VDD. Inverters are also connected to the back of SDA and SCL to enhance the drive of the internal logic of the chip. When Vsel is high, transistors MP1 and MP2 are turned on, providing a high level equal to VDD for pull-up resistors R1 and R2; when Vsel is low, transistors MP1 and MP2 are turned off, and no path is formed between SEL and SDA / SCL. In this way, optional built-in pull-up resistor multiplexing can be achieved.
[0004] However, the power supply in this circuit structure is usually the chip power supply. If the voltage of the other chip communicating with SDA and SCL is different from the voltage of the current chip power supply that powers the structure, there is a risk of power supply voltage backflow. For example, if the power supply voltage of the other chip is higher than the current chip power supply voltage, SCL will pull the current chip power supply; if the power supply voltage of the other chip is lower than the current chip power supply voltage, the two pull-up resistors R1 and R2 will pull the voltage of the other chip power supply and cause the inverter PMOS behind SCL to not be completely turned off, resulting in the formation of a current from VDD to GND. Summary of the invention
[0005] Purpose of the invention: To overcome the defects of the prior art, the present invention provides a system for multiplexing a built-in pull-up resistor with selectable cross-voltage domains.
[0006] Technical solution: The cross-voltage domain optional built-in pull-up resistor multiplexing system of the present invention comprises an SCL / SDA interface, a first pull-up resistor, a second pull-up resistor, a first PMOS transistor, a second PMOS transistor, and three logic holding modules; the first ends of the first pull-up resistor and the second pull-up resistor are respectively connected to the two ends of the SCL / SDA interface; the second end of the first pull-up resistor and the second end of the second pull-up resistor are respectively connected to the drain of the first PMOS transistor and the drain of the second PMOS transistor; the voltage on the substrate of the first PMOS transistor and the voltage on the substrate of the second PMOS transistor are respectively equal to the voltage on the drain of each transistor; the source of the first PMOS transistor and the source of the second PMOS transistor are both connected to the selection voltage; the gate of the first PMOS transistor and the gate of the second PMOS transistor are respectively connected to the selection voltage. The gates are connected, and the voltage on the gate of the first PMOS transistor is inversely proportional to the selection voltage; each logic holding module includes an in-block NMOS transistor, an in-block PMOS transistor and an in-block inverter; in each logic holding module: the gate of the in-block NMOS transistor is connected to the bias voltage, the drain is connected to the input end of the in-block inverter, and the substrate is connected to the ground voltage; the source and substrate of the in-block PMOS transistor are connected to the power supply voltage, the gate is connected to the output end of the module inverter, and the drain is connected to the input end of the in-block inverter; the positive and negative electrodes of the in-block inverter are respectively connected to the power supply voltage and the ground voltage; the source of the in-block NMOS transistor of the first logic holding module is connected to the selection voltage; the sources of the in-block NMOS transistors of the second and third logic holding modules are respectively connected to the first end of the first pull-up resistor and the first end of the second pull-up resistor.
[0007] Furthermore, the gate of the second PMOS transistor is connected to the output terminal of the intra-block inverter of the first logic holding module.
[0008] Furthermore, it also includes a third PMOS transistor; the substrate electrodes of the first PMOS transistor and the second PMOS transistor are connected; the source and drain of the third PMOS transistor are connected to the substrate electrode of the first PMOS transistor; the gate of the third PMOS transistor is connected to the gate of the second PMOS transistor; the drain of the third PMOS transistor is connected to the second end of the first pull-up resistor or the second end of the second pull-up resistor.
[0009] Furthermore, it also includes a third PMOS transistor and a fourth PMOS transistor; the substrate electrodes of the first PMOS transistor and the second PMOS transistor are connected; the source and substrate electrodes of the third PMOS transistor and the source and substrate electrodes of the fourth PMOS transistor are both connected to the substrate electrode of the first PMOS transistor; the gate of the third PMOS transistor and the gate of the fourth PMOS transistor are respectively connected to the second end of the second pull-up resistor and the first pull-up resistor; the drain of the third PMOS transistor and the drain of the fourth PMOS transistor are respectively connected to the second end of the first pull-up resistor and the second pull-up resistor.
[0010] Furthermore, the substrate electrode of the first PMOS transistor and the substrate electrode of the second PMOS transistor are respectively connected to their respective drain electrodes.
[0011] Further, Vsel, VDD and Vbias satisfy the following relationship: when Vsel>VDD, Vih+Vt<Vbias≤VDD+Vt; when Vsel<VDD, Vih+Vt<Vbias≤VSEL+Vt; wherein Vih is the voltage value corresponding to the logic high level of the signal input to the SCL / SDA interface, and Vt is the threshold voltage of the NMOS transistor.
[0012] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0013] (1) Ability to multiplex optional built-in pull-up resistors to adapt to flexible and diverse system applications;
[0014] (2) It can effectively prevent the voltage backflow problem when chips in different voltage domains communicate with each other, that is, it is not required that the communicating chip and the chip be in the same voltage domain, which greatly increases the application range of the chip;
[0015] (3) Avoid leakage current from power supply to ground. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a circuit diagram of the existing optional built-in pull-up resistor multiplexing system;
[0017] Figure 2 It is a circuit diagram of an embodiment of a system for multiplexing a selectable built-in pull-up resistor across voltage domains of the present invention;
[0018] Figure 3 It is a circuit diagram of another embodiment of the system for multiplexing a selectable built-in pull-up resistor across voltage domains of the present invention;
[0019] Figure 4 It is a circuit diagram of another embodiment of the system for multiplexing optional built-in pull-up resistors across voltage domains of the present invention. DETAILED DESCRIPTION
[0020] The present invention is described in detail below with reference to the accompanying drawings.
[0021] Embodiment 1
[0022] like Figure 2 In this embodiment, the cross-voltage domain optional built-in pull-up resistor multiplexing system includes an SCL / SDA interface, a first pull-up resistor R1, a second pull-up resistor R2, a first PMOS transistor MP1, a second PMOS transistor MP2, a third PMOS transistor MP3, and three logic holding modules.
[0023] The first ends of the first pull-up resistor R1 and the second pull-up resistor R2 are respectively connected to the two ends of the SCL / SDA interface. The drain of the first PMOS transistor MP1 and the drain of the third PMOS transistor MP3 are both connected to the second end of the first pull-up resistor R1. The drain of the second PMOS transistor MP2 is connected to the second end of the second pull-up resistor R2. The source of the first PMOS transistor MP1 and the source of the second PMOS transistor MP2 are both connected to the selection voltage Vsel. The gate and substrate of the first PMOS transistor MP1 are respectively connected to the gate and substrate of the second PMOS transistor MP2. The source and substrate of the third PMOS transistor MP3 are both connected to the substrate of the first PMOS transistor MP1, and the gate is connected to the gate of the second PMOS transistor MP2.
[0024] Each logic holding module includes an in-block NMOS transistor (MN), an in-block PMOS transistor (MP) and an in-block inverter. In each logic holding module: the gate of the in-block NMOS transistor (MN) is connected to a bias voltage (Vbias), the drain is connected to the input end of the in-block inverter, and the substrate is connected to a ground voltage (GND); the source and substrate of the in-block PMOS transistor (MP) are connected to a power supply voltage (VDD), the gate is connected to the output end of the module inverter, and the drain is connected to the input end of the in-block inverter; the positive and negative electrodes of the in-block inverter are respectively connected to the power supply voltage (VDD) and the ground voltage (GND). The source of the in-block NMOS transistor (MN) of the first logic holding module is connected to a selection voltage (Vsel). The sources of the in-block NMOS transistors (MN) of the second and third logic holding modules are respectively connected to the first end of the first pull-up resistor (R1) and the first end of the second pull-up resistor (R2). The output terminal of the inverter in the first logic holding module is connected to the gate of the second PMOS transistor (MP2), so that the voltages on the gates of MP1 and MP2 are opposite to the selection voltage Vsel.
[0025] Embodiment 2
[0026] Different from the first embodiment, Figure 3In this embodiment, in addition to the third PMOS transistor MP3, a fourth PMOS transistor MP4 is also included. The connection method of the source, drain and substrate of the third PMOS transistor MP3 is the same as that of the first embodiment, and the gate of the third PMOS transistor MP3 is connected to the drain of the second PMOS transistor MP2 instead of the gate. The source and substrate of the fourth PMOS transistor MP4 are connected to the substrate of the second PMOS transistor MP2, the gate is connected to the drain of the first PMOS transistor MP1, and the drain is connected to the drain of the second PMOS transistor MP2.
[0027] The connection method of the second embodiment can also make the drain voltage of the first PMOS transistor MP1 equal to its substrate voltage, and the drain voltage of the second PMOS transistor MP2 equal to its substrate voltage.
[0028] Embodiment 3
[0029] like Figure 4 , Embodiment 3 can be regarded as Embodiment 1 without the third PMOS transistor MP3. In addition, unlike Embodiment 1, the substrate electrode of the first PMOS transistor MP1 and the substrate electrode of the second PMOS transistor MP2 are respectively connected to the drain electrodes of the respective transistors, rather than being connected to each other. In this way, the drain voltage of the first PMOS transistor MP1 can be equal to its substrate voltage, and the drain voltage of the second PMOS transistor MP2 can be equal to its substrate voltage.
[0030] Working principle description:
[0031] In the above three embodiments, when SEL is grounded, the inverter behind SEL outputs a high level VDD, and MP1, MP2, and MP3 are all turned off. At this time, even if SDA or SCL is connected to a high level, no path will be formed between SDA, SCL, and SEL. This corresponds to the situation when the pull-up resistors R1 and R2 are not connected.
[0032] When the entire multiplexing system communicates with an external chip, the selection signal SEL is connected to an external high level (for example, the power supply voltage of the external chip), where the external high level is not required to be consistent with the internal VDD. At this time, the system needs to provide pull-up resistors R1 and R2 for SDA and SCL. In the case where Vsel is inconsistent with the power supply voltage VDD of this chip: when Vsel>VDD, Vih+Vt<Vbias≤VDD+Vt is required; when Vsel<VDD, Vih+Vt<Vbias≤VSEL+Vt is required, where Vih is the voltage value corresponding to the logic high level of the signal input to the SCL / SDA interface, and Vt is the threshold voltage of the NMOS transistor. In both cases, the inverter in the block in the first logic holding module connected after SEL outputs a low level, thereby pulling the output of the inverter in the block to the power supply voltage of the chip; at the same time, the PMOS transistors MP1, MP2, and MP3 as switches are turned on, and the system provides the high-level selection voltage Vsel to the two pull-up resistors R1 and R2.
[0033] In the above content, the reason for setting the value of the bias voltage Vbias is that the voltage connected to the pull-up resistor is Vsel, which is different from the power supply voltage VDD of this chip, so the SDA / SCL interface also needs to perform cross-voltage domain signal processing. By setting the value of the bias voltage Vbias, the conduction of the NMOS transistor in the block can be controlled, thereby preventing the different voltages on both sides of the source and drain of the NMOS transistor in the block from affecting the voltage on the opposite side, so as to realize the cross-voltage domain signal processing of the SDA / SCL interface.
[0034] At the same time, the input terminal of the inverter in the block is connected to the drain terminal of the PMOS in the block, and the output terminal is connected to the gate terminal of the PMOS in the block, realizing high-level latching, thereby locking the high level in the logic holding module to VDD, avoiding the leakage from VDD to GND caused by the simultaneous conduction of PMOS and NMOS in the inverter in the block.
Claims
1. A system for multiplexing optional internal pull-up resistors across voltage domains, characterized in that: It includes an SCL / SDA interface, a first pull-up resistor (R1), a second pull-up resistor (R2), a first PMOS transistor (MP1), a second PMOS transistor (MP2), and three logic holding modules; The first ends of the first pull-up resistor (R1) and the second pull-up resistor (R2) are respectively connected to the two ends of the SCL / SDA interface; the second end of the first pull-up resistor (R1) and the second end of the second pull-up resistor (R2) are respectively connected to the drain of the first PMOS transistor (MP1) and the drain of the second PMOS transistor (MP2); the voltage on the substrate of the first PMOS transistor (MP1) and the voltage on the substrate of the second PMOS transistor (MP2) are respectively equal to the voltage on the drain of the respective transistors; the source of the first PMOS transistor (MP1) and the source of the second PMOS transistor (MP2) are both connected to the selection voltage (Vsel); the gate of the first PMOS transistor (MP1) is connected to the gate of the second PMOS transistor (MP2), and the voltage on the gate of the first PMOS transistor (MP1) is inverse to the selection voltage (Vsel); Each logic holding module includes an NMOS transistor (MNa, MNb, MNc) in the block, a PMOS transistor (MPa, MPb, MPc) in the block and an inverter in the block; in each logic holding module: the gate of the NMOS transistor (MNa, MNb, MNc) in the block is connected to a bias voltage (Vbias), the drain is connected to the input end of the inverter in the block, and the substrate is connected to a ground voltage (GND); the source and substrate of the PMOS transistor (MPa, MPb, MPc) in the block are connected to a power supply voltage (VDD), the gate is connected to the output end of the module inverter, and the drain is connected to the input end of the inverter in the block; the positive and negative electrodes of the inverter in the block are connected to the power supply voltage (VDD) and the ground voltage (GND) respectively; The source of the in-block NMOS transistor (MNa) of the first logic holding module is connected to the selection voltage (Vsel); the sources of the in-block NMOS transistors (MNb, MNc) of the second and third logic holding modules are connected to the first end of the first pull-up resistor (R1) and the first end of the second pull-up resistor (R2), respectively; The gate of the second PMOS transistor (MP2) is connected to the output terminal of the in-block inverter of the first logic holding module.
2. The cross-voltage domain selectable built-in pull-up resistor multiplexing system according to claim 1, characterized in that: The invention also includes a third PMOS transistor (MP3); the substrate electrodes of the first PMOS transistor (MP1) and the second PMOS transistor (MP2) are connected; the source and drain of the third PMOS transistor (MP3) are connected to the substrate electrode of the first PMOS transistor (MP1); the gate of the third PMOS transistor (MP3) is connected to the gate of the second PMOS transistor (MP2); and the drain of the third PMOS transistor (MP3) is connected to the second end of the first pull-up resistor (R1) or the second end of the second pull-up resistor (R2).
3. The cross-voltage domain selectable built-in pull-up resistor multiplexing system according to claim 1, characterized in that: The invention also includes a third PMOS transistor (MP3) and a fourth PMOS transistor (MP4); the substrate electrodes of the first PMOS transistor (MP1) and the second PMOS transistor (MP2) are connected; the source electrode and the substrate electrode of the third PMOS transistor (MP3) and the source electrode and the substrate electrode of the fourth PMOS transistor (MP4) are connected to the substrate electrode of the first PMOS transistor (MP1); the gate electrode of the third PMOS transistor (MP3) and the gate electrode of the fourth PMOS transistor (MP4) are respectively connected to the second end of the second pull-up resistor (R2) and the first pull-up resistor (R1); the drain electrode of the third PMOS transistor (MP3) and the drain electrode of the fourth PMOS transistor (MP4) are respectively connected to the second end of the first pull-up resistor (R1) and the second pull-up resistor (R2).
4. The cross-voltage domain selectable built-in pull-up resistor multiplexing system according to claim 1, characterized in that: The substrate electrode of the first PMOS transistor (MP1) and the substrate electrode of the second PMOS transistor (MP2) are respectively connected to their respective drain electrodes.
5. The cross-voltage domain selectable built-in pull-up resistor multiplexing system according to claim 1, characterized in that: Vsel, VDD and Vbias satisfy the following relationship: When Vsel>VDD, Vih+Vt<Vbias≤VDD+Vt; When Vsel<VDD, Vih+Vt<Vbias≤VSEL+Vt; Wherein, Vih is the voltage value corresponding to the logic high level of the signal input to the SCL / SDA interface, and Vt is the threshold voltage of the NMOS transistor.
