[go: up one dir, main page]

TWI883605B - Duty cycle correction device - Google Patents

Duty cycle correction device Download PDF

Info

Publication number
TWI883605B
TWI883605B TW112140406A TW112140406A TWI883605B TW I883605 B TWI883605 B TW I883605B TW 112140406 A TW112140406 A TW 112140406A TW 112140406 A TW112140406 A TW 112140406A TW I883605 B TWI883605 B TW I883605B
Authority
TW
Taiwan
Prior art keywords
pair
transistor
clock signals
duty cycle
internal clock
Prior art date
Application number
TW112140406A
Other languages
Chinese (zh)
Other versions
TW202518847A (en
Inventor
粘書瀚
Original Assignee
晶豪科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 晶豪科技股份有限公司 filed Critical 晶豪科技股份有限公司
Priority to TW112140406A priority Critical patent/TWI883605B/en
Publication of TW202518847A publication Critical patent/TW202518847A/en
Application granted granted Critical
Publication of TWI883605B publication Critical patent/TWI883605B/en

Links

Landscapes

  • Pulse Circuits (AREA)

Abstract

A duty cycle correction device includes a first duty cycle corrector, an integrator, a phase detection module, a digital-to-analog converter and a first switch. The integrator generates a pair of feedback clock signals for the first duty cycle corrector to adjust a pair of first internal clock signals generated by the first duty cycle corrector. The phase detection module compares the phase of a second internal clock signal generated by the phase detection module with one of the pair of first internal clock signals when the duty cycle of the pair of first internal clock signals is adjusted to a predetermined duty cycle, to produce a phase detection result. The digital-to-analog converter generates a pair of analog signals corresponding to a digital code based on the phase detection result for adjusting the duty cycle of the second internal clock signal to the predetermined duty cycle and store the digital code. The first switch is turned on when the digital code is stored, and transmits the pair of analog signals to the first duty cycle corrector.

Description

工作週期校正裝置Duty cycle calibration device

本發明係關於一種校正裝置,特別是指一種工作週期校正裝置。 The present invention relates to a calibration device, in particular to a duty cycle calibration device.

工作週期校正裝置係用以校正電子裝置的內部時脈信號的工作週期,使內部時脈信號的工作週期不會大於或小於所需要的工作週期(即,預定工作週期),從而避免外部雜訊的擾動。現有工作週期校正裝置可使用類比信號與數位信號來調整電子裝置的內部時脈信號的工作週期。 The duty cycle correction device is used to correct the duty cycle of the internal clock signal of the electronic device so that the duty cycle of the internal clock signal will not be greater than or less than the required duty cycle (i.e., the predetermined duty cycle), thereby avoiding interference from external noise. Existing duty cycle correction devices can use analog signals and digital signals to adjust the duty cycle of the internal clock signal of the electronic device.

參閱圖1,現有工作週期校正裝置包括工作週期校正器11、泵激電路12、電容C1、C2、比較器13、開關SW1及數位類比轉換器14。泵激電路12耦接在工作週期校正器11與比較器13間。電容C1的兩端分別耦接泵激電路12與接地端,電容C2的兩端分別耦接泵激電路12與接地端。泵激電路12與電容C1、C2組合成一積分器。比較器13透過開關SW1耦接數位類比轉換器14,且數位類比轉換器14耦接工作週期校正器11。 Referring to FIG. 1 , the existing duty cycle correction device includes a duty cycle corrector 11, a pump circuit 12, capacitors C1 and C2, a comparator 13, a switch SW1, and a digital-to-analog converter 14. The pump circuit 12 is coupled between the duty cycle corrector 11 and the comparator 13. The two ends of the capacitor C1 are coupled to the pump circuit 12 and the ground end respectively, and the two ends of the capacitor C2 are coupled to the pump circuit 12 and the ground end respectively. The pump circuit 12 and the capacitors C1 and C2 are combined into an integrator. The comparator 13 is coupled to the digital-to-analog converter 14 through the switch SW1, and the digital-to-analog converter 14 is coupled to the duty cycle corrector 11.

操作時,工作週期校正器11用於接收一對互補的外部時脈信號XCLK、XCLKn,並根據外部時脈信號XCLK、XCLKn產生一對互補的內部時脈信號CLK、CLKn。接著,泵激電路12接收內部時脈信號CLK、CLKn,並根據內部時脈信號CLK、CLKn產生一對互補的回授時脈信號FCK、FCKb。由於泵激電 路12的兩個輸出端透過電容C1、C2耦接至接地端,因此,回授時脈信號FCK、FCKb分別是根據內部時脈信號CLK、CLKn對時間進行積分的兩個類比信號。回授時脈信號FCK、FCKb被回授至工作週期校正器11,以致工作週期校正器11根據回授時脈信號FCK、FCKb快速地調整內部時脈信號CLK、CLKn的工作週期並輸出調整後的內部時脈信號CLK、CLKn(調整速度快)。然而,需注意的是,當工作週期校正器11進入省電模式時,回授時脈信號FCK、FCKb分別透過電容C1、C2放電,導致回授時脈信號FCK、FCKb會消失不見,如此造成使用類比信號(即回授時脈信號FCK、FCKb)來調整內部時脈信號CLK、CLKn的工作週期的方式將無法適用於省電模式下。 During operation, the duty cycle corrector 11 is used to receive a pair of complementary external clock signals XCLK and XCLKn, and generate a pair of complementary internal clock signals CLK and CLKn according to the external clock signals XCLK and XCLKn. Then, the pump circuit 12 receives the internal clock signals CLK and CLKn, and generates a pair of complementary feedback clock signals FCK and FCKb according to the internal clock signals CLK and CLKn. Since the two output terminals of the pump circuit 12 are coupled to the ground terminal through capacitors C1 and C2, the feedback clock signals FCK and FCKb are two analog signals that integrate the time according to the internal clock signals CLK and CLKn. The feedback clock signals FCK and FCKb are fed back to the duty cycle corrector 11, so that the duty cycle corrector 11 quickly adjusts the duty cycle of the internal clock signals CLK and CLKn according to the feedback clock signals FCK and FCKb and outputs the adjusted internal clock signals CLK and CLKn (fast adjustment speed). However, it should be noted that when the duty cycle corrector 11 enters the power saving mode, the feedback clock signals FCK and FCKb are discharged through the capacitors C1 and C2 respectively, causing the feedback clock signals FCK and FCKb to disappear. As a result, the method of using analog signals (i.e., feedback clock signals FCK and FCKb) to adjust the duty cycle of the internal clock signals CLK and CLKn will not be applicable in the power saving mode.

因此,在使用回授時脈信號FCK、FCKb來對內部時脈信號CLK、CLKn進行快速的調整後,開關SW1從不導通被切換為導通。此時,比較器13將回授時脈信號FCK、FCKb進行比較,以產生一比較結果(其為數位信號)並傳輸至數位類比轉換器14。數位類比轉換器14根據比較結果產生對應一數位碼的一對互補的類比信號CREG、CREGb,並將類比信號CREG、CREGb回授至工作週期校正器11,以供工作週期校正器11據以調整內部時脈信號CLK、CLKn。需注意的是,數位類比轉換器14是依序接收多個比較結果,並據以依序產生多對類比信號CREG、CREGb以將內部時脈信號CLK、CLKn調整到預定工作週期。在將內部時脈信號CLK、CLKn調整到預定工作週期時,此時數位類比轉換器14將對應的類比信號CREG、CREGb所對應到的數位碼儲存下來,以供下次工作週期校正器11要調整內部時脈信號CLK、CLKn的工作週期時,數位類比轉換器14可根據此對應的數位碼產生對應的類比信號CREG、CREGb給工作週期校正器11使用。如此一來,在工作週期校正器11進入省電模式時,由於此對應的數位碼已被數位 類比轉換器14儲存下來以供下次調整時使用,因此搭配使用數位信號(即比較結果)以產生對應數位碼的類比信號CREG、CREGb來調整內部時脈信號CLK、CLKn的工作週期的方式可適用省電模式(因數位碼被記錄)。然而,每一次比較器13要進行比較時,其需要等到回授時脈信號FCK、FCKb相差一特定強度值,比較器13才能產生比較結果,造成此方式的工作週期調整速度較慢且需耗費較長時間才能取得所需的數位碼。 Therefore, after the feedback clock signals FCK and FCKb are used to quickly adjust the internal clock signals CLK and CLKn, the switch SW1 is switched from non-conducting to conducting. At this time, the comparator 13 compares the feedback clock signals FCK and FCKb to generate a comparison result (which is a digital signal) and transmits it to the digital-to-analog converter 14. The digital-to-analog converter 14 generates a pair of complementary analog signals CREG and CREGb corresponding to a digital code according to the comparison result, and feeds the analog signals CREG and CREGb back to the duty cycle corrector 11, so that the duty cycle corrector 11 can adjust the internal clock signals CLK and CLKn accordingly. It should be noted that the digital-to-analog converter 14 receives multiple comparison results in sequence, and generates multiple pairs of analog signals CREG and CREGb in sequence to adjust the internal clock signals CLK and CLKn to the predetermined working cycle. When the internal clock signals CLK and CLKn are adjusted to the predetermined working cycle, the digital-to-analog converter 14 stores the digital code corresponding to the corresponding analog signals CREG and CREGb, so that when the working cycle corrector 11 needs to adjust the working cycle of the internal clock signals CLK and CLKn next time, the digital-to-analog converter 14 can generate the corresponding analog signals CREG and CREGb according to the corresponding digital code for use by the working cycle corrector 11. Thus, when the duty cycle corrector 11 enters the power saving mode, since the corresponding digital code has been stored by the digital-to-analog converter 14 for use in the next adjustment, the method of using the digital signal (i.e., the comparison result) to generate the analog signals CREG and CREGb corresponding to the digital code to adjust the duty cycle of the internal clock signals CLK and CLKn can be applied to the power saving mode (because the digital code is recorded). However, each time the comparator 13 performs a comparison, it needs to wait until the feedback clock signals FCK and FCKb differ by a specific strength value before the comparator 13 can generate a comparison result, resulting in a slower duty cycle adjustment speed and a longer time required to obtain the required digital code.

舉例來說,進一步參閱圖2。圖2是現有工作週期校正裝置完成工作週期調整作業(包含將內部時脈信號調整到預定工作週期及取得對應的數位碼)所需時間的示意圖。首先,在時間T1前,工作週期校正器11使用回授時脈信號FCK、FCKb來對內部時脈信號CLK、CLKn的工作週期先進行快速的調整(所需時間為32個系統時脈週期tck)。接著,開關SW1被導通,比較器13根據回授時脈信號FCK、FCKb產生比較結果,以供數位類比轉換器14據以產生對應一預設數位碼為32的類比信號CREG、CREGb。於時間T1後,比較器13依序產生多個比較結果,且數位類比轉換器14根據多個比較結果分別依序產生多對類比信號CREG、CREGb(分別對應數位碼為33、34、...、61、62)。工作週期校正器11依序使用回授的類比信號CREG、CREGb取代回授時脈信號FCK、FCKb來將內部時脈信號CLK、CLKn調整到預定工作週期。如圖2所示,工作週期校正器11先使用對應數位碼為33的類比信號CREG、CREGb來對內部時脈信號CLK、CLKn調整其工作週期。接著,工作週期校正器11使用對應數位碼為34的類比信號CREG、CREGb來對內部時脈信號CLK、CLKn調整其工作週期,後續同理依序操作,直到使用對應數位碼為62的類比信號CREG、CREGb來對內部時脈信號CLK、CLKn調整其工作週期時,內部時脈信號CLK、CLKn的工作週期才符合需要的預定工 作週期。在此情況下,由於比較器13每一次進行比較時,需要等到回授時脈信號FCK、FCKb相差一特定強度值,比較器13才會進行比較來產生每一比較結果,且每一次的等待時間大約是32個系統時脈週期tck,導致數位類比轉換器14每一次根據比較結果產生每一對類比信號CREG、CREGb所需時間約為32個系統時脈週期tck。如此一來,於圖2的情況下,現有工作週期校正裝置總共需要花費{1+(62-33+1)}*32=992個系統時脈週期tck的操作時間,才能獲得可以將內部時脈信號CLK、CLKn調整到預定工作週期的類比信號CREG、CREGb及其對應的數位碼(為62),造成現有工作週期校正裝置獲得此對應的數位碼所需時間較長,導致使用此方式完成工作週期調整作業的速度較慢。 For example, further refer to FIG. 2. FIG. 2 is a schematic diagram of the time required for the existing duty cycle correction device to complete the duty cycle adjustment operation (including adjusting the internal clock signal to the predetermined duty cycle and obtaining the corresponding digital code). First, before time T1, the duty cycle corrector 11 uses the feedback clock signals FCK and FCKb to quickly adjust the duty cycle of the internal clock signals CLK and CLKn (the required time is 32 system clock cycles tck). Then, the switch SW1 is turned on, and the comparator 13 generates a comparison result based on the feedback clock signals FCK and FCKb, so that the digital-to-analog converter 14 can generate analog signals CREG and CREGb corresponding to a preset digital code of 32. After time T1, the comparator 13 generates a plurality of comparison results in sequence, and the digital-to-analog converter 14 generates a plurality of pairs of analog signals CREG and CREGb (corresponding to digital codes 33, 34, ..., 61, 62, respectively) in sequence according to the plurality of comparison results. The duty cycle corrector 11 sequentially uses the feedback analog signals CREG and CREGb to replace the feedback clock signals FCK and FCKb to adjust the internal clock signals CLK and CLKn to the predetermined duty cycle. As shown in FIG. 2 , the duty cycle corrector 11 first uses the analog signals CREG and CREGb corresponding to the digital code 33 to adjust the duty cycle of the internal clock signals CLK and CLKn. Next, the duty cycle corrector 11 uses the analog signals CREG and CREGb corresponding to the digital code 34 to adjust the duty cycles of the internal clock signals CLK and CLKn. The same operation is repeated until the analog signals CREG and CREGb corresponding to the digital code 62 are used to adjust the duty cycles of the internal clock signals CLK and CLKn. Only then do the duty cycles of the internal clock signals CLK and CLKn meet the required predetermined duty cycles. In this case, since the comparator 13 needs to wait until the feedback clock signals FCK and FCKb differ by a specific strength value each time it performs comparison, the comparator 13 will perform comparison to generate each comparison result, and the waiting time each time is approximately 32 system clock cycles tck, resulting in the digital-to-analog converter 14 generating each pair of analog signals CREG and CREGb according to the comparison result each time. The time required is approximately 32 system clock cycles tck. As a result, in the case of Figure 2, the existing duty cycle correction device needs to spend a total of {1+(62-33+1)}*32=992 system clock cycles tck operation time to obtain the analog signals CREG, CREGb and their corresponding digital codes (62) that can adjust the internal clock signals CLK, CLKn to the predetermined duty cycle, resulting in a longer time required for the existing duty cycle correction device to obtain the corresponding digital code, resulting in a slower speed in completing the duty cycle adjustment operation using this method.

因此,本發明的目的,即在提供一種能夠較快完成工作週期調整作業的工作週期校正裝置,以解決現有工作週期校正裝置完成工作週期調整作業的速度較慢的問題。 Therefore, the purpose of the present invention is to provide a working cycle correction device that can complete the working cycle adjustment operation faster, so as to solve the problem that the existing working cycle correction device completes the working cycle adjustment operation slowly.

於是,本發明工作週期校正裝置,包含一第一工作週期校正器、一積分器、一相位檢測模組、一數位類比轉換器,及一第一開關。 Therefore, the duty cycle correction device of the present invention includes a first duty cycle corrector, an integrator, a phase detection module, a digital-to-analog converter, and a first switch.

該第一工作週期校正器用於接收一對外部時脈信號,並根據該對外部時脈信號產生一對第一內部時脈信號。 The first duty cycle corrector is used to receive a pair of external clock signals and generate a pair of first internal clock signals according to the pair of external clock signals.

該積分器耦接該第一工作週期校正器以接收該對第一內部時脈信號,並根據該對第一內部時脈信號產生一對回授時脈信號,且將該對回授時脈信號傳輸至該第一工作週期校正器,以致該第一工作週期校正器還根據該對回授時脈信號調整該對第一內部時脈信號各自的工作週期。 The integrator is coupled to the first duty cycle corrector to receive the pair of first internal clock signals, and generates a pair of feedback clock signals according to the pair of first internal clock signals, and transmits the pair of feedback clock signals to the first duty cycle corrector, so that the first duty cycle corrector also adjusts the respective duty cycles of the pair of first internal clock signals according to the pair of feedback clock signals.

該相位檢測模組用於接收該對外部時脈信號,並根據該對外部時脈信號產生一對第二內部時脈信號,且耦接該第一工作週期校正器以接收該對第一內部時脈信號中的一者,並於該對第一內部時脈信號各自的工作週期被調整至一預定工作週期時,將該對第一內部時脈信號中的該者與該對第二內部時脈信號中的一者進行相位比較,以產生一相位檢測結果。 The phase detection module is used to receive the pair of external clock signals and generate a pair of second internal clock signals according to the pair of external clock signals, and is coupled to the first duty cycle corrector to receive one of the pair of first internal clock signals, and when the duty cycles of the pair of first internal clock signals are adjusted to a predetermined duty cycle, the phase of the pair of first internal clock signals is compared with one of the pair of second internal clock signals to generate a phase detection result.

該數位類比轉換器耦接該相位檢測模組以接收該相位檢測結果,並根據該相位檢測結果產生對應一數位碼的一對類比信號,且將該對類比信號傳輸至該相位檢測模組,以致該相位檢測模組還根據該對類比信號調整該對第二內部時脈信號各自的工作週期,當該對類比信號使該對第二內部時脈信號各自的工作週期被調整至該預定工作週期時,該數位類比轉換器儲存該對類比信號所對應的該數位碼。 The digital-to-analog converter is coupled to the phase detection module to receive the phase detection result, and generates a pair of analog signals corresponding to a digital code according to the phase detection result, and transmits the pair of analog signals to the phase detection module, so that the phase detection module also adjusts the respective duty cycles of the pair of second internal clock signals according to the pair of analog signals. When the pair of analog signals adjusts the respective duty cycles of the pair of second internal clock signals to the predetermined duty cycle, the digital-to-analog converter stores the digital code corresponding to the pair of analog signals.

該第一開關耦接在該第一工作週期校正器與該數位類比轉換器間,當該數位類比轉換器儲存有該對類比信號所對應的該數位碼時,該第一開關受一第一切換信號控制而從不導通切換至導通,且接收來自該數位類比轉換器的該對類比信號並傳輸至該第一工作週期校正器。 The first switch is coupled between the first duty cycle corrector and the digital-to-analog converter. When the digital-to-analog converter stores the digital code corresponding to the pair of analog signals, the first switch is controlled by a first switching signal to switch from non-conducting to conducting, and receives the pair of analog signals from the digital-to-analog converter and transmits them to the first duty cycle corrector.

本發明的功效在於:利用該相位檢測模組快速產生該相位檢測結果來供該數位類比轉換器產生對應數位碼的該對類比信號,使該對第二內部時脈信號的工作週期被快速調整至該預定工作週期,同時取得並儲存對應的數位碼,如此一來,該工作週期校正裝置能夠快速完成工作週期調整作業。 The effect of the present invention is to use the phase detection module to quickly generate the phase detection result for the digital-to-analog converter to generate the pair of analog signals corresponding to the digital code, so that the duty cycle of the pair of second internal clock signals is quickly adjusted to the predetermined duty cycle, and the corresponding digital code is obtained and stored at the same time. In this way, the duty cycle correction device can quickly complete the duty cycle adjustment operation.

2:工作週期校正裝置 2: Duty cycle correction device

3:第一工作週期校正器 3: First working cycle corrector

4:積分器 4: Integrator

5:相位檢測模組 5: Phase detection module

6:數位類比轉換器 6: Digital to Analog Converter

7:第一開關 7: First switch

8:比較器 8: Comparator

9:第三開關 9: The third switch

11:工作週期校正器 11: Duty cycle corrector

12:泵激電路 12: Pump circuit

13:比較器 13: Comparator

14:數位類比轉換器 14: Digital to Analog Converter

31:偏壓電路 31: Bias circuit

32:輸入輸出對 32: Input and output pairs

33:第一輸入對 33: First input pair

34:第二輸入對 34: Second input pair

41:泵激電路 41: Pump circuit

42:第一電容 42: First capacitor

43:第二電容 43: Second capacitor

51:第二工作週期校正器 51: Second working cycle corrector

52:相位檢測器 52: Phase detector

53:第二開關 53: Second switch

61:控制電路 61: Control circuit

62~64:偏壓電路 62~64: Bias circuit

65~67:電流鏡電路 65~67: Current mirror circuit

81:比較電路 81: Comparison circuit

82:邏輯電路 82:Logic circuit

311~315:NMOS電晶體 311~315: NMOS transistor

316、317:電壓源 316, 317: Voltage source

321:第一電晶體 321: First transistor

322:第二電晶體 322: Second transistor

331:第三電晶體 331: The third transistor

332:第四電晶體 332: The fourth transistor

341:第五電晶體 341: The fifth transistor

342:第六電晶體 342: Sixth transistor

411~414:開關 411~414: switch

415~418:電流源 415~418: Current source

810~815:MOS電晶體 810~815: MOS transistor

816~819:PMOS電晶體 816~819: PMOS transistor

821~824:反閘 821~824: Anti-lock

825、826:反及閘 825, 826: Anti-gate

clk1、clkn1:第一內部時脈信號 clk1, clkn1: first internal clock signal

clk2、clkn2:第二內部時脈信號 clk2, clkn2: second internal clock signal

creg、cregb:類比信號 creg, cregb: analog signal

creg’、cregb’:類比信號輸出 creg’, cregb’: analog signal output

creg[0]、cregb[0]:控制信號 creg[0], cregb[0]: control signal

creg[1]、cregb[1]:控制信號 creg[1], cregb[1]: control signal

creg[2]、cregb[2]:控制信號 creg[2], cregb[2]: control signals

C1、C2:電容 C1, C2: capacitors

Cr:比較結果 Cr: Comparison results

CLK、CLKn:內部時脈信號 CLK, CLKn: internal clock signal

CREG、CREGb:類比信號 CREG, CREGb: analog signal

DK:控制信號 DK: control signal

En1、En2:致能信號 En1, En2: Enable signal

fck、fckb:回授時脈信號 fck, fckb: feedback clock signal

fckr、fckbr:回授時脈信號 fckr, fckbr: feedback clock signal

FCK、FCKb:回授時脈信號 FCK, FCKb: feedback clock signal

N1:第一電晶體 N1: First transistor

N2:第二電晶體 N2: Second transistor

N3:第三電晶體 N3: The third transistor

N4:第四電晶體 N4: The fourth transistor

Pr:相位檢測結果 Pr: Phase detection result

SW1:開關 SW1: switch

tck:系統時脈週期 tck: system clock cycle

T1~T3:時間 T1~T3: time

Vb:偏壓電壓 Vb: Bias voltage

Vcc:供電電壓 Vcc: power supply voltage

VS:電壓源 VS: voltage source

xclk、xclkn:外部時脈信號 xclk, xclkn: external clock signal

XCLK、XCLKn:外部時脈信號 XCLK, XCLKn: external clock signal

本發明的其他特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一電路方塊圖,說明現有工作週期校正裝置;圖2是一示意圖,說明現有工作週期校正裝置完成工作週期調整作業所需時間;圖3是一電路方塊圖,說明本發明工作週期校正裝置的一實施例;圖4是一電路圖,說明該實施例的第一工作週期校正器;圖5是一電路圖,說明該實施例的積分器;圖6是一電路圖,說明該實施例的比較器;圖7是一電路圖,說明該實施例的數位類比轉換器;及圖8是一示意圖,說明該實施例完成工作週期調整作業所需時間。 Other features and effects of the present invention will be clearly presented in the implementation method with reference to the drawings, wherein: FIG. 1 is a circuit block diagram illustrating an existing duty cycle correction device; FIG. 2 is a schematic diagram illustrating the time required for the existing duty cycle correction device to complete the duty cycle adjustment operation; FIG. 3 is a circuit block diagram illustrating an implementation of the duty cycle correction device of the present invention; FIG. 4 is a circuit diagram illustrating the first duty cycle corrector of the implementation; FIG. 5 is a circuit diagram illustrating the integrator of the implementation; FIG. 6 is a circuit diagram illustrating the comparator of the implementation; FIG. 7 is a circuit diagram illustrating the digital-to-analog converter of the implementation; and FIG. 8 is a schematic diagram illustrating the time required for the implementation to complete the duty cycle adjustment operation.

本發明將透過下述的實施例和所附之圖式來詳細說明本發明的內容,藉以幫助本發明技術領域中具有通常知識者理解本發明之目的、特徵及其功效。應注意的是,在下面的描述和申請專利範圍中,術語「包括」和「包含」以開放式的方式使用,因此不應被解釋為諸如「由...組成」的封閉式術語。另外,術語「耦接」旨在表示間接或直接的耦接。因此,如果一個設備耦接到另一個設備,則此連接可以通過直接耦接,或者通過經由其他設備和連接的間接耦接。此外,在本發明所述的內容中,諸如「第一」、「第二」和「第三」等用語是用以區分元件之間的不同,而不是用以限制元件本身或表示元件的特定排序。 The present invention will be described in detail through the following embodiments and the attached drawings to help those with ordinary knowledge in the technical field of the present invention understand the purpose, features and efficacy of the present invention. It should be noted that in the following description and the scope of the patent application, the terms "including" and "comprising" are used in an open manner and should not be interpreted as closed terms such as "consisting of..." In addition, the term "coupled" is intended to indicate indirect or direct coupling. Therefore, if one device is coupled to another device, the connection can be through direct coupling or through indirect coupling via other devices and connections. In addition, in the content described in the present invention, terms such as "first", "second" and "third" are used to distinguish between elements, rather than to limit the elements themselves or to indicate a specific order of elements.

參閱圖3,說明本發明一工作週期校正裝置2的一實施例。該工作週期校正裝置2包含一第一工作週期校正器3、一積分器4、一相位檢測模組5、一數位類比轉換器(Digital to analog converter,DAC)6、一第一開關7、一比較器8及一第三開關9。 Referring to FIG. 3 , an embodiment of a duty cycle correction device 2 of the present invention is described. The duty cycle correction device 2 comprises a first duty cycle corrector 3, an integrator 4, a phase detection module 5, a digital to analog converter (DAC) 6, a first switch 7, a comparator 8 and a third switch 9.

該第一工作週期校正器3用於接收一對外部時脈信號xclk、xclkn,並根據該對外部時脈信號xclk、xclkn產生一對第一內部時脈信號clk1、clkn1。在本實施例中,該對外部時脈信號xclk、xclkn為互補信號,該對第一內部時脈信號clk1、clkn1為互補信號。 The first duty cycle corrector 3 is used to receive a pair of external clock signals xclk, xclkn, and generate a pair of first internal clock signals clk1, clkn1 according to the pair of external clock signals xclk, xclkn. In this embodiment, the pair of external clock signals xclk, xclkn are complementary signals, and the pair of first internal clock signals clk1, clkn1 are complementary signals.

該積分器4耦接該第一工作週期校正器3以接收該對第一內部時脈信號clk1、clkn1,並根據該對第一內部時脈信號clk1、clkn1產生一對回授時脈信號fck、fckb(為類比信號),且將該對回授時脈信號fck、fckb傳輸至該第一工作週期校正器3,以致該第一工作週期校正器3根據該對回授時脈信號fck、fckb持續調整該對第一內部時脈信號clk1、clkn1各自的工作週期至一預定工作週期。在本實施例中,該對回授時脈信號fck、fckb為互補信號,該預定工作週期為50%。需說明的是,由於當工作週期相等於50%時,資料的傳輸是最可靠的,因此為了確保工作週期有足夠的設計限度,需要利用工作週期校正裝置2來校正內部時脈信號的工作週期至50%。 The integrator 4 is coupled to the first duty cycle corrector 3 to receive the pair of first internal clock signals clk1, clkn1, and generates a pair of feedback clock signals fck, fckb (which are analog signals) according to the pair of first internal clock signals clk1, clkn1, and transmits the pair of feedback clock signals fck, fckb to the first duty cycle corrector 3, so that the first duty cycle corrector 3 continuously adjusts the respective duty cycles of the pair of first internal clock signals clk1, clkn1 to a predetermined duty cycle according to the pair of feedback clock signals fck, fckb. In this embodiment, the pair of feedback clock signals fck, fckb are complementary signals, and the predetermined duty cycle is 50%. It should be noted that, since data transmission is most reliable when the duty cycle is equal to 50%, in order to ensure that the duty cycle has sufficient design limits, a duty cycle correction device 2 is required to correct the duty cycle of the internal clock signal to 50%.

該相位檢測模組5用於接收該對外部時脈信號xclk、xclkn,並根據該對外部時脈信號xclk、xclkn產生一對第二內部時脈信號clk2、clkn2,且耦接該第一工作週期校正器3以接收該對第一內部時脈信號clk1、clkn1中的一者。該相位檢測模組5於該對第一內部時脈信號clk1、clkn1各自的工作週期被調整至該預定工作週期時,將該對第一內部時脈信號clk1、clkn1中的該者與該對第二內部 時脈信號clk2、clkn2中的一者進行相位比較,以產生一相位檢測結果Pr。在本實施例中,該對第二內部時脈信號clk2、clkn2為互補信號。需說明的是,在本實施例中,該對第一內部時脈信號clk1、clkn1中的該者是以該第一內部時脈信號clk1為例說明,將該第一內部時脈信號clk1作為參考時脈信號,以供該相位檢測模組5作為相位比較的基準,該對第二內部時脈信號clk2、clkn2中的該者是以該第二內部時脈信號clk2為例說明,但不限於此。在其他實施例中,該對第一內部時脈信號clk1、clkn1中的該者可以該第一內部時脈信號clkn1為例,該對第二內部時脈信號clk2、clkn2中的該者可以該第二內部時脈信號clkn2為例。因此,為求簡潔起見,以下將該對第一內部時脈信號clk1、clkn1中的該者,簡稱該第一內部時脈信號clk1,將該對第二內部時脈信號clk2、clkn2中的該者,簡稱該第二內部時脈信號clk2。 The phase detection module 5 is used to receive the pair of external clock signals xclk, xclkn, and generate a pair of second internal clock signals clk2, clkn2 according to the pair of external clock signals xclk, xclkn, and is coupled to the first duty cycle corrector 3 to receive one of the pair of first internal clock signals clk1, clkn1. When the duty cycles of the pair of first internal clock signals clk1, clkn1 are adjusted to the predetermined duty cycle, the phase detection module 5 compares the phase of the pair of first internal clock signals clk1, clkn1 with the phase of the pair of second internal clock signals clk2, clkn2 to generate a phase detection result Pr. In the present embodiment, the pair of second internal clock signals clk2 and clkn2 are complementary signals. It should be noted that in the present embodiment, the pair of first internal clock signals clk1 and clkn1 is explained by taking the first internal clock signal clk1 as an example, and the first internal clock signal clk1 is used as a reference clock signal for the phase detection module 5 to use as a benchmark for phase comparison, and the pair of second internal clock signals clk2 and clkn2 is explained by taking the second internal clock signal clk2 as an example, but is not limited thereto. In other embodiments, the one of the pair of first internal clock signals clk1 and clkn1 can be the first internal clock signal clkn1, and the one of the pair of second internal clock signals clk2 and clkn2 can be the second internal clock signal clkn2. Therefore, for the sake of simplicity, the one of the pair of first internal clock signals clk1 and clkn1 is referred to as the first internal clock signal clk1, and the one of the pair of second internal clock signals clk2 and clkn2 is referred to as the second internal clock signal clk2.

在本實施例中,該相位檢測模組5包括一第二工作週期校正器51、一相位檢測器52及一第二開關53。 In this embodiment, the phase detection module 5 includes a second duty cycle corrector 51, a phase detector 52 and a second switch 53.

該第二工作週期校正器51用於接收該對外部時脈信號xclk、xclkn,並根據該對外部時脈信號xclk、xclkn產生該對第二內部時脈信號clk2、clkn2。該相位檢測器52耦接該第一工作週期校正器3以接收該第一內部時脈信號clk1,且耦接該第二工作週期校正器51以接收該第二內部時脈信號clk2,並將該第一內部時脈信號clk1與該第二內部時脈信號clk2進行相位比較,以產生該相位檢測結果Pr。在本實施例中,該相位檢測器52將該第一內部時脈信號clk1與該第二內部時脈信號clk2進行相位比較,是比較該第一內部時脈信號clk1與該第二內部時脈信號clk2各自的單一週期的一上升緣位置。該第二開關53耦接在該相位檢測器52與該數位類比轉換器6間,且受一第二切換信號控制而導通或不導通。當 該對第一內部時脈信號clk1、clkn1各自的工作週期被調整至該預定工作週期時,該第二開關53受該第二切換信號控制而從不導通切換至導通,且接收來自該相位檢測器52的該相位檢測結果Pr並傳輸至該數位類比轉換器6。該相位檢測器52具體可以是由例如相位差判斷器、計時器及邏輯電路來實現。 The second duty cycle corrector 51 is used to receive the pair of external clock signals xclk, xclkn, and generate the pair of second internal clock signals clk2, clkn2 according to the pair of external clock signals xclk, xclkn. The phase detector 52 is coupled to the first duty cycle corrector 3 to receive the first internal clock signal clk1, and is coupled to the second duty cycle corrector 51 to receive the second internal clock signal clk2, and compares the phases of the first internal clock signal clk1 and the second internal clock signal clk2 to generate the phase detection result Pr. In this embodiment, the phase detector 52 compares the phases of the first internal clock signal clk1 and the second internal clock signal clk2, that is, compares the rising edge position of the first internal clock signal clk1 and the second internal clock signal clk2 in a single cycle. The second switch 53 is coupled between the phase detector 52 and the digital-to-analog converter 6, and is controlled by a second switching signal to be turned on or off. When the respective duty cycles of the pair of first internal clock signals clk1 and clkn1 are adjusted to the predetermined duty cycle, the second switch 53 is controlled by the second switching signal to switch from being turned off to being turned on, and receives the phase detection result Pr from the phase detector 52 and transmits it to the digital-to-analog converter 6. The phase detector 52 can be implemented by, for example, a phase difference determiner, a timer, and a logic circuit.

需說明的是,該第一工作週期校正器3與該第二工作週期校正器51在調整該對第一內部時脈信號clk1、clkn1與該對第二內部時脈信號clk2、clkn2之工作週期的機制是將內部產生的信號的波形往上拉或往下拉,以藉此確定工作週期,以致工作週期會與第一內部時脈信號與第二內部時脈信號之單一周期的上升緣位置(電壓上升的位置)相關,因此利用該相位檢測器52比較該第一內部時脈信號clk1與該第二內部時脈信號clk2各自之單一周期的該上升緣位置,可快速決定如何調整該第二內部時脈信號clk2的工作週期。舉例來說,該第一內部時脈信號clk1的工作週期為50%,該第二內部時脈信號clk2的工作週期為40%,該第二內部時脈信號clk2的上升緣位置落後該第一內部時脈信號clk1的上升緣位置時,需將該第二工作週期校正器51內部產生的信號的波形往上拉,如此該第二內部時脈信號clk2經過調整後,其調整後的上升緣位置會領先其調整前的上升緣位置(即,該第二內部時脈信號clk2的工作週期增加)。相反地,若該第二內部時脈信號clk2的工作週期為60%,該第二內部時脈信號clk2的上升緣位置領先該第一內部時脈信號clk1的上升緣位置時,需將該第二工作週期校正器51內部產生的信號的波形往下拉,如此該第二內部時脈信號clk2經過調整後,其調整後的上升緣位置會落後其調整前的上升緣位置(即,該第二內部時脈信號clk2的工作週期減少)。 It should be noted that the mechanism of the first duty cycle corrector 3 and the second duty cycle corrector 51 in adjusting the duty cycles of the pair of first internal clock signals clk1, clkn1 and the pair of second internal clock signals clk2, clkn2 is to pull up or down the waveform of the internally generated signal to determine the duty cycle, so that the duty cycle will be related to the rising edge position (the position of the voltage rise) of the first internal clock signal and the second internal clock signal in a single cycle. Therefore, by using the phase detector 52 to compare the rising edge position of the first internal clock signal clk1 and the second internal clock signal clk2 in each single cycle, it can be quickly determined how to adjust the duty cycle of the second internal clock signal clk2. For example, the duty cycle of the first internal clock signal clk1 is 50%, and the duty cycle of the second internal clock signal clk2 is 40%. When the rising edge position of the second internal clock signal clk2 lags behind the rising edge position of the first internal clock signal clk1, the waveform of the signal generated inside the second duty cycle corrector 51 needs to be pulled up, so that after the second internal clock signal clk2 is adjusted, its adjusted rising edge position will lead its rising edge position before adjustment (that is, the duty cycle of the second internal clock signal clk2 increases). On the contrary, if the duty cycle of the second internal clock signal clk2 is 60%, when the rising edge position of the second internal clock signal clk2 leads the rising edge position of the first internal clock signal clk1, the waveform of the signal generated inside the second duty cycle corrector 51 needs to be pulled down, so that after the second internal clock signal clk2 is adjusted, its adjusted rising edge position will lag behind its rising edge position before adjustment (that is, the duty cycle of the second internal clock signal clk2 is reduced).

該數位類比轉換器6耦接該相位檢測模組5以接收該相位檢測結果Pr,並根據該相位檢測結果Pr產生對應一數位碼的一對類比信號creg、cregb,且將該對類比信號creg、cregb傳輸至該相位檢測模組5,以致該相位檢測模組5根據該對類比信號creg、cregb調整該對第二內部時脈信號clk2、clkn2各自的工作週期。需注意的是,該數位類比轉換器6是依序接收多個相位檢測結果Pr並據以依序產生多對類比信號creg、cregb,以供該相位檢測模組5調整該對第二內部時脈信號clk2、clkn2各自的工作週期直到該對第二內部時脈信號clk2、clkn2各自的工作週期被調整為該預定工作週期。當該對第二內部時脈信號clk2、clkn2各自的工作週期被調整至該預定工作週期時,該數位類比轉換器6儲存對應的該對類比信號creg、cregb所對應的該數位碼至其內部的一儲存器(圖未示),且在該數位類比轉換器6儲存該數位碼時,該第二開關53受該第二切換信號控制而從導通切換至不導通,以致該相位檢測模組5停止運作。在本實施例中,該對類比信號為互補信號。該數位類比轉換器6可根據該相位檢測結果Pr得知該對第二內部時脈信號clk2、clkn2各自的工作週期是否被調整至該預定工作週期。舉例來說,當該相位檢測結果Pr指示該第一內部時脈信號clk1與該第二內部時脈信號clk2各自的單一週期的該上升緣位置相同時,即該對第二內部時脈信號clk2、clkn2各自的工作週期被調整至該預定工作週期,該數位類比轉換器6儲存對應的該對類比信號creg、cregb所對應的該數位碼至該儲存器。 The digital-to-analog converter 6 is coupled to the phase detection module 5 to receive the phase detection result Pr, and generates a pair of analog signals creg, cregb corresponding to a digital code according to the phase detection result Pr, and transmits the pair of analog signals creg, cregb to the phase detection module 5, so that the phase detection module 5 adjusts the respective working cycles of the pair of second internal clock signals clk2, clkn2 according to the pair of analog signals creg, cregb. It should be noted that the digital-to-analog converter 6 sequentially receives a plurality of phase detection results Pr and sequentially generates a plurality of pairs of analog signals creg, cregb accordingly, so that the phase detection module 5 can adjust the respective duty cycles of the pair of second internal clock signals clk2, clkn2 until the respective duty cycles of the pair of second internal clock signals clk2, clkn2 are adjusted to the predetermined duty cycles. When the duty cycle of the pair of second internal clock signals clk2 and clkn2 is adjusted to the predetermined duty cycle, the digital-to-analog converter 6 stores the digital code corresponding to the pair of analog signals creg and cregb in a memory (not shown) inside the digital-to-analog converter 6, and when the digital-to-analog converter 6 stores the digital code, the second switch 53 is controlled by the second switching signal to switch from conducting to non-conducting, so that the phase detection module 5 stops operating. In this embodiment, the pair of analog signals are complementary signals. The digital-to-analog converter 6 can know whether the duty cycle of the pair of second internal clock signals clk2 and clkn2 is adjusted to the predetermined duty cycle according to the phase detection result Pr. For example, when the phase detection result Pr indicates that the rising edge positions of the first internal clock signal clk1 and the second internal clock signal clk2 in a single cycle are the same, that is, the respective duty cycles of the pair of second internal clock signals clk2 and clkn2 are adjusted to the predetermined duty cycle, the digital-to-analog converter 6 stores the digital code corresponding to the corresponding pair of analog signals creg and cregb in the register.

該第一開關7耦接在該第一工作週期校正器3與該數位類比轉換器6間。當該對第二內部時脈信號clk2、clkn2各自的工作週期被調整至該預定工作週期,且該數位類比轉換器6儲存有對應的該對類比信號creg、cregb所對應的該數位碼時,該第一開關7受一第一切換信號控制而從不導通切換至導通,且接 收來自該數位類比轉換器6的該對類比信號creg、cregb並傳輸至該第一工作週期校正器3。 The first switch 7 is coupled between the first duty cycle corrector 3 and the digital-to-analog converter 6. When the duty cycles of the pair of second internal clock signals clk2 and clkn2 are adjusted to the predetermined duty cycle, and the digital-to-analog converter 6 stores the digital code corresponding to the corresponding pair of analog signals creg and cregb, the first switch 7 is controlled by a first switching signal to switch from non-conduction to conduction, and receives the pair of analog signals creg and cregb from the digital-to-analog converter 6 and transmits them to the first duty cycle corrector 3.

該比較器8耦接該積分器4以接收該對回授時脈信號fck、fckb,並根據該對回授時脈信號fck、fckb產生一比較結果Cr。 The comparator 8 is coupled to the integrator 4 to receive the pair of feedback clock signals fck, fckb, and generates a comparison result Cr according to the pair of feedback clock signals fck, fckb.

該第三開關9耦接在該比較器8與該數位類比轉換器6間,且受一第三切換信號控制而導通或不導通。當該對第二內部時脈信號clk2、clkn2各自的工作週期被調整至該預定工作週期,且該數位類比轉換器6儲存有該對類比信號creg、cregb所對應的該數位碼時,該第三開關9受該第三切換信號控制而從不導通切換至導通,且接收來自該比較器8的該比較結果Cr並傳輸至該數位類比轉換器6,以致該數位類比轉換器6從原本根據該相位檢測結果Pr產生該對類比信號creg、cregb,變成根據該比較結果Cr產生一對類比信號輸出creg’、cregb’。 The third switch 9 is coupled between the comparator 8 and the digital-to-analog converter 6 and is controlled by a third switching signal to be turned on or off. When the duty cycles of the pair of second internal clock signals clk2 and clkn2 are adjusted to the predetermined duty cycle, and the digital-to-analog converter 6 stores the digital code corresponding to the pair of analog signals creg and cregb, the third switch 9 is controlled by the third switching signal to switch from non-conduction to conduction, and receives the comparison result Cr from the comparator 8 and transmits it to the digital-to-analog converter 6, so that the digital-to-analog converter 6 changes from originally generating the pair of analog signals creg and cregb according to the phase detection result Pr to generating a pair of analog signal outputs creg' and cregb' according to the comparison result Cr.

需補充說明的是,本實施例該工作週期校正裝置2還包括用於提供該第一切換信號、該第二切換信號及該第三切換信號以分別控制該第一開關7、該第二開關53及該第三開關9決定何時導通或不導通的一控制器(圖未示)。該控制器可根據該相位檢測結果Pr或該比較結果Cr來產生該第一切換至該第三切換信號。該控制器也可由一計數器經由計數的方式來產生該第一切換至該第三切換信號。該控制器的配置與操作為熟悉本技術領域之通常知識者所熟知,為求簡潔起見,於此不贅述。 It should be noted that the duty cycle correction device 2 of the present embodiment further includes a controller (not shown) for providing the first switching signal, the second switching signal and the third switching signal to respectively control the first switch 7, the second switch 53 and the third switch 9 to determine when to conduct or not conduct. The controller can generate the first switching to the third switching signal according to the phase detection result Pr or the comparison result Cr. The controller can also generate the first switching to the third switching signal by counting a counter. The configuration and operation of the controller are well known to those skilled in the art, and for the sake of brevity, they are not described here.

進一步參閱圖4,說明該第一工作週期校正器3的一實施例。該第一工作週期校正器3包括一偏壓電路31、一輸入輸出對32、一第一輸入對33及一第二輸入對34。 Further referring to FIG. 4 , an embodiment of the first duty cycle corrector 3 is described. The first duty cycle corrector 3 includes a bias circuit 31, an input-output pair 32, a first input pair 33 and a second input pair 34.

該偏壓電路31包括五個NMOS電晶體311、312、313、314、315及二電壓源316、317,用以接收一偏壓電壓Vb及一致能信號En1。該輸入輸出對32包括一第一電晶體321與一第二電晶體322。該第一電晶體321與該第二電晶體322各自具有一第一端、一耦接該偏壓電路31的第二端,及一控制端。該第一電晶體321與該第二電晶體322的該等第一端相配合輸出該對第一內部時脈信號clk1、clkn1。該第一電晶體321與該第二電晶體322的該等控制端相配合接收該對外部時脈信號xclk、xclkn。該第一輸入對33包括一第三電晶體331與一第四電晶體332。該第三電晶體331與該第四電晶體332各自具有一第一端、一耦接該偏壓電路31的第二端,及一控制端。該第三電晶體331與該第四電晶體332的該等控制端相配合接收該對回授時脈信號fck、fckb。該第三電晶體331的該第一端耦接該第一電晶體321的該第一端。該第四電晶體332的該第一端耦接該第二電晶體322的該第一端。該第二輸入對34包括一第五電晶體341與一第六電晶體342,該第五電晶體341與該第六電晶體342各自具有一用於接收一供電電壓Vcc的第一端、一第二端,及一控制端。該第五電晶體341與該第六電晶體342的該等控制端相配合接收該對類比信號creg、cregb。該第五電晶體341的該第二端耦接該第一電晶體321的該第一端。該第六電晶體342的該第二端耦接該第二電晶體322的該第一端。該第一電晶體321、該第二電晶體322、該第三電晶體331與該第四電晶體332各自為NMOS電晶體。該第五電晶體341與該第六電晶體342各自為PMOS電晶體。在本實施例中,該第二工作週期校正器51的配置與該第一工作週期校正器3相似,此為熟悉本技術領域之通常知識者所熟知,為求簡潔起見,於此不贅述。 The bias circuit 31 includes five NMOS transistors 311, 312, 313, 314, 315 and two voltage sources 316, 317, which are used to receive a bias voltage Vb and an enable signal En1. The input-output pair 32 includes a first transistor 321 and a second transistor 322. The first transistor 321 and the second transistor 322 each have a first end, a second end coupled to the bias circuit 31, and a control end. The first ends of the first transistor 321 and the second transistor 322 cooperate to output the pair of first internal clock signals clk1, clkn1. The control ends of the first transistor 321 and the second transistor 322 cooperate to receive the pair of external clock signals xclk, xclkn. The first input pair 33 includes a third transistor 331 and a fourth transistor 332. The third transistor 331 and the fourth transistor 332 each have a first end, a second end coupled to the bias circuit 31, and a control end. The control ends of the third transistor 331 and the fourth transistor 332 cooperate to receive the pair of feedback clock signals fck, fckb. The first end of the third transistor 331 is coupled to the first end of the first transistor 321. The first end of the fourth transistor 332 is coupled to the first end of the second transistor 322. The second input pair 34 includes a fifth transistor 341 and a sixth transistor 342, and the fifth transistor 341 and the sixth transistor 342 each have a first end for receiving a supply voltage Vcc, a second end, and a control end. The control terminals of the fifth transistor 341 and the sixth transistor 342 cooperate to receive the pair of analog signals creg and cregb. The second terminal of the fifth transistor 341 is coupled to the first terminal of the first transistor 321. The second terminal of the sixth transistor 342 is coupled to the first terminal of the second transistor 322. The first transistor 321, the second transistor 322, the third transistor 331 and the fourth transistor 332 are each NMOS transistors. The fifth transistor 341 and the sixth transistor 342 are each PMOS transistors. In this embodiment, the configuration of the second duty cycle corrector 51 is similar to that of the first duty cycle corrector 3, which is well known to those skilled in the art, and will not be described in detail for the sake of brevity.

進一步參閱圖5,說明該積分器4的一實施例。該積分器4包括一泵激電路41、一第一電容42及一第二電容43。 Further referring to FIG. 5 , an embodiment of the integrator 4 is described. The integrator 4 includes a pump circuit 41, a first capacitor 42 and a second capacitor 43.

該泵激電路41耦接該第一工作週期校正器3以接收該對第一內部時脈信號clk1、clkn1,並根據該對第一內部時脈信號clk1、clkn1產生該對回授時脈信號fck、fckb。該泵激電路41包括四個開關411、412、413、414,及四個電流源415、416、417、418。該等開關411、414受該第一內部時脈信號clk1控制而導通或不導通。該等開關412、413受該第一內部時脈信號clkn1控制而導通或不導通。該等開關411、412的一共同接點提供該回授時脈信號fck。該等開關413、414的一共同接點提供該回授時脈信號fckb。該第一電容42耦接在該泵激電路41的該等開關411、412的該共同接點與一接地端間。該第二電容43耦接在該泵激電路41的該等開關413、414的該共同接點與該接地端間。 The pump circuit 41 is coupled to the first duty cycle corrector 3 to receive the pair of first internal clock signals clk1, clkn1, and generates the pair of feedback clock signals fck, fckb according to the pair of first internal clock signals clk1, clkn1. The pump circuit 41 includes four switches 411, 412, 413, 414, and four current sources 415, 416, 417, 418. The switches 411, 414 are controlled by the first internal clock signal clk1 to be turned on or off. The switches 412, 413 are controlled by the first internal clock signal clkn1 to be turned on or off. A common connection point of the switches 411, 412 provides the feedback clock signal fck. A common connection point of the switches 413 and 414 provides the feedback clock signal fckb. The first capacitor 42 is coupled between the common connection point of the switches 411 and 412 of the pump circuit 41 and a ground terminal. The second capacitor 43 is coupled between the common connection point of the switches 413 and 414 of the pump circuit 41 and the ground terminal.

進一步參閱圖6,說明該比較器8的一實施例。該比較器8包括一比較電路81及一邏輯電路82。 Further referring to FIG. 6 , an embodiment of the comparator 8 is described. The comparator 8 includes a comparison circuit 81 and a logic circuit 82.

該比較電路81耦接該積分器4以接收該對回授時脈信號fck、fckb,且接收一控制信號DK。該比較電路81包括六個NMOS電晶體810、811、812、813、814、815及四個PMOS電晶體816、817、818、819。該比較電路81根據該控制信號DK決定是否將該對回授時脈信號fck、fckb各自的電位進行比較,以產生一比較信號。該邏輯電路82耦接該比較電路81以接收該比較信號,並根據該比較信號產生該比較結果Cr。該邏輯電路82包括四個反閘821、822、823、824及二個反及閘825、826。在本實施例中,當該控制信號DK具有高邏輯準位時,該比較電路81進行比較;當該控制信號DK具有低邏輯準位時,該比較電路81停止進行比較。 The comparison circuit 81 is coupled to the integrator 4 to receive the pair of feedback clock signals fck, fckb and a control signal DK. The comparison circuit 81 includes six NMOS transistors 810, 811, 812, 813, 814, 815 and four PMOS transistors 816, 817, 818, 819. The comparison circuit 81 determines whether to compare the potentials of the pair of feedback clock signals fck, fckb according to the control signal DK to generate a comparison signal. The logic circuit 82 is coupled to the comparison circuit 81 to receive the comparison signal and generates the comparison result Cr according to the comparison signal. The logic circuit 82 includes four anti-gates 821, 822, 823, 824 and two anti-AND gates 825, 826. In this embodiment, when the control signal DK has a high logic level, the comparison circuit 81 performs comparison; when the control signal DK has a low logic level, the comparison circuit 81 stops comparing.

進一步參閱圖7,說明該數位類比轉換器6的一實施例。圖7以該數位類比轉換器6根據該比較結果Cr產生該對類比信號輸出creg’、cregb’為例。該數位類比轉換器6包括一控制電路61、多個偏壓電路62、63、64及多個電流鏡 電路65、66、67。在本實施例中,偏壓電路的數量為三個,電流鏡電路的數量為三個,但不限於此,在其他實施例中,偏壓電路的數量與電流鏡電路的數量相同,數量可為二個或大於三個。 Further referring to FIG. 7, an embodiment of the digital-to-analog converter 6 is described. FIG. 7 takes the digital-to-analog converter 6 generating the pair of analog signal outputs creg' and cregb' according to the comparison result Cr as an example. The digital-to-analog converter 6 includes a control circuit 61, a plurality of bias circuits 62, 63, 64, and a plurality of current mirror circuits 65, 66, 67. In this embodiment, the number of bias circuits is three, and the number of current mirror circuits is three, but it is not limited thereto. In other embodiments, the number of bias circuits is the same as the number of current mirror circuits, and the number may be two or more than three.

該控制電路61耦接該第三開關9以自該比較器8接收該比較結果Cr,且根據該比較結果Cr產生多對控制信號creg[0]、cregb[0]、creg[1]、cregb[1]、creg[2]、cregb[2]。該等偏壓電路62、63、64中的每一者包括依序串接的一第一電晶體N1、一第二電晶體N2及一電壓源VS。該第一電晶體N1與該第二電晶體N2各自具有一第一端、一第二端,及一控制端。該第一電晶體N1的該控制端用於接收一致能信號En2。該第二電晶體N2的該第一端與該第二端分別耦接該第一電晶體N1的該第二端與該電壓源VS,且該第二電晶體N2的該控制端用於接收該偏壓電壓Vb。該等電流鏡電路65、66、67中的每一者包括一第三電晶體N3與一第四電晶體N4。該第三電晶體N3與該第四電晶體N4各自具有一第一端、一耦接該第一電晶體N1的該第一端的第二端,及一控制端。該第三電晶體N3與該第四電晶體N4的該等第一端用以相配合輸出該對類比信號輸出creg’、cregb’。該第三電晶體N3與該第四電晶體N4的該等控制端耦接該控制電路61且相配合接收該多對控制信號creg[0]、cregb[0]、creg[1]、cregb[1]、creg[2]、cregb[2]中的一對控制信號,並受對應的該對控制信號控制而導通或不導通。 The control circuit 61 is coupled to the third switch 9 to receive the comparison result Cr from the comparator 8, and generates a plurality of pairs of control signals creg[0], cregb[0], creg[1], cregb[1], creg[2], cregb[2] according to the comparison result Cr. Each of the bias circuits 62, 63, 64 includes a first transistor N1, a second transistor N2, and a voltage source VS connected in series in sequence. The first transistor N1 and the second transistor N2 each have a first terminal, a second terminal, and a control terminal. The control terminal of the first transistor N1 is used to receive an enable signal En2. The first end and the second end of the second transistor N2 are coupled to the second end of the first transistor N1 and the voltage source VS, respectively, and the control end of the second transistor N2 is used to receive the bias voltage Vb. Each of the current mirror circuits 65, 66, and 67 includes a third transistor N3 and a fourth transistor N4. The third transistor N3 and the fourth transistor N4 each have a first end, a second end coupled to the first end of the first transistor N1, and a control end. The first ends of the third transistor N3 and the fourth transistor N4 are used to cooperate to output the pair of analog signal outputs creg’ and cregb’. The control terminals of the third transistor N3 and the fourth transistor N4 are coupled to the control circuit 61 and cooperate to receive a pair of control signals among the plurality of pairs of control signals creg[0], cregb[0], creg[1], cregb[1], creg[2], cregb[2], and are controlled by the corresponding pair of control signals to be turned on or off.

參閱圖3與圖8,圖8為該工作週期校正裝置2將該對第一內部時脈信號clk1、clkn1及該對第二內部時脈信號clk2、clkn2調整至該預定工作週期及取得對應的數位碼(即,完成工作週期調整作業)所需時間的示意圖。符號fckr為對應該第一內部時脈信號clk1(其工作週期已被調整至該預定工作週期的參考時脈 信號)的一回授時脈信號。符號fckbr為對應該第二內部時脈信號clk2的一回授時脈信號。 Referring to FIG. 3 and FIG. 8, FIG. 8 is a schematic diagram showing the time required for the duty cycle correction device 2 to adjust the pair of first internal clock signals clk1, clkn1 and the pair of second internal clock signals clk2, clkn2 to the predetermined duty cycle and obtain the corresponding digital code (i.e., complete the duty cycle adjustment operation). Symbol fckr is a feedback clock signal corresponding to the first internal clock signal clk1 (whose duty cycle has been adjusted to the reference clock signal of the predetermined duty cycle). Symbol fckbr is a feedback clock signal corresponding to the second internal clock signal clk2.

首先,在時間T2前,該第一開關7、該第二開關53及該第三開關9不導通。該第一工作週期校正器3根據該對回授時脈信號fck、fckb將該對第一內部時脈信號clk1、clkn1各自的工作週期快速調整至該預定工作週期(所需時間為32個系統時脈週期tck)。該數位類比轉換器6根據預設輸入信號產生對應預設數位碼為32的一對類比信號creg、cregb。接著,在時間T2至時間T3間,該第一開關7及該第三開關9持續不導通,該第二開關53從不導通切換為導通。該相位檢測器52依序產生多個相位檢測結果Pr,且該數位類比轉換器6根據多個相位檢測結果Pr依序產生分別對應多個數位碼(分別為48、56、60、62)的多對類比信號creg、cregb,以供該第二工作週期校正器51據以依序調整該對第二內部時脈信號clk2、clkn2的工作週期。從圖8可知,直到使用對應數位碼為62的該對類比信號creg、cregb來對該對第二內部時脈信號clk2、clkn2調整其工作週期時,該等回授時脈信號fckr、fckbr逐漸相同,亦即該第二內部時脈信號clk2的工作週期與該第一內部時脈信號clk1相同,該第二內部時脈信號clk2的工作週期被調整至符合所需要的該預定工作週期,此時該數位類比轉換器6儲存對應的該對類比信號creg、cregb所對應的該數位碼(即,62),進而該工作週期校正裝置2完成工作週期調整作業。在此情況下,由於該相位檢測器52是直接比較該第一內部時脈信號clk1與該第二內部時脈信號clk2各自的單一週期的一上升緣位置(不需如現有工作週期校正裝置需要等到一對回授時脈信號的強度差異達到一特定強度值時,比較器才能產生比較結果信號給數位類比轉換器),故產生每一相位檢測結果Pr所需的時間僅約2個系統時脈週期tck,因此該數位類比轉換器6根據每一 相位檢測結果Pr產生每一對類比信號creg、cregb所需時間約為2個系統時脈週期tck。如此一來,於圖8的情況下,該工作週期校正裝置2總共需要花費32+4*2=40個系統時脈週期tck的操作時間,即可將該對第一內部時脈信號clk1、clkn1及該對第二內部時脈信號clk2、clkn2調整至該預定工作週期,及取得可以將該第二內部時脈信號clk2調整到該預定工作週期的類比信號creg、cregb所對應的數位碼(即,完成工作週期調整作業),相較於現有工作週期校正裝置需要992個系統時脈週期tck的操作時間才能完成工作週期調整作業,本發明該工作週期校正裝置2能夠快速完成工作週期調整作業。 First, before time T2, the first switch 7, the second switch 53 and the third switch 9 are not conducting. The first duty cycle corrector 3 quickly adjusts the duty cycles of the pair of first internal clock signals clk1, clkn1 to the predetermined duty cycle (the required time is 32 system clock cycles tck) according to the pair of feedback clock signals fck, fckb. The digital-to-analog converter 6 generates a pair of analog signals creg, cregb corresponding to the preset digital code 32 according to the preset input signal. Then, from time T2 to time T3, the first switch 7 and the third switch 9 are continuously not conducting, and the second switch 53 is switched from not conducting to conducting. The phase detector 52 generates a plurality of phase detection results Pr in sequence, and the digital-to-analog converter 6 generates a plurality of pairs of analog signals creg, cregb corresponding to a plurality of digital codes (48, 56, 60, 62 respectively) in sequence according to the plurality of phase detection results Pr, so that the second duty cycle corrector 51 can adjust the duty cycle of the pair of second internal clock signals clk2, clkn2 in sequence accordingly. As can be seen from FIG8 , until the pair of analog signals creg, cregb with the corresponding digital code 62 is used to adjust the duty cycle of the pair of second internal clock signals clk2, clkn2, the feedback clock signals fckr, fckbr gradually become the same, that is, the duty cycle of the second internal clock signal clk2 is the same as the first internal clock signal clk1, and the duty cycle of the second internal clock signal clk2 is adjusted to meet the required predetermined duty cycle. At this time, the digital-to-analog converter 6 stores the digital code (i.e., 62) corresponding to the pair of analog signals creg, cregb, and the duty cycle correction device 2 completes the duty cycle adjustment operation. In this case, since the phase detector 52 directly compares the rising edge position of the first internal clock signal clk1 and the second internal clock signal clk2 in a single cycle (there is no need to wait until the strength difference of a pair of feedback clock signals reaches a specific strength value as in the existing duty cycle correction device before the comparator can generate a comparison result signal to the digital-to-analog converter), the time required to generate each phase detection result Pr is only about 2 system clock cycles tck. Therefore, the time required for the digital-to-analog converter 6 to generate each pair of analog signals creg and cregb according to each phase detection result Pr is about 2 system clock cycles tck. Thus, in the case of FIG. 8 , the duty cycle correction device 2 needs to spend a total of 32+4*2=40 system clock cycles tck operating time to adjust the pair of first internal clock signals clk1, clkn1 and the pair of second internal clock signals clk2, clkn2 to the predetermined duty cycle, and obtain the digital code corresponding to the analog signal creg, cregb that can adjust the second internal clock signal clk2 to the predetermined duty cycle (i.e., complete the duty cycle adjustment operation). Compared with the existing duty cycle correction device that needs 992 system clock cycles tck operating time to complete the duty cycle adjustment operation, the duty cycle correction device 2 of the present invention can quickly complete the duty cycle adjustment operation.

需說明的是,該數位類比轉換器6是利用每一相位檢測結果Pr及執行一二元搜尋(Binary Search)演算法來決定每一轉換週期中一數位碼的相應位元,進而取得數位碼48、56、60、62,如此可減少使用該相位檢測器52比較該第一內部時脈信號clk1與該第二內部時脈信號clk2之相位的次數(因每一數位碼相關於該相位檢測器52所產生的一相位檢測結果)。於時間T3後,該第一開關7及該第三開關9從不導通切換為導通,該第二開關53從導通切換為不導通(該相位檢測模組5停止運作)。該第一工作週期校正器3使用該對回授時脈信號fck、fckb來對該對第一內部時脈信號clk1、clkn1的工作週期隨時進行調整。 It should be noted that the digital-to-analog converter 6 uses each phase detection result Pr and executes a binary search algorithm to determine the corresponding bit of a digital code in each conversion cycle, thereby obtaining digital codes 48, 56, 60, and 62. This can reduce the number of times the phase detector 52 is used to compare the phases of the first internal clock signal clk1 and the second internal clock signal clk2 (because each digital code is related to a phase detection result generated by the phase detector 52). After time T3, the first switch 7 and the third switch 9 are switched from non-conductive to conductive, and the second switch 53 is switched from conductive to non-conductive (the phase detection module 5 stops operating). The first duty cycle corrector 3 uses the pair of feedback clock signals fck and fckb to adjust the duty cycle of the pair of first internal clock signals clk1 and clkn1 at any time.

綜上所述,由於本發明工作週期校正裝置2是透過該相位檢測模組5快速產生該相位檢測結果Pr來供該數位類比轉換器6產生對應數位碼的該對類比信號creg、cregb,使該第二內部時脈信號clk2的工作週期被快速調整至該預定工作週期,及快速取得並儲存對應的該數位碼,如此一來,本發明該工作週期校正裝置2能夠較快完成工作週期調整作業。 In summary, since the duty cycle correction device 2 of the present invention uses the phase detection module 5 to quickly generate the phase detection result Pr for the digital-to-analog converter 6 to generate the pair of analog signals creg and cregb corresponding to the digital code, the duty cycle of the second internal clock signal clk2 is quickly adjusted to the predetermined duty cycle, and the corresponding digital code is quickly obtained and stored. In this way, the duty cycle correction device 2 of the present invention can complete the duty cycle adjustment operation faster.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 However, the above is only an example of the implementation of the present invention, and it cannot be used to limit the scope of the implementation of the present invention. All simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the content of the patent specification are still within the scope of the patent of the present invention.

2:工作週期校正裝置 3:第一工作週期校正器 4:積分器 5:相位檢測模組 6:數位類比轉換器 7:第一開關 8:比較器 9:第三開關 41:泵激電路 42:第一電容 43:第二電容 51:第二工作週期校正器 52:相位檢測器 53:第二開關 clk1、clkn1:第一內部時脈信號 clk2、clkn2:第二內部時脈信號 creg、cregb:類比信號 creg’、cregb’:類比信號輸出 Cr:比較結果 fck、fckb:回授時脈信號 Pr:相位檢測結果 xclk、xclkn:外部時脈信號 2: duty cycle correction device 3: first duty cycle corrector 4: integrator 5: phase detection module 6: digital-to-analog converter 7: first switch 8: comparator 9: third switch 41: pump circuit 42: first capacitor 43: second capacitor 51: second duty cycle corrector 52: phase detector 53: second switch clk1, clkn1: first internal clock signal clk2, clkn2: second internal clock signal creg, cregb: analog signal creg’, cregb’: analog signal output Cr: comparison result fck, fckb: feedback clock signal Pr: phase detection result xclk, xclkn: external clock signal

Claims (8)

一種工作週期校正裝置,包含: 一第一工作週期校正器,用於接收一對外部時脈信號,並根據該對外部時脈信號產生一對第一內部時脈信號; 一積分器,耦接該第一工作週期校正器以接收該對第一內部時脈信號,並根據該對第一內部時脈信號產生一對回授時脈信號,且將該對回授時脈信號傳輸至該第一工作週期校正器,以致該第一工作週期校正器還根據該對回授時脈信號調整該對第一內部時脈信號各自的工作週期; 一相位檢測模組,用於接收該對外部時脈信號,並根據該對外部時脈信號產生一對第二內部時脈信號,且耦接該第一工作週期校正器以接收該對第一內部時脈信號中的一者,並於該對第一內部時脈信號各自的工作週期被調整至一預定工作週期時,將該對第一內部時脈信號中的該者與該對第二內部時脈信號中的一者進行相位比較,以產生一相位檢測結果; 一數位類比轉換器,耦接該相位檢測模組以接收該相位檢測結果,並根據該相位檢測結果產生對應一數位碼的一對類比信號,且將該對類比信號傳輸至該相位檢測模組,以致該相位檢測模組還根據該對類比信號調整該對第二內部時脈信號各自的工作週期,當該對類比信號使該對第二內部時脈信號各自的工作週期被調整至該預定工作週期時,該數位類比轉換器儲存該對類比信號所對應的該數位碼; 一第一開關,耦接在該第一工作週期校正器與該數位類比轉換器間,當該數位類比轉換器儲存有該對類比信號所對應的該數位碼時,該第一開關受一第一切換信號控制而從不導通切換至導通,且接收來自該數位類比轉換器的該對類比信號並傳輸至該第一工作週期校正器; 一比較器,耦接該積分器以接收該對回授時脈信號,並根據該對回授時脈信號產生一比較結果;及 一第三開關,耦接在該比較器與該數位類比轉換器間,且受一第三切換信號控制而導通或不導通,當該數位類比轉換器儲存有該對類比信號所對應的該數位碼時,該第三開關受該第三切換信號控制而從不導通切換至導通,且接收來自該比較器的該比較結果並傳輸至該數位類比轉換器,以致該數位類比轉換器還根據該比較結果產生一對類比信號輸出 其中,該比較器包括: 一比較電路,耦接該積分器以接收該對回授時脈信號,並將該對回授時脈信號各自的電位進行比較,以產生一比較信號;及 一邏輯電路,耦接該比較電路以接收該比較信號,並根據該比較信號產生該比較結果。 A duty cycle correction device comprises: A first duty cycle corrector for receiving a pair of external clock signals and generating a pair of first internal clock signals according to the pair of external clock signals; An integrator coupled to the first duty cycle corrector to receive the pair of first internal clock signals and generate a pair of feedback clock signals according to the pair of first internal clock signals, and transmit the pair of feedback clock signals to the first duty cycle corrector, so that the first duty cycle corrector also adjusts the duty cycles of the pair of first internal clock signals according to the pair of feedback clock signals; A phase detection module, for receiving the pair of external clock signals, and generating a pair of second internal clock signals according to the pair of external clock signals, and coupled to the first duty cycle corrector to receive one of the pair of first internal clock signals, and when the duty cycles of the pair of first internal clock signals are adjusted to a predetermined duty cycle, the phase of the one of the pair of first internal clock signals is compared with one of the pair of second internal clock signals to generate a phase detection result; A digital-to-analog converter is coupled to the phase detection module to receive the phase detection result, and generates a pair of analog signals corresponding to a digital code according to the phase detection result, and transmits the pair of analog signals to the phase detection module, so that the phase detection module also adjusts the respective duty cycles of the pair of second internal clock signals according to the pair of analog signals. When the pair of analog signals adjusts the respective duty cycles of the pair of second internal clock signals to the predetermined duty cycle, the digital-to-analog converter stores the digital code corresponding to the pair of analog signals; A first switch coupled between the first duty cycle corrector and the digital-to-analog converter. When the digital-to-analog converter stores the digital code corresponding to the pair of analog signals, the first switch is controlled by a first switching signal to switch from non-conduction to conduction, and receives the pair of analog signals from the digital-to-analog converter and transmits them to the first duty cycle corrector; A comparator coupled to the integrator to receive the pair of feedback clock signals and generate a comparison result according to the pair of feedback clock signals; and A third switch is coupled between the comparator and the digital-to-analog converter and is controlled by a third switching signal to be turned on or off. When the digital-to-analog converter stores the digital code corresponding to the pair of analog signals, the third switch is controlled by the third switching signal to switch from off to on, and receives the comparison result from the comparator and transmits it to the digital-to-analog converter, so that the digital-to-analog converter also generates a pair of analog signal outputs according to the comparison result. Wherein, the comparator includes: A comparison circuit is coupled to the integrator to receive the pair of feedback clock signals, and compares the potentials of the pair of feedback clock signals to generate a comparison signal; and A logic circuit is coupled to the comparison circuit to receive the comparison signal and generate the comparison result according to the comparison signal. 如請求項1所述的工作週期校正裝置,其中,該相位檢測模組包括: 一第二工作週期校正器,用於接收該對外部時脈信號,並根據該對外部時脈信號產生該對第二內部時脈信號; 一相位檢測器,耦接該第一工作週期校正器以接收該對第一內部時脈信號中的該者,且耦接該第二工作週期校正器以接收該對第二內部時脈信號中的該者,並將該對第一內部時脈信號中的該者與該對第二內部時脈信號中的該者進行相位比較,以產生該相位檢測結果;及 一第二開關,耦接在該相位檢測器與該數位類比轉換器間,且受一第二切換信號控制而導通或不導通,當該對第一內部時脈信號各自的工作週期被調整至該預定工作週期時,該第二開關受該第二切換信號控制而從不導通切換至導通,且接收來自該相位檢測器的該相位檢測結果並傳輸至該數位類比轉換器,當該數位類比轉換器儲存有該對類比信號所對應的該數位碼時,該第二開關受該第二切換信號控制而從導通切換至不導通。 The duty cycle correction device as described in claim 1, wherein the phase detection module includes: a second duty cycle corrector for receiving the pair of external clock signals and generating the pair of second internal clock signals according to the pair of external clock signals; a phase detector coupled to the first duty cycle corrector to receive the one of the pair of first internal clock signals, and coupled to the second duty cycle corrector to receive the one of the pair of second internal clock signals, and performing a phase comparison between the one of the pair of first internal clock signals and the one of the pair of second internal clock signals to generate the phase detection result; and A second switch is coupled between the phase detector and the digital-to-analog converter and is controlled by a second switching signal to be turned on or off. When the respective duty cycles of the pair of first internal clock signals are adjusted to the predetermined duty cycle, the second switch is controlled by the second switching signal to switch from off to on, and receives the phase detection result from the phase detector and transmits it to the digital-to-analog converter. When the digital-to-analog converter stores the digital code corresponding to the pair of analog signals, the second switch is controlled by the second switching signal to switch from on to off. 如請求項1所述的工作週期校正裝置,其中,該相位檢測模組將該對第一內部時脈信號中的該者與該對第二內部時脈信號中的該者進行相位比較,是比較該對第一內部時脈信號中的該者與該對第二內部時脈信號中的該者各自的單一週期的一上升緣位置。A duty cycle correction device as described in claim 1, wherein the phase detection module performs a phase comparison between the one of the pair of first internal clock signals and the one of the pair of second internal clock signals, by comparing a rising edge position of a single cycle of the one of the pair of first internal clock signals and the one of the pair of second internal clock signals. 如請求項1所述的工作週期校正裝置,其中,該數位類比轉換器根據該相位檢測結果及執行一二元搜尋演算法來取得該數位碼。The duty cycle correction device as described in claim 1, wherein the digital-to-analog converter obtains the digital code based on the phase detection result and executes a binary search algorithm. 如請求項1所述的工作週期校正裝置,其中,該數位類比轉換器包括: 一控制電路,耦接該第三開關以自該比較器接收該比較結果,且根據該比較結果產生多對控制信號; 多個偏壓電路,該等偏壓電路中的每一者包括依序串接的一第一電晶體、一第二電晶體及一電壓源,該第一電晶體與該第二電晶體各自具有一第一端、一第二端,及一控制端,該第一電晶體的該控制端用於接收一致能信號,該第二電晶體的該第一端與該第二端分別耦接該第一電晶體的該第二端與該電壓源,且該第二電晶體的該控制端用於接收一偏壓電壓;及 多個電流鏡電路,該等電流鏡電路中的每一者包括一第三電晶體與一第四電晶體,該第三電晶體與該第四電晶體各自具有一第一端、一耦接該第一電晶體的該第一端的第二端,及一控制端,該第三電晶體與該第四電晶體的該等第一端用以相配合輸出該對類比信號輸出,該第三電晶體與該第四電晶體的該等控制端耦接該控制電路且相配合接收該多對控制信號中的一對控制信號,並受對應的該對控制信號控制而導通或不導通。 The duty cycle correction device as described in claim 1, wherein the digital-to-analog converter comprises: A control circuit coupled to the third switch to receive the comparison result from the comparator and generate a plurality of pairs of control signals according to the comparison result; A plurality of bias circuits, each of which comprises a first transistor, a second transistor and a voltage source connected in series in sequence, the first transistor and the second transistor each having a first end, a second end, and a control end, the control end of the first transistor is used to receive an enable signal, the first end and the second end of the second transistor are respectively coupled to the second end of the first transistor and the voltage source, and the control end of the second transistor is used to receive a bias voltage; and A plurality of current mirror circuits, each of which includes a third transistor and a fourth transistor, each of which has a first end, a second end coupled to the first end of the first transistor, and a control end, the first ends of the third transistor and the fourth transistor are used to cooperate to output the pair of analog signals, the control ends of the third transistor and the fourth transistor are coupled to the control circuit and cooperate to receive a pair of control signals from the plurality of pairs of control signals, and are controlled by the corresponding pair of control signals to conduct or not conduct. 如請求項1所述的工作週期校正裝置,其中,該積分器包括: 一泵激電路,耦接該第一工作週期校正器以接收該對第一內部時脈信號,並根據該對第一內部時脈信號產生該對回授時脈信號; 一第一電容,耦接在該泵激電路與一接地端間;及 一第二電容,耦接在該泵激電路與該接地端間。 The duty cycle correction device as described in claim 1, wherein the integrator comprises: a pump circuit coupled to the first duty cycle corrector to receive the pair of first internal clock signals and generate the pair of feedback clock signals according to the pair of first internal clock signals; a first capacitor coupled between the pump circuit and a ground terminal; and a second capacitor coupled between the pump circuit and the ground terminal. 如請求項1所述的工作週期校正裝置,其中,該第一工作週期校正器包括: 一偏壓電路; 一輸入輸出對,包括一第一電晶體與一第二電晶體,該第一電晶體與該第二電晶體各自具有一第一端、一耦接該偏壓電路的第二端,及一控制端,該第一電晶體與該第二電晶體的該等第一端相配合輸出該對第一內部時脈信號,該第一電晶體與該第二電晶體的該等控制端相配合接收該對外部時脈信號; 一第一輸入對,包括一第三電晶體與一第四電晶體,該第三電晶體與該第四電晶體各自具有一第一端、一耦接該偏壓電路的第二端,及一控制端,該第三電晶體與該第四電晶體的該等控制端相配合接收該對回授時脈信號,該第三電晶體的該第一端耦接該第一電晶體的該第一端,該第四電晶體的該第一端耦接該第二電晶體的該第一端;及 一第二輸入對,包括一第五電晶體與一第六電晶體,該第五電晶體與該第六電晶體各自具有一用於接收一供電電壓的第一端、一第二端,及一控制端,該第五電晶體與該第六電晶體的該等控制端相配合接收該對類比信號,該第五電晶體的該第二端耦接該第一電晶體的該第一端,該第六電晶體的該第二端耦接該第二電晶體的該第一端。 The duty cycle correction device as described in claim 1, wherein the first duty cycle corrector comprises: A bias circuit; An input-output pair, comprising a first transistor and a second transistor, the first transistor and the second transistor each having a first end, a second end coupled to the bias circuit, and a control end, the first ends of the first transistor and the second transistor cooperate to output the pair of first internal clock signals, and the control ends of the first transistor and the second transistor cooperate to receive the pair of external clock signals; A first input pair, including a third transistor and a fourth transistor, each of the third transistor and the fourth transistor has a first end, a second end coupled to the bias circuit, and a control end, the control ends of the third transistor and the fourth transistor cooperate to receive the pair of feedback clock signals, the first end of the third transistor is coupled to the first end of the first transistor, and the first end of the fourth transistor is coupled to the first end of the second transistor; and A second input pair includes a fifth transistor and a sixth transistor. The fifth transistor and the sixth transistor each have a first end for receiving a supply voltage, a second end, and a control end. The control ends of the fifth transistor and the sixth transistor cooperate to receive the pair of analog signals. The second end of the fifth transistor is coupled to the first end of the first transistor, and the second end of the sixth transistor is coupled to the first end of the second transistor. 如請求項1所述的工作週期校正裝置,其中,該對外部時脈信號為互補信號,該對第一內部時脈信號為互補信號,該對回授時脈信號為互補信號,該對第二內部時脈信號為互補信號,該對類比信號為互補信號,該預定工作週期為50%。A duty cycle correction device as described in claim 1, wherein the pair of external clock signals are complementary signals, the pair of first internal clock signals are complementary signals, the pair of feedback clock signals are complementary signals, the pair of second internal clock signals are complementary signals, the pair of analog signals are complementary signals, and the predetermined duty cycle is 50%.
TW112140406A 2023-10-23 2023-10-23 Duty cycle correction device TWI883605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112140406A TWI883605B (en) 2023-10-23 2023-10-23 Duty cycle correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112140406A TWI883605B (en) 2023-10-23 2023-10-23 Duty cycle correction device

Publications (2)

Publication Number Publication Date
TW202518847A TW202518847A (en) 2025-05-01
TWI883605B true TWI883605B (en) 2025-05-11

Family

ID=96548318

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112140406A TWI883605B (en) 2023-10-23 2023-10-23 Duty cycle correction device

Country Status (1)

Country Link
TW (1) TWI883605B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9413347B1 (en) * 2015-12-01 2016-08-09 Elite Semiconductor Memory Technology Inc. Duty cycle correction apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9413347B1 (en) * 2015-12-01 2016-08-09 Elite Semiconductor Memory Technology Inc. Duty cycle correction apparatus

Also Published As

Publication number Publication date
TW202518847A (en) 2025-05-01

Similar Documents

Publication Publication Date Title
TWI358203B (en) Zq calibration circuit and semiconductor device
US9258009B2 (en) AD converter
US6525587B2 (en) Semiconductor integrated circuit device including a clock synchronous type logical processing circuit
US7808271B2 (en) Time-balanced multiplexer switching methods and apparatus
US20040051576A1 (en) Delay generator
CN111490757A (en) Electronic circuit and method for generating random random numbers
KR100861919B1 (en) Multiphase signal generator and its method
TWI392209B (en) Charge pump circuit and method thereof
CN103051171B (en) Control circuit for reducing electromagnetic interference
CN112787634A (en) Circuit for correcting clock duty ratio and correction control method and device thereof
TWI883605B (en) Duty cycle correction device
TW202008725A (en) Latch circuit
US20230253881A1 (en) Power converter supply awareness
JP4559475B2 (en) Ternary decoder circuit and method
US20210072785A1 (en) Synchronization circuit and cascaded synchronization circuit for converting asynchronous signal into synchronous signal
US6417714B1 (en) Method and apparatus for obtaining linear code-delay response from area-efficient delay cells
WO2005038870A2 (en) Current starved dac-controlled delay locked loop
JPH117768A (en) Semiconductor device and signal input state detection circuit
CN120021156A (en) Duty cycle correction equipment
JP2004048189A (en) Digital circuit with delay circuit for adjusting clock signal timing
US20170338806A1 (en) Triangular wave generator
JPH04910A (en) Delay circuit
CN106330143B (en) Duty-ratio calibrating circuit
TWI898431B (en) Switching circuit
US20190319455A1 (en) Device and method for generating duty cycle