TWI822219B - Operation circuit having lower calibration time and calibration method thereof - Google Patents
Operation circuit having lower calibration time and calibration method thereof Download PDFInfo
- Publication number
- TWI822219B TWI822219B TW111128746A TW111128746A TWI822219B TW I822219 B TWI822219 B TW I822219B TW 111128746 A TW111128746 A TW 111128746A TW 111128746 A TW111128746 A TW 111128746A TW I822219 B TWI822219 B TW I822219B
- Authority
- TW
- Taiwan
- Prior art keywords
- correction
- correction code
- circuit
- offset value
- adjustment parameter
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 227
- 238000012360 testing method Methods 0.000 claims abstract description 145
- 238000012937 correction Methods 0.000 claims description 509
- 238000010586 diagram Methods 0.000 description 11
- 238000005070 sampling Methods 0.000 description 8
- 238000006243 chemical reaction Methods 0.000 description 6
- 238000011017 operating method Methods 0.000 description 6
- 238000013459 approach Methods 0.000 description 4
- 230000003321 amplification Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K5/00—Manipulating of pulses not covered by one of the other main groups of this subclass
- H03K5/22—Circuits having more than one input and one output for comparing pulses or pulse trains with each other according to input signal characteristics, e.g. slope, integral
- H03K5/24—Circuits having more than one input and one output for comparing pulses or pulse trains with each other according to input signal characteristics, e.g. slope, integral the characteristic being amplitude
Landscapes
- Physics & Mathematics (AREA)
- Nonlinear Science (AREA)
- Analogue/Digital Conversion (AREA)
- Apparatus For Radiation Diagnosis (AREA)
- Magnetic Resonance Imaging Apparatus (AREA)
- Electric Clocks (AREA)
- Logic Circuits (AREA)
Abstract
Description
本發明係有關一種操作電路,特別是指一種具有低校正期間的操作電路。本發明也有關於具有低校正期間的校正方法。 The present invention relates to an operating circuit, and in particular to an operating circuit with a low correction period. The invention also relates to a correction method with a low correction period.
請參閱圖1A與圖1B,圖1A顯示比較電路之變動偏移值隨溫度變化之關係圖。圖1B顯示一種先前技術之可校正偏移值之操作電路(操作電路1000)。如圖1A所示,由於製程的關係,實際上的比較器與理想比較器之間,具有變動偏移值(offset),也就是說,實際上的比較器並非理想,與理想比較器之間存在變動偏移值。此外,例如隨著環境溫度改變或其他環境因素的變化,上述變動偏移值也隨之變化。舉例而言,當溫度為Tp1時,對應的變動偏移值為Vv1,當溫度改變為Tp2時,變動偏移值則對應變化為Vv2。如圖1B所示,先前技術之操作電路1000中,比較電路101實質上包括理想比較器11,並於預設操作程序時,具有變動偏移值Vv。如上所述,變動偏移值Vv隨溫度改變而變化,因此,偏移調整電路21根據比較電路101之比較結果VO以及校正訊號Cen,而產生調整偏移值Va,藉此校正比較電路101的變動偏移值Vv,使得操作電路1000更接近理想狀態。
Please refer to Figure 1A and Figure 1B. Figure 1A shows the relationship between the changing offset value of the comparison circuit and the temperature change. FIG. 1B shows a prior art operating circuit (operating circuit 1000) that can correct offset values. As shown in Figure 1A, due to the manufacturing process, there is a variable offset value (offset) between the actual comparator and the ideal comparator. In other words, the actual comparator is not ideal, and there is a variable offset between the actual comparator and the ideal comparator. There is a changing offset value. In addition, for example, as the ambient temperature changes or other environmental factors change, the above-mentioned variation offset value also changes accordingly. For example, when the temperature is Tp1, the corresponding variation offset value is Vv1, and when the temperature changes to Tp2, the variation offset value correspondingly changes to Vv2. As shown in FIG. 1B , in the
請同時參閱圖1B與圖1C,圖1C顯示先前技術之一種操作波形與程序圖。操作電路1000於時段T11中進行校正程序P101,藉由二分搜尋法逐次使得調整偏移值Va逼近變動偏移值Vv,並於二分搜尋法執行完成時更新調整偏移值Va,以補償變動偏移值Vv,進而使得操作電路1000於預設操作程序時,盡可能地接近理想比較器。接著進入時段T12之預設操作程序P201,操作電路1000進行一般正常操作,此時以時段T11中更新之調整偏移值Va校正比較電路101的變動偏移值Vv,接著不斷重複交錯執行一次校正程序P101與一次預設操作程序P201。由於變動偏移值Vv隨溫度變化,因此先前技術之操作電路1000於預設操作程序P201中,需於固定的週期執行校正程序P101,且每一次校正程序P101皆執行完整的二分搜尋法,並於搜尋完成時更新調整偏移值Va,藉此使得調整偏移值Va定時更新,以準確地校正隨溫度變化的變動偏移值Vv。
Please refer to FIG. 1B and FIG. 1C at the same time. FIG. 1C shows an operation waveform and program diagram of one of the prior art. The
上述先前技術之缺點在於,為了準確校正比較電路的變動偏移值,不僅需定時中斷預設操作程序,而進行校正程序,且每一次的校正程序皆需執行完整的二分搜尋法,因而造成中斷而無法正常操作的時間過長。此外,即使變動偏移值變化不大,仍需於校正程序中執行完整的二分搜尋法,此亦將造成不必要的功率耗損與時間的浪費。 The disadvantage of the above-mentioned prior art is that in order to accurately correct the changing offset value of the comparison circuit, not only the preset operation program needs to be periodically interrupted to perform the correction process, but also each correction process needs to execute a complete binary search method, thus causing interruptions. The normal operation time is too long. In addition, even if the variation offset value does not change significantly, a complete binary search method still needs to be performed in the calibration procedure, which will also cause unnecessary power consumption and waste of time.
相較於上述之先前技術,本發明的操作電路,具有低校正期間之優點,當變動偏移值無巨大變化時,不僅能大幅降低被中斷而無法正常操作的時間,且能維持校正之精準度,降低不必要的功率耗損,提升電路操作效率。 Compared with the above-mentioned prior art, the operation circuit of the present invention has the advantage of low correction period. When the changing offset value does not change significantly, it can not only greatly reduce the time that is interrupted and cannot operate normally, but also maintain the accuracy of correction. degree, reducing unnecessary power consumption and improving circuit operation efficiency.
就其中一個觀點言,本發明提供了一種校正方法,用於校正一操作電路,其中該操作電路具有一變動偏移值,該操作電路包括至少一比較電路,其中該校正方法用以提供一可調偏移值以校正該變動偏移值,其中該變動偏移值包括該比較電路的一第一變動偏移值,該校正方法包含:P100:將該操作電路配置為一校正組態,並重置一調整參數至一初始值,根據該比較電路的一比較結果進行一初始校正程序,以決定具有N位元之一操作校正碼,其中N為大於等於2的正整數;P200:將該操作電路配置為一操作組態,根據該操作校正碼操作該操作電路進行一預設操作程序,其中該操作校正碼對應於該可調偏移值,用以於該預設操作程序中校正該變動偏移值;P300:將該操作電路配置為該校正組態,根據該調整參數調整一測試校正碼,並根據該測試校正碼操作該操作電路進行一低位元數校正程序,以更新該調整參數或者根據所更新的該調整參數更新該操作校正碼,其中該測試校正碼相關於該操作校正碼,接著回到程序P200;其中該低位元數校正程序包括:將該操作電路配置為該校正組態;以及進行至多M次的子校正程序P305或者進行至多M次的子校正程序P306,其中M為小於N的正整數;接著回到程序P200;其中該子校正程序P305用以自該操作校正碼起,以單斜率調整該測試校正碼的一個最低有效位元,用以確定繼續調整該測試校正碼或更新該操作校正碼;其中該子校正程序P306用以藉由二分搜尋法調整該測試校正碼的一個位元,用以確定繼續調整該測試校正碼或更新該操作校正碼;其中該低位元數校正程序中的M為一固定值,或一可變值。 From one of the viewpoints, the present invention provides a calibration method for calibrating an operating circuit, wherein the operating circuit has a variable offset value, the operating circuit includes at least one comparison circuit, wherein the calibration method is used to provide an operable offset value. Adjust the offset value to correct the changing offset value, wherein the changing offset value includes a first changing offset value of the comparison circuit, the correction method includes: P100: configure the operating circuit to a correction configuration, and Reset an adjustment parameter to an initial value, and perform an initial correction process based on a comparison result of the comparison circuit to determine an operation correction code with N bits, where N is a positive integer greater than or equal to 2; P200: Set the The operation circuit is configured in an operation configuration, and operates the operation circuit to perform a preset operation procedure according to the operation correction code, wherein the operation correction code corresponds to the adjustable offset value and is used to correct the preset operation procedure. Change the offset value; P300: Configure the operating circuit to the correction configuration, adjust a test correction code according to the adjustment parameter, and operate the operating circuit to perform a low-bit correction process according to the test correction code to update the adjustment parameter or update the operation correction code according to the updated adjustment parameter, wherein the test correction code is related to the operation correction code, and then returns to the program P200; wherein the low bit number correction program includes: configuring the operation circuit for the correction Configuration; and perform the sub-calibration program P305 at most M times or perform the sub-calibration program P306 at most M times, where M is a positive integer less than N; then return to program P200; where the sub-calibration program P305 is used to perform the operation Starting from the correction code, adjust a least significant bit of the test correction code with a single slope to determine whether to continue to adjust the test correction code or update the operation correction code; wherein the sub-correction program P306 is used to adjust the test correction code through a binary search method. One bit of the test correction code is used to determine whether to continue adjusting the test correction code or to update the operation correction code; wherein M in the low-bit number correction process is a fixed value or a variable value.
在一較佳實施例中,該操作電路更包括一放大電路,耦接於該比較電路,其中該變動偏移值更包括該放大電路的一第二變動偏移值。 In a preferred embodiment, the operating circuit further includes an amplifying circuit coupled to the comparison circuit, wherein the varying offset value further includes a second varying offset value of the amplifying circuit.
在一較佳實施例中,該子校正程序P305包括:設定該測試校正碼使其等於該操作校正碼疊加該調整參數;以及判斷該調整參數是否為 該初始值,其中若該調整參數為該初始值,進行方向判斷步驟S310,否則進行差值比較步驟S320;其中該方向判斷步驟S310包括:根據該測試校正碼提供該操作電路對應的該可調偏移值;根據該可調偏移值操作該比較電路以產生該比較結果;根據該比較結果決定一校正方向;以及將該調整參數疊加對應於該校正方向的一預設之單位差值以更新該調整參數;其中該差值比較步驟S320包括:根據該測試校正碼提供該操作電路對應的該可調偏移值;根據該可調偏移值操作該比較電路以產生該比較結果;以及判斷該比較結果之方向,其中若該比較結果對應於該校正方向為反相,進入校正碼更新步驟S323,否則進入該調整參數更新步驟S324;其中該校正碼更新步驟S323包括:將該操作校正碼疊加該調整參數以更新該操作校正碼;重置該調整參數至該初始值;其中該調整參數更新步驟S324包括:將該調整參數疊加該單位差值,以更新該調整參數;或者其中該子校正程序P306包括:以該調整參數示意該測試校正碼的一當前測試位元之一位元序;將該測試校正碼的該當前測試位元設為一致能狀態,該測試校正碼的其餘較低有效位元(lower significant bits)設為一非致能狀態;根據該測試校正碼提供該操作電路對應的一可調偏移值;根據該可調偏移值操作該比較電路以產生該比較結果;以及判斷該可調偏移值與該變動偏移值之大小,其中若該比較結果示意該可調偏移值大於該操作電路的該變動偏移值,將該測試校正碼的該當前測試位元設為該非致能狀態;判斷該位元序是否為一最低有效位元,其中若該調整參數示意已進行至該最低有效位元,進行校正碼更新步驟S325,否則進入調整參數更新步驟S326;其中該校正碼更新步驟S325包括:根據該測試校正碼更新該操作校正碼;重置該調整參數至該初始值;其中該調整參數更新步驟S326包括:將當前該調整參數減1以更新該調整參數。 In a preferred embodiment, the sub-correction procedure P305 includes: setting the test correction code to be equal to the operation correction code superimposed on the adjustment parameter; and determining whether the adjustment parameter is The initial value, where if the adjustment parameter is the initial value, the direction judgment step S310 is performed, otherwise the difference comparison step S320 is performed; wherein the direction judgment step S310 includes: providing the adjustable value corresponding to the operation circuit according to the test correction code. offset value; operate the comparison circuit according to the adjustable offset value to generate the comparison result; determine a correction direction according to the comparison result; and superimpose the adjustment parameter with a preset unit difference corresponding to the correction direction to Update the adjustment parameter; wherein the difference comparison step S320 includes: providing the adjustable offset value corresponding to the operation circuit according to the test correction code; operating the comparison circuit according to the adjustable offset value to generate the comparison result; and Determine the direction of the comparison result. If the comparison result corresponds to the correction direction, enter the correction code update step S323. Otherwise, enter the adjustment parameter update step S324. The correction code update step S323 includes: correcting the operation. The code superimposes the adjustment parameter to update the operation correction code; resets the adjustment parameter to the initial value; wherein the adjustment parameter update step S324 includes: superimposing the adjustment parameter with the unit difference to update the adjustment parameter; or wherein the The sub-correction procedure P306 includes: using the adjustment parameter to indicate a bit sequence of a current test bit of the test correction code; setting the current test bit of the test correction code to a consistent enable state, and the rest of the test correction code The lower significant bits are set to a non-enabled state; an adjustable offset value corresponding to the operation circuit is provided according to the test correction code; the comparison circuit is operated according to the adjustable offset value to generate the Comparison result; and judging the size of the adjustable offset value and the changing offset value, wherein if the comparison result indicates that the adjustable offset value is greater than the changing offset value of the operating circuit, the test correction code is The current test bit is set to the non-enabled state; it is determined whether the bit sequence is a least significant bit. If the adjustment parameter indicates that the least significant bit has been reached, the correction code update step S325 is performed. Otherwise, the adjustment parameter is entered. Update step S326; wherein the correction code update step S325 includes: updating the operation correction code according to the test correction code; resetting the adjustment parameter to the initial value; wherein the adjustment parameter update step S326 includes: subtracting 1 from the current adjustment parameter to update the tuning parameters.
在一較佳實施例中,對應於該子校正程序P305之該調整參數的該初始值為0,其中對應於該子校正程序P306之該調整參數的該初始值為N。 In a preferred embodiment, the initial value of the adjustment parameter corresponding to the sub-correction procedure P305 is 0, and the initial value of the adjustment parameter corresponding to the sub-correction procedure P306 is N.
在一較佳實施例中,該校正碼更新步驟S323更包括:根據該校正方向將該操作校正碼疊加該調整參數且扣除一單位差值以更新該操作校正碼。 In a preferred embodiment, the correction code updating step S323 further includes: superimposing the operation correction code on the adjustment parameter according to the correction direction and subtracting a unit difference to update the operation correction code.
在一較佳實施例中,程序P300包括:以1個時脈週期,操作該比較電路進行該低位元數校正程序,其中該單位差值對應為對應於該校正方向的一最低有效位元(least significant bit,LSB)。 In a preferred embodiment, the process P300 includes: operating the comparison circuit to perform the low bit number correction process with 1 clock cycle, wherein the unit difference corresponds to a least significant bit corresponding to the correction direction ( least significant bit,LSB).
在一較佳實施例中,M等於1。 In a preferred embodiment, M equals 1.
在一較佳實施例中,該M次的該子校正程序P305或該M次的該子校正程序P306所需的時間長度,小於該預設操作程序所需的時間長度。 In a preferred embodiment, the time length required for the M times of the sub-correction procedure P305 or the M times of the sub-correction procedure P306 is less than the time length required for the preset operation procedure.
在一較佳實施例中,該M次的該子校正程序P305或該M次的該子校正程序P306所需的時間長度,小於該初始校正程序所需的時間長度。 In a preferred embodiment, the time length required for the M times of the sub-correction procedure P305 or the M times of the sub-correction procedure P306 is less than the time length required for the initial correction procedure.
在一較佳實施例中,該可調偏移值對應於該操作校正碼或該測試校正碼的特性曲線為次基數2之曲線(sub-radix-2)。 In a preferred embodiment, the characteristic curve of the adjustable offset value corresponding to the operation correction code or the test correction code is a sub-radix-2 curve (sub-radix-2).
在一較佳實施例中,該初始校正程序包括:連續進行N次的子校正程序P306,其中該初始值為N。 In a preferred embodiment, the initial calibration process includes: a sub-calibration process P306 that is continuously performed N times, where the initial value is N.
在一較佳實施例中,於該預設操作程序中,該比較電路用於比較一輸入訊號與一參考閾值,或用於一類比數位轉換器中。 In a preferred embodiment, in the default operating program, the comparison circuit is used to compare an input signal with a reference threshold, or is used in an analog-to-digital converter.
就另一個觀點言,本發明也提供了一種操作電路,具有低校正期間,其中該操作電路具有一變動偏移值,包含:至少一比較電路,用以比較該比較電路的一第一輸入端與該比較電路的一第二輸入端的差值而產生一比較結果,其中該變動偏移值包括該比較電路的一第一變動偏移值;一 偏移產生電路,耦接於該比較電路,用以根據具有N位元之一操作校正碼而產生一可調偏移值,以校正該變動偏移值;一偏移調整電路,用以根據以下步驟產生該操作校正碼以校正該變動偏移值,且根據該操作校正碼操作該操作電路進行一預設操作程序:P100:將該操作電路配置為一校正組態,並重置一調整參數至一初始值,根據該比較電路的一比較結果進行一初始校正程序,以決定該操作校正碼,其中N為大於等於2的正整數;P200:將該操作電路配置為一操作組態,根據該操作校正碼操作該操作電路進行該預設操作程序,其中該操作校正碼對應於該可調偏移值,用以於該預設操作程序中校正該變動偏移值;P300:將該操作電路配置為該校正組態,根據該調整參數調整一測試校正碼,並根據該測試校正碼操作該操作電路進行一低位元數校正程序,以更新該調整參數或者根據所更新的該調整參數更新該操作校正碼,其中該測試校正碼相關於該操作校正碼,接著回到程序P200;其中該低位元數校正程序包括:將該操作電路配置為該校正組態;以及進行至多M次的子校正程序P305或者進行至多M次的子校正程序P306,其中M為小於N的正整數;接著回到程序P200;其中該子校正程序P305用以自該操作校正碼起,以單斜率調整該測試校正碼的一個最低有效位元,用以確定繼續調整該測試校正碼或更新該操作校正碼;其中該子校正程序P306用以藉由二分搜尋法調整該測試校正碼的一個位元,用以確定繼續調整該測試校正碼或更新該操作校正碼;其中該低位元數校正程序中的M為一固定值,或一可變值。 From another point of view, the present invention also provides an operation circuit with a low correction period, wherein the operation circuit has a changing offset value, including: at least one comparison circuit for comparing a first input end of the comparison circuit A difference with a second input terminal of the comparison circuit generates a comparison result, wherein the variation offset value includes a first variation offset value of the comparison circuit; a an offset generation circuit, coupled to the comparison circuit, for generating an adjustable offset value according to an operation correction code having N bits to correct the varying offset value; an offset adjustment circuit, for The following steps generate the operation correction code to correct the changing offset value, and operate the operation circuit to perform a preset operation procedure according to the operation correction code: P100: configure the operation circuit to a correction configuration and reset an adjustment The parameters are set to an initial value, and an initial correction process is performed based on a comparison result of the comparison circuit to determine the operation correction code, where N is a positive integer greater than or equal to 2; P200: configure the operation circuit to an operation configuration, The operation circuit is operated according to the operation correction code to perform the preset operation program, wherein the operation correction code corresponds to the adjustable offset value and is used to correct the changing offset value in the preset operation program; P300: Set the The operation circuit is configured in the correction configuration, adjusts a test correction code according to the adjustment parameter, and operates the operation circuit to perform a low-bit correction process according to the test correction code to update the adjustment parameter or according to the updated adjustment parameter Update the operation correction code, wherein the test correction code is related to the operation correction code, and then return to the program P200; wherein the low-bit number correction process includes: configuring the operation circuit to the correction configuration; and performing up to M times The sub-correction procedure P305 or the sub-correction procedure P306 is performed at most M times, where M is a positive integer less than N; and then returns to the procedure P200; wherein the sub-correction procedure P305 is used to adjust the operation correction code with a single slope starting from the operation correction code. A least significant bit of the test correction code is used to determine whether to continue adjusting the test correction code or update the operation correction code; wherein the sub-correction program P306 is used to adjust a bit of the test correction code through a binary search method, using To determine to continue to adjust the test correction code or update the operation correction code; wherein M in the low-bit number correction procedure is a fixed value or a variable value.
在一較佳實施例中,於該預設操作程序中,該比較電路用於比較一輸入訊號與一參考閾值,該比較結果對應指示該操作電路的一操作狀態;或者該操作電路為一類比數位轉換器,其中於該預設操作程序中,該放大電路用以放大一類比訊號而於該比較電路的該第一輸入端與該比較電 路的該第二輸入端產生一放大訊號,該比較電路用以比較該放大訊號與一可調整參考值以產生對應於該類比訊號的一數位輸出碼。 In a preferred embodiment, in the preset operating program, the comparison circuit is used to compare an input signal with a reference threshold, and the comparison result corresponds to indicating an operating state of the operating circuit; or the operating circuit is an analog Digital converter, wherein in the default operation program, the amplifying circuit is used to amplify an analog signal and connect the first input end of the comparison circuit to the comparison circuit. The second input end of the circuit generates an amplified signal, and the comparison circuit is used to compare the amplified signal with an adjustable reference value to generate a digital output code corresponding to the analog signal.
在一較佳實施例中,該類比數位轉換器包括一第一數位類比轉換器,該第一數位類比轉換器用以於該預設操作程序中提供該可調整參考值,其中該偏移產生電路包括由該第一數位類比轉換器的部分位元所組成的一第二數位類比轉換器。 In a preferred embodiment, the analog-to-digital converter includes a first digital-to-analog converter, and the first digital-to-analog converter is used to provide the adjustable reference value in the preset operating program, wherein the offset generating circuit A second digital-to-analog converter is composed of partial bits of the first digital-to-analog converter.
底下藉由具體實施例詳加說明,當更容易瞭解本發明之目的、技術內容、特點及其所達成之功效。 It will be easier to understand the purpose, technical content, characteristics and achieved effects of the present invention through detailed description of specific embodiments below.
11:理想比較器 11:Ideal comparator
100,101,105:比較電路 100,101,105: Comparison circuit
1000:操作電路 1000: Operating circuit
20:偏移產生電路 20:Offset generation circuit
21:偏移調整電路 21:Offset adjustment circuit
200:放大電路 200: Amplification circuit
2002,2011,2014:操作電路 2002, 2011, 2014: Operating circuit
30:偏移調整電路 30: Offset adjustment circuit
310,311:第一數位類比轉換器 310,311: First digital to analog converter
320,321:第二數位類比轉換器 320,321: Second digital to analog converter
40:操作控制電路 40: Operation control circuit
50:取樣維持電路 50: Sampling and holding circuit
51,52:子取樣維持電路 51,52: Sub-sampling sustain circuit
60:理想放大器 60:Ideal Amplifier
Calen:校正致能訊號 Calen: Correction enable signal
CCO:操作校正碼 CCO: Operation correction code
CCT:測試校正碼 CCT: test correction code
CDO:數位輸出碼 CDO: digital output code
Cen:校正訊號 Cen: correction signal
Ckcom:時脈訊號 Ckcom: clock signal
CPO:比較結果 CPO: Comparison results
M:正整數 M: positive integer
N:正整數 N: positive integer
N1~N4:節點 N1~N4: nodes
Na:節點 Na: node
Nb:節點 Nb: node
Ni1,Ni1a:第一輸入端 Ni1, Ni1a: first input terminal
Ni2,Ni2a:第二輸入端 Ni2, Ni2a: second input terminal
P100:程序 P100:Procedure
P200:程序 P200:Procedure
P201:預設操作程序 P201: Preset operating procedures
P300:程序 P300:Program
S001:步驟 S001: Steps
S101:校正程序 S101: Calibration procedure
S200:步驟 S200: Steps
S301,S302:步驟 S301, S302: steps
P305:子校正程序 P305: Sub-calibration program
P306:子校正程序 P306: Sub-calibration program
S307:步驟 S307: Step
S310:方向判斷步驟 S310: Direction judgment step
S320:差值比較步驟 S320: Difference comparison step
S321,S322:步驟 S321, S322: steps
S323:校正碼更新步驟 S323: Correction code update steps
S324:調整參數更新步驟 S324: Adjust parameter update steps
S325:校正碼更新步驟 S325: Correction code update steps
S326:調整參數更新步驟 S326: Adjust parameter update steps
S351,S352:步驟 S351, S352: steps
S361~S365:步驟 S361~S365: steps
SA:類比訊號 SA: analog signal
SH:訊號 SH: signal
Sw:開關 Sw: switch
Sw1,Sw2:開關 Sw1, Sw2: switch
T1~T10:時段 T1~T10: time period
T11,T12:時段 T11, T12: time period
Tp1,Tp2:溫度 Tp1, Tp2: temperature
Va:調整偏移值 Va: adjust offset value
Vcm:共模電壓 Vcm: common mode voltage
VO:比較結果 VO:Compare results
Vosa:可調偏移值 Vosa: adjustable offset value
Vosv:變動偏移值 Vosv: change offset value
Vosv1:第一變動偏移值 Vosv1: first change offset value
Vosv2:第二變動偏移值 Vosv2: second change offset value
Vref:參考閾值 Vref: reference threshold
Vsns:輸入訊號 Vsns: input signal
Vv:變動偏移值 Vv: variation offset value
Vv1,Vv2:變動偏移值 Vv1, Vv2: changing offset value
X:單位差值 X: unit difference
Y1,Y2:操作校正碼之值 Y1, Y2: value of operation correction code
Z1,Z2:操作校正碼之值 Z1, Z2: Value of operation correction code
圖1A顯示比較電路之變動偏移值隨溫度變化之關係圖。 Figure 1A shows a graph showing the changing offset value of the comparison circuit as a function of temperature.
圖1B顯示一種先前技術之可校正偏移值之操作電路。 FIG. 1B shows a prior art operating circuit capable of correcting offset values.
圖1C顯示先前技術之一種操作波形與程序圖。 FIG. 1C shows an operation waveform and program diagram of one of the prior art.
圖2顯示本發明之具有低校正期間的操作電路之一實施例示意圖。 FIG. 2 shows a schematic diagram of an operating circuit with a low correction period according to an embodiment of the present invention.
圖3顯示本發明之具有低校正期間的操作電路中,完整操作程序的流程圖。 FIG. 3 shows a flow chart of the complete operating procedure in the operating circuit with low correction period of the present invention.
圖4顯示對應於圖3的部分細節流程圖。 FIG. 4 shows a partially detailed flow chart corresponding to FIG. 3 .
圖5顯示本發明之具有低校正期間的操作電路之完整操作程序圖。 FIG. 5 shows a complete operation sequence diagram of the operation circuit with low correction period of the present invention.
圖6顯示本發明之具有低校正期間的操作電路以子校正程序P305進行校正之一種具體實施例操作波形與程序圖。 FIG. 6 shows the operation waveform and program diagram of a specific embodiment of the present invention in which the operation circuit with a low correction period performs correction using the sub-correction program P305.
圖7A顯示對應於圖4中子校正程序P305的一具體實施例流程圖。 FIG. 7A shows a flow chart corresponding to a specific embodiment of the sub-correction procedure P305 in FIG. 4 .
圖7B顯示對應於圖4中子校正程序P305的另一具體實施例流程圖。 FIG. 7B shows a flow chart corresponding to another specific embodiment of the sub-correction program P305 in FIG. 4 .
圖8顯示本發明之具有低校正期間的操作電路以子校正程序P305進行校正之一種具體實施例操作波形與程序圖。 FIG. 8 shows the operation waveform and program diagram of a specific embodiment of the present invention in which the operation circuit with a low correction period performs correction using the sub-correction program P305.
圖9顯示本發明之具有低校正期間的操作電路以子校正程序P306進行校正之一種具體實施例操作波形與程序圖。 FIG. 9 shows the operation waveform and program diagram of a specific embodiment of the present invention in which the operation circuit with a low correction period performs correction using the sub-correction program P306.
圖10A顯示對應於圖4中子校正程序P306的一具體實施例流程圖。 FIG. 10A shows a flow chart corresponding to a specific embodiment of the sub-correction procedure P306 in FIG. 4 .
圖10B顯示對應於圖4中子校正程序P306的另一具體實施例流程圖。 FIG. 10B shows a flow chart corresponding to another specific embodiment of the sub-correction procedure P306 in FIG. 4 .
圖11顯示本發明之具有低校正期間的操作電路之一具體實施例示意圖。 FIG. 11 shows a schematic diagram of an operating circuit with a low correction period according to a specific embodiment of the present invention.
圖12顯示對應於圖11之實施例操作波形與程序圖。 FIG. 12 shows operation waveforms and program diagrams corresponding to the embodiment of FIG. 11 .
圖13顯示本發明之具有低校正期間的操作電路之可調偏移值對應於操作校正碼或測試校正碼之特性曲線圖。 FIG. 13 shows the characteristic curve of the adjustable offset value corresponding to the operation correction code or the test correction code of the operation circuit with a low correction period of the present invention.
圖14顯示本發明之具有低校正期間的操作電路之一具體實施例示意圖。 FIG. 14 shows a schematic diagram of an operation circuit with a low correction period according to a specific embodiment of the present invention.
本發明中的圖式均屬示意,主要意在表示各電路間之耦接關係,以及各訊號波形之間之關係,至於電路、訊號波形與頻率則並未依照比例繪製。 The diagrams in the present invention are schematic and are mainly intended to represent the coupling relationship between circuits and the relationship between signal waveforms. The circuits, signal waveforms and frequencies are not drawn to scale.
請參閱圖2,圖2顯示本發明之具有低校正期間的操作電路之一實施例示意圖(操作電路2002)。在一實施例中,操作電路2002包含:至少
一個比較電路(在圖2之實施例中為比較電路100)、偏移產生電路20以及偏移調整電路30。在一實施例中,操作電路2002具有變動偏移值Vosv,在本實施例中,變動偏移值Vosv即為比較電路100的第一變動偏移值Vosv1。其中,比較電路100的等效電路包括理想比較器12,並具有第一變動偏移值Vosv1。在本實施例中,於操作組態中,理想比較器12之非反相輸入端接收輸入訊號Vsns與第一變動偏移值Vosv1疊加後之第一疊加結果;理想比較器12之反相輸入端接收參考閾值Vref與可調偏移值Vosa疊加後之第二疊加結果。也就是說,在本實施例中,於操作組態中,比較電路100的第一輸入端Ni1接收輸入訊號Vsns;比較電路100的第二輸入端Ni2接收參考閾值Vref與可調偏移值Vosa疊加後之第二疊加結果。因此,在本實施例中,於操作組態中,理想比較器12比較第一疊加結果與第二疊加結果,而使該比較電路100產生比較結果CPO。偏移產生電路20耦接於比較電路100,用以於操作組態中,根據具有N位元之操作校正碼CCO而產生可調偏移值Vosa,以校正變動偏移值Vosv;並於校正組態中,根據具有N位元之測試校正碼CCT而產生校正組態中的可調偏移值Vosa,以進行低位元數校正程序。偏移調整電路30耦接於比較電路100之輸出端,用以於校正組態中,根據比較結果CPO而產生操作校正碼CCO。
Please refer to FIG. 2. FIG. 2 shows a schematic diagram of an operating circuit with a low correction period (operating circuit 2002) according to an embodiment of the present invention. In one embodiment,
需說明的是,第一變動偏移值Vosv1為比較電路100的等效綜合變動偏移值,其不限於如不限於如圖2所示,耦接於理想比較器12的非反相輸入端,亦可以耦接於理想比較器12的反相輸入端,僅需對應調整第一變動偏移值Vosv1;此外,偏移產生電路20以及偏移調整電路30也不限於,耦接於理想比較器12的反相輸入端,亦可以耦接於理想比較器12的非反相輸入端,僅需對應調整可調偏移值Vosa。
It should be noted that the first variable offset value Vosv1 is the equivalent comprehensive variable offset value of the
請同時參閱圖2及圖3,圖3顯示本發明之具有低校正期間的操作電路中,完整操作程序的流程圖。在一實施例中,偏移調整電路30用以根據校正致能訊號Calen,於以下步驟產生操作校正碼CCO(對應於可調偏移值Vosa)以校正變動偏移值Vosv,且操作電路2002根據操作校正碼CCO進行預設操作程序。
Please refer to FIG. 2 and FIG. 3 at the same time. FIG. 3 shows a flow chart of the complete operating procedure in the operating circuit with a low correction period of the present invention. In one embodiment, the offset
如圖3所示,首先是程序P100,係初始校正程序,於程序P100中,首先根據校正致能訊號Calen而將操作電路2002配置為校正組態,且偏移調整電路30重置調整參數至初始值(在一實施例中,初始值可為0或N,將於後續實施例中詳述),在校正組態中,開關Sw根據校正致能訊號Calen而切換,以將第一輸入端Ni1耦接於節點Nb,使得比較電路100的第一輸入端Ni1與第二輸入端Ni2彼此耦接,再根據比較電路100的比較結果CPO進行子校正程序(於後詳述),以決定具有N位元的操作校正碼CCO,其中N為大於等於2的正整數。如圖2所示,在本實施例中,於校正組態中,理想比較器12之非反相輸入端接收參考閾值Vref與第一變動偏移值Vosv1疊加後之第三疊加結果;理想比較器12之反相輸入端與在操作組態中相同,仍接收參考閾值Vref與可調偏移值Vosa疊加後之第二疊加結果。也就是說,在本實施例中,於校正組態中,比較電路100的第一輸入端Ni1接收參考閾值Vref;比較電路100的第二輸入端Ni2接收第二疊加結果。因此,在本實施例中,於校正組態中,理想比較器12比較第三疊加結果與第二疊加結果,而使該比較電路100產生比較結果CPO。
As shown in Figure 3, the first step is program P100, which is an initial calibration procedure. In the process P100, the
需說明的是,在圖2的實施例所示之校正組態中,第一輸入端Ni1與第二輸入端Ni2例如共同耦接至參考閾值Vref,根據本發明,在校正組態中,第一輸入端Ni1與第二輸入端Ni2也可以共同耦接至其他預設電壓,如接地電位等,而不限於共同耦接至參考閾值Vref。 It should be noted that, in the correction configuration shown in the embodiment of FIG. 2 , the first input terminal Ni1 and the second input terminal Ni2 are, for example, commonly coupled to the reference threshold Vref. According to the present invention, in the correction configuration, The first input terminal Ni1 and the second input terminal Ni2 can also be jointly coupled to other preset voltages, such as ground potential, etc., and are not limited to being jointly coupled to the reference threshold Vref.
接著進入程序P200,係預設操作程序,程序P200中,首先根據校正致能訊號Calen而將操作電路2002配置為操作組態。在操作組態中,開關Sw根據校正致能訊號Calen而切換,以將第一輸入端Ni1耦接於節點Na,使得比較電路100的第一輸入端Ni1與第二輸入端Ni2分別耦接至輸入訊號Vsns與參考閾值Vref,操作電路2002根據操作校正碼CCO進行正常操作步驟,於正常操作步驟中,比較電路100根據輸入訊號Vsns、參考閾值Vref與可調偏移值Vosa,產生比較結果CPO,對應示意操作電路2002的操作狀態,例如但不限於過高電壓保護、過高電流保護、過高溫度保護等,其中操作校正碼CCO對應於可調偏移值Vosa,用以於正常操作步驟中校正變動偏移值Vosv。
Next, program P200 is entered, which is a default operation program. In program P200, the
接著進入程序P300,係低位元數校正程序,程序P300中,首先根據校正致能訊號Calen而將操作電路2002配置為校正組態,開關Sw根據校正致能訊號Calen使得比較電路100的第一輸入端Ni1耦接於節點Nb,藉此比較電路100的第一輸入端Ni1與第二輸入端Ni2彼此耦接,此時偏移產生電路20根據調整參數及測試校正碼CCT,使操作電路2002進行低位元數校正程序P300,以更新調整參數或者根據所更新的調整參數更新操作校正碼CCO,其中測試校正碼CCT相關於操作校正碼CCO。在一較佳實施例中,低位元數校正程序P300包括:以1個時脈週期,使操作電路2002進行低位元數校正程序P300。接著回到預設操作程序P200。重複交替執行預設操作程序P200與低位元數校正程序P300,使操作電路2002於預設操作程序P200中,以接近理想狀態的比較器操作,且相較於先前技術,大幅降低因校正被中斷而無法正常操作的時間,且能維持校正之精準度,降低不必要的功率耗損,提升操作電路的效率。
Next, the program P300 is entered, which is a low-bit correction program. In the program P300, the
請同時參閱圖4及圖5,圖4顯示對應於圖3的部分細節流程圖。圖5顯示本發明之具有低校正期間的操作電路之完整操作程序圖。如圖4所示,在一實施例中,初始校正程序P100包括步驟S301及N個子校正程序P306。步驟S301中,操作電路配置為校正組態,接著進入N個子校正程序P306,以二分搜尋法調整具有N位元的測試校正碼CCT,使得可調偏移值Vosa逐次逼近變動偏移值Vosv,以於初始校正程序P100中完整確定及更新具有N位元的操作校正碼CCO。在一實施例中,預設操作程序P200包括步驟S001與步驟S200。在步驟S001中,操作電路配置為操作組態,以初始校正程序P100中所確定的操作校正碼CCO控制可調偏移值Vosa以校正變動偏移值Vosv,接著進入步驟S200之正常操作步驟,其細節於後詳述。在一實施例中,低位元數校正程序P300包括步驟S301及步驟S302。步驟S301中,操作電路配置為校正組態,接著進入步驟S302。就一觀點而言,前述的二分搜尋法亦可視為以逐次逼近暫存器型類比數位轉換法(Successive Approximation Register Analog to Digital Conversion)將類比的變動偏移值Vosv轉換為數位的N位元操作校正碼CCO。 Please refer to FIG. 4 and FIG. 5 at the same time. FIG. 4 shows a partially detailed flow chart corresponding to FIG. 3 . FIG. 5 shows a complete operation sequence diagram of the operation circuit with low correction period of the present invention. As shown in FIG. 4 , in one embodiment, the initial calibration process P100 includes step S301 and N sub-calibration processes P306. In step S301, the operating circuit is configured as a correction configuration, and then enters the N sub-correction program P306, using the binary search method to adjust the test correction code CCT with N bits, so that the adjustable offset value Vosa successively approaches the changing offset value Vosv, The operation correction code CCO with N bits is completely determined and updated in the initial calibration procedure P100. In one embodiment, the default operation procedure P200 includes step S001 and step S200. In step S001, the operating circuit is configured as an operating configuration, and the adjustable offset value Vosa is controlled with the operating correction code CCO determined in the initial calibration procedure P100 to correct the changing offset value Vosv, and then the normal operation step of step S200 is entered. The details are detailed later. In one embodiment, the low bit number correction process P300 includes step S301 and step S302. In step S301, the operating circuit is configured in a correction configuration, and then step S302 is entered. From one point of view, the aforementioned binary search method can also be regarded as an N-bit operation that converts the analog variable offset value Vosv into digital by using the Successive Approximation Register Analog to Digital Conversion method. Correction code CCO.
其中,於低位元數校正程序P300的步驟S302中,將進行M次的子校正程序P305或者進行M次的子校正程序P306,其中M為小於N的正整數,也就是說,M的最小值為1,最大值為N-1。具體而言,由步驟S301進入步驟S302時,先進行子校正程序P305或子校正程序P306(為便於敘述,以下若僅統稱「子校正程序」而未特別標註P305或P306,即指子校正程序P305或子校正程序P306)。在一實施例中,執行子校正程序之後,接著進入步驟S307,在另一實施例中,執行子校正程序之後,回到預設操作程序P200,相關細節將於後續詳述。步驟S307中,判斷是否為第M次子校正程序,當判斷為第M次子校正程序時,回到預設操作程序P200,否則,回到子校正程序。 Among them, in step S302 of the low bit number correction procedure P300, the sub-correction procedure P305 will be performed M times or the sub-correction procedure P306 will be performed M times, where M is a positive integer less than N, that is, the minimum value of M is 1, and the maximum value is N-1. Specifically, when entering step S302 from step S301, the sub-correction procedure P305 or sub-correction procedure P306 is first performed (for convenience of description, if it is only collectively referred to as the "sub-correction procedure" without specifically labeling P305 or P306, it refers to the sub-correction procedure. P305 or sub-calibration program P306). In one embodiment, after executing the sub-correction procedure, step S307 is then entered. In another embodiment, after executing the sub-correction procedure, the process returns to the default operation procedure P200. The relevant details will be described in detail later. In step S307, it is determined whether it is the M-th sub-correction program. When it is determined that it is the M-th sub-correction program, return to the default operation program P200; otherwise, return to the sub-correction program.
圖5中需說明的是,每一步驟S302中M為小於N的正整數,N為大於等於2的正整數,因此,M可為大於等於1的正整數。在一實施例中,M等於1,此時步驟S302中僅包括一次子校正程序,接著進入預設操作程序P200;在其他實施例中,M大於1,此時步驟S302中包括M次(大於一次)的子校正程序,接著回到預設操作程序P200。 It should be noted in Figure 5 that in each step S302, M is a positive integer less than N, and N is a positive integer greater than or equal to 2. Therefore, M can be a positive integer greater than or equal to 1. In one embodiment, M is equal to 1. At this time, step S302 includes only one sub-correction procedure, and then enters the default operation procedure P200; in other embodiments, M is greater than 1, and at this time, step S302 includes M times (greater than (once) of the sub-calibration procedure, and then return to the default operation procedure P200.
就一觀點而言,根據本發明,任兩個預設操作程序P200之間執行M次子校正程序。在一種較佳的實施例中,多次的子校正程序可以分配在不同的步驟S302中,由相同或不相同的M次子校正程序組合而確定及更新操作校正碼CCO。換言之,不同的低位元數校正程序P300的步驟S302中之M值可為固定值或變動值。 From one point of view, according to the present invention, M sub-correction procedures are executed between any two preset operation procedures P200. In a preferred embodiment, multiple sub-correction procedures can be allocated in different steps S302, and the operation correction code CCO is determined and updated by combining the same or different M times of sub-correction procedures. In other words, the M value in step S302 of different low bit number correction procedures P300 may be a fixed value or a variable value.
具體舉例而言,如圖5所示,在一實施例中,於第一次的低位元數校正程序P300中的步驟S302中包括M1次子校正程序,而於第二次的低位元數校正程序P300中的步驟S302中包括M2次子校正程序,其中M1與M2可為彼此相同或彼此不同值。 For example, as shown in FIG. 5 , in one embodiment, step S302 in the first low-bit number correction process P300 includes M1 sub-correction processes, and in the second low-bit number correction process P300 Step S302 in program P300 includes M2 sub-correction procedures, in which M1 and M2 may be the same as each other or different values from each other.
請繼續參閱圖4與圖5,初始校正程序P100結束後,接著進入預設操作程序P200,首先執行步驟S001,即根據校正致能訊號Calen而將操作電路2002配置為操作組態,接著再執行步驟S200,根據操作校正碼CCO使操作電路2002進行正常操作步驟(步驟S200),於正常操作步驟中,比較電路100根據輸入訊號Vsns、參考閾值Vref與可調偏移值Vosa,產生比較結果CPO,對應示意操作電路2002的操作狀態。預設操作程序P200結束後,接著進入低位元數校正程序P300,包括步驟S301及步驟S302。步驟S301中,操作電路配置為校正組態,接著進入步驟S302。步驟S302中,進行子校正程序P305或者進行子校正程序P306,接著進入步驟S307,即判斷是否為第M次子校正程序,當判斷為第M次子校正程序時,接著進行預設操作程序P200;否
則接著進行子校正程序P305或者進行子校正程序P306,接著進行步驟S307,如此交替重複進行子校正程序與步驟S307,直到M次子校正程序執行完成,且由步驟S307判斷為第M次子校正程序完成時,接著進行下一個預設操作程序P200。
Please continue to refer to Figures 4 and 5. After the initial calibration process P100 is completed, the default operation process P200 is then entered. Step S001 is first executed, that is, the
需說明的是,在每一低位元數校正程序P300中的M皆為1的實施例中,步驟S307可省略,換言之,當子校正程序執行完成時,即可直接繼續進行下一個預設操作程序P200。 It should be noted that in the embodiment where M in each low-bit correction procedure P300 is 1, step S307 can be omitted. In other words, when the sub-correction procedure is completed, the next preset operation can be continued directly. Procedure P200.
值得注意的是,若低位元數校正程序P300中採用的是子校正程序P305,需要執行至少一次,至多2N次低位元數校正程序P300以更新操作校正碼CCO。若低位元數校正程序P300中採用的是子校正程序P306,需要執行至少2次,至多N次低位元數校正程序P300以更新操作校正碼CCO。且各低位元數校正程序P300與預設操作程序P200彼此輪流執行。 It is worth noting that if the sub-correction procedure P305 is used in the low-bit correction procedure P300, the low-bit correction procedure P300 needs to be executed at least once and at most 2 N times to update the operation correction code CCO. If the sub-correction procedure P306 is used in the low-bit correction program P300, the low-bit correction program P300 needs to be executed at least 2 times and at most N times to update the operation correction code CCO. And each low-bit number correction program P300 and the default operation program P200 are executed in turn with each other.
此外,若低位元數校正程序P300中採用的是子校正程序P305,藉由一或多次步驟S302,共需要執行至少一次,至多2N次子校正程序S305以更新操作校正碼CCO。另一方面,若低位元數校正程序P300中採用的是子校正程序P306,藉由多次步驟S302,共需要執行N次子校正程序P306以更新操作校正碼CCO。 In addition, if the sub-correction procedure P305 is used in the low-bit number correction procedure P300, through one or more steps S302, the sub-correction procedure S305 needs to be executed at least once and at most 2 N times to update the operation correction code CCO. On the other hand, if the sub-correction procedure P306 is used in the low-bit number correction procedure P300, through multiple steps S302, it is necessary to execute the sub-correction procedure P306 a total of N times to update the operation correction code CCO.
還需說明的是,在一較佳實施例中,M次的子校正程序P305或M次的子校正程序P306所需的時間長度,小於預設操作程序P200所需的時間長度,及/或M次的子校正程序P305或M次的子校正程序P306所需的時間長度,小於初始校正程序P100中N次的子校正程序所需的時間長度,藉此使得校正期間大幅降低,且當變動偏移值無巨大變化時,亦能維持校正之精準度。 It should also be noted that in a preferred embodiment, the time length required for M times of sub-correction procedures P305 or M times of sub-correction procedures P306 is less than the time length required for the preset operation procedure P200, and/or The time length required for M times of sub-correction procedures P305 or M times of sub-correction procedures P306 is less than the time length required for N times of sub-correction procedures in the initial calibration procedure P100, thereby greatly reducing the correction period, and when changes Even if the offset value does not change significantly, the accuracy of the correction can be maintained.
請參閱圖6,圖6顯示本發明之具有低校正期間的操作電路以子校正程序P305進行校正之一種具體實施例操作波形與程序圖。圖6之實施例為每一低位元數校正程序P300中的M皆為1的實施例,在本實施例中,步驟S307可省略,詳如後述。需說明的是,為便於理解,圖6中之程序圖中,省略了每一個步驟S001及步驟S301。 Please refer to FIG. 6 . FIG. 6 shows the operation waveform and program diagram of a specific embodiment of the present invention in which the operation circuit with a low correction period performs correction using the sub-correction program P305. The embodiment of FIG. 6 is an embodiment in which M in each low-bit number correction process P300 is all 1. In this embodiment, step S307 can be omitted, as will be described in detail later. It should be noted that, for ease of understanding, each step S001 and step S301 are omitted in the program diagram in FIG. 6 .
在一具體實施例中,如圖6所示,於時段T1之初始校正程序P100中,首先將操作電路配置為校正組態,接著重置調整參數至初始值,在一較佳實施例中,對應於子校正程序P306之調整參數的初始值為N,用以示意測試校正碼CCT之最高的第N位元為致能狀態(例如為1),其他位元都為非致能狀態(例如為0),以二分搜尋法調整具有N位元的測試校正碼CCT,使得可調偏移值Vosa(以實線標示)逐次逼近變動偏移值Vosv(以長虛線標示),以確定及更新具有N位元的操作校正碼CCO。本實施例中,於初始校正程序P100結束時,初始操作校正碼CCO之值為Z1,接著進入時段T2之預設操作程序P200,根據時段T1決定的操作校正碼CCO(Z1)操作操作電路進行預設操作程序P200,並以操作校正碼CCO(Z1)所對應的可調偏移值Vosa校正變動偏移值Vosv。 In a specific embodiment, as shown in Figure 6, in the initial calibration process P100 of period T1, the operating circuit is first configured in the calibration configuration, and then the adjustment parameters are reset to the initial values. In a preferred embodiment, The initial value of the adjustment parameter corresponding to the sub-correction program P306 is N, which is used to indicate that the highest N-th bit of the test correction code CCT is in the enabled state (for example, 1), and the other bits are in the disabled state (for example, 1). is 0), use the binary search method to adjust the test correction code CCT with N bits, so that the adjustable offset value Vosa (marked with a solid line) successively approaches the changing offset value Vosv (marked with a long dotted line) to determine and update Operation correction code CCO with N bits. In this embodiment, at the end of the initial calibration procedure P100, the value of the initial operation correction code CCO is Z1, and then the default operation procedure P200 of period T2 is entered, and the operation circuit is operated according to the operation correction code CCO (Z1) determined in period T1. The operation procedure P200 is preset, and the variable offset value Vosv is corrected with the adjustable offset value Vosa corresponding to the operation correction code CCO (Z1).
於預設操作程序P200結束後,接著進入低位元數校正程序P300。請同時參閱圖2、圖6、圖7A與圖7B,圖7A顯示對應於圖4中子校正程序P305的一具體實施例流程圖,圖7B顯示對應於圖4中子校正程序P305的另一具體實施例流程圖。在一實施例中,如圖6所示,子校正程序P305係自操作校正碼CCO(Z1)起,以單斜率調整測試校正碼CCT的一個最低有效位元,並根據測試校正碼CCT所對應的可調偏移值Vosa與變動偏移值Vosv而決定繼續調整測試校正碼CCT(例如繼續加1)或更新操作校正碼CCO。舉例而言,調整參數重置為0開始,在尚未確認及更新操作校正碼CCO之前,藉由調整 參數之調整,在每一次設定測試校正碼CCT的步驟S351中,測試校正碼CCT都將增加1,或減少1,視校正方向判斷結果而定,具體而言,如圖7A與圖7B所示,子校正程序P305包括以下步驟: 首先進行步驟S351,設定測試校正碼CCT,使其等於當前之操作校正碼CCO疊加調整參數。接著進入步驟S352,判斷是否為新校正程序,即判斷調整參數是否為初始值(在本實施例中初始值例如為0),其中若調整參數為初始值,表示為新校正程序,進入方向判斷步驟S310,否則非新校正程序,進入差值比較步驟S320。 After the default operation program P200 is completed, the low bit number correction program P300 is then entered. Please refer to Figures 2, 6, 7A and 7B at the same time. Figure 7A shows a flow chart corresponding to the sub-correction procedure P305 in Figure 4, and Figure 7B shows another flow chart corresponding to the sub-correction procedure P305 in Figure 4. Specific embodiment flow chart. In one embodiment, as shown in Figure 6, the sub-correction program P305 adjusts a least significant bit of the test correction code CCT with a single slope starting from the operation correction code CCO (Z1), and adjusts the least significant bit of the test correction code CCT according to the corresponding The adjustable offset value Vosa and the changing offset value Vosv determine to continue to adjust the test correction code CCT (for example, continue to add 1) or to update the operation correction code CCO. For example, starting from resetting the adjustment parameters to 0, before confirming and updating the operation correction code CCO, by adjusting For parameter adjustment, in each step S351 of setting the test correction code CCT, the test correction code CCT will increase by 1 or decrease by 1, depending on the correction direction judgment result. Specifically, as shown in Figure 7A and Figure 7B , sub-correction program P305 includes the following steps: First, step S351 is performed to set the test correction code CCT to be equal to the current operation correction code CCO superposition adjustment parameter. Then enter step S352 to determine whether it is a new calibration program, that is, determine whether the adjustment parameter is an initial value (in this embodiment, the initial value is 0, for example). If the adjustment parameter is an initial value, it indicates a new calibration program, and the direction judgment is entered. Step S310, otherwise it is not a new correction procedure and enters the difference comparison step S320.
方向判斷步驟S310包括:根據測試校正碼CCT提供操作電路2002對應的可調偏移值Vosa,在一實施例中,如圖2所示,例如提供可調偏移值Vosa於操作電路2002的第二輸入端Ni2;根據可調偏移值Vosa操作比較電路100以產生比較結果CPO;根據比較結果CPO決定校正方向,在一具體實施例中,於方向判斷步驟S310中,若比較結果CPO示意變動偏移值Vosv大於可調偏移值Vosa,則校正方向為正,否則方向為負;接著決定對應於該校正方向的單位差值X;接著將調整參數疊加單位差值X以更新調整參數。在一較佳實施例中,單位差值X對應為最低有效位元(least significant bit,LSB),其中單位差值之正負值相關於校正方向,在一具體實施例中,於方向判斷步驟S310中,若比較結果示意校正方向為正,則單位差值X為+LSB,若比較結果示意變動偏移值Vosv小於可調偏移值Vosa(校正方向為負),則單位差值X為-LSB。接著,在每一低位元數校正程序P300中的M皆為1的實施例中(例如圖6之實施例),如圖7A所示,步驟S307可省略,亦即方向判斷步驟S310執行完成後,直接進入下一個預設操作程序P200;在每一低位元數校正程序P300中的M非為1的實施例中,如圖7B所示,方向判斷步驟S310執
行完成後,進入步驟S307,判斷是否為第M次子校正程序,當判斷為第M次子校正程序時,回到預設操作程序P200,否則,回到子校正程序P305。
The direction determination step S310 includes: providing the adjustable offset value Vosa corresponding to the
差值比較步驟S320包括:步驟S321、步驟S322、步驟S323及步驟S324。首先執行步驟S321:根據測試校正碼CCT提供操作電路2002對應的可調偏移值Vosa,在一實施例中,如圖2所示,例如提供可調偏移值Vosa於操作電路2002的第二輸入端Ni2,並根據可調偏移值Vosa操作比較電路100以產生比較結果CPO;接著執行步驟S322:判斷比較結果CPO是否轉向,亦即判斷比較結果CPO之方向,若比較結果CPO對應於校正方向為反相,表示比較結果已轉向,換言之,經過一或多次調整後之當前的測試校正碼CCT,已使得所對應的可調偏移值Vosa與變動偏移值Vosv之差值已小於一個單位差值X(如1 LSB),此時將進入校正碼更新步驟S323而更新操作校正碼CCO,若比較結果CPO對應於校正方向仍為同相,表示比較結果未轉向,換言之,經過一或多次調整後之當前的測試校正碼CCT所對應的可調偏移值Vosa與變動偏移值Vosv之差值尚未小於一個單位差值X,此時將進入調整參數更新步驟S324,以繼續更新調整參數,進而繼續調整測試校正碼CCT。
The difference comparison step S320 includes: step S321, step S322, step S323 and step S324. First, step S321 is performed: providing the adjustable offset value Vosa corresponding to the
具體而言,本實施例中,校正碼更新步驟S323包括:將操作校正碼CCO疊加調整參數以更新操作校正碼CCO,並重置調整參數至初始值,除可繼續以更新後的操作校正碼CCO於預設操作程序P200中進行校正外,同時示意接下來的低位元數校正程序P300將重新開始一或多個低位元數校正程序P300而再次確認與更新下一個操作校正碼CCO。如圖7A及圖7B所示,校正碼更新步驟S323完成之後,回到預設操作程序P200。 Specifically, in this embodiment, the correction code update step S323 includes: superimposing the operation correction code CCO with the adjustment parameters to update the operation correction code CCO, and resetting the adjustment parameters to the initial values. In addition, the updated operation correction code may be continued. In addition to performing correction in the default operation program P200, the CCO also indicates that the next low-bit correction process P300 will restart one or more low-bit correction processes P300 to reconfirm and update the next operation correction code CCO. As shown in FIG. 7A and FIG. 7B , after the correction code updating step S323 is completed, the process returns to the default operation program P200.
具體而言,本實施例中,調整參數更新步驟S324包括:將調整參數疊加單位差值X,以更新調整參數,藉此,使下一次的子校正程序P305中的測試校正碼CCT亦將疊加一個單位差值X。調整參數更新步驟S324完成 之後,在每一低位元數校正程序P300中的M皆為1的實施例中(例如圖6之實施例),如圖7A所示,步驟S307可省略,亦即調整參數更新步驟S324執行完成後,直接進入下一個預設操作程序P200;在每一低位元數校正程序P300中的M非為1的實施例中,如圖7B所示,調整參數更新步驟S324執行完成後,進入步驟S307,判斷是否為第M次子校正程序,當判斷為第M次子校正程序時,回到預設操作程序P200,否則,回到子校正程序P305。 Specifically, in this embodiment, the adjustment parameter update step S324 includes: superimposing the adjustment parameter by the unit difference value One unit difference X. The adjustment parameter update step S324 is completed. Afterwards, in an embodiment in which M in each low-bit correction process P300 is 1 (such as the embodiment of FIG. 6 ), as shown in FIG. 7A , step S307 can be omitted, that is, the adjustment parameter update step S324 is completed. After that, directly enter the next preset operation program P200; in the embodiment where M in each low-bit number correction program P300 is not 1, as shown in Figure 7B, after the adjustment parameter update step S324 is completed, step S307 is entered. , determine whether it is the M-th sub-correction program. When it is determined that it is the M-th sub-correction program, return to the default operation program P200, otherwise, return to the sub-correction program P305.
請繼續參閱圖6與圖7A,在一具體實施例中,如圖6所示,於時段T3之子校正程序P305中,經步驟S301配置為校正組態(圖6中省略)後,首先進行步驟S351,設定測試校正碼CCT,使其等於操作校正碼CCO(Z1)疊加調整參數,本實施例中,調整參數初始值為0,故測試校正碼CCT為Z1+0,接著進入步驟S352,判斷是否為新校正程序,此時因調整參數為初始值0,表示為新校正程序,因此進入方向判斷步驟S310。於方向判斷步驟S310中,根據測試校正碼CCT(Z1+0)提供操作電路2002對應的可調偏移值Vosa,比較電路100根據可調偏移值Vosa與變動偏移值Vosv而產生比較結果CPO,本實施例中,由於可調偏移值Vosa低於變動偏移值Vosv,故根據比較結果CPO而決定之校正方向為正,根據校正方向而決定的單位差值X例如為+LSB,接著將調整參數疊加單位差值X,以將調整參數更新為0+X。接著,在圖6及圖7A之實施例中,方向判斷步驟S310完成後,回到預設操作程序P200,即進入時段T4之預設操作程序P200,以操作校正碼CCO(尚未更新,仍為Z1)所對應的可調偏移值Vosa校正變動偏移值Vosv。
Please continue to refer to FIG. 6 and FIG. 7A. In a specific embodiment, as shown in FIG. 6, in the sub-calibration program P305 of the period T3, after step S301 is configured as the calibration configuration (omitted in FIG. 6), the steps are firstly performed. S351, set the test correction code CCT to be equal to the operation correction code CCO (Z1) and superimpose the adjustment parameter. In this embodiment, the initial value of the adjustment parameter is 0, so the test correction code CCT is Z1+0, and then enter step S352 to determine Whether it is a new calibration program, at this time, because the adjustment parameter is the
接著,於時段T5之子校正程序P305中,經步驟S301配置為校正組態(圖6中省略)後,首先進入步驟S351中,此時調整參數為X,故測試校正碼CCT被設定為Z1+X,接著於步驟S352中,因調整參數非初始值0,故判斷非新校正程序,進入差值比較步驟S320。差值比較步驟S320中,首先進入
步驟S321,根據測試校正碼CCT(Z1+X)提供操作電路2002對應的可調偏移值Vosa,並根據可調偏移值Vosa操作比較電路100以產生比較結果CPO,接著進入步驟S322,判斷比較結果CPO是否轉向,本實施例中,可調偏移值Vosa仍低於變動偏移值Vosv,比較結果CPO對應於校正方向為同相,即比較結果CPO未轉向,因此進入調整參數更新步驟S324。調整參數更新步驟S324中,將調整參數疊加單位差值X,因此調整參數更新為2X。接著,在圖6及圖7A之實施例中,調整參數更新步驟S324完成後,回到預設操作程序P200,即進入時段T6之預設操作程序P200,以操作校正碼CCO(尚未更新,仍為Z1)所對應的可調偏移值Vosa校正變動偏移值Vosv。
Next, in the sub-calibration program P305 of period T5, after step S301 is configured as the calibration configuration (omitted in Figure 6), step S351 is first entered. At this time, the adjustment parameter is X, so the test correction code CCT is set to Z1+ X, then in step S352, since the adjustment parameter is not the
接著,於時段T7之子校正程序P305中,步驟S301、步驟S351、步驟S352及步驟S321皆相似於時段T5之子校正程序P305,在此不贅述。接著進入步驟S322,判斷比較結果CPO是否轉向,本實施例中,可調偏移值Vosa高於變動偏移值Vosv,比較結果CPO對應於校正方向為反相,即比較結果CPO已轉向,因此進入校正碼更新步驟S323。於校正碼更新步驟S323中,將操作校正碼CCO疊加調整參數以更新操作校正碼CCO,本實施例中,將操作校正碼CCO更新為Z1+2X(=Z2),並重置調整參數至初始值0。校正碼更新步驟S323完成後,接著回到預設操作程序P200,即進入時段T8之預設操作程序P200,以操作校正碼CCO(已更新為Z2)所對應的可調偏移值Vosa校正變動偏移值Vosv。
Next, in the sub-correction procedure P305 of the period T7, steps S301, step S351, step S352 and step S321 are all similar to the sub-correction procedure P305 of the period T5, and will not be described again here. Then enter step S322 to determine whether the comparison result CPO has turned. In this embodiment, the adjustable offset value Vosa is higher than the variable offset value Vosv. The comparison result CPO corresponds to the correction direction and is in reverse phase, that is, the comparison result CPO has turned. Therefore, Enter correction code update step S323. In the correction code update step S323, the operation correction code CCO is superimposed on the adjustment parameters to update the operation correction code CCO. In this embodiment, the operation correction code CCO is updated to Z1+2X (=Z2), and the adjustment parameters are reset to the initial value.
請參閱圖8,圖8顯示本發明之具有低校正期間的操作電路以子校正程序P305進行校正之一種具體實施例操作波形與程序圖。圖8之操作波形圖與程序圖相似於圖6之操作波形圖與程序圖,差異之處在於,在一較佳實施例中,校正碼更新步驟S323更包括:根據校正方向將操作校正碼CCO疊加調整參數且扣除一單位差值以更新操作校正碼CCO,於圖8之具體實施 例中,時段T7之子校正程序P305之校正碼更新步驟S323中,將操作校正碼CCO更新為Z1+2X-X=Z1+X=Z2,藉此使變動偏移值Vosv相對穩定,操作校正碼CCO與可調偏移值Vosa亦可為穩定值而非跳動值。如果沒有在時段T7之子校正程序P305之校正碼更新步驟S323中,將操作校正碼CCO更新為Z1+2X-X,比較結果CPO在子校正程序P305中判斷為轉向才會結束校正程序,因此將使得操作校正碼CCO在每一次的校正程序結束之後都在Z1+2X與Z1+X間切換,進而使得可調偏移值Vosa在每一次的低位元數校正程序P300結束之後都改變,造成可調偏移值Vosa的跳動或不穩定。 Please refer to FIG. 8. FIG. 8 shows an operation waveform and program diagram of a specific embodiment of the present invention in which the operation circuit with a low correction period performs correction using the sub-correction program P305. The operation waveform diagram and program diagram of Figure 8 are similar to the operation waveform diagram and program diagram of Figure 6. The difference is that in a preferred embodiment, the correction code update step S323 further includes: changing the operation correction code CCO according to the correction direction. The adjustment parameters are superimposed and one unit difference is deducted to update the operation correction code CCO. The specific implementation is shown in Figure 8. In this example, in the correction code update step S323 of the sub-correction program P305 in period T7, the operation correction code CCO is updated to Z1+2X-X=Z1+X=Z2, thereby making the changing offset value Vosv relatively stable, and the operation correction code CCO and the adjustable offset value Vosa can also be stable values instead of jittering values. If the operation correction code CCO is not updated to Z1+2X-X in the correction code update step S323 of the sub-correction program P305 in the period T7, the comparison result CPO will not end the correction process until it is judged as turning in the sub-correction program P305. Therefore, the This causes the operation correction code CCO to switch between Z1+2X and Z1+X after each correction procedure ends, thereby causing the adjustable offset value Vosa to change after each low-bit number correction procedure P300 ends, resulting in possible The offset value Vosa is jittering or unstable.
請參閱圖9,圖9顯示本發明之具有低校正期間的操作電路以子校正程序P306進行校正之一種具體實施例操作波形與程序圖。圖9之實施例為每一低位元數校正程序P300中的M皆為1的實施例,在本實施例中,步驟S307可省略,詳如後述。需說明的是,為便於理解,與圖6及圖8類似,圖9中之程序圖中,亦省略了每一個步驟S001及步驟S301。圖9之實施例中,時段T1之初始校正程序P100、時段T2之預設操作程序P200皆相似於圖6之實施例,圖9之時段T1之初始校正程序P100中,首先將操作電路配置為校正組態,接著重置調整參數至初始值,在一較佳實施例中,對應於子校正程序P306之調整參數的初始值為N,用以示意測試校正碼CCT之最高的第N位元為致能狀態(例如為1),其他位元都為非致能狀態(例如為0),以二分搜尋法調整具有N位元的測試校正碼CCT,使得可調偏移值Vosa(以實線標示)逐次逼近變動偏移值Vosv(以長虛線標示),以確定及更新具有N位元的操作校正碼CCO。本實施例中,於初始校正程序P100結束時,初始操作校正碼CCO之值為Y1,接著進入時段T2之預設操作程序P200,根據在時段T1中所決定的操作校正碼CCO(Y1)操作操作電路進行預設操作程序P200,並以操作校正碼CCO(Y1)所對應的可調偏移值Vosa校正變動偏移值Vosv。 Please refer to FIG. 9 . FIG. 9 shows the operation waveform and program diagram of a specific embodiment of the present invention in which the operation circuit with a low correction period performs correction using the sub-correction procedure P306. The embodiment of FIG. 9 is an embodiment in which M in each low-bit number correction process P300 is all 1. In this embodiment, step S307 can be omitted, as will be described in detail later. It should be noted that, for ease of understanding, similar to FIG. 6 and FIG. 8 , each step S001 and step S301 are also omitted in the program diagram in FIG. 9 . In the embodiment of FIG. 9 , the initial calibration procedure P100 of period T1 and the preset operation procedure P200 of period T2 are similar to the embodiment of FIG. 6 . In the initial calibration procedure P100 of period T1 of FIG. 9 , the operating circuit is first configured as Calibrate the configuration, and then reset the adjustment parameters to the initial values. In a preferred embodiment, the initial value of the adjustment parameters corresponding to the sub-calibration procedure P306 is N, which is used to indicate the highest N-th bit of the test correction code CCT. is the enabled state (for example, 1), and other bits are in the disabled state (for example, 0). The test correction code CCT with N bits is adjusted using the binary search method, so that the adjustable offset value Vosa (realized by The changing offset value Vosv (marked by the long dashed line) is successively approximated to determine and update the operation correction code CCO with N bits. In this embodiment, at the end of the initial calibration procedure P100, the value of the initial operation correction code CCO is Y1, and then the default operation procedure P200 of the period T2 is entered, and the operation is performed according to the operation correction code CCO (Y1) determined in the period T1. The operation circuit performs the preset operation program P200, and corrects the variable offset value Vosv with the adjustable offset value Vosa corresponding to the operation correction code CCO (Y1).
於預設操作程序P200結束後,接著進入低位元數校正程序P300。請同時參閱圖2、圖9、圖10A與圖10B,圖10A顯示對應於圖4中子校正程序P306的一具體實施例流程圖,圖10B顯示對應於圖4中子校正程序P306的另一具體實施例流程圖。在一實施例中,如圖9所示,子校正程序P306係藉由二分搜尋法依位元序自最高位元(第N位元)依序遞減一位元至最低位元(第一位元),而依序根據調整參數以調整測試校正碼CCT的每一個位元,而決定繼續調整測試校正碼CCT或更新操作校正碼CCO。具體而言,如圖10A與圖10B所示,子校正程序P306包括以下步驟: 首先進入步驟S361,以調整參數示意測試校正碼CCT的當前測試位元之一位元序(在一具體實施例中,當前測試位元由最高位元第N位元開始依序降低位元序至最低位元為第1位元),接著將測試校正碼CCT的當前測試位元設為致能狀態(在一具體實施例中致能狀態例如為1),測試校正碼CCT的其餘較低有效位元(lower significant bits)設為非致能狀態(在一具體實施例中例如為0),且測試校正碼CCT的其餘較高有效位元(higher significant bits)保持為自上一次重置調整參數後的狀態。 After the default operation program P200 is completed, the low bit number correction program P300 is then entered. Please refer to Figure 2, Figure 9, Figure 10A and Figure 10B at the same time. Figure 10A shows a flow chart corresponding to the sub-correction procedure P306 in Figure 4, and Figure 10B shows another flow chart corresponding to the sub-correction procedure P306 in Figure 4. Specific embodiment flow chart. In one embodiment, as shown in FIG. 9 , the sub-correction process P306 uses the binary search method to sequentially decrease one bit from the highest bit (Nth bit) to the lowest bit (the first bit) in bit order. ), and sequentially adjust each bit of the test correction code CCT according to the adjustment parameters, and decide to continue to adjust the test correction code CCT or update the operation correction code CCO. Specifically, as shown in Figures 10A and 10B, the sub-correction program P306 includes the following steps: First, step S361 is entered to adjust the parameters to indicate the bit sequence of the current test bits of the test correction code CCT (in a specific embodiment, the current test bits start from the Nth bit of the highest bit in descending order). The lowest bit is the 1st bit), and then the current test bit of the test correction code CCT is set to the enabled state (in a specific embodiment, the enable state is 1), and the remaining lower bits of the test correction code CCT are The lower significant bits are set to the disabled state (for example, 0 in a specific embodiment), and the remaining higher significant bits of the test correction code CCT remain as they were since the last reset. The state after adjusting parameters.
接著進入步驟S362,根據測試校正碼CCT提供操作電路2002對應的可調偏移值Vosa,在一實施例中,如圖2所示,例如提供可調偏移值Vosa於操作電路2002的第二輸入端Ni2,接著根據可調偏移值Vosa操作比較電路100以產生比較結果CPO。
Then step S362 is entered, and the adjustable offset value Vosa corresponding to the
接著進入步驟S363,判斷可調偏移值Vosa是否大於變動偏移值Vosv,若比較結果CPO示意可調偏移值Vosa大於操作電路2002的變動偏移值Vosv,則進入步驟S364,將測試校正碼CCT的當前測試位元設為非致能狀態,若比較結果CPO示意可調偏移值Vosa小於操作電路2002的變動偏
移值Vosv,則將測試校正碼CCT的當前測試位元保持在致能狀態,並跳過步驟S364,直接進入下一步驟(S365)。
Then step S363 is entered to determine whether the adjustable offset value Vosa is greater than the changing offset value Vosv. If the comparison result CPO indicates that the adjustable offset value Vosa is greater than the changing offset value Vosv of the
步驟S364結束之後,或者步驟S363之判斷結果為否後,接著進入步驟S365,判斷測試校正碼CCT的當前測試位元之位元序是否為最低有效位元,其中若調整參數示意位元序已為最低有效位元(在一具體實施例中例如已進行至第1位元),進行校正碼更新步驟S325,否則進入調整參數更新步驟S326。 After the end of step S364, or after the judgment result of step S363 is no, step S365 is then entered to judge whether the bit sequence of the current test bit of the test correction code CCT is the least significant bit. If the adjustment parameter indicates that the bit sequence has been If it is the least significant bit (for example, the first bit has been reached in a specific embodiment), the correction code update step S325 is performed; otherwise, the adjustment parameter update step S326 is performed.
具體而言,本實施例中,校正碼更新步驟S325包括:根據測試校正碼CCT更新操作校正碼CCO,並重置調整參數至初始值(例如為N),除可繼續以更新後的操作校正碼CCO於預設操作程序P200中進行校正外,同時示意接下來的低位元數校正程序P300將重新開始一或多個低位元數校正程序P300而再次確認與更新下一個操作校正碼CCO。如圖10A及圖10B所示,校正碼更新步驟S325完成之後,回到預設操作程序P200。 Specifically, in this embodiment, the correction code update step S325 includes: updating the operation correction code CCO according to the test correction code CCT, and resetting the adjustment parameters to the initial value (for example, N). In addition, the updated operation correction can be continued. In addition to correcting the code CCO in the default operation program P200, it also indicates that the next low-end correction process P300 will restart one or more low-end correction procedures P300 to reconfirm and update the next operation correction code CCO. As shown in FIG. 10A and FIG. 10B , after the correction code updating step S325 is completed, the process returns to the default operation program P200.
具體而言,本實施例中,調整參數更新步驟S326包括:將當前調整參數減1以更新調整參數,調整參數之值示意測試校正碼CCT接下來所待校正的位元序。調整參數更新步驟S326完成之後,在每一低位元數校正程序P300中的M皆為1的實施例中(例如圖9之實施例),如圖10A所示,步驟S307可省略,亦即調整參數更新步驟S326執行完成後,直接進入下一個預設操作程序P200;在每一低位元數校正程序P300中的M非為1的實施例中,如圖10B所示,調整參數更新步驟S326執行完成後,進入步驟S307,判斷是否為第M次子校正程序,當判斷為第M次子校正程序時,回到預設操作程序P200,否則,回到子校正程序P306。 Specifically, in this embodiment, the adjustment parameter updating step S326 includes: decrementing the current adjustment parameter by 1 to update the adjustment parameter. The value of the adjustment parameter indicates the bit sequence to be corrected next in the test correction code CCT. After the adjustment parameter update step S326 is completed, in an embodiment in which M in each low-bit correction process P300 is 1 (such as the embodiment of FIG. 9 ), as shown in FIG. 10A , step S307 can be omitted, that is, the adjustment After the parameter update step S326 is completed, the next preset operation program P200 is entered directly; in an embodiment in which M in each low-bit number correction program P300 is not 1, as shown in FIG. 10B , the adjustment parameter update step S326 is executed. After completion, step S307 is entered to determine whether it is the M-th sub-correction program. When it is determined that it is the M-th sub-correction program, return to the default operation program P200; otherwise, return to the sub-correction program P306.
請繼續參閱圖9與圖10A,在一具體實施例中,如圖9所示,於時段T3之子校正程序P306中,經步驟S301配置為校正組態(圖9中省略)後,
首先進入步驟S361,以調整參數示意測試校正碼CCT的當前測試位元之一位元序,本實施例中,於時段T3調整參數之初始值為N,故需要校正的測試校正碼CCT位元序即為第N位元,接著將測試校正碼CCT的當前測試位元(第N位元)設為致能狀態(例如設為1),並將測試校正碼CCT的其餘較低有效位元設為非致能狀態(例如設為0)。接著進入步驟S362,根據測試校正碼CCT提供操作電路2002對應的可調偏移值Vosa,接著根據可調偏移值Vosa操作比較電路100以產生比較結果CPO。接著進入步驟S363,判斷可調偏移值Vosa是否大於變動偏移值Vosv,本具體實施例中,比較結果CPO示意可調偏移值Vosa大於操作電路2002的變動偏移值Vosv,因此進入步驟S364,將測試校正碼CCT的當前測試位元設為非致能狀態(例如設為0)。接著進入步驟S365,判斷測試校正碼CCT的當前測試位元之位元序是否為最低有效位元,本實施例為第N位元,非最低有效位元,因此進入調整參數更新步驟S326,將調整參數N減1以示意測試校正碼CCT的下一個位元序(第N-1位元)之數值需要校正,而將調整參數更新為N-1。接著,在圖9及圖10A之實施例中,調整參數更新步驟S326完成後,回到預設操作程序P200,即進入時段T4之預設操作程序P200,以操作校正碼CCO(尚未更新,仍為Y1)所對應的可調偏移值Vosa校正變動偏移值Vosv。
Please continue to refer to FIG. 9 and FIG. 10A. In a specific embodiment, as shown in FIG. 9, in the sub-calibration process P306 of period T3, after step S301 is configured as the calibration configuration (omitted in FIG. 9),
First, step S361 is entered to adjust the parameters to indicate the bit sequence of the current test bits of the test correction code CCT. In this embodiment, the initial value of the adjustment parameters is N during the period T3, so the test correction code CCT bits need to be corrected. The order is the Nth bit, then set the current test bit (Nth bit) of the test correction code CCT to the enabled state (for example, set to 1), and set the remaining lower significant bits of the test correction code CCT Set to a disabled state (e.g. set to 0). Then step S362 is entered, the adjustable offset value Vosa corresponding to the
接著,於時段T5之子校正程序P306中,經步驟S301配置為校正組態(圖9中省略)後,首先進入步驟S361,以調整參數N-1示意測試校正碼CCT為第N-1位元,接著將測試校正碼CCT的當前測試位元(第N-1位元)設為致能狀態(例如設為1),並將測試校正碼CCT的其餘較低有效位元設為非致能狀態(例如設為0),而根據前述,測試校正碼CCT的第N個位元非致能狀態(例如為0)。接著進入步驟S362,根據測試校正碼CCT提供操作電路2002對應的可調偏移值Vosa,接著根據可調偏移值Vosa操作比較電路100以產生比
較結果CPO。接著進入步驟S363,判斷可調偏移值Vosa是否大於變動偏移值Vosv,本具體實施例中,比較結果CPO示意可調偏移值Vosa小於操作電路2002的變動偏移值Vosv,因此保持測試校正碼CCT為第N-1位元為致能狀態(例如設為1),並跳過步驟S364,進入步驟S365,判斷測試校正碼CCT的當前測試位元之位元序是否為最低有效位元,本實施例為第N-1位元,非最低有效位元,因此進入調整參數更新步驟S326,將調整參數N-1減1以示意測試校正碼CCT的下一個位元序(第N-2位元)之數值需要校正,而將調整參數更新為N-2。接著,在圖9及圖10A之實施例中,調整參數更新步驟S326完成後,回到預設操作程序P200,即進入時段T6之預設操作程序P200,以操作校正碼CCO(尚未更新,仍為Y1)所對應的可調偏移值Vosa校正變動偏移值Vosv。
Then, in the sub-correction program P306 of period T5, after step S301 is configured as the correction configuration (omitted in Figure 9), step S361 is first entered to adjust the parameter N-1 to indicate that the test correction code CCT is the N-1th bit , then set the current test bit (N-1th bit) of the test correction code CCT to the enabled state (for example, set to 1), and set the remaining lower significant bits of the test correction code CCT to non-enabled The state (for example, is set to 0), and according to the above, the Nth bit of the test correction code CCT is in a non-enabled state (for example, is 0). Then step S362 is entered, the adjustable offset value Vosa corresponding to the
接著,如圖9所示,不斷重複進行相似於時段T3至時段T4之程序,或相似於時段T5至時段T6之程序,並於可調偏移值Vosa逼近變動偏移值Vosv時更新操作校正碼CCO。在一具體實施例中,當子校正程序P306之步驟S365中,判斷測試校正碼CCT的當前測試位元之位元序已為最低有效位元時,例如圖9中時段T9之子校正程序P306,位元序已為最低有效位元(例如第1位元)時,進入校正碼更新步驟S325,根據測試校正碼CCT更新操作校正碼CCO為Y2,並重置調整參數至初始值N。校正碼更新步驟S325完成後,接著回到預設操作程序P200,即進入時段T10之預設操作程序P200,以操作校正碼CCO(已更新為Y2)所對應的可調偏移值Vosa校正變動偏移值Vosv。 Then, as shown in Figure 9, the process similar to the period T3 to the period T4, or the process similar to the period T5 to the period T6 is continuously repeated, and the operation correction is updated when the adjustable offset value Vosa approaches the changing offset value Vosv. Code CCO. In a specific embodiment, when in step S365 of the sub-correction procedure P306, it is determined that the bit sequence of the current test bit of the test correction code CCT has become the least significant bit, for example, the sub-correction procedure P306 of the period T9 in Figure 9, When the bit sequence is the least significant bit (for example, the 1st bit), the correction code update step S325 is entered, the operation correction code CCO is updated to Y2 according to the test correction code CCT, and the adjustment parameters are reset to the initial value N. After the correction code update step S325 is completed, then return to the default operation program P200, that is, enter the default operation program P200 of the period T10 to operate the adjustable offset value Vosa corresponding to the correction code CCO (updated to Y2) to correct changes. Offset value Vosv.
請參閱圖11,圖11顯示本發明之具有低校正期間的操作電路之一具體實施例示意圖(操作電路2011)。在一具體實施例中,操作電路2011為切換電容式類比數位轉換器,操作電路2011包含比較電路105、放大電路
200、第一數位類比轉換器310、第二數位類比轉換器320、偏移調整電路30及操作控制電路40。本實施例中,操作電路2011具有變動偏移值Vosv,其中變動偏移值Vosv包括比較電路105的第一變動偏移值Vosv1及放大電路200的第二變動偏移值Vosv2。在一實施例中,如圖11所示,放大電路200經由第一數位類比轉換器310及第二數位類比轉換器320而耦接於比較電路105,放大電路200的等效電路包括理想放大器60,並具有第二變動偏移值Vosv2,放大電路200還包括取樣維持電路50,取樣維持電路50包括子取樣維持電路51及子取樣維持電路52,子取樣維持電路51及子取樣維持電路52用以根據訊號SH而取樣維持理想放大器60所產生之正子輸出訊號與負子輸出訊號。本實施例中,第一數位類比轉換器310與第二數位類比轉換器320為切換電容式數位類比轉換器,第二數位類比轉換器320用以作為偏移產生電路。
Please refer to FIG. 11 , which shows a schematic diagram of an operation circuit with a low correction period (operation circuit 2011 ) according to a specific embodiment of the present invention. In a specific embodiment, the
請同時參閱圖11與圖12,圖12顯示對應於圖11之實施例操作波形與程序圖。在一實施例中,於預設操作程序P200中,開關Sw1控制放大電路200的第一輸入端Ni1a耦接於節點N1,開關Sw2控制放大電路200的第二輸入端Ni2a耦接於節點N2,此時放大電路200用以放大類比訊號SA而於比較電路105的第一輸入端Ni1與比較電路的第二輸入端Ni2產生放大訊號,操作控制電路40根據時脈訊號Ckcom與校正致能訊號Calen而控制第一數位類比轉換器310以產生可調整參考值,比較電路105用以比較放大訊號與可調整參考值例如以逐次逼近暫存器型類比數位轉換方式以產生對應於類比訊號SA的數位輸出碼CDO。在一實施例中,於低位元數校正程序P300中,開關Sw1控制放大電路200的第一輸入端Ni1a耦接於節點N3,開關Sw2控制放大電路200的第二輸入端Ni2a耦接於節點N4,使得放大電路200的兩個輸入端共同耦接至共模電壓Vcm,此時偏移調整電路30根據時脈訊號Ckcom與
校正致能訊號Calen而控制第二數位類比轉換器320以產生可調偏移值,以於預設操作程序P200中校正操作電路2011的變動偏移值Vosv。
Please refer to FIG. 11 and FIG. 12 at the same time. FIG. 12 shows the operation waveform and program diagram corresponding to the embodiment of FIG. 11 . In one embodiment, in the default operation program P200, the switch Sw1 controls the first input terminal Ni1a of the
請參閱圖13,圖13顯示本發明之具有低校正期間的操作電路之可調偏移值對應於操作校正碼或測試校正碼之特性曲線圖。在一較佳實施例中,如圖13所示,本發明用以校正變動偏移值Vosv之可調偏移值Vosa對應於操作校正碼CCO或測試校正碼CCT的特性曲線為次基數2之曲線(sub-radix-2),使得在圖13中標示之預設誤差範圍內,可搜尋到操作校正碼或測式校正碼。 Please refer to FIG. 13. FIG. 13 shows a characteristic curve of the adjustable offset value of the operating circuit with a low correction period of the present invention corresponding to the operating correction code or the test correction code. In a preferred embodiment, as shown in Figure 13, the characteristic curve of the adjustable offset value Vosa used to correct the varying offset value Vosv of the present invention corresponding to the operation correction code CCO or the test correction code CCT is sub-radix 2. The curve (sub-radix-2) enables the operation correction code or measurement correction code to be searched within the preset error range marked in Figure 13.
請參閱圖14,圖14顯示本發明之具有低校正期間的操作電路之一具體實施例示意圖(操作電路2014)。圖14之操作電路2014相似於圖11之操作電路2011,在一實施例中,於預設操作程序P200中,操作電路2014中,操作控制電路40根據偏移調整電路30所產生之偏移調整結果、時脈訊號Ckcom與校正致能訊號Calen而控制第一數位類比轉換器311,以提供可調整參考值,本實施例中,偏移產生電路包括由第一數位類比轉換器311的部分位元所組成的第二數位類比轉換器321。
Please refer to FIG. 14. FIG. 14 shows a schematic diagram of an operation circuit with a low correction period (operation circuit 2014) according to a specific embodiment of the present invention. The
需說明的是,上述實施例中的可調偏移值Vosa、變動偏移值Vosv、第一變動偏移值Vosv1、第二變動偏移值Vosv2皆為偏移電壓,但不限於偏移電壓,在其他實施例中,也可以為偏移電流。 It should be noted that the adjustable offset value Vosa, the variable offset value Vosv, the first variable offset value Vosv1, and the second variable offset value Vosv2 in the above embodiments are all offset voltages, but are not limited to offset voltages. , in other embodiments, it can also be an offset current.
以上已針對較佳實施例來說明本發明,唯以上所述者,僅係為使熟悉本技術者易於了解本發明的內容而已,並非用來限定本發明之權利範圍。所說明之各個實施例,並不限於單獨應用,亦可以組合應用,舉例而言,兩個或以上之實施例可以組合運用,而一實施例中之部分組成亦可用以取代另一實施例中對應之組成部件。此外,在本發明之相同精神下,熟悉本技術者可以思及各種等效變化以及各種組合,舉例而言,本發明所稱「根 據某訊號進行處理或運算或產生某輸出結果」,不限於根據該訊號的本身,亦包含於必要時,將該訊號進行電壓電流轉換、電流電壓轉換、及/或比例轉換等,之後根據轉換後的訊號進行處理或運算產生某輸出結果。由此可知,在本發明之相同精神下,熟悉本技術者可以思及各種等效變化以及各種組合,其組合方式甚多,在此不一一列舉說明。因此,本發明的範圍應涵蓋上述及其他所有等效變化。 The present invention has been described above with reference to the preferred embodiments. However, the above description is only to make it easy for those familiar with the art to understand the content of the present invention, and is not intended to limit the scope of rights of the present invention. The various embodiments described are not limited to single application, but can also be used in combination. For example, two or more embodiments can be used in combination, and part of the components in one embodiment can also be used to replace those in another embodiment. Corresponding components. In addition, under the same spirit of the present invention, those skilled in the art can think of various equivalent changes and various combinations. For example, the so-called "basic "Processing or computing or producing an output result based on a certain signal" is not limited to based on the signal itself, but also includes, when necessary, voltage and current conversion, current to voltage conversion, and/or ratio conversion of the signal, and then based on the conversion The final signal is processed or calculated to produce an output result. It can be seen from this that under the same spirit of the present invention, those skilled in the art can think of various equivalent changes and various combinations. There are many combinations, and they are not listed here. Accordingly, the scope of the present invention is intended to cover the above and all other equivalent changes.
Calen:校正致能訊號 Calen: Correction enable signal
CCO:操作校正碼 CCO: Operation correction code
CCT:測試校正碼 CCT: test correction code
P100:程序 P100:Procedure
P200:程序 P200:Procedure
P305:子校正程序 P305: Sub-calibration program
T1~T8:時段 T1~T8: time period
Vosa:可調偏移值 Vosa: adjustable offset value
Vosv:變動偏移值 Vosv: change offset value
X:單位差值 X: unit difference
Z1,Z2:操作校正碼之值 Z1, Z2: Value of operation correction code
Claims (26)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/147,004 US12111379B2 (en) | 2022-01-25 | 2022-12-28 | Operation circuit having lower calibration time and calibration method thereof |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202263302578P | 2022-01-25 | 2022-01-25 | |
| US63/302,578 | 2022-01-25 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202332207A TW202332207A (en) | 2023-08-01 |
| TWI822219B true TWI822219B (en) | 2023-11-11 |
Family
ID=87454751
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW111128746A TWI822219B (en) | 2022-01-25 | 2022-08-01 | Operation circuit having lower calibration time and calibration method thereof |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116545420A (en) |
| TW (1) | TWI822219B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1518211A (en) * | 2003-01-23 | 2004-08-04 | ��������˹�����տ����� | Adjustable shifting difference amplifier |
| US9564879B1 (en) * | 2012-06-25 | 2017-02-07 | Rambus Inc. | Reference voltage generation and calibration for single-ended signaling |
-
2022
- 2022-08-01 TW TW111128746A patent/TWI822219B/en active
- 2022-08-10 CN CN202210968260.2A patent/CN116545420A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1518211A (en) * | 2003-01-23 | 2004-08-04 | ��������˹�����տ����� | Adjustable shifting difference amplifier |
| US9564879B1 (en) * | 2012-06-25 | 2017-02-07 | Rambus Inc. | Reference voltage generation and calibration for single-ended signaling |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202332207A (en) | 2023-08-01 |
| CN116545420A (en) | 2023-08-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4381993B2 (en) | Calibrable analog / digital converter and related methods | |
| US11296714B2 (en) | Residue transfer loop, successive approximation register analog-to-digital converter, and gain calibration method | |
| TWI591969B (en) | Calibration circuit and calibration method for DAC | |
| US20130044014A1 (en) | Successive approximation analog to digital converter with capacitor mismatch calibration and method thereof | |
| JPH1188071A (en) | Offset voltage correcting circuit | |
| KR20120088603A (en) | A continuous ramp generator design and its calibration for cmos image sensors using single-ramp adcs | |
| US10128861B2 (en) | Analog to digital conversion circuit | |
| JP2010035140A (en) | Analog-to-digital converter | |
| JP2018037950A (en) | Amplifier circuit | |
| CN103716052A (en) | AD conversion circuit, semiconductor device and AD conversion method | |
| CN108809306B (en) | A multi-channel high-precision ADC circuit with mismatch error self-calibration function | |
| JP2009212838A (en) | Semiconductor device and control method therefor | |
| TWI822219B (en) | Operation circuit having lower calibration time and calibration method thereof | |
| US11057041B1 (en) | Self-calibrating single slope analog-to-digital converter | |
| US6906648B1 (en) | Circuit and method of multi-channel dual slope ADC with offset cancellation and hysteresis input | |
| JP5499205B2 (en) | Background adjustment technology for comparators | |
| TWI650949B (en) | Calibration circuit and calibration method for successive approximation register analog-to-digital converter | |
| CN118740150A (en) | Successive approximation analog-to-digital converter capable of automatically adjusting full-scale voltage and method thereof | |
| CN113437974B (en) | Single-slope analog-to-digital converter calibration method and system | |
| JP5269131B2 (en) | Comparison circuit and parallel analog-digital converter | |
| CN110138384B (en) | Correction circuit and correction method for successive approximation type analog-digital converter | |
| US12111379B2 (en) | Operation circuit having lower calibration time and calibration method thereof | |
| JP2017123534A (en) | Semiconductor device | |
| JP2004343163A (en) | Pipeline type a/d conversion circuit | |
| CN101627480B (en) | Common-mode charge control in a pipelined charge- domain signal- processing circuit |