[go: up one dir, main page]

CN113176799B - A chip pin circuit, chip and device - Google Patents

A chip pin circuit, chip and device Download PDF

Info

Publication number
CN113176799B
CN113176799B CN202010914602.3A CN202010914602A CN113176799B CN 113176799 B CN113176799 B CN 113176799B CN 202010914602 A CN202010914602 A CN 202010914602A CN 113176799 B CN113176799 B CN 113176799B
Authority
CN
China
Prior art keywords
transistor
pole
comparator
circuit
gate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010914602.3A
Other languages
Chinese (zh)
Other versions
CN113176799A (en
Inventor
刘杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sinan Navigation Technology Co ltd
Original Assignee
COMNAV TECHNOLOGY Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by COMNAV TECHNOLOGY Ltd filed Critical COMNAV TECHNOLOGY Ltd
Publication of CN113176799A publication Critical patent/CN113176799A/en
Application granted granted Critical
Publication of CN113176799B publication Critical patent/CN113176799B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current 
    • G05F1/46Regulating voltage or current  wherein the variable actually regulated by the final control device is DC
    • G05F1/56Regulating voltage or current  wherein the variable actually regulated by the final control device is DC using semiconductor devices in series with the load as final control devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Logic Circuits (AREA)

Abstract

本发明实施例公开了一种芯片管脚电路,包括:芯片管脚、基准电压电路、比较电路,其中,所述比较电路包括多个比较器,每一所述比较器连接所述芯片管脚并从所述芯片管脚接收第一信号,所述基准电压电路生成多个基准电压并分别输出至对应的所述比较器,一所述比较器比较所述第一信号和所述基准电压,生成第一控制信号并传输至芯片内部电路和另一所述比较器,控制所述芯片内部电路和另一所述比较器。本发明实施例提供的芯片管脚电路在芯片管脚接收信号后,可以仅开启部分比较电路接收和转换信号,实现节约功耗的目的。

Figure 202010914602

An embodiment of the present invention discloses a chip pin circuit, comprising: a chip pin, a reference voltage circuit, and a comparison circuit, wherein the comparison circuit includes a plurality of comparators, and each of the comparators is connected to the chip pin and receives the first signal from the chip pin, the reference voltage circuit generates a plurality of reference voltages and outputs them to the corresponding comparators, one of the comparators compares the first signal and the reference voltage, The first control signal is generated and transmitted to the internal circuit of the chip and the other comparator, and the internal circuit of the chip and the other comparator are controlled. In the chip pin circuit provided by the embodiment of the present invention, after the chip pin receives a signal, only part of the comparison circuit can be turned on to receive and convert the signal, so as to achieve the purpose of saving power consumption.

Figure 202010914602

Description

一种芯片管脚电路、芯片及装置A chip pin circuit, chip and device

技术领域technical field

本发明涉及集成电路技术领域,尤其涉及一种芯片管脚电路和包含其的芯片及装置。The present invention relates to the technical field of integrated circuits, and in particular, to a chip pin circuit and a chip and device including the same.

背景技术Background technique

随着信息技术的发展,芯片需要集成的功能越来越多,需要对更多的数字控制信号或模拟信号进行接收和转换,芯片的管脚数量也越来越多,进行信号接收和转换的功耗也越来越大。With the development of information technology, the chip needs to integrate more and more functions, and it needs to receive and convert more digital control signals or analog signals. The number of pins on the chip is also increasing. Power consumption is also increasing.

发明内容SUMMARY OF THE INVENTION

本发明解决的问题是在不影响芯片管脚电路接收信号以及转换信号的同时,达到节约功耗的目的。The problem solved by the present invention is to achieve the purpose of saving power consumption while not affecting the signal received and converted by the chip pin circuit.

为解决上述问题,本发明实施例提供一种芯片管脚电路,其包括::芯片管脚、基准电压电路、比较电路,其中,所述比较电路包括多个比较器,每一所述比较器连接所述芯片管脚并从所述芯片管脚接收第一信号,所述基准电压电路生成多个基准电压并分别输出至对应的所述比较器,一所述比较器比较所述第一信号和所述基准电压,生成第一控制信号并传输至芯片内部电路和另一所述比较器,控制所述芯片内部电路和另一所述比较器。In order to solve the above problem, an embodiment of the present invention provides a chip pin circuit, which includes: a chip pin, a reference voltage circuit, and a comparison circuit, wherein the comparison circuit includes a plurality of comparators, and each of the comparators Connecting to the chip pins and receiving the first signal from the chip pins, the reference voltage circuit generates a plurality of reference voltages and outputs them to the corresponding comparators, one of the comparators compares the first signals and the reference voltage, generate a first control signal and transmit it to the internal circuit of the chip and the other comparator, and control the internal circuit of the chip and the other comparator.

本发明实施例还提供了一种芯片,包括上述芯片管脚电路。An embodiment of the present invention further provides a chip, including the above-mentioned chip pin circuit.

本发明实施例还提供了一种装置,包括上述芯片管脚电路。An embodiment of the present invention further provides an apparatus, including the above chip pin circuit.

与现有技术相比,本发明至少具有以下优点之一:Compared with the prior art, the present invention has at least one of the following advantages:

本发明实施例提供的芯片管脚电路通过一个比较器对另一比较器进行控制,在芯片管脚接收信号后,可以仅开启部分比较器就实现对信号传输的控制和转换,对比现有技术中比较器需全部开启对接收的信号进行检测后再转换的技术方案,本发明实施例的技术方案可以在不影响芯片管脚电路接收信号以及转换信号的同时,实现节约功耗的目的。The chip pin circuit provided by the embodiment of the present invention controls another comparator through one comparator. After the chip pin receives a signal, only part of the comparators can be turned on to realize the control and conversion of signal transmission. Compared with the prior art In the technical solution that the comparators need to be all turned on to detect the received signal and then convert it, the technical solution of the embodiment of the present invention can achieve the purpose of saving power consumption without affecting the chip pin circuit to receive and convert the signal.

附图说明Description of drawings

参考下面的附图描述了本公开的非限制性和非穷举的实施例,除非另有说明,其中贯穿各个附图相同附图标记指代相同部件。图中的组件并非按比例绘制,并且可能在比例外绘制以促进对本公开的实施例的理解的方便。Non-limiting and non-exhaustive embodiments of the present disclosure are described with reference to the following drawings, wherein like reference numerals refer to like parts throughout, unless otherwise indicated. Components in the figures are not drawn to scale and may be drawn out of scale to facilitate an understanding of embodiments of the present disclosure.

图1是现有技术中一种芯片管脚电路的示意图;1 is a schematic diagram of a chip pin circuit in the prior art;

图2是本发明一实施例提供的芯片管脚电路的示意图;2 is a schematic diagram of a chip pin circuit provided by an embodiment of the present invention;

图3是图2提供的芯片管脚电路中的比较器电路的示意图;3 is a schematic diagram of a comparator circuit in the chip pin circuit provided in FIG. 2;

图4是本发明另一实施例提供的芯片管脚电路的示意图;4 is a schematic diagram of a chip pin circuit provided by another embodiment of the present invention;

图5是图4提供的芯片管脚电路中的比较器电路的示意图。FIG. 5 is a schematic diagram of a comparator circuit in the chip pin circuit provided in FIG. 4 .

具体实施方式Detailed ways

为了说明本发明的一般原理而进行以下描述,并不意味着限制本文所要求保护的发明构思。此外,本文描述的特定特征可以与各种可能的组合和排列中的每一种中的其它描述的特征结合使用。The following description is presented for the purpose of illustrating the general principles of the invention, and is not intended to limit the inventive concepts claimed herein. Furthermore, certain features described herein may be used in combination with other described features in each of the various possible combinations and permutations.

除非本文另有具体的定义,否则所有术语将被给予其最广泛的解释,包括本说明书所暗示的含义以及本领域技术人员所理解的含义和/或如词典、论文等中所定义的。为详细说明本发明的技术内容、构造特征、所达成目的及功效,下面将结合实施例并配合附图予以详细说明。Unless specifically defined otherwise herein, all terms are to be given their broadest interpretation, including the meanings implied by this specification and the meanings understood by those skilled in the art and/or as defined in dictionaries, papers, and the like. In order to describe the technical content, structural features, achieved objects and effects of the present invention in detail, the following will be described in detail with reference to the embodiments and the accompanying drawings.

请参阅图1,图1是现有技术中一种芯片管脚电路的示意图,包括芯片的某一管脚PWR_AB;一比较基准电压产生电路,其包括一直流电源Vdd以及一与直流电源Vdd并联连接的串联支路,所述串联支路由六个阻值相等的电阻R串联构成,所述六个电阻R分别为电阻R10、电阻R20、电阻R30、电阻R40、电阻R50以及电阻R60,直流电源Vdd的正极端与电阻R10连接,直流电源Vdd的负极端与电阻R60连接;实际上,其利用电阻分压方法来产生第一基准电压VREF1及第二基准电压VREF2;一上拉电阻Rp,其一端与直流电源Vdd 连接,另一端与管脚PWR_AB连接;一第一电压比较器A1,其反相端连接在所述串联支路的电阻R10与电阻R20之间以获取第一基准电压,即第一基准电压为直流电源Vdd的六分之五,其同相端与管脚PWR_AB 连接,其用于将第一基准电压与管脚 PWR_AB 的输入电压 进行比对后,输出第一电平信号AB至所述芯片的内部电路。现有技术中每一个电压比较器根据管脚的输入电压独立进行比较然后输出电平信号至芯片的内部电路,从而使一个芯片的管脚实现芯片原来多个管脚的功能,即芯片管脚每接收到一个信号,所有比较器均需要开启对该信号进行比对然后输出控制信号至芯片内部电路,这种方式功耗较高且耗时。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a chip pin circuit in the prior art, including a certain pin PWR_AB of the chip; a comparison reference voltage generating circuit, which includes a DC power supply Vdd and a parallel connection with the DC power supply Vdd. The connected series branch, the series branch is composed of six resistors R with equal resistance value connected in series, the six resistors R are respectively resistor R10, resistor R20, resistor R30, resistor R40, resistor R50 and resistor R60, DC power supply The positive terminal of Vdd is connected to the resistor R10, and the negative terminal of the DC power supply Vdd is connected to the resistor R60; in fact, it uses the resistor dividing method to generate the first reference voltage VREF1 and the second reference voltage VREF2; a pull-up resistor Rp, which One end is connected to the DC power supply Vdd, and the other end is connected to the pin PWR_AB; a first voltage comparator A1, the inverting end of which is connected between the resistor R10 and the resistor R20 of the series branch to obtain the first reference voltage, namely The first reference voltage is five-sixths of the DC power supply Vdd, and its non-inverting terminal is connected to the pin PWR_AB, which is used to compare the first reference voltage with the input voltage of the pin PWR_AB and output the first level signal AB to the internal circuitry of the chip. In the prior art, each voltage comparator independently compares according to the input voltage of the pin and then outputs a level signal to the internal circuit of the chip, so that the pin of one chip realizes the function of the original multiple pins of the chip, that is, the pin of the chip. Each time a signal is received, all comparators need to be turned on to compare the signal and then output a control signal to the internal circuit of the chip, which consumes a lot of power and takes time.

下面结合附图对本发明的实施方式进行说明。如图2所示,图2是本发明一实施例提供的芯片管脚电路的示意图,包括:芯片管脚VIN、基准电压电路1、比较电路3、比较电路控制电路2,其中,比较电路3连接芯片管脚VIN并从芯片管脚VIN接收第一信号,基准电压电路1生成基准电压并输出至比较电路3,比较电路3比较第一信号和基准电压,生成第一控制信号并传输至芯片内部电路模块和比较电路控制电路2,比较电路控制电路2接收第一控制信号并生成控制比较电路的第二控制信号。基准电压电路1利用电阻分压方法产生n个比较参考电压VREF1~VREFn分别给n个比较器,本实施例中基准电压电路1包括第一直流电源VSS、接地端及串联在第一直流电源VSS和接地端间的多个等阻值电阻R1~R4,产生第一基准电压VREF1、第二基准电压VREF2、第三基准电压VREF3,即第一基准电压VREF1为直流电源VSS的四分之三,第二基准电压VREF2为直流电源VSS的四分之二,第三基准电压VREF3为直流电源VSS的四分之一,本实施例仅为示例,电阻分压也可根据需要调整为多个串联或并联电阻产生一个基准电压。Embodiments of the present invention will be described below with reference to the accompanying drawings. As shown in FIG. 2, FIG. 2 is a schematic diagram of a chip pin circuit provided by an embodiment of the present invention, including: a chip pin VIN, a reference voltage circuit 1, a comparison circuit 3, and a comparison circuit control circuit 2, wherein the comparison circuit 3 Connect the chip pin VIN and receive the first signal from the chip pin VIN, the reference voltage circuit 1 generates a reference voltage and outputs it to the comparison circuit 3, the comparison circuit 3 compares the first signal and the reference voltage, generates a first control signal and transmits it to the chip The internal circuit module and the comparison circuit control circuit 2, the comparison circuit control circuit 2 receives the first control signal and generates a second control signal for controlling the comparison circuit. The reference voltage circuit 1 generates n comparison reference voltages VREF1 to VREFn by means of a resistance voltage division method, respectively for the n comparators. In this embodiment, the reference voltage circuit 1 includes a first DC power supply VSS, a ground terminal and a first DC A plurality of equal-resistance resistors R1~R4 between the power supply VSS and the ground terminal generate a first reference voltage VREF1, a second reference voltage VREF2, and a third reference voltage VREF3, that is, the first reference voltage VREF1 is a quarter of the DC power supply VSS. 3. The second reference voltage VREF2 is two-quarters of the DC power supply VSS, and the third reference voltage VREF3 is one-fourth of the DC power supply VSS. This embodiment is only an example, and the resistor divider can also be adjusted to multiple Series or parallel resistors create a reference voltage.

比较电路3包括n(n>1)个比较器,第m(1<m<n)个比较器包括第一输入端V+、第二输入端V-、控制端VEN和第一输出端COUTm,第一输入端V+连接至芯片管脚VIN接收第一信号,控制端VEN连接至比较电路控制电路2接收第二控制信号,第二输入端V-连接至基准电压电路1接收基准电压,第一输出端COUTm输出第一控制信号至芯片内部电路和比较电路控制电路2,分别控制芯片内部电路和第m+1个比较器。如图2,本实施例以3个比较器为例,第1个比较器C1包括第一输入端V+、第二输入端V-、控制端VEN和第一输出端COUT1,第一输入端V+连接至芯片管脚VIN接收第一信号,控制端VEN连接至外部电路接收第三控制信号EN,第二输入端V-连接至基准电压电路1接收基准电压,第一输出端COUT1输出一控制信号至芯片内部电路和比较电路控制电路2,分别控制芯片内部电路和第2个比较器。第2个比较器C2包括第一输入端V+、第二输入端V-、控制端VEN和第一输出端COUT2,第一输入端V+连接至芯片管脚VIN接收第一信号,控制端VEN连接至比较电路控制电路2接收控制信号,第二输入端V-连接至基准电压电路1接收基准电压,第一输出端COUT2输出一控制信号至芯片内部电路模块和比较电路控制电路2,分别控制芯片内部电路和第3个比较器。最后一个比较器,即第3个比较器C3包括第一输入端V+、第二输入端V-、控制端和第一输出端COUT3,第一输入端V+连接至芯片管脚VIN接收第一信号,控制端VEN连接至比较电路控制电路2接收控制信号,第二输入端V-连接至基准电压电路1接收基准电压,第一输出端COUT3输出第一控制信号至芯片内部电路模块,控制芯片内部电路。The comparison circuit 3 includes n (n>1) comparators, and the mth (1<m<n) comparator includes a first input terminal V+, a second input terminal V-, a control terminal VEN and a first output terminal COUTm, The first input terminal V+ is connected to the chip pin VIN to receive the first signal, the control terminal VEN is connected to the comparison circuit control circuit 2 to receive the second control signal, the second input terminal V- is connected to the reference voltage circuit 1 to receive the reference voltage, the first The output terminal COUTm outputs the first control signal to the chip internal circuit and the comparison circuit control circuit 2 to control the chip internal circuit and the m+1th comparator respectively. As shown in FIG. 2, this embodiment takes three comparators as an example. The first comparator C1 includes a first input terminal V+, a second input terminal V-, a control terminal VEN and a first output terminal COUT1, and the first input terminal V+ Connected to the chip pin VIN to receive the first signal, the control terminal VEN is connected to the external circuit to receive the third control signal EN, the second input terminal V- is connected to the reference voltage circuit 1 to receive the reference voltage, and the first output terminal COUT1 outputs a control signal To the internal circuit of the chip and the comparison circuit control circuit 2, to control the internal circuit of the chip and the second comparator respectively. The second comparator C2 includes a first input terminal V+, a second input terminal V-, a control terminal VEN and a first output terminal COUT2. The first input terminal V+ is connected to the chip pin VIN to receive the first signal, and the control terminal VEN is connected to To the comparison circuit control circuit 2 to receive the control signal, the second input terminal V- is connected to the reference voltage circuit 1 to receive the reference voltage, the first output terminal COUT2 outputs a control signal to the chip internal circuit module and the comparison circuit control circuit 2, respectively, control the chip Internal circuit and 3rd comparator. The last comparator, that is, the third comparator C3 includes a first input terminal V+, a second input terminal V-, a control terminal and a first output terminal COUT3. The first input terminal V+ is connected to the chip pin VIN to receive the first signal , the control terminal VEN is connected to the comparison circuit control circuit 2 to receive the control signal, the second input terminal V- is connected to the reference voltage circuit 1 to receive the reference voltage, the first output terminal COUT3 outputs the first control signal to the internal circuit module of the chip, and controls the internal circuit.

本实施例中,比较电路控制电路包括n-1个逻辑控制器,每一所述逻辑控制器包括第三输入端和第二输出端,所述逻辑控制器的所述第三输入端连接一所述比较器接收所述第一控制信号,所述第二输出端输出第二控制信号至另一所述比较器,控制另一所述比较器。请继续参考图2,比较电路控制电路2包括2个逻辑控制器,第1个逻辑控制器INV1的输入端连接至第1个比较器的第一输出端COUT1接收一控制信号,输出端输出另一控制信号至第2个比较器的控制端VEN,第2个逻辑控制器INV2的输入端连接至第2个比较器的第一输出端COUT2接收一控制信号,输出端输出另一控制信号至第3个比较器的控制端VEN。In this embodiment, the comparison circuit control circuit includes n-1 logic controllers, each of the logic controllers includes a third input terminal and a second output terminal, and the third input terminal of the logic controller is connected to a The comparator receives the first control signal, and the second output terminal outputs a second control signal to the other comparator to control the other comparator. Please continue to refer to FIG. 2 , the comparison circuit control circuit 2 includes two logic controllers. The input end of the first logic controller INV1 is connected to the first output end COUT1 of the first comparator to receive a control signal, and the output end outputs another A control signal is sent to the control terminal VEN of the second comparator, the input terminal of the second logic controller INV2 is connected to the first output terminal COUT2 of the second comparator to receive a control signal, and the output terminal outputs another control signal to The control terminal VEN of the third comparator.

在图2的示例中,第一基准电压VREF1> 第二基准电压VREF2>第三基准电压VREF3,同时基准电压VREF1~VREF3分别连接至比较器C1~C3的第二输入端V-,比较器C1~C3的第一输入端V+连接至芯片管脚VIN接收第一信号。当第一信号电压大于第一基准电压VREF1时,比较器C1输出高电平,由于第一基准电压VREF1> 第二基准电压VREF2>第三基准电压VREF3,比较器C2与比较器C3同样输出高电平。In the example of FIG. 2 , the first reference voltage VREF1>the second reference voltage VREF2>the third reference voltage VREF3, and the reference voltages VREF1~VREF3 are respectively connected to the second input terminals V- of the comparators C1~C3, and the comparator C1 The first input terminal V+ of ~C3 is connected to the chip pin VIN to receive the first signal. When the first signal voltage is greater than the first reference voltage VREF1, the comparator C1 outputs a high level. Since the first reference voltage VREF1 > the second reference voltage VREF2 > the third reference voltage VREF3, the comparator C2 and the comparator C3 also output a high level level.

从上面的分析可以看到,当比较器C1的输出端为高电平,可以确定此时比较器C2与比较器C3的输出端为高电平。因此,在这种工作状态下可以只开比较器C1,可以利用比较器C1的输出来控制比较器C2与C3的上电使能以及逻辑输出,使得比较器C2与C3关闭,从而实现输出结果不变的情况下降低功耗的目的。It can be seen from the above analysis that when the output terminal of the comparator C1 is at a high level, it can be determined that the output terminals of the comparator C2 and the comparator C3 are at a high level at this time. Therefore, in this working state, only the comparator C1 can be turned on, and the output of the comparator C1 can be used to control the power-on enable and logic output of the comparators C2 and C3, so that the comparators C2 and C3 are turned off, so as to realize the output result. The purpose of reducing power consumption without changing.

请参考图3,图3是图2提供的芯片管脚电路中的比较器电路的示意图。比较器包括第一晶体管M1、第二晶体管M2、第三晶体管M3、第四晶体管M4、第五晶体管M5、第六晶体管M6、第七晶体管M7、第八晶体管M8、第九晶体管M9、第十晶体管M10、第十一晶体管M11、第十二晶体管M12、第十三晶体管M13、第十四晶体管M14、第二直流电源VDD、接地端GND和输出端VOUT,其中,第一晶体管M1的漏极连接基准电压电路,第一晶体管M1的源极连接第二晶体管M2的漏极,第一晶体管M1的栅极接收控制信号EN,第二晶体管M2的栅极和其漏极连接,第二晶体管M2的源极连接接地端GND,第二晶体管M2的栅极还与第三晶体管M3的漏极、第四晶体管M4的栅极连接,第三晶体管M3的栅极接收控制信号EN_N,第三晶体管M3的源极连接接地端GND,第四晶体管M4的源极连接接地端GND,第四晶体管M4的漏极与第五晶体管M5的源极、第六晶体管M6的源极连接,第五晶体管M5的栅极、第六晶体管M6的栅极均与芯片管脚连接,第五晶体管M5的漏极连接第七晶体管M7的漏极,第六晶体管M6的漏极与第八晶体管M8的漏极连接,第七晶体管M7的栅极与第八晶体管M8的栅极、第九晶体管M9的漏极连接,第七晶体管M7的栅极还与其漏极连接,第七晶体管M7的源极连接第二直流电源VDD,第八晶体管M8的源极连接第二直流电源VDD,第九晶体管M9的栅极接收控制信号EN,第九晶体管M9的源极连接第二直流电源VDD,第十晶体管M10的栅极接收控制信号EN,第十晶体管M10的源极连接第二直流电源VDD,第十晶体管M10的漏极与第十一晶体管M11的栅极、第十二晶体管M12的栅极、第六晶体管M6的漏极、第八晶体管M8的漏极连接,第十一晶体管M11的源极连接第二直流电源VDD,第十一晶体管M11的漏极与第十二晶体管M12的漏极、第十三晶体管M13的栅极、第十四晶体管M14的栅极连接,第十二晶体管M12的源极连接接地端GND,第十三晶体管M13的源极连接第二直流电源VDD,第十三晶体管M13的漏极与第十四晶体管M14的漏极、输出端COUT连接,第十四晶体管M14的源极连接接地端GND。其中,控制信号EN与控制信号EN_N互为反相信号,第一晶体管M1、第二晶体管M2、第三晶体管M3、第四晶体管M4、第五晶体管M5、第六晶体管M6、第十二晶体管M12和第十四晶体管M14为NMOS(NMOS:N-Metal-Oxide-Semiconductor,N型金属氧化物半导体)晶体管,第七晶体管M7、第八晶体管M8、第九晶体管M9、第十晶体管M10、第十一晶体管M11、第十三晶体管M13为PMOS(PMOS:P-Metal-Oxide-Semiconductor,P型金属氧化物半导体)晶体管。Please refer to FIG. 3 , which is a schematic diagram of a comparator circuit in the chip pin circuit provided in FIG. 2 . The comparator includes a first transistor M1, a second transistor M2, a third transistor M3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8, a ninth transistor M9, a tenth transistor Transistor M10, eleventh transistor M11, twelfth transistor M12, thirteenth transistor M13, fourteenth transistor M14, second DC power supply VDD, ground terminal GND and output terminal VOUT, wherein the drain of the first transistor M1 The reference voltage circuit is connected, the source of the first transistor M1 is connected to the drain of the second transistor M2, the gate of the first transistor M1 receives the control signal EN, the gate of the second transistor M2 is connected to its drain, and the second transistor M2 The source of the second transistor M2 is connected to the ground terminal GND, the gate of the second transistor M2 is also connected to the drain of the third transistor M3 and the gate of the fourth transistor M4, the gate of the third transistor M3 receives the control signal EN_N, and the third transistor M3 The source of the fourth transistor M4 is connected to the ground terminal GND, the source of the fourth transistor M4 is connected to the ground terminal GND, the drain of the fourth transistor M4 is connected to the source of the fifth transistor M5 and the source of the sixth transistor M6, and the drain of the fifth transistor M5 The gate and the gate of the sixth transistor M6 are both connected to the chip pins, the drain of the fifth transistor M5 is connected to the drain of the seventh transistor M7, the drain of the sixth transistor M6 is connected to the drain of the eighth transistor M8, The gate of the seventh transistor M7 is connected to the gate of the eighth transistor M8 and the drain of the ninth transistor M9, the gate of the seventh transistor M7 is also connected to its drain, and the source of the seventh transistor M7 is connected to the second DC power supply VDD, the source of the eighth transistor M8 is connected to the second DC power supply VDD, the gate of the ninth transistor M9 receives the control signal EN, the source of the ninth transistor M9 is connected to the second DC power supply VDD, and the gate of the tenth transistor M10 receives the control signal EN Control signal EN, the source of the tenth transistor M10 is connected to the second DC power supply VDD, the drain of the tenth transistor M10 is connected to the gate of the eleventh transistor M11, the gate of the twelfth transistor M12, and the drain of the sixth transistor M6 and the drain of the eighth transistor M8, the source of the eleventh transistor M11 is connected to the second DC power supply VDD, the drain of the eleventh transistor M11 is connected to the drain of the twelfth transistor M12 and the drain of the thirteenth transistor M13 The gate is connected to the gate of the fourteenth transistor M14, the source of the twelfth transistor M12 is connected to the ground terminal GND, the source of the thirteenth transistor M13 is connected to the second DC power supply VDD, and the drain of the thirteenth transistor M13 is connected to the ground terminal GND. The drain of the fourteenth transistor M14 is connected to the output terminal COUT, and the source of the fourteenth transistor M14 is connected to the ground terminal GND. The control signal EN and the control signal EN_N are mutually inverse signals, the first transistor M1, the second transistor M2, the third transistor M3, the fourth transistor M4, the fifth transistor M5, the sixth transistor M6, and the twelfth transistor M12 and the fourteenth transistor M14 are NMOS (NMOS: N-Metal-Oxide-Semiconductor, N-type metal oxide semiconductor) transistors, the seventh transistor M7, the eighth transistor M8, the ninth transistor M9, the tenth transistor M10, the tenth transistor The first transistor M11 and the thirteenth transistor M13 are PMOS (P-Metal-Oxide-Semiconductor, P-type metal-oxide-semiconductor) transistors.

当控制信号EN接高电平时,比较器正常工作;当控制信号EN接低电平时,由于在断电时第四晶体管M4与第八晶体管M8分别受控制信号EN信号以及控制信号EN_N控制而截止,比较器第五晶体管M5和第六晶体管M6从而断电停止工作,第十晶体管M10在控制信号EN为低电平时导通,从而将V1p点连接至高电平VDD,V1p通过由第十一晶体管M11~第十四晶体管M14组成的两级反相器使得输出端COUT在断电时输出为高电平,第十一晶体管M11~第十四晶体管M14组成的两级反相器可以对电波整形,减小干扰,保证逻辑正确。When the control signal EN is connected to a high level, the comparator works normally; when the control signal EN is connected to a low level, the fourth transistor M4 and the eighth transistor M8 are respectively controlled by the control signal EN signal and the control signal EN_N to turn off when the power is off. , the fifth transistor M5 and the sixth transistor M6 of the comparator are powered off to stop working, and the tenth transistor M10 is turned on when the control signal EN is at a low level, thereby connecting the V1p point to a high level VDD, and V1p is passed through by the eleventh transistor. The two-stage inverter composed of M11 ~ the fourteenth transistor M14 makes the output terminal COUT output a high level when the power is off. The two-stage inverter composed of the eleventh transistor M11 ~ the fourteenth transistor M14 can shape the electric wave. , reduce interference and ensure correct logic.

图3 结合图2分析可知,当第一信号电压>第一基准电压VREF1时,比较器C1输出端COUT1为高电平,输出端COUT1将此输出信号传送给芯片内部电路模块,同时送给比较电路控制电路2,比较电路控制电路2为两组反相器,由于输出端COUT1输出为高电平,经过反相器后为低电平,将此低电平输入给比较器C2的控制端VEN后,比较器C2关闭,同时比较器C2输出端COUT2也输出高电平;同理,输出端COUT2输出的高电平经过比较电路控制电路2连接至比较器C3的控制端VEN后使得比较器C3关闭,同时输出端COUT3输出高电平。Figure 3 According to the analysis of Figure 2, when the first signal voltage > the first reference voltage VREF1, the output terminal COUT1 of the comparator C1 is at a high level, and the output terminal COUT1 transmits the output signal to the internal circuit module of the chip, and sends it to the comparator at the same time. The circuit control circuit 2 and the comparison circuit control circuit 2 are two sets of inverters. Since the output terminal COUT1 outputs a high level, it is a low level after passing through the inverter, and the low level is input to the control terminal of the comparator C2. After VEN, the comparator C2 is turned off, and at the same time, the output terminal COUT2 of the comparator C2 also outputs a high level; in the same way, the high level output by the output terminal COUT2 is connected to the control terminal VEN of the comparator C3 through the comparison circuit control circuit 2 to make the comparison The device C3 is turned off, and the output terminal COUT3 outputs a high level at the same time.

当第一基准电压VREF1>第一信号电压>第二基准电压VREF2>第三基准电压VREF3时,同样由图2分析可知,此时比较器C1工作,输出端COUT1输出低电平,比较器C2的控制端VEN接输出端COUT1反相输出的高电平,比较器C2正常工作,由于第一信号电压>第二基准电压VREF2,输出端COUT2输出高电平,比较器C3控制端VEN接输出端COUT2反相输出的低电平,比较器C3断电,输出端COUT3输出高电平。When the first reference voltage VREF1 > the first signal voltage > the second reference voltage VREF2 > the third reference voltage VREF3, it can be seen from the analysis in FIG. 2 that the comparator C1 works, the output terminal COUT1 outputs a low level, and the comparator C2 The control terminal VEN of the output terminal COUT1 is connected to the high level of the inverted output of the output terminal, and the comparator C2 works normally. Since the first signal voltage > the second reference voltage VREF2, the output terminal COUT2 outputs a high level, and the control terminal VEN of the comparator C3 is connected to the output Terminal COUT2 inverts the output low level, the comparator C3 is powered off, and the output terminal COUT3 outputs a high level.

当第一基准电压VREF1>第二基准电压VREF2>第一信号电压>第三基准电压VREF3时,同样由图2分析可知,此时比较器C1工作输出低电平,比较器C2正常工作,由于第二基准电压VREF2>第一信号电压,输出端COUT2输出低电平,比较器C3控制端VEN接输出端COUT2反相输出的高电平,比较器C3正常工作,由于第一信号电压>第三基准电压VREF3,通过比较,输出端COUT3输出高电平。When the first reference voltage VREF1 > the second reference voltage VREF2 > the first signal voltage > the third reference voltage VREF3, it can also be seen from the analysis in FIG. 2 that at this time the comparator C1 works and outputs a low level, and the comparator C2 works normally. The second reference voltage VREF2>the first signal voltage, the output terminal COUT2 outputs a low level, the control terminal VEN of the comparator C3 is connected to the high level output by the inverting output of the output terminal COUT2, the comparator C3 works normally, because the first signal voltage> the first signal voltage The three reference voltages VREF3 are compared, and the output terminal COUT3 outputs a high level.

当第一基准电压VREF1>第二基准电压VREF2>第三基准电压VREF3>第一信号电压时,同样由图2分析可知,此时比较器C1工作输出低电平,比较器C2正常工作,输出端COUT2输出低电平,比较器C3控制端VEN接输出端COUT2反相输出的高电平,比较器C3正常工作,由于由于第三基准电压VREF3>第一信号电压,通过比较,输出端COUT3输出低电平。When the first reference voltage VREF1 > the second reference voltage VREF2 > the third reference voltage VREF3 > the first signal voltage, it can also be seen from the analysis in FIG. 2 that at this time the comparator C1 works and outputs a low level, the comparator C2 works normally and outputs The terminal COUT2 outputs a low level, the control terminal VEN of the comparator C3 is connected to the high level of the inverted output of the output terminal COUT2, and the comparator C3 works normally. Since the third reference voltage VREF3> the first signal voltage, through comparison, the output terminal COUT3 output low level.

此外,当系统需要关闭接口电路时,通过将比较器C1的控制端VEN接低电平,可以使比较器C1断电,输出高电平;比较器C2的控制端VEN接输出端COUT1反相后输出的低电平,比较器C2断电,输出高电平;比较器C3的控制端VEN接输出端COUT2反相后输出的低电平,比较器C3断电,输出高电平,从而实现了整个接口电路的比较器均断电关闭的目的,实现不影响接口电路功能以及输出结果的同时,达到节约功耗的目的。In addition, when the system needs to close the interface circuit, by connecting the control terminal VEN of the comparator C1 to a low level, the comparator C1 can be powered off and output a high level; the control terminal VEN of the comparator C2 is connected to the output terminal COUT1 to invert the phase After the output of the low level, the comparator C2 is powered off and outputs a high level; the control terminal VEN of the comparator C3 is connected to the low level output after the inversion of the output terminal COUT2, the comparator C3 is powered off and outputs a high level, thus The purpose of powering off the comparators of the entire interface circuit is realized, and the purpose of saving power consumption is achieved without affecting the function of the interface circuit and the output result.

请参考图4,图4是本发明另一实施例提供的芯片管脚电路的示意图,包括:芯片管脚VIN、基准电压电路1、比较电路3、比较电路控制电路2,其中,比较电路3连接芯片管脚VIN并从芯片管脚VIN接收第一信号,基准电压电路1生成基准电压并输出至比较电路3,比较电路3比较第一信号和基准电压,生成第一控制信号并传输至芯片内部电路模块和比较电路控制电路2,比较电路控制电路2接收第一控制信号并生成控制比较电路的第二控制信号。基准电压电路1利用电阻分压方法产生n个比较参考电压VREF1~VREFn分别给n个比较器,本实施例中基准电压电路1包括第一直流电源VSS及与第一直流电源VSS串联的多个等阻值电阻R1~R4,产生第一基准电压VREF1、第二基准电压VREF2、第三基准电压VREF3,即第一基准电压VREF1为直流电源VSS的四分之一,第二基准电压VREF2为直流电源VSS的四分之二,第三基准电压VREF3为直流电源VSS的四分之三,本实施例仅为示例,电阻分压也可根据需要调整为多个串联或并联电阻产生一个基准电压。Please refer to FIG. 4. FIG. 4 is a schematic diagram of a chip pin circuit provided by another embodiment of the present invention, including: a chip pin VIN, a reference voltage circuit 1, a comparison circuit 3, and a comparison circuit control circuit 2, wherein the comparison circuit 3 Connect the chip pin VIN and receive the first signal from the chip pin VIN, the reference voltage circuit 1 generates a reference voltage and outputs it to the comparison circuit 3, the comparison circuit 3 compares the first signal and the reference voltage, generates a first control signal and transmits it to the chip The internal circuit module and the comparison circuit control circuit 2, the comparison circuit control circuit 2 receives the first control signal and generates a second control signal for controlling the comparison circuit. The reference voltage circuit 1 generates n comparison reference voltages VREF1 to VREFn by means of the resistance voltage division method to be respectively supplied to the n comparators. A plurality of equal-resistance resistors R1~R4 generate a first reference voltage VREF1, a second reference voltage VREF2, and a third reference voltage VREF3, that is, the first reference voltage VREF1 is a quarter of the DC power supply VSS, and the second reference voltage VREF2 It is two-quarters of the DC power supply VSS, and the third reference voltage VREF3 is three-quarters of the DC power supply VSS. This embodiment is only an example, and the resistor divider can also be adjusted to multiple series or parallel resistors as needed to generate a reference Voltage.

本实施例中比较电路3实施方式请参考上一实施例的比较电路。本实施例中的比较电路控制电路2不对第一控制信号进行反相处理,即比较电路控制电路2输出的第二控制信号与输入的第一控制信号同相,图4中的实施方式是直接连接相邻两比较器的输出端与控制端,当然也可以在相邻两比较器的输出端与控制端间连接一两级反相器,对信号进行整形,减少干扰,还能保证逻辑正确。For the implementation of the comparison circuit 3 in this embodiment, please refer to the comparison circuit of the previous embodiment. The comparison circuit control circuit 2 in this embodiment does not perform inversion processing on the first control signal, that is, the second control signal output by the comparison circuit control circuit 2 is in phase with the input first control signal, and the embodiment in FIG. 4 is a direct connection Of course, one or two stages of inverters can be connected between the output terminals and the control terminals of two adjacent comparators to shape the signal, reduce interference, and ensure correct logic.

请参考图5,图5是图4提供的芯片管脚电路中的比较器电路的示意图,本实施例中的比较器包括第一晶体管M1、第二晶体管M2、第三晶体管M3、第四晶体管M4、第五晶体管M5、第六晶体管M6、第七晶体管M7、第八晶体管M8、第九晶体管M9、第十晶体管M10、第十一晶体管M11、第十二晶体管M12、第十三晶体管M13、第十四晶体管M14、第二直流电源VDD、接地端GND和输出端VOUT,其中,第一晶体管M1的漏极连接基准电压电路,第一晶体管M1的源极连接第二晶体管M2的漏极,第一晶体管M1的栅极接收控制信号EN,第二晶体管M2的栅极和其漏极连接,第二晶体管M2的源极连接接地端GND,第二晶体管M2的栅极还与第三晶体管M3的漏极、第四晶体管M4的栅极连接,第三晶体管M3的栅极接收控制信号EN_N,第三晶体管M3的源极连接接地端GND,第四晶体管M4的源极连接接地端GND,第四晶体管M4的漏极与第五晶体管M5的源极、第六晶体管M6的源极连接,第五晶体管M5的栅极、第六晶体管M6的栅极均与芯片管脚连接,第五晶体管M5的漏极连接第七晶体管M7的漏极,第六晶体管M6的漏极与第八晶体管M8的漏极连接,第七晶体管M7的栅极与第八晶体管M8的栅极、第九晶体管M9的漏极连接,第七晶体管M7的栅极还与其漏极连接,第七晶体管M7的源极连接第二直流电源VDD,第八晶体管M8的源极连接第二直流电源VDD,第九晶体管M9的栅极接收控制信号EN,第九晶体管M9的源极连接第二直流电源VDD,第十晶体管M10的栅极接收控制信号EN_N,第十晶体管M10的源极连接接地端GND,第十晶体管M10的漏极与第十一晶体管M11的栅极、第十二晶体管M12的栅极、第六晶体管M6的漏极、第八晶体管M8的漏极连接,第十一晶体管M11的源极连接第二直流电源VDD,第十一晶体管M11的漏极与第十二晶体管M12的漏极、第十三晶体管M13的栅极、第十四晶体管M14的栅极连接,第十二晶体管M12的源极连接接地端GND,第十三晶体管M13的源极连接第二直流电源VDD,第十三晶体管M13的漏极与第十四晶体管M14的漏极、输出端COUT连接,第十四晶体管M14的源极连接接地端GND。其中,控制信号EN与控制信号EN_N互为反相信号,第一晶体管M1、第二晶体管M2、第三晶体管M3、第四晶体管M4、第五晶体管M5、第六晶体管M6、第十晶体管M10、第十二晶体管M12和第十四晶体管M14为NMOS晶体管,第七晶体管M7、第八晶体管M8、第九晶体管M9、第十一晶体管M11、第十三晶体管M13为PMOS晶体管。Please refer to FIG. 5. FIG. 5 is a schematic diagram of a comparator circuit in the chip pin circuit provided in FIG. 4. The comparator in this embodiment includes a first transistor M1, a second transistor M2, a third transistor M3, and a fourth transistor. M4, fifth transistor M5, sixth transistor M6, seventh transistor M7, eighth transistor M8, ninth transistor M9, tenth transistor M10, eleventh transistor M11, twelfth transistor M12, thirteenth transistor M13, The fourteenth transistor M14, the second DC power supply VDD, the ground terminal GND and the output terminal VOUT, wherein the drain of the first transistor M1 is connected to the reference voltage circuit, the source of the first transistor M1 is connected to the drain of the second transistor M2, The gate of the first transistor M1 receives the control signal EN, the gate of the second transistor M2 is connected to its drain, the source of the second transistor M2 is connected to the ground terminal GND, and the gate of the second transistor M2 is also connected to the third transistor M3 The drain of the fourth transistor M4 is connected to the gate of the fourth transistor M4, the gate of the third transistor M3 receives the control signal EN_N, the source of the third transistor M3 is connected to the ground terminal GND, the source of the fourth transistor M4 is connected to the ground terminal GND, and the third transistor M3 is connected to the ground terminal GND. The drain of the four transistors M4 is connected to the source of the fifth transistor M5 and the source of the sixth transistor M6, the gate of the fifth transistor M5 and the gate of the sixth transistor M6 are both connected to the chip pins, and the fifth transistor M5 The drain of the seventh transistor M7 is connected to the drain of the seventh transistor M7, the drain of the sixth transistor M6 is connected to the drain of the eighth transistor M8, the gate of the seventh transistor M7 is connected to the gate of the eighth transistor M8, and the gate of the ninth transistor M9 The drain is connected to the drain, the gate of the seventh transistor M7 is also connected to its drain, the source of the seventh transistor M7 is connected to the second DC power supply VDD, the source of the eighth transistor M8 is connected to the second DC power supply VDD, and the ninth transistor M9 The gate of the ninth transistor M9 receives the control signal EN, the source of the ninth transistor M9 is connected to the second DC power supply VDD, the gate of the tenth transistor M10 receives the control signal EN_N, the source of the tenth transistor M10 is connected to the ground terminal GND, and the The drain is connected to the gate of the eleventh transistor M11, the gate of the twelfth transistor M12, the drain of the sixth transistor M6, and the drain of the eighth transistor M8, and the source of the eleventh transistor M11 is connected to the second DC Power supply VDD, the drain of the eleventh transistor M11 is connected to the drain of the twelfth transistor M12, the gate of the thirteenth transistor M13, the gate of the fourteenth transistor M14, and the source of the twelfth transistor M12 is connected to ground Terminal GND, the source of the thirteenth transistor M13 is connected to the second DC power supply VDD, the drain of the thirteenth transistor M13 is connected to the drain of the fourteenth transistor M14 and the output terminal COUT, and the source of the fourteenth transistor M14 is connected to Ground terminal GND. The control signal EN and the control signal EN_N are mutually inverse signals, the first transistor M1, the second transistor M2, the third transistor M3, the fourth transistor M4, the fifth transistor M5, the sixth transistor M6, the tenth transistor M10, The twelfth transistor M12 and the fourteenth transistor M14 are NMOS transistors, and the seventh transistor M7 , the eighth transistor M8 , the ninth transistor M9 , the eleventh transistor M11 , and the thirteenth transistor M13 are PMOS transistors.

当控制信号EN接高电平时,比较器正常工作;当控制信号EN接低电平时,由于在断电时第四晶体管M4与第八晶体管M8分别受控制信号EN信号以及控制信号EN_N控制而截止,比较器第五晶体管M5和第六晶体管M6从而断电停止工作,第十晶体管M10在控制信号EN_N为低电平时导通,从而将V1p点连接至低电平GND,V1p通过由第十一晶体管M11~第十四晶体管M14组成的两级反相器使得输出端COUT在断电时输出为低电平。When the control signal EN is connected to a high level, the comparator works normally; when the control signal EN is connected to a low level, the fourth transistor M4 and the eighth transistor M8 are respectively controlled by the control signal EN signal and the control signal EN_N to turn off when the power is off. , the fifth transistor M5 and the sixth transistor M6 of the comparator are powered off and stop working, and the tenth transistor M10 is turned on when the control signal EN_N is at a low level, thereby connecting the V1p point to the low level GND, and V1p is passed through by the eleventh The two-stage inverter composed of the transistor M11 to the fourteenth transistor M14 makes the output terminal COUT output a low level when the power is turned off.

图5 结合图4分析可知,当第一信号电压<第一基准电压VREF1时,比较器C1输出端COUT1为低电平,输出端COUT1将此输出信号传送给芯片内部电路模块,同时送给比较电路控制电路2,由于输出端COUT1输出为低电平,经过比较电路控制电路2仍为低电平,将此低电平输入给比较器C2的控制端VEN后,比较器C2关闭,同时比较器C2输出端COUT2也输出低电平;同理,输出端COUT2输出的低电平经过比较电路控制电路2连接至比较器C3的控制端VEN后使得比较器C3关闭,同时输出端COUT3输出低电平。Fig. 5 Combining with Fig. 4, it can be seen that when the first signal voltage < the first reference voltage VREF1, the output terminal COUT1 of the comparator C1 is at a low level, and the output terminal COUT1 transmits this output signal to the internal circuit module of the chip, and at the same time to the comparator Circuit control circuit 2, since the output terminal COUT1 outputs a low level, after the comparison circuit control circuit 2 is still low level, after this low level is input to the control terminal VEN of the comparator C2, the comparator C2 is turned off, and the comparison The output terminal COUT2 of the comparator C2 also outputs a low level; in the same way, the low level output by the output terminal COUT2 is connected to the control terminal VEN of the comparator C3 through the comparison circuit control circuit 2, so that the comparator C3 is turned off, and the output terminal COUT3 outputs a low level. level.

当第一基准电压VREF1<第一信号电压<第二基准电压VREF2<第三基准电压VREF3时,同样由图4分析可知,此时比较器C1工作,输出端COUT1输出高电平,比较器C2的控制端VEN接输出端COUT1输出的高电平,比较器C2正常工作,由于第一信号电压<第二基准电压VREF2,输出端COUT2输出低电平,比较器C3控制端VEN接输出端COUT2输出的低电平,比较器C3断电,输出端COUT3输出低电平。When the first reference voltage VREF1 < the first signal voltage < the second reference voltage VREF2 < the third reference voltage VREF3, it can also be seen from the analysis in FIG. 4 that the comparator C1 works, the output terminal COUT1 outputs a high level, and the comparator C2 The control terminal VEN is connected to the high level output by the output terminal COUT1, and the comparator C2 works normally. Since the first signal voltage < the second reference voltage VREF2, the output terminal COUT2 outputs a low level, and the control terminal VEN of the comparator C3 is connected to the output terminal COUT2. The output low level, the comparator C3 is powered off, and the output terminal COUT3 outputs a low level.

当第一基准电压VREF1<第二基准电压VREF2<第一信号电压<第三基准电压VREF3时,同样由图4分析可知,此时比较器C1工作输出高电平,比较器C2正常工作,由于第二基准电压VREF2<第一信号电压,输出端COUT2输出高电平,比较器C3控制端VEN接输出端COUT2输出的高电平,比较器C3正常工作,由于第一信号电压<第三基准电压VREF3,通过比较,输出端COUT3输出低电平。When the first reference voltage VREF1 < the second reference voltage VREF2 < the first signal voltage < the third reference voltage VREF3, it can also be seen from the analysis in FIG. 4 that the comparator C1 works and outputs a high level at this time, and the comparator C2 works normally. The second reference voltage VREF2 < the first signal voltage, the output terminal COUT2 outputs a high level, the control terminal VEN of the comparator C3 is connected to the high level output by the output terminal COUT2, and the comparator C3 works normally, because the first signal voltage < The third reference voltage The voltage VREF3, through comparison, the output terminal COUT3 outputs a low level.

当第一基准电压VREF1<第二基准电压VREF2<第三基准电压VREF3<第一信号电压时,同样由图4分析可知,此时比较器C1工作输出高电平,比较器C2正常工作,输出端COUT2输出高电平,比较器C3控制端VEN接输出端COUT2输出的高电平,比较器C3正常工作,由于由于第三基准电压VREF3<第一信号电压,通过比较,输出端COUT3输出高电平。When the first reference voltage VREF1 < the second reference voltage VREF2 < the third reference voltage VREF3 < the first signal voltage, it can also be seen from the analysis in FIG. 4 that at this time the comparator C1 works and outputs a high level, the comparator C2 works normally and outputs The terminal COUT2 outputs a high level, the control terminal VEN of the comparator C3 is connected to the high level output by the output terminal COUT2, and the comparator C3 works normally. Because the third reference voltage VREF3 < the first signal voltage, through comparison, the output terminal COUT3 outputs a high level level.

此外,当系统需要关闭接口电路时,通过将比较器C1的控制端VEN接低电平,可以使比较器C1断电,输出低电平;比较器C2的控制端VEN接输出端COUT1输出的低电平,比较器C2断电,输出低电平;比较器C3的控制端VEN接输出端COUT2后输出的低电平,比较器C3断电,输出低电平,从而实现了整个接口电路的比较器均断电关闭的目的,实现不影响接口电路功能以及输出结果的同时,达到节约功耗的目的。In addition, when the system needs to close the interface circuit, by connecting the control terminal VEN of the comparator C1 to a low level, the comparator C1 can be powered off and output a low level; the control terminal VEN of the comparator C2 is connected to the output terminal COUT1. Low level, the comparator C2 is powered off and outputs a low level; the control terminal VEN of the comparator C3 is connected to the output terminal COUT2 and outputs a low level, the comparator C3 is powered off and outputs a low level, thus realizing the entire interface circuit. The purpose of power-off and shut-down of all the comparators is realized, and the purpose of saving power consumption is achieved without affecting the function of the interface circuit and the output result.

本发明实施例还提供了一种芯片,包括上述任一实施例提供的芯片管脚电路。An embodiment of the present invention further provides a chip, including the chip pin circuit provided by any of the above embodiments.

本发明实施例还提供了一种装置,包括上述任一实施例提供的芯片管脚电路。An embodiment of the present invention further provides an apparatus including the chip pin circuit provided by any of the above embodiments.

除非上下文清楚地要求,否则贯穿本说明书及权利要求书中的词语“包括”、“包含”等被解释为具有包容性的含义,而不是排他或者穷举的含义;也就是说,是“包括,但不限于”的含义。词语“耦接”,如通常这里所使用的,指代两个或多个元件可以是直接连接,或者通过一个或多个中间元件连接。另外,词语“这里”、“上述”、“下文”等,当用在本申请中时,应指本申请的整体并且并非指本申请的任何特定部分。当上下文允许时,上述具体实施方式中使用的单数或复数的词语也可以分别包括复数或者单数。词语“或者”参考两个或多个项目的列表,这个词语涵盖了词语的所有下列解释:列表中的任何项目、列表中的所有项目、以及列表中的项目的任意组合。Unless the context clearly requires it, throughout this specification and the claims the words "including", "comprising" and the like are to be construed in an inclusive sense, rather than an exclusive or exhaustive sense; that is, "including" , but not limited to". The word "coupled," as generally used herein, refers to two or more elements that may be directly connected or connected through one or more intervening elements. Additionally, the words "herein," "above," "below," etc., when used in this application, shall refer to this application as a whole and not to any particular portions of this application. When the context allows, words in the singular or plural used in the above detailed description may also include the plural or singular, respectively. The term "or" refers to a list of two or more items, and this term encompasses all of the following interpretations of the term: any item in the list, all items in the list, and any combination of items in the list.

这里提供的本发明的教导可以应用到其它系统、而不必须是上述的系统。上述的各个实施例的元件和动作可以组合以提供更进一步的实施例。The teachings of the invention provided herein may be applied to other systems, not necessarily the systems described above. Elements and acts of the various embodiments described above may be combined to provide still further embodiments.

虽然本发明的一些实施例已被描述,这些实施例已经仅以示例提出,并且不旨在限制本发明的范围。的确,本文所述的新方法和系统可能以各种其它形式体现;此外,可以进行各种省略、替代和改变这里所述的方法和系统的形式,而不脱离本发明的精神。所附权利要求及其等同旨在覆盖这些形式或变型以落入本发明的范围和精神内。While some embodiments of the inventions have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel methods and systems described herein may be embodied in various other forms; furthermore, various omissions, substitutions and changes in the forms of the methods and systems described herein may be made without departing from the spirit of the inventions. The appended claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.

Claims (9)

1. A chip pin circuit, comprising: a chip pin, a reference voltage circuit, a comparison circuit, wherein the comparison circuit comprises n comparators, n >1, each comparator is connected with the chip pin and receives a first signal from the chip pin, the reference voltage circuit generates a plurality of reference voltages and outputs the reference voltages to the corresponding comparators respectively, one comparator compares the first signal with the reference voltages and generates a first control signal and transmits the first control signal to a chip internal circuit and the other comparator to control the chip internal circuit and the other comparator, wherein the m-th comparator comprises a first input end, a second input end, a control end and a first output end, 1< m < n, the first input end is connected with the chip pin to receive the first signal, the control end receives the first control signal, the second input end is connected with the reference voltage circuit to receive the reference voltages, the first output end outputs a control signal to the chip internal circuit and the (m + 1) th comparator, and the chip internal circuit and the (m + 1) th comparator are respectively controlled by the first output end; wherein the comparator includes a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, an eighth transistor, a ninth transistor, a second dc power supply, and a ground terminal, wherein a second pole of the first transistor is connected to the reference voltage circuit, a first pole of the first transistor is connected to a second pole of the second transistor, a gate of the first transistor receives a control signal, a gate of the second transistor is connected to the second pole thereof, a first pole of the second transistor is connected to the ground terminal, a gate of the second transistor is further connected to a second pole of the third transistor and a gate of the fourth transistor, a gate of the third transistor receives a control signal, a first pole of the third transistor is connected to the ground terminal, and a first pole of the fourth transistor is connected to the ground terminal, a second pole of the fourth transistor is connected to a first pole of the fifth transistor and a first pole of the sixth transistor, the grid electrode of the fifth transistor and the grid electrode of the sixth transistor are both connected with the chip pin, a second pole of the fifth transistor is connected to a second pole of the seventh transistor, a second pole of the sixth transistor is connected to a second pole of the eighth transistor, a gate of the seventh transistor is connected to a gate of the eighth transistor and to a second pole of the ninth transistor, the grid electrode of the seventh transistor is also connected with the second pole thereof, the first pole of the seventh transistor is connected with the second direct current power supply, a first electrode of the eighth transistor is connected to the second dc power supply, a gate of the ninth transistor receives a control signal, and a first electrode of the ninth transistor is connected to the second dc power supply.
2. The chip pin electronics of claim 1, wherein: the reference voltage circuit comprises a first direct current power supply, a grounding end and a plurality of resistors connected in series between the first direct current power supply and the grounding end.
3. The chip pin electronics of claim 1, wherein: the 1 st comparator comprises a first input end, a second input end, a control end and a first output end, wherein the first input end is connected to the chip pin to receive the first signal, the control end is connected to an external circuit to receive a third control signal, the second input end is connected to the reference voltage circuit to receive the reference voltage, and the first output end outputs the first control signal to the chip internal circuit and the 2 nd comparator to respectively control the chip internal circuit and the 2 nd comparator; the nth comparator comprises a first input end, a second input end, a control end and a first output end, wherein the first input end is connected to the chip pin to receive the first signal, the control end receives the control signal output by the nth-1 comparator, the second input end is connected to the reference voltage circuit to receive the reference voltage, and the first output end outputs the control signal to the chip internal circuit to control the chip internal circuit.
4. The chip pin electronics of claim 1, wherein: the comparator further includes a tenth transistor, an eleventh transistor, a twelfth transistor, a thirteenth transistor, and a fourteenth transistor, wherein a gate of the tenth transistor receives a control signal, a first pole of the tenth transistor is connected to the second dc power supply, a second pole of the tenth transistor is connected to the gate of the eleventh transistor, the gate of the twelfth transistor, the second pole of the sixth transistor, and the second pole of the eighth transistor, a first pole of the eleventh transistor is connected to the second dc power supply, a second pole of the eleventh transistor is connected to the second pole of the twelfth transistor, the gate of the thirteenth transistor, and the gate of the fourteenth transistor, a first pole of the twelfth transistor is connected to a ground terminal, and a first pole of the thirteenth transistor is connected to the second dc power supply, and a second pole of the thirteenth transistor is connected with a second pole and an output end of the fourteenth transistor, and a first pole of the fourteenth transistor is connected with a ground terminal.
5. The chip pin electronics of claim 4, wherein: the comparator is characterized by further comprising a comparison circuit control circuit, wherein the comparison circuit control circuit comprises a plurality of logic controllers, each logic controller comprises a third input end and a second output end, the third input end of each logic controller is connected with one comparator to receive the first control signal, and the second output end outputs the second control signal to the other comparator to control the other comparator.
6. The chip pin electronics of claim 5, wherein: the logic controller includes an inverter.
7. The chip pin electronics of claim 1, wherein: the comparator further includes a tenth transistor, an eleventh transistor, a twelfth transistor, a thirteenth transistor, and a fourteenth transistor, wherein a gate of the tenth transistor receives a control signal, a first pole of the tenth transistor is connected to ground, a second pole of the tenth transistor is connected to the gate of the eleventh transistor, the gate of the twelfth transistor, the second pole of the sixth transistor, and the second pole of the eighth transistor, a first pole of the eleventh transistor is connected to the second dc power supply, a second pole of the eleventh transistor is connected to the second pole of the twelfth transistor, the gate of the thirteenth transistor, and the gate of the fourteenth transistor, a first pole of the twelfth transistor is connected to ground, and a first pole of the thirteenth transistor is connected to the second dc power supply, and the second pole of the thirteenth transistor is connected with the second pole and the output end of the fourteenth transistor, and the first pole of the fourteenth transistor is connected with the ground terminal.
8. A chip, characterized by: comprising the chip pin electronics of claim 1.
9. An apparatus, characterized by: comprising the chip pin electronics of claim 1.
CN202010914602.3A 2020-07-13 2020-09-03 A chip pin circuit, chip and device Active CN113176799B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010667270 2020-07-13
CN2020106672703 2020-07-13

Publications (2)

Publication Number Publication Date
CN113176799A CN113176799A (en) 2021-07-27
CN113176799B true CN113176799B (en) 2022-06-28

Family

ID=76921488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010914602.3A Active CN113176799B (en) 2020-07-13 2020-09-03 A chip pin circuit, chip and device

Country Status (1)

Country Link
CN (1) CN113176799B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6075684A (en) * 1998-03-23 2000-06-13 Electric Boat Corporation Method and arrangement for direct current circuit interruption
CN102801421A (en) * 2011-05-25 2012-11-28 安凯(广州)微电子技术有限公司 Composite comparator
CN103051322A (en) * 2012-12-03 2013-04-17 广州润芯信息技术有限公司 Chip pin multiplex circuit
CN203589708U (en) * 2013-11-22 2014-05-07 无锡中星微电子有限公司 Battery protective circuit
CN104165663A (en) * 2014-07-15 2014-11-26 浙江大学 Ultrasonic signal amplitude detection method applied to low-power-consumption ultrasonic flowmeter
CN105790385A (en) * 2016-05-10 2016-07-20 南通钰泰电子科技有限公司 Circuit for setting display range of electric quantity of battery through pin multiplexing
CN107748294A (en) * 2018-01-16 2018-03-02 长沙韶光半导体有限公司 A kind of Port detecting and state latching circuit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003109390A (en) * 2001-09-27 2003-04-11 Toshiba Corp Semiconductor memory device
CN102694516B (en) * 2012-06-12 2016-04-13 湖南华宽通电子科技有限公司 A kind of rail-to-rail operational amplifier of asymmetric bias voltage structure

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6075684A (en) * 1998-03-23 2000-06-13 Electric Boat Corporation Method and arrangement for direct current circuit interruption
CN102801421A (en) * 2011-05-25 2012-11-28 安凯(广州)微电子技术有限公司 Composite comparator
CN103051322A (en) * 2012-12-03 2013-04-17 广州润芯信息技术有限公司 Chip pin multiplex circuit
CN203589708U (en) * 2013-11-22 2014-05-07 无锡中星微电子有限公司 Battery protective circuit
CN104165663A (en) * 2014-07-15 2014-11-26 浙江大学 Ultrasonic signal amplitude detection method applied to low-power-consumption ultrasonic flowmeter
CN105790385A (en) * 2016-05-10 2016-07-20 南通钰泰电子科技有限公司 Circuit for setting display range of electric quantity of battery through pin multiplexing
CN107748294A (en) * 2018-01-16 2018-03-02 长沙韶光半导体有限公司 A kind of Port detecting and state latching circuit

Also Published As

Publication number Publication date
CN113176799A (en) 2021-07-27

Similar Documents

Publication Publication Date Title
US8901964B2 (en) Level shifter circuit and operation method thereof
US10855265B2 (en) Comparison circuit
JP2007248381A (en) Electronic circuit provided with circuit for scanning test, integrated circuit, and method of reducing electric power consumption used for integrated circuit
WO2014138033A1 (en) Voltage level shifter with a low-latency voltage boost circuit
WO2020007059A1 (en) Shift register unit, driving method, light-emission control gate driving circuit, and display apparatus
US7449953B2 (en) Input buffer design using common-mode feedback (CMFB)
US20120013496A1 (en) Switched capacitor type d/a converter
CN109327218A (en) A level shift circuit and integrated circuit chip
GB2394088A (en) Output circuit and method that inverts the data byte if the number of changed bits compared with the last byte is more than half the total number of bits.
US7924198B2 (en) Digital-to-analog converter
US9397682B2 (en) Reference buffer with wide trim range
US10972102B2 (en) Interface circuit
CN109660247B (en) Time sequence control system and time sequence control method between on-chip voltage regulators
CN113176799B (en) A chip pin circuit, chip and device
US8947149B1 (en) Stacked clock distribution for low power devices
JP2009533929A (en) Electronic circuit
Bekal et al. An improved dynamic latch based comparator for 8-bit asynchronous SAR ADC
CN111929522B (en) State detection circuit and control detection method
CN106953618B (en) Enhanced CMOS Schmitt circuit
JP5417470B2 (en) Offset voltage correction circuit for dynamic comparator and dynamic comparator circuit using the same
CN100468934C (en) Voltage converter and method thereof
CN106961271B (en) Signal receiving device and signal processing apparatus
JP2001044819A (en) High-voltage output inverter
US11916543B2 (en) Analog switch circuit
WO2023284395A1 (en) Voltage conversion circuit and memory

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 201801 Building 2, 618 Chengliu Middle Road, Jiading District, Shanghai

Patentee after: Shanghai Sinan Navigation Technology Co.,Ltd.

Country or region after: China

Address before: Building 2, No. 618 Chengliu Middle Road, Malu Town, Jiading District, Shanghai, 2018

Patentee before: COMNAV TECHNOLOGY Ltd.

Country or region before: China