TWI413882B - Reference current generating apparatus and method - Google Patents
Reference current generating apparatus and method Download PDFInfo
- Publication number
- TWI413882B TWI413882B TW99134964A TW99134964A TWI413882B TW I413882 B TWI413882 B TW I413882B TW 99134964 A TW99134964 A TW 99134964A TW 99134964 A TW99134964 A TW 99134964A TW I413882 B TWI413882 B TW I413882B
- Authority
- TW
- Taiwan
- Prior art keywords
- current
- control signal
- current generating
- reference current
- circuit
- Prior art date
Links
Landscapes
- Control Of Electrical Variables (AREA)
- Amplifiers (AREA)
Abstract
Description
本發明是有關於一種參考電流產生裝置及其方法,且特別是有關於一種能產生控制訊號的參考電流產生裝置及其方法。The present invention relates to a reference current generating device and method thereof, and more particularly to a reference current generating device capable of generating a control signal and a method thereof.
能隙參考電路廣泛地應用於積體電路中,用以提供一穩定的參考電壓。此參考電壓較外界電源供應之電壓更為準確,並且其受溫度變化及電源供應之變異的影響也小。能隙參考電路是利用一個正比於絕對溫度的電路來補償雙載子電晶體基射極的負溫度係數,從而得能實質上不受溫度變化影響的參考電壓。The bandgap reference circuit is widely used in integrated circuits to provide a stable reference voltage. This reference voltage is more accurate than the voltage of the external power supply, and it is less affected by temperature variations and variations in power supply. The bandgap reference circuit utilizes a circuit proportional to the absolute temperature to compensate for the negative temperature coefficient of the bipolar transistor base emitter, thereby providing a reference voltage that is substantially immune to temperature variations.
如第1圖所示,為一習知參考電流產生裝置10,其包括一能隙參考電路100以及一電流產生電路110。能隙參考電路100包括運算放大器、PMOS電晶體、BJT電晶體以及電阻。藉由上述能隙參考電路的原理,參考電流產生裝置10產生實質上不受溫度變化影響的參考電壓VBG。再藉由接上電阻Rext之電流產生電路110以產生對應的電流Iext,最後產生參考電流Iref。參考電流Iref為一與製程、電壓和溫度不敏感的參考電流源,當電流產生電路的設計完成例如使其內容的電晶體的數目固定後即得到固定的的參考電流值,電阻Rext也就必須固定在某一阻值。一般而言,在晶片的設計中,會讓上述電阻Rext置於包含參考電流產生裝置10之晶片以外而成為外部電阻Rext;電路設計者在使用此晶片時,必須依照晶片的規格外接一個固定阻值的外部電阻Rext,才能使晶片按照其規格正常運作。As shown in FIG. 1, a conventional reference current generating device 10 includes a bandgap reference circuit 100 and a current generating circuit 110. The bandgap reference circuit 100 includes an operational amplifier, a PMOS transistor, a BJT transistor, and a resistor. With the principle of the above-described band gap reference circuit, the reference current generating device 10 generates the reference voltage VBG which is substantially unaffected by the temperature change. The current generating circuit 110 is connected to the current generating circuit 110 to generate a corresponding current Iext, and finally the reference current Iref is generated. The reference current Iref is a reference current source that is insensitive to the process, voltage and temperature. When the design of the current generating circuit is completed, for example, the number of transistors of the content is fixed, a fixed reference current value is obtained, and the resistor Rext must also be obtained. Fixed at a certain resistance. Generally, in the design of the wafer, the resistor Rext is placed outside the wafer including the reference current generating device 10 to become the external resistor Rext; when the circuit designer uses the wafer, a fixed resistor must be externally connected according to the specification of the wafer. The external resistor Rext of the value allows the wafer to function properly according to its specifications.
本發明係有關於一種參考電流產生裝置及其方法。此參考電流產生裝置接上預設的不同阻值的外接電阻能產生所欲得到的參考電流,例如產生相同大小的參考電流,並且可產生對應到不同外接電阻阻值的不同之控制訊號。The present invention relates to a reference current generating device and method thereof. The reference current generating device is connected to a preset external resistor of different resistance values to generate a desired reference current, for example, generating a reference current of the same magnitude, and generating different control signals corresponding to different external resistor values.
根據本發明之第一方面,提出一種參考電流產生裝置。此參考電流產生裝置包括一電流產生電路、一補償電流產生單元以及一控制訊號產生單元。電流產生電路,耦接一外接電阻,用以依據一參考電壓產生一參考電流。補償電流產生單元,耦接到電流產生電路,包括至少一電流支路以提供一補償電流;補償電流產生單元選擇性地依據一控制訊號輸出補償電流給電流產生電路以產生參考電流。控制訊號產生單元,耦接到電流產生電路及補償電流產生單元,依據對應到外接電阻阻值大小之一檢測電壓產生控制訊號,其中控制訊號代表複數個狀態之一,各個狀態對應到外接電阻之一阻值。According to a first aspect of the invention, a reference current generating device is provided. The reference current generating device includes a current generating circuit, a compensation current generating unit, and a control signal generating unit. The current generating circuit is coupled to an external resistor for generating a reference current according to a reference voltage. The compensation current generating unit is coupled to the current generating circuit and includes at least one current branch to provide a compensation current. The compensation current generating unit selectively outputs a compensation current to the current generating circuit according to a control signal to generate a reference current. The control signal generating unit is coupled to the current generating circuit and the compensation current generating unit, and generates a control signal according to the detection voltage corresponding to one of the resistance values of the external resistor, wherein the control signal represents one of a plurality of states, and each state corresponds to an external resistor. A resistance value.
根據本發明之第二方面,提出一種參考電流產生方法。此方法包括以下步驟。提供一電流產生電路以依據一參考電壓及一外接電阻產生一參考電流。依據對應到外接電阻阻值大小之一檢測電壓產生一控制訊號,其中控制訊號代表複數個狀態之一,各個狀態對應到外接電阻之一阻值。選擇性地依據控制訊號提供補償電流以給電流產生電路以產生參考電流。According to a second aspect of the present invention, a reference current generating method is proposed. This method includes the following steps. A current generating circuit is provided to generate a reference current according to a reference voltage and an external resistor. A control signal is generated according to the detection voltage corresponding to one of the resistance values of the external resistor, wherein the control signal represents one of a plurality of states, and each state corresponds to a resistance value of the external resistor. A compensation current is selectively provided in accordance with the control signal to cause a current generating circuit to generate a reference current.
為了對本發明之上述及其他方面有更佳的瞭解,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下:In order to better understand the above and other aspects of the present invention, the preferred embodiments are described below, and in conjunction with the drawings, the detailed description is as follows:
以下提出一種參考電流產生裝置及其方法之實施例。在一實施例中,此參考電流產生裝置接上預設的不同阻值的外接電阻均能產生相同大小的參考電流,並且可產生與外接電阻對應的、不同的控制訊號。再者,此參考電流產生裝置透過使用不同的外接電阻阻值,所產生的不同的控制訊號可以用作改變其他電路的設定,可帶來多種新用途,以增進設定電路的方便性,並可令整體電路設計的複雜度減少。An embodiment of a reference current generating device and method thereof is presented below. In an embodiment, the reference current generating device is connected to the preset external resistors of different resistance values to generate the same size of the reference current, and can generate different control signals corresponding to the external resistors. Furthermore, the reference current generating device can use different control signals to change the setting of other circuits by using different external resistance values, and can bring various new uses to improve the convenience of setting the circuit. Reduce the complexity of the overall circuit design.
第2A圖所示為依據一實施例的一種參考電流產生裝置之電路方塊圖。參考電流產生裝置20包括一電流產生電路210、一補償電流產生單元220以及一控制訊號產生單元230。電流產生電路210,耦接一外接電阻Rext,用以依據一參考電壓VBG產生一參考電流Iref。參考電壓VBG例如藉由一能隙參考電路200所產生,或視作包含參考電流產生裝置20之晶片或系統內部所提供。補償電流產生單元220,耦接到電流產生電路210並且包括一或多個電流支路(current branch)以提供一補償電流Icp,補償電流產生單元220選擇性地依據一控制訊號OPT提供補償電流Icp給電流產生電路210以產生參考電流Iref。控制訊號產生單元230,耦接到電流產生電路210及補償電流產生單元230,依據對應到外接電阻Rext阻值大小之一檢測電壓產生控制訊號OPT,以控制補償電流產生單元230選擇性地提供補償電流Icp給電流產生電路210以產生參考電流Iref。此外,外接電阻Rext可實作為包含於參考電流產生裝置20內或為包含參考電流產生裝置20之晶片或系統之外。FIG. 2A is a circuit block diagram of a reference current generating device according to an embodiment. The reference current generating device 20 includes a current generating circuit 210, a compensation current generating unit 220, and a control signal generating unit 230. The current generating circuit 210 is coupled to an external resistor Rext for generating a reference current Iref according to a reference voltage VBG. The reference voltage VBG is generated, for example, by a bandgap reference circuit 200, or as a chip or system internal to the reference current generating device 20. The compensation current generating unit 220 is coupled to the current generating circuit 210 and includes one or more current branches to provide a compensation current Icp. The compensation current generating unit 220 selectively supplies the compensation current Icp according to a control signal OPT. The current generating circuit 210 is applied to generate a reference current Iref. The control signal generating unit 230 is coupled to the current generating circuit 210 and the compensation current generating unit 230 to detect the voltage generating control signal OPT according to one of the resistance values of the external resistor Rext to control the compensation current generating unit 230 to selectively provide compensation. The current Icp is supplied to the current generating circuit 210 to generate a reference current Iref. Further, the external resistor Rext can be implemented as being included in the reference current generating device 20 or outside the wafer or system including the reference current generating device 20.
依據第2A圖中之參考電流產生裝置20,可以設計多個外接電阻Rext的阻值,以令控制訊號產生單元230對應地產生不同的控制訊號OPT,以控制補償電流產生單元220提供適當大小的補償電流Icp。電流產生電路210得到補償電流Icp後,結合其內部產生的電流,就能產生所欲得到的參考電流Iref。在第2A圖中之控制訊號OPT可代表著一個或多個控制訊號,例如數位訊號或邏輯位準。According to the reference current generating device 20 in FIG. 2A, the resistance values of the plurality of external resistors Rext can be designed to cause the control signal generating unit 230 to generate different control signals OPT correspondingly to control the compensation current generating unit 220 to provide an appropriate size. Compensation current Icp. After the current generating circuit 210 obtains the compensation current Icp, in combination with the current generated therein, the desired reference current Iref can be generated. The control signal OPT in Figure 2A may represent one or more control signals, such as digital signals or logic levels.
請參考第2B圖,其示意參考電流產生裝置20所產生的不同的控制訊號可以用作改變其他電路的設定。電路單元1係包括上述之參考電流產生裝置20,而外接電阻Rext設計為適用於兩個阻值,如100Ω或200Ω,相對應的控制訊號OPT代表邏輯0或1。如此,電路單元2可以設計為回應於控制訊號OPT而作不同的處理或進入某種操作模式。如此,可不必使用韌體或其他軟體或改變電路設計之類的手段來設定電路單元2。Please refer to FIG. 2B, which illustrates that different control signals generated by the reference current generating device 20 can be used as settings for changing other circuits. The circuit unit 1 includes the above-described reference current generating device 20, and the external resistor Rext is designed to be suitable for two resistance values, such as 100 Ω or 200 Ω, and the corresponding control signal OPT represents logic 0 or 1. As such, the circuit unit 2 can be designed to perform different processing or enter a certain mode of operation in response to the control signal OPT. Thus, the circuit unit 2 can be set without using a firmware or other software or changing the circuit design.
以下以實際例子說明,在利用第2B圖中的電路單元1及2來客製化電子產品時,假設電路單元2為一多媒體晶片,對於A客戶的產品,如上述般讓控制訊號OPT代表邏輯0,使之開機時自動進入A客戶所需要的低耗能的一般操作模式即可。而對B客戶的產品,其需求為高效能表現,如此則可讓控制訊號OPT代表邏輯1,使之開機時自動進入A客戶所需要的高效能操作模式即可。如此,可說明參考電流產生裝置20可帶來多種新用途,以增進設定電路的方便性,並可令整體電路的複雜度減少。The following is a practical example. When the electronic components are customized by using the circuit units 1 and 2 in FIG. 2B, it is assumed that the circuit unit 2 is a multimedia chip. For the A customer's product, the control signal OPT represents logic 0 as described above. In order to automatically enter the low-energy general operation mode required by the A customer when starting up. For the B customer's products, the demand is high performance, so that the control signal OPT stands for logic 1, so that when it is turned on, it automatically enters the high-performance operation mode required by the A customer. Thus, it can be explained that the reference current generating device 20 can bring a variety of new uses to improve the convenience of setting the circuit and to reduce the complexity of the overall circuit.
以下更依據參考電流產生裝置20以舉例說明多種實施方式。The various embodiments are described below by way of example with reference to current generating device 20.
第3A圖為依據第2A圖之實施例的一參考電流產生裝置30的例子,其中外接電阻Rext可以為兩個預先設計的阻值之一,對應地可以產生控制訊號表示兩個不同狀態。於第3A圖之電晶體,例如電晶體m1及m2旁邊所示之符號Xm及Xn,分別表示電晶體m1可以用實質上相當於m個電晶體結構的寛長比(W/L)相同的電晶體(如PMOS或NMOS)以並聯的方式實施,電晶體m2可以用實質上相當於n個如此的電晶體以並聯的方式實施,其中m及n皆為正整數。FIG. 3A is an example of a reference current generating device 30 according to the embodiment of FIG. 2A, wherein the external resistor Rext may be one of two pre-designed resistance values, correspondingly generating a control signal indicating two different states. The transistors X3 and Xn shown in the figure 3A, for example, the symbols Xm and Xn shown next to the transistors m1 and m2, respectively, indicate that the transistor m1 can be substantially the same as the aspect ratio (W/L) of m crystal structures. A transistor (such as a PMOS or an NMOS) is implemented in parallel, and the transistor m2 can be implemented in a manner equivalent to n such transistors, in which m and n are both positive integers.
參考電流產生裝置30包括一電流產生電路310、一補償電流產生單元320以及一控制訊號產生單元330。舉例而言,電流產生電路310可實施為電流鏡或其他電流產生電路,例如第3A圖所示之具有回授之電流鏡,包括一運算放大器OP、電晶體m1及m2。而補償電流產生單元320則包括至少一個電流支路(current branch),例如由電晶體m3及開關sw所組成的電流支路,用以選擇性地依據一控制訊號OPT提供一補償電流Icp給電流產生電路310以產生參考電流Iref。控制訊號產生單元330依據對應到外接電阻Rext阻值大小之一檢測電壓VT產生控制訊號OPT,以控制補償電流產生單元330選擇性地提供補償電流Icp給電流產生電路310以產生參考電流Iref。控制訊號產生單元330例如包括由電晶體m4及電阻R1組成之一分壓電路以產生檢測電壓VT,並且包括比較器comp以藉由比較檢測電壓VT及一門閥值(如參考電壓VBG)來產生控制訊號OPT。於此例中並不限於使用參考電壓VBG作為門閥值,其他例子為由電源VDD經分壓取得或是由其他電源取得,無論何種設計,比較結果能配合需求產生對應的控制訊號OPT即可。The reference current generating device 30 includes a current generating circuit 310, a compensation current generating unit 320, and a control signal generating unit 330. For example, the current generating circuit 310 can be implemented as a current mirror or other current generating circuit, such as a feedback current mirror shown in FIG. 3A, including an operational amplifier OP, transistors m1 and m2. The compensation current generating unit 320 includes at least one current branch, for example, a current branch composed of the transistor m3 and the switch sw for selectively providing a compensation current Icp to the current according to a control signal OPT. Circuit 310 is generated to generate a reference current Iref. The control signal generating unit 330 generates the control signal OPT according to the detection voltage VT corresponding to one of the resistance values of the external resistor Rext, to control the compensation current generating unit 330 to selectively supply the compensation current Icp to the current generating circuit 310 to generate the reference current Iref. The control signal generating unit 330 includes, for example, a voltage dividing circuit composed of a transistor m4 and a resistor R1 to generate a detection voltage VT, and includes a comparator comp to compare the detection voltage VT and a threshold value (such as a reference voltage VBG). A control signal OPT is generated. In this example, the reference voltage VBG is not limited to the gate threshold. Other examples are obtained by dividing the power supply VDD or by other power sources. Regardless of the design, the comparison result can be combined with the demand to generate the corresponding control signal OPT. .
外接電阻Rext阻值分別為兩個不同的阻值Rx及k1*Rx,其中k1>0。如第2A圖所示,當使用外接電阻Rext=Rx時,流過外接電阻Rext的電流大小Iext為VBG/Rx。控制訊號產生單元330得到檢測電壓VT為VBG*R1/Rx*(n/m)。本例中,透過設計電阻R1的阻值使得檢測電壓VT會大於門閥值(如參考電壓VBG),如此比較器comp輸出控制訊號OPT(如為低電位或視為邏輯0)以代表不需要補償電流。補償電流產生單元320之一電流支路上的開關sw由控制訊號OPT所控制,此時控制訊號OPT為0,開關sw為開路,故與開關sw所對應的補償電流Icp不會提供給電流產生電路310,或可視為所提供的補償電流Icp此時的值為0。在此種情形下,參考電流Iref為VBG/Rx*(n/m)。The resistance of the external resistor Rext is two different resistance values Rx and k1*Rx, respectively, where k1>0. As shown in FIG. 2A, when the external resistor Rext=Rx is used, the current magnitude Iext flowing through the external resistor Rext is VBG/Rx. The control signal generating unit 330 obtains the detection voltage VT of VBG*R1/Rx*(n/m). In this example, by designing the resistance of the resistor R1, the detection voltage VT will be greater than the gate threshold (such as the reference voltage VBG), so the comparator comp outputs the control signal OPT (if it is low or regarded as logic 0) to represent that no compensation is required. Current. The switch sw of the current branch of one of the compensation current generating unit 320 is controlled by the control signal OPT. At this time, the control signal OPT is 0, and the switch sw is open, so the compensation current Icp corresponding to the switch sw is not supplied to the current generating circuit. 310, or can be regarded as the provided compensation current Icp at this time is 0. In this case, the reference current Iref is VBG/Rx*(n/m).
如第3B圖所示,當使用外接電阻Rext為k1倍的Rx時,流過外接電阻Rext的電流大小Iext為VBG/(k1*Rx)。控制訊號產生單元330得到的檢測電壓VT則為VBG*R1/(k1*Rx)*(n/m)。此時檢測電壓VT小於門閥值(如參考電壓VBG),比較器comp輸出控制訊號OPT如為高電位或視為邏輯1以代表需要補償電流。由於控制訊號OPT為1,開關sw為閉路,故與開關sw所對應的補償電流Icp會提供給電流產生電路310。由於電晶體m3代表著(k1-1)n個上述之寛長比相同的電晶體之並聯結構。故此,在此種情形下,參考電流Iref仍為VBG/Rx*(n/m)。As shown in FIG. 3B, when the external resistor Rext is k1 times Rx, the current magnitude Iext flowing through the external resistor Rext is VBG/(k1*Rx). The detection voltage VT obtained by the control signal generating unit 330 is VBG*R1/(k1*Rx)*(n/m). At this time, the detection voltage VT is less than the threshold value (such as the reference voltage VBG), and the comparator comp outputs the control signal OPT as high or as a logic 1 to represent the required compensation current. Since the control signal OPT is 1, the switch sw is closed, so the compensation current Icp corresponding to the switch sw is supplied to the current generating circuit 310. Since the transistor m3 represents (k1-1)n parallel structures of the above-described transistors having the same aspect ratio. Therefore, in this case, the reference current Iref is still VBG/Rx*(n/m).
如上可知,對於任意選擇的Rx或k1倍Rx當作外接電阻值,參考電流產生裝置30都能夠產生穩定電流源VBG/Rx*(n/m),而且回應於不同的阻值,所產生控制訊號OPT有不同的電位,此控制訊號OPT可以用來控制其他功能的電路,如第2B圖所示者。As can be seen from the above, for an arbitrarily selected Rx or k1 times Rx as an external resistance value, the reference current generating device 30 can generate a stable current source VBG/Rx*(n/m), and generate control in response to different resistance values. The signal OPT has different potentials, and the control signal OPT can be used to control circuits of other functions, as shown in FIG. 2B.
在其他實施例中,如第4圖所的參考電流產生裝置40,更擴充上述例子的應用,可使用三種不同的外接電阻阻值,如Rx、k1*Rx及k2*Rx,以產生出控制訊號以表示三種不同狀態,如以二位元數位訊號00、10、11表示之。In other embodiments, the reference current generating device 40 as shown in FIG. 4 further expands the application of the above example, and three different external resistor values, such as Rx, k1*Rx, and k2*Rx, can be used to generate control. The signal is represented by three different states, such as two-bit digital signals 00, 10, and 11.
請參考第4圖,參考電流產生裝置40包括一電流產生電路410、一補償電流產生單元420以及一控制訊號產生單元430。舉例而言,電流產生電路410可實施為電流產生電路310。Referring to FIG. 4, the reference current generating device 40 includes a current generating circuit 410, a compensation current generating unit 420, and a control signal generating unit 430. For example, current generation circuit 410 can be implemented as current generation circuit 310.
與第3A圖不同的是,補償電流產生單元420包括至少兩個電流支路,例如:由電晶體m3及開關sw1所組成之一電流支路,以及由電晶體m4及開關sw2所組成之另一電流支路。補償電流產生單元420選擇性地依據控制訊號OPT1及OPT2(其可視為控制訊號OPT之子訊號)提供一補償電流Icp給電流產生電路410以產生一參考電流Iref。Different from FIG. 3A, the compensation current generating unit 420 includes at least two current branches, for example, a current branch composed of the transistor m3 and the switch sw1, and another composed of the transistor m4 and the switch sw2. A current branch. The compensation current generating unit 420 selectively supplies a compensation current Icp to the current generating circuit 410 to generate a reference current Iref according to the control signals OPT1 and OPT2 (which can be regarded as sub-signals of the control signal OPT).
此外,控制訊號產生單元430則依據對應到外接電阻Rext阻值大小之一檢測電壓VT產生控制訊號OPT1及OPT2,以控制補償電流產生單元430選擇性地提供補償電流Icp給電流產生電路410以產生參考電流Iref。控制訊號產生單元430例如包括電晶體m5及電阻R1以產生檢測電壓VT。控制訊號產生單元430更包括兩個比較器,第一比較器comp1及第二比較器comp2,以分別比較檢測電壓VT及一第一門閥值(如電壓VREF)來產生控制訊號OPT1,及比較檢測電壓VT及一第二門閥值(如電壓VBG2)來產生控制訊號OPT2。於第4圖中,舉例使用了比較電壓產生電路440來產生上述之第一門閥值(如電壓VREF)及第二門閥值(如電壓VBG2)。比較電壓產生電路440係依據電源電壓VDD及參考電壓VBG,使用運算放大器OP2及電晶體m6透過電阻R2及R3分壓產生兩個門閥值。比較電壓產生電路440並不以上述的架構為限,亦不限於使用參考電壓VBG作為門閥值的參考來源。故此,無論何種設計,比較結果能配合需求產生對應的控制訊號OPT1及OPT2即可。In addition, the control signal generating unit 430 generates the control signals OPT1 and OPT2 according to the detection voltage VT corresponding to one of the resistance values of the external resistor Rext, to control the compensation current generating unit 430 to selectively provide the compensation current Icp to the current generating circuit 410 to generate Reference current Iref. The control signal generating unit 430 includes, for example, a transistor m5 and a resistor R1 to generate a detection voltage VT. The control signal generating unit 430 further includes two comparators, a first comparator comp1 and a second comparator comp2, for respectively comparing the detection voltage VT and a first threshold value (such as voltage VREF) to generate the control signal OPT1, and comparing and detecting The voltage VT and a second threshold (eg, voltage VBG2) are used to generate the control signal OPT2. In Fig. 4, a comparison voltage generation circuit 440 is used to generate the first threshold value (e.g., voltage VREF) and the second threshold (e.g., voltage VBG2). The comparison voltage generating circuit 440 generates two gate threshold values by using the operational amplifier OP2 and the transistor m6 through the resistors R2 and R3 in accordance with the power supply voltage VDD and the reference voltage VBG. The comparison voltage generating circuit 440 is not limited to the above-described architecture, nor is it limited to use the reference voltage VBG as a reference source for the gate threshold. Therefore, no matter what kind of design, the comparison result can generate the corresponding control signals OPT1 and OPT2 according to the requirements.
第4圖所的參考電流產生裝置40可使用三種不同的外接電阻阻值,如Rx、k1*Rx及k2*Rx。當使用外接電阻Rext的阻值為Rx時,流過外接電阻Rext的電流大小Iext為VBG/Rx。控制訊號產生單元430得到檢測電壓VT為VBG*R1/Rx*(n/m)。本例中,透過設計電阻R1、R2及R3的阻值使得檢測電壓VT會大於第一門閥值(如電壓VREF,即相當於參考電壓VBG),如此第一比較器comp1及第二比較器comp2分別輸出控制訊號OPT1及OPT2皆為低電位或視為邏輯0。補償電流產生單元420中流過電晶體m3及m4’之電流支路上的開關sw1及sw2由控制訊號OPT1及OPT2所控制,此時開關sw1及sw2為開路,故補償電流Icp不會提供給電流產生電路410,或可視為所提供的補償電流Icp此時的值為0。在此種情形下,參考電流Iref為VBG/Rx*(n/m)。The reference current generating device 40 of FIG. 4 can use three different external resistance values, such as Rx, k1*Rx, and k2*Rx. When the resistance value of the external resistor Rext is Rx, the current magnitude Iext flowing through the external resistor Rext is VBG/Rx. The control signal generating unit 430 obtains the detected voltage VT as VBG*R1/Rx*(n/m). In this example, by designing the resistance values of the resistors R1, R2, and R3, the detection voltage VT is greater than the first threshold (eg, the voltage VREF, which is equivalent to the reference voltage VBG), such that the first comparator comp1 and the second comparator comp2 The output control signals OPT1 and OPT2 are respectively low or regarded as logic 0. The switches sw1 and sw2 on the current branch of the compensation current generating unit 420 flowing through the transistors m3 and m4' are controlled by the control signals OPT1 and OPT2. At this time, the switches sw1 and sw2 are open circuits, so the compensation current Icp is not supplied to the current generation. The circuit 410, or can be regarded as the provided compensation current Icp, has a value of zero at this time. In this case, the reference current Iref is VBG/Rx*(n/m).
當使用外接電阻Rext為k1倍的Rx時,流過外接電阻Rext的電流大小Iext為VBG/(k1*Rx)。控制訊號產生單元430得到的檢測電壓VT則為VBG*R1/(k1*Rx)*(n/m)。此時檢測電壓VT大於第二門閥值(如電壓VBG2)並小於第一門閥值(如電壓VREF),如此第一比較器comp1輸出控制訊號OPT1如為高電位或視為邏輯1,第二比較器comp2輸出控制訊號OPT2如為低電位。故此,開關sw1為閉路,開關sw2為開路,故流過電晶體m3的電流經過開關sw1成為補償電流Icp以提供給電流產生電路410。故此,在此種情形下,參考電流Iref仍為VBG/Rx*(n/m)。When the external resistor Rext is k1 times Rx, the current magnitude Iext flowing through the external resistor Rext is VBG/(k1*Rx). The detection voltage VT obtained by the control signal generating unit 430 is VBG*R1/(k1*Rx)*(n/m). At this time, the detection voltage VT is greater than the second threshold (such as the voltage VBG2) and less than the first threshold (such as the voltage VREF), such that the first comparator comp1 outputs the control signal OPT1 as high or as logic 1, the second comparison The comp2 output control signal OPT2 is low. Therefore, the switch sw1 is closed, and the switch sw2 is open, so the current flowing through the transistor m3 passes through the switch sw1 to become the compensation current Icp to be supplied to the current generating circuit 410. Therefore, in this case, the reference current Iref is still VBG/Rx*(n/m).
當使用外接電阻Rext為k2倍的Rx時,流過外接電阻Rext的電流大小Iext為VBG/(k2*Rx)。控制訊號產生單元430得到的檢測電壓VT則為VBG*R1/(k2*Rx)*(n/m)。此時檢測電壓VT小於第二門閥值(如電壓VBG2),如此第一比較器comp1及第二比較器comp2輸出控制訊號OPT1及控制訊號OPT2皆為高電位。故此,開關sw1及sw2同為閉路,故流過電晶體m3及m4’的電流經過開關sw1及sw2成為補償電流Icp以提供給電流產生電路410。由於電晶體m4代表著(k2-k1)n個上述之寛長比相同的電晶體之並聯結構。故此,在此種情形下,參考電流Iref仍為VBG/Rx*(n/m)。When the external resistor Rext is k2 times Rx, the current magnitude Iext flowing through the external resistor Rext is VBG/(k2*Rx). The detection voltage VT obtained by the control signal generating unit 430 is VBG*R1/(k2*Rx)*(n/m). At this time, the detection voltage VT is smaller than the second threshold (such as the voltage VBG2), so that the first comparator comp1 and the second comparator comp2 output the control signal OPT1 and the control signal OPT2 are both high. Therefore, the switches sw1 and sw2 are both closed, so that the currents flowing through the transistors m3 and m4' pass through the switches sw1 and sw2 to become the compensation current Icp to be supplied to the current generating circuit 410. Since the transistor m4 represents (k2-k1)n parallel structures of the above-described transistors having the same aspect ratio. Therefore, in this case, the reference current Iref is still VBG/Rx*(n/m).
由上述第4圖之例子可知,根據不同阻值的外接電阻的選擇,控制訊號OPT1及OPT2能有不同的輸出,並可用作兩位元的控制訊號。As can be seen from the example of FIG. 4 above, the control signals OPT1 and OPT2 can have different outputs according to the selection of external resistors of different resistance values, and can be used as a two-element control signal.
此外,在第4圖中所使用的第一及第二門閥值除了應用上述比較電壓產生電路440產生以外,在其他例子中,可視為參考電流產生裝置40所處的系統或晶片之內部或外部所提供。故此,參考電流產生裝置40可不必包含比較電壓產生電路440。由此可見,補償電流產生單元420及控制訊號產生單元430之實作方式並不以上述實施例為限,控制訊號產生單元430之比較結果能配合外接電阻Rext之多個同阻值所對應的控制訊號OPT1及OPT2,並能適當地令控制訊號產生單元430中的電流支路提供補償電流Icp之各種實施方式,皆可視為本發明所涵蓋之實施例。Furthermore, the first and second threshold values used in FIG. 4 are generated in addition to the comparison voltage generating circuit 440 described above, and in other examples, may be considered as internal or external to the system or wafer in which the reference current generating device 40 is located. Provided. Therefore, the reference current generating device 40 does not have to include the comparison voltage generating circuit 440. It can be seen that the implementation manner of the compensation current generating unit 420 and the control signal generating unit 430 is not limited to the above embodiment, and the comparison result of the control signal generating unit 430 can be matched with the multiple resistance values of the external resistor Rext. The various embodiments of the control signals OPT1 and OPT2, and the current branch in the control signal generating unit 430, which can provide the compensation current Icp, can be considered as embodiments covered by the present invention.
此外,上述各個實施例皆以不同外接電阻阻值能對應到實質上相同的參考電流Iref為例作說明。然而,參考電流產生裝置之實施方式並非限於此,在其他實施方式中,當可依實際應用的需求,如設計不同的參考電流Iref對應到不同的外接電阻。在實施時,參考電流產生裝置能針對不同的外接電阻阻值,產生對應的控制訊號之各種實施方式,皆可視為本發現所涵蓋之實施例。In addition, each of the above embodiments is described by taking an example in which different external resistance values can correspond to substantially the same reference current Iref. However, the implementation of the reference current generating device is not limited thereto. In other embodiments, different reference currents Iref may be designed to correspond to different external resistors according to actual application requirements. In implementation, various embodiments in which the reference current generating device can generate corresponding control signals for different external resistance values can be considered as embodiments covered by the present findings.
再者,上述實施例中的電晶體,如第2A圖或第4圖的電晶體m1除了可以用m個上述之寛長比相同的電晶體以並聯的方式實施以外,亦可以用其他數目的但寛長比不同的電晶體以其他並聯或串聯方式實施。又其他實施例中,電晶體m1及m2能僅用兩個寬長比合符m:n的關係的電晶體來實施,其中m及n可以取小數或整數的數值。其他電晶體的實施例方式亦可依上所述各種方式實施。Furthermore, the transistor in the above embodiment, such as the transistor m1 of FIG. 2A or FIG. 4, may be implemented in parallel, in addition to m of the above-mentioned transistors having the same aspect ratio, other numbers may be used. However, the length of the transistor is different from that of other transistors in parallel or in series. In still other embodiments, the transistors m1 and m2 can be implemented using only two transistors having a width to length ratio of m:n, where m and n can take values of fractional or integer. Embodiments of other transistors may also be implemented in various ways as described above.
此外,依據上述實施例,本發明亦提出一種參考電流產生方法,其包括以下步驟。提供一電流產生電路以依據一參考電壓及一外接電阻產生一參考電流。依據對應到外接電阻阻值大小之一檢測電壓產生一控制訊號,其中該控制訊號代表複數個狀態之一,各個狀態對應到外接電阻之一阻值。選擇性地依據控制訊號提供補償電流以給電流產生電路以產生參考電流。上述之步驟可依如第2A圖至第4圖之各個實施例以實現。另外,如第2B圖所示,此方法所產生之控制訊號可用以設定其他電路單元。Further, according to the above embodiment, the present invention also proposes a reference current generating method including the following steps. A current generating circuit is provided to generate a reference current according to a reference voltage and an external resistor. A control signal is generated according to the detection voltage corresponding to one of the resistance values of the external resistor, wherein the control signal represents one of a plurality of states, and each state corresponds to a resistance value of the external resistor. A compensation current is selectively provided in accordance with the control signal to cause a current generating circuit to generate a reference current. The above steps can be implemented in accordance with various embodiments of Figures 2A through 4. In addition, as shown in FIG. 2B, the control signals generated by this method can be used to set other circuit units.
上述實施例所揭露的參考電流產生裝置及方法,能彈性地接上不同阻值的外接電阻,以產生所欲求大小的參考電流,例如產生相同大小的參考電流,並且可產生不同的控制訊號。再者,此參考電流產生裝置透過使用不同的外接電阻阻值,所產生的不同的控制訊號可以用作改變其他電路的設定,可帶來多種新用途,以增進設定電路的方便性,並可令整體電路設計的複雜度減少。The reference current generating device and method disclosed in the above embodiments can elastically connect external resistors of different resistance values to generate a reference current of a desired magnitude, for example, generate a reference current of the same magnitude, and generate different control signals. Furthermore, the reference current generating device can use different control signals to change the setting of other circuits by using different external resistance values, and can bring various new uses to improve the convenience of setting the circuit. Reduce the complexity of the overall circuit design.
綜上所述,雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。In conclusion, the present invention has been disclosed in the above preferred embodiments, and is not intended to limit the present invention. A person skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.
10...習知參考電流產生裝置10. . . Conventional reference current generating device
20、30、40...參考電流產生裝置20, 30, 40. . . Reference current generating device
100、200...能隙參考電路100, 200. . . Bandgap reference circuit
110、210、310、410...電流產生電路110, 210, 310, 410. . . Current generating circuit
220、320、420...補償電流產生單元220, 320, 420. . . Compensation current generating unit
230、330、430...控制訊號產生單元230, 330, 430. . . Control signal generating unit
440...比較電壓產生電路440. . . Comparison voltage generating circuit
comp、comp1、comp2...比較器Comp, comp1, comp2. . . Comparators
OP、OP1、OP2...運算放大器OP, OP1, OP2. . . Operational Amplifier
m1、m2、m3、m4、m4’、m5...電晶體M1, m2, m3, m4, m4', m5. . . Transistor
sw、sw1、sw2...開關Sw, sw1, sw2. . . switch
R1、R2、R3...電阻R1, R2, R3. . . resistance
VBG...參考電壓VBG. . . Reference voltage
Iref...參考電流Iref. . . Reference current
Icp...補償電流Icp. . . Compensation current
OPT、OPT1、OPT2...控制訊號OPT, OPT1, OPT2. . . Control signal
Rext...外接電阻Rext. . . External resistor
第1圖為一習知參考電流產生裝置。Figure 1 is a conventional reference current generating device.
第2A圖所示為依據一實施例的一種參考電流產生裝置之電路方塊圖。FIG. 2A is a circuit block diagram of a reference current generating device according to an embodiment.
第2B圖示意參考電流產生裝置所產生的不同的控制訊號可以用作改變其他電路的設定。Figure 2B shows that the different control signals generated by the reference current generating means can be used to change the settings of other circuits.
第3A及3B圖為依據第2A圖之實施例的一參考電流產生裝置的一例子的電路方塊圖。3A and 3B are circuit block diagrams showing an example of a reference current generating device according to the embodiment of Fig. 2A.
第4圖為參考電流產生裝置之另一例子,可使用三種不同的外接電阻阻值。Figure 4 is another example of a reference current generating device that can use three different external resistor values.
20...參考電流產生裝置20. . . Reference current generating device
200...能隙參考電路200. . . Bandgap reference circuit
210...電流產生電路210. . . Current generating circuit
220...補償電流產生單元220. . . Compensation current generating unit
230...控制訊號產生單元230. . . Control signal generating unit
VBG...參考電壓VBG. . . Reference voltage
Iref...參考電流Iref. . . Reference current
Icp...補償電流Icp. . . Compensation current
OPT...控制訊號OPT. . . Control signal
Rext...外接電阻Rext. . . External resistor
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99134964A TWI413882B (en) | 2010-10-13 | 2010-10-13 | Reference current generating apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99134964A TWI413882B (en) | 2010-10-13 | 2010-10-13 | Reference current generating apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201216028A TW201216028A (en) | 2012-04-16 |
TWI413882B true TWI413882B (en) | 2013-11-01 |
Family
ID=46787038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW99134964A TWI413882B (en) | 2010-10-13 | 2010-10-13 | Reference current generating apparatus and method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI413882B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4714900A (en) * | 1985-11-21 | 1987-12-22 | Nec Corporation | Current output circuit having well-balanced output currents of opposite polarities |
US5757625A (en) * | 1995-10-02 | 1998-05-26 | U.S. Philips Corporation | Switched mode power supply with transformer and feedback via primary winding |
US5982201A (en) * | 1998-01-13 | 1999-11-09 | Analog Devices, Inc. | Low voltage current mirror and CTAT current source and method |
TW200709559A (en) * | 2005-08-23 | 2007-03-01 | Samsung Electronics Co Ltd | Circuits for generating reference current and bias voltages, and bias circuit using the same |
US20070108947A1 (en) * | 2005-11-17 | 2007-05-17 | Linear Technology Corp. | Switching regulator slope compensation generator circuit |
TW200744301A (en) * | 2006-05-24 | 2007-12-01 | System General Corp | Primary-side controlled switching regulator |
TW200826439A (en) * | 2006-12-14 | 2008-06-16 | System General Corp | Method and circuit for providing compensations of current mode power converters |
-
2010
- 2010-10-13 TW TW99134964A patent/TWI413882B/en not_active IP Right Cessation
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4714900A (en) * | 1985-11-21 | 1987-12-22 | Nec Corporation | Current output circuit having well-balanced output currents of opposite polarities |
US5757625A (en) * | 1995-10-02 | 1998-05-26 | U.S. Philips Corporation | Switched mode power supply with transformer and feedback via primary winding |
US5982201A (en) * | 1998-01-13 | 1999-11-09 | Analog Devices, Inc. | Low voltage current mirror and CTAT current source and method |
TW200709559A (en) * | 2005-08-23 | 2007-03-01 | Samsung Electronics Co Ltd | Circuits for generating reference current and bias voltages, and bias circuit using the same |
US20070108947A1 (en) * | 2005-11-17 | 2007-05-17 | Linear Technology Corp. | Switching regulator slope compensation generator circuit |
TW200744301A (en) * | 2006-05-24 | 2007-12-01 | System General Corp | Primary-side controlled switching regulator |
TW200826439A (en) * | 2006-12-14 | 2008-06-16 | System General Corp | Method and circuit for providing compensations of current mode power converters |
Also Published As
Publication number | Publication date |
---|---|
TW201216028A (en) | 2012-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI720285B (en) | Voltage generating apparatus and calibration method thereof | |
CN107809223B (en) | Low temperature coefficient clock signal generator | |
JP4956460B2 (en) | Voltage comparison circuit, semiconductor integrated circuit having the voltage comparison circuit, and electronic device | |
JP5314686B2 (en) | Test equipment and driver circuit | |
JP2010218543A (en) | Voltage regulator | |
US10078016B2 (en) | On-die temperature sensor for integrated circuit | |
KR20100116559A (en) | Providing linear relationship between temperature and digital code | |
JP5596200B2 (en) | Temperature compensation power supply voltage output circuit and method for variable power supply | |
TWI651609B (en) | Low voltage locking circuit and device thereof integrated with reference voltage generating circuit | |
KR20180095523A (en) | A temperature-compensated reference voltage generator that applies a controlled voltage across the resistors | |
JP2003263232A (en) | Band gap reference circuit | |
TWI413882B (en) | Reference current generating apparatus and method | |
KR20150019000A (en) | Reference current generating circuit and method for driving the same | |
US10073484B2 (en) | Power on reset (POR) circuit with current offset to generate reset signal | |
TWI490678B (en) | Voltage generating apparatus | |
KR20150002131A (en) | Protection Circuit, Circuit Protection Method Using the same and Display Device | |
US8575912B1 (en) | Circuit for generating a dual-mode PTAT current | |
CN108345336B (en) | Energy gap reference circuit | |
KR20130051070A (en) | Majority decision circuit | |
JP2010246287A (en) | Current control circuit | |
US20180052481A1 (en) | Method for ultra-low-power and high-precision reference generation | |
US6940329B2 (en) | Hysteresis circuit used in comparator | |
TWI707221B (en) | Current generation circuit | |
CN112904923B (en) | Current generating circuit | |
TWI460410B (en) | Temperature detection system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |