TWI827182B - Clock data recovery circuit - Google Patents
Clock data recovery circuit Download PDFInfo
- Publication number
- TWI827182B TWI827182B TW111128853A TW111128853A TWI827182B TW I827182 B TWI827182 B TW I827182B TW 111128853 A TW111128853 A TW 111128853A TW 111128853 A TW111128853 A TW 111128853A TW I827182 B TWI827182 B TW I827182B
- Authority
- TW
- Taiwan
- Prior art keywords
- signal
- flip
- flop
- gate
- frequency
- Prior art date
Links
- 238000011084 recovery Methods 0.000 title claims abstract description 27
- 238000005070 sampling Methods 0.000 claims description 105
- 238000001514 detection method Methods 0.000 claims description 85
- 230000005540 biological transmission Effects 0.000 claims description 24
- 230000001960 triggered effect Effects 0.000 claims description 22
- 230000000630 rising effect Effects 0.000 claims description 10
- 230000003111 delayed effect Effects 0.000 claims description 5
- 239000003990 capacitor Substances 0.000 claims description 4
- 230000010355 oscillation Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 15
- 102100029469 WD repeat and HMG-box DNA-binding protein 1 Human genes 0.000 description 4
- 101710097421 WD repeat and HMG-box DNA-binding protein 1 Proteins 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Abstract
Description
本發明是關於一種回復電路,特別是關於一種時脈資料回復電路。The present invention relates to a recovery circuit, and in particular to a clock data recovery circuit.
在通訊系統中,時脈資料回復電路是接收機非常重要的一個裝置,這是由於接收機接收之訊號的時脈資訊非同步且非常容易受到雜訊號干擾,因此,接收機需要使用訊號時脈資料回復電路重建接收之訊號的時脈資訊,進而回復原始資料。先前技術中會使用相位鎖定及頻率獲取雙迴路來完成時脈資料回復,但有些雙迴路架構中,壓控振盪器的控制線是兩個迴路共用,這可能會導致彼此之間互相干擾,此外,相位鎖定迴路及頻率獲取迴路的頻寬設計不同時,也會影響到整體的鎖定時間,而無法使用在需要快速鎖定的通訊網路中。In a communication system, the clock data recovery circuit is a very important device of the receiver. This is because the clock information of the signal received by the receiver is asynchronous and is very susceptible to interference from noise signals. Therefore, the receiver needs to use the signal clock The data recovery circuit reconstructs the clock information of the received signal and then recovers the original data. In previous technologies, dual loops of phase locking and frequency acquisition were used to complete clock data recovery. However, in some dual-loop architectures, the control lines of the voltage-controlled oscillator are shared by two loops, which may cause interference with each other. In addition, , when the bandwidth design of the phase locking loop and the frequency acquisition loop is different, it will also affect the overall locking time, and cannot be used in communication networks that require fast locking.
本發明的主要目的在於藉由磁滯鎖定迴路控制相位鎖定迴路或頻率獲取迴路進行時脈資料的鎖定,這可避免兩個迴路相互影響,以減少電壓控制振盪器之控制線上的漣波及抖動。The main purpose of the present invention is to lock the clock data by controlling the phase locking loop or the frequency acquisition loop through the hysteresis locked loop. This can avoid the mutual influence of the two loops and reduce the ripple and jitter on the control line of the voltage controlled oscillator.
本發明之一種時脈資料回復電路包含一相位偵測器、一頻率偵測器、一磁滯鎖定偵測器、一第一充電泵、一第二充電泵、一電壓控制振盪器及一升頻/降頻控制電路,該相位偵測器接收一同相時脈訊號及一輸入數據,該相位偵測器用以偵測該同相時脈訊號及該輸入數據之間的相位關係而輸出一相位偵測訊號,該頻率偵測器接收該同相時脈訊號、該輸入數據及一正交時脈訊號,該頻率偵測器用以偵測該同相時脈訊號及該輸入數據之間的頻率關係而輸出一頻率偵測訊號,該磁滯鎖定偵測器接收該同相時脈訊號及該輸入數據,該磁滯鎖定偵測器用於判斷該同相時脈訊號及該輸入數據之間的頻率差而輸出一鎖定訊號至該相位偵測器及該頻率偵測器,該第一充電泵電性連接該相位偵測器以接收該相位偵測訊號,且該第一充電泵經由一迴路濾波器輸出一細調電壓,該第二充電泵電性連接該頻率偵測器以接收該頻率偵測訊號,且該第二充電泵根據該頻率偵測訊號對一電容充電或放電而輸出一粗調電壓,該電壓控制振盪器電性連接該第一充電泵及該第二充電泵以接收該粗調電壓及該細調電壓,且該電壓控制振盪器輸出該同相時脈訊號及該正交時脈訊號,該升頻/降頻控制電路接收該同相時脈訊號及該輸入數據,且該升頻/降頻控制電路輸出一頻率上升/下降控制訊號至該頻率偵測器。A clock data recovery circuit of the present invention includes a phase detector, a frequency detector, a hysteresis lock detector, a first charge pump, a second charge pump, a voltage controlled oscillator and a voltage control oscillator. Frequency / down-frequency control circuit, the phase detector receives a same-phase clock signal and an input data, the phase detector is used to detect the phase relationship between the same-phase clock signal and the input data and output a phase detection Detection signal, the frequency detector receives the in-phase clock signal, the input data and a quadrature clock signal, the frequency detector is used to detect the frequency relationship between the in-phase clock signal and the input data and output A frequency detection signal. The hysteresis lock detector receives the in-phase clock signal and the input data. The hysteresis lock detector is used to determine the frequency difference between the in-phase clock signal and the input data and output a Locking the signal to the phase detector and the frequency detector, the first charge pump is electrically connected to the phase detector to receive the phase detection signal, and the first charge pump outputs a fine signal through a loop filter To adjust the voltage, the second charge pump is electrically connected to the frequency detector to receive the frequency detection signal, and the second charge pump charges or discharges a capacitor according to the frequency detection signal to output a coarse adjustment voltage. A voltage controlled oscillator is electrically connected to the first charge pump and the second charge pump to receive the coarse voltage and the fine voltage, and the voltage controlled oscillator outputs the in-phase clock signal and the quadrature clock signal, The frequency up/down control circuit receives the in-phase clock signal and the input data, and the frequency up/down control circuit outputs a frequency up/down control signal to the frequency detector.
本發明藉由該磁滯鎖定偵測器控制該相位偵測器及該頻率偵測器,而可選擇性地透過頻率獲取迴路或是相位鎖定迴路進行時脈資料回復,能夠有效地加快該時脈資料回復電路的鎖定速度並避免兩個迴路之間的相互影響。The present invention uses the hysteresis lock detector to control the phase detector and the frequency detector, and can selectively perform clock data recovery through a frequency acquisition loop or a phase lock loop, which can effectively speed up the clock data recovery. The pulse data restores the locking speed of the circuit and avoids mutual influence between the two loops.
請參閱第1圖,其為本發明之一實施例,一種時脈資料回復電路100的方塊圖,該時脈資料回復電路100包含一相位偵測器110、一頻率偵測器120、一磁滯鎖定偵測器130、一第一充電泵140、一第二充電泵150、一電壓控制振盪器160及一升頻/降頻控制電路170。Please refer to Figure 1, which is a block diagram of a clock
該相位偵測器110接收一同相時脈訊號clkI及一輸入數據data,該相位偵測器110用以偵測該同相時脈訊號clkI及該輸入數據data之間的相位關係而輸出一相位偵測訊號,該相位偵測訊號包含一相位領先偵測訊號PDU及一相位落後偵測訊號PDD。The
請參閱第2圖,該相位偵測器110具有一第一正反器111、一第二正反器112、一第三正反器113、一第四正反器114、一第一互斥或閘115及一第二互斥或閘116。該第一正反器111接收該輸入數據data及該同相時脈訊號clkI,該第一正反器111由該同相時脈訊號clkI之正緣觸發而取樣該輸入數據data並輸出一第一取樣訊號S1。該第二正反器112電性連接該第一正反器111,該第二正反器112接收該第一取樣訊號S1及該同相時脈訊號clkI,該第二正反器112由該同相時脈訊號clkI之正緣觸發而取樣該第一取樣訊號S1並輸出一第二取樣訊號S2,該第二取樣訊號S2是用以暫存該第一取樣訊號S1前一次觸發所取樣的電位。該第三正反器113接收該輸入數據data及該同相時脈訊號clkI,該第三正反器113由該同相時脈訊號clkI之負緣觸發而取樣該輸入數據data並輸出一第三取樣訊號S3。該第四正反器114電性連接該第三正反器113,該第四正反器114接收該第三取樣訊號S3及該同相時脈訊號clkI,該第四正反器114由該同相時脈訊號clkI之正緣觸發而取樣該第三取樣訊號S3並輸出一第四取樣訊號S4,該第四取樣訊號S4用以暫存該第三取樣訊號S3前一次觸發所取樣的電位。該第一互斥或閘115電性連接該第一正反器111及該第四正反器114以接收該第一取樣訊號S1及該第四取樣訊號S4,且該第一互斥或閘115輸出該相位領先偵測訊號PDU。該第二互斥或閘116電性連接該第二正反器112及該第四正反器114以接收該第二取樣訊號S2及該第四取樣訊號S4,且該第二互斥或閘116輸出該相位落後偵測訊號PDD。Please refer to Figure 2. The
請參閱第3a及3b圖,為該相位偵測器110之各訊號的時序圖,請參閱第3a圖,在該同相時脈訊號clkI之相位領先該輸入數據data時,由於該第二取樣訊號S2為該同相時脈訊號clkI第一個上緣所取樣之該輸入數據data而為低電位,該第四取樣訊號S4為該同相時脈訊號clkI第一個下緣所取樣之該輸入數據data而為高電位,該第一取樣訊號S1為該同相時脈訊號clkI第二個上緣所取樣之該輸入數據data而為高電位。相對地,請參閱第3b圖,在該同相時脈訊號clkI之相位落後該輸入數據data時,由於該第二取樣訊號S2為該同相時脈訊號clkI第一個上緣所取樣之該輸入數據data而為高電位,該第四取樣訊號S4為該同相時脈訊號clkI第一個下緣所取樣之該輸入數據data而為高電位,該第一取樣訊號S1為該同相時脈訊號clkI第二個上緣所取樣之該輸入數據data而為低電位。Please refer to Figures 3a and 3b for the timing diagram of each signal of the
請參閱第2、3a及3b圖,藉由該第一、二及四取樣訊號S1, S2, S4於不同相位狀態下的電位變化,當該輸入數據data領先該同相時脈訊號clkI時,該第一互斥或閘115輸出之該相位領先訊號PDU為高電位,該第二互斥或閘116輸出之該相位落後訊號PDD為低電位;當該輸入數據data落後該同相時脈訊號clkI時,該第一互斥或閘115輸出之該相位領先訊號PDU為低電位,該第二互斥或閘116輸出之該相位落後訊號PDD為高電位,藉此可用以判斷該同相時脈訊號clkI及該輸入數據data之間的相位關係。Please refer to Figures 2, 3a and 3b. Through the potential changes of the first, second and fourth sampling signals S1, S2 and S4 in different phase states, when the input data data leads the in-phase clock signal clkI, the The phase leading signal PDU output by the first mutually
較佳的,該第一正反器111、該第二正反器112、該第三正反器113及該第四正反器114之反向重置端RSTb接收該鎖定訊號lock,以在該鎖定訊號lock為低電位時重置該第一正反器111、該第二正反器112、該第三正反器113及該第四正反器114而重置該相位偵測器110之相位追蹤。Preferably, the reverse reset terminal RSTb of the first flip-
請參閱第1圖,該磁滯鎖定偵測器130接收該同相時脈訊號clkI及該輸入數據data,該磁滯鎖定偵測器130用於判斷該同相時脈訊號clkI及該輸入數據data之間的頻率差而輸出一鎖定訊號lock至該相位偵測器110及該頻率偵測器120,以決定由相位偵測器110或是頻率偵測器120對該電壓控制振盪器160進行控制。Referring to Figure 1, the
請參閱第4圖,該磁滯鎖定偵測器130具有一第一計數器131、一第一磁滯開關132、一第五正反器133、一第二計數器134、一第二磁滯開關135、一第六正反器136、一或閘137及一邏輯運算單元138。該第一計數器131接收該輸入數據data進行計數並輸出一第一計數訊號A
0~N-1,在本實施例中,該第一計數器131為N位元的計數器。該第一磁滯開關132電性連接該第一計數器131以接收該第一計數訊號的兩個位元A
0、A
K,且該第一磁滯開關132受該鎖定訊號lock控制而輸出一第一觸發訊號T1。該第五正反器133電性連接該第一計數器131及該第一磁滯開關132以接收該第一計數訊號的最高位元A
N-1及該第一觸發訊號T1,該第五正反器133被該第一觸發訊號T1觸發而取樣該第一計數訊號的最高位元A
N-1並輸出一第一暫存訊號E1。該第二計數器134接收該同相時脈訊號clkI進行計數並輸出一第二計數訊號B
0~N-1,在本實施例中,該第二計數器134與該第一計數器131同為N位元的計數器。該第二磁滯開關135電性連接該第二計數器134以接收該第二計數訊號的兩個位元B
0、B
K,且該第二磁滯開關135受該鎖定訊號lock控制而輸出一第二觸發訊號T2。該第六正反器136電性連接該第二計數器134及該第二磁滯開關135以接收該第二計數訊號的最高位元B
N-1及該第二觸發訊號T2,該第六正反器136被該第二計數訊號134觸發而取樣該第二計數訊號的最高位元B
N-1並輸出一第二暫存訊號E2。該或閘137電性連接該第五正反器133及該第六正反器136以接收該第一暫存訊號E1及該第二暫存訊號E2,且該或閘137輸出一第一邏輯訊號C。該邏輯運算單元138電性連接該第一計數器131、該第二計數器134及該或閘137以接收該第一計數訊號之最高位元A
N-1、該第二計數訊號之最高位元B
N-1及該第一邏輯訊號C,且該邏輯運算單元138輸出該鎖定訊號lock。
Please refer to Figure 4. The
請參閱第4圖,該第一磁滯開關132具有一第一傳輸閘132a及一第二傳輸閘132b,該第一傳輸閘132a接收該第一計數訊號之最低位元A
0,該第二傳輸閘132b接收第一計數訊號之第K位元A
K,且該第一傳輸閘132a及該第二傳輸閘132b受該鎖定訊號lock及反向之該鎖定訊號lockb控制而決定將該第一計數訊號之最低位元A
0或第K位元A
K作為該第一觸發訊號T1,其中,K為介於該第一計數訊號最低位元數0及最高位元數N-1之間的正整數。該第二磁滯開關135具有一第三傳輸閘135a及一第四傳輸閘135b,該第三傳輸閘135a接收該第二計數訊號之最低位元B
0,該第四傳輸閘135b接收第二計數訊號之第K位元B
K,且該第三傳輸閘135a及該第四傳輸閘135b受該鎖定訊號lock及反向之該鎖定訊號lockb控制而決定將該第二計數訊號之最低位元B
0或第K位元B
K作為該第二觸發訊號T2,其中,K為介於該第二計數訊號最低位元數0及最高位元數N-1之間的正整數。
Referring to Figure 4, the
請參閱第4圖,在本實施例中,該邏輯運算單元138具有一反或閘138a、一第一反及閘138b、一第二反及閘138c、一第三反及閘138d、一第四反及閘138e、一第七正反器138f及一反閘138g。該反或閘138a接收反向之該第一計數訊號的最高位元Ab
N-1及反向之該第二計數訊號之最高位元Bb
N-1並輸出一反或訊號D。該第一反及閘138b接收該第一計數訊號之最高位元A
N-1及該第二計數訊號之最高位元B
N-1並輸出一第一反及訊號,該第二反及閘138c接收該第二計數訊號之最高位元B
N-1及該第一邏輯訊號C並輸出一第二反及訊號,該第三反及閘138d接收該第一計數訊號之最高位元A
N-1及該第一邏輯訊號C並輸出一第三反及訊號,該第四反及閘138e電性連接該第一、二及三反及閘138b、138c、138d以接收該第一、二及三反及訊號,且該第四反及閘138e輸出一計數重置訊號R。該第七正反器138f電性連接該反或閘138a及該第四反及閘138e以接收該反或訊號D及該計數重置訊號R,且該第七正反器138f由該計數重置訊號R觸發對該反或訊號D取樣而輸出該鎖定訊號lock及反向之該鎖定訊號lockb,該反閘138g電性連接該第四反及閘138e以接收該計數重置訊號R,且該反閘138g輸出反向之該計數重置訊號Rb至該第一、二計數器131、134及該第五、六正反器133、136進行重置。
Please refer to Figure 4. In this embodiment, the
該第一、四計數器131、134分別對該輸入數據data及該同相時脈輸入訊號clkI進行計數,並在後端電路藉由兩個計數訊號的各位元進行判斷及分析,而在該同相時脈訊號clkI及該輸入數據data之間頻率差異較大時讓該鎖定訊號lock為低電位而開啟該頻率偵測器120進行大幅度之頻率追蹤並關閉相位偵測器110,並在該同相時脈訊號clkI及該輸入數據data之間頻率差異較小時讓該鎖定訊號lock為高電位而開啟該相位偵測器110進行相位鎖定並調整該頻率偵測器120進行小幅度之頻率追蹤。The first and
請參閱第1圖,該升頻/降頻控制電路170接收該同相時脈訊號clkI及該輸入數據data,且該升頻/降頻控制電路170輸出一頻率上升/下降控制訊號UP/DN至該頻率偵測器120。Referring to Figure 1, the up/down
請參閱第5圖,在本實施例中,該升降頻控制電路170具有一第三計數器171、一第四計數器172、一或閘173、一第八正反器174、一第九正反器175及一反閘176。該第三計數器171接收該同相時脈訊號clkI進行計數而輸出一第三計數訊號Q
0~4,該第四計數器172接收該輸入數據data進行計數而輸出一第四計數訊號U
0~4,該第三及四計數器171, 172皆為5位元之計數器。該或閘173電性連接該第三計數器171以接收該第三計數訊號Q
0~4之最高位元Q
4及次高位元Q
3,且該或閘173輸出一或閘訊號。該第八正反器174電性連接該或閘173及該第四計數器172以接收該或閘訊號及該第四計數訊號之次高位元U
3,該第八正反器174由該第四計數訊號之次高位元U
3觸發而取樣該或閘訊號,且該第八正反器174由反向輸出端輸出該頻率上升/下降控制訊號UP/DN。該第九正反器175電性連接該第四計數器172,該第九正反器175接收該第四計數訊號之最高位元U
4及除頻之該同相時脈訊號clkI/2,該第九正反器175由除頻之該同相時脈訊號clkI/2觸發而取樣該第四計數訊號之最高位元U
4,且該第九正反器175經由該反閘176輸出一升降頻計數重置訊號UD_R至該第三、四計數器171、172進行重置。
Please refer to Figure 5. In this embodiment, the up/down
請參閱第6a及6b圖,為該升降頻控制電路170之訊號的時序圖,請參閱6a圖,在該第四計數訊號之次高位元U
3比該第三計數訊號Q
0~4之次高位元Q
3快時,該頻率上升/下降控制訊號UP/DN輸出為0,表示該輸入數據data比該同相時脈訊號clkI快,在該第四計數訊號之次高位元U
3比該第三計數訊號Q
0~4之次高位元Q
3慢時,該頻率上升/下降控制訊號UP/DN輸出為1,表示該輸入數據data比該同相時脈訊號clkI慢。
Please refer to Figures 6a and 6b for the timing diagram of the signal of the frequency up/down
請參閱第1圖,該頻率偵測器120接收該同相時脈訊號clkI、該輸入數據data及一正交時脈訊號clkQ,該頻率偵測器120用以偵測該同相時脈訊號clkI及該輸入數據data之間的頻率關係而輸出一頻率偵測訊號FD。Referring to Figure 1, the
請參閱第7圖,在本實施例中,該頻率偵測器120具有一頻率偵測電路121及一頻率偵測選擇電路122,該頻率偵測訊號具有一頻率上升偵測訊號FDU及一頻率下降偵測訊號FDD。該頻率偵測電路121接收該輸入數據data、該同相時脈訊號clkI及該正交時脈訊號clkQ進行偵測並輸出一第一頻率上升訊號UP1及一第一頻率下降訊號DN1。該頻率偵測選擇電路122電性連接該頻率偵測電路121,該頻率偵測選擇電路122接收該第一頻率上升訊號UP1、該第一頻率下降訊號DN1、該同相時脈訊號clkI及該輸入數據data,且該頻率偵測選擇電路122輸出該頻率上升偵測訊號FDU及該頻率下降偵測訊號FDD。Please refer to Figure 7. In this embodiment, the
該頻率偵測電路121具有一延遲器121a、一第三互斥或閘121b、一第十正反器121c、一第十一正反器121d、一第十二正反器121e、一第十三正反器121f、一第十四正反器121g、一第十五正反器121h及一輸出邏輯電路121i。該延遲器121a接收該輸入數據data並輸出一延遲數據,該第三互斥或閘121b電性連接該延遲器121a,該第三互斥或閘121b接收該輸入數據data及該延遲數據,該第三互斥或閘121b輸出一偵測觸發訊號。該第十正反器121c電性連接該互斥或閘121b,該第十正反器121c接收該同相時脈訊號clkI及該偵測觸發訊號,且該第十正反器121c由該偵測觸發訊號觸發而取樣該同相時脈訊號clkI並輸出一第十取樣訊號j。該第十一正反器121d電性連接該第十正反器121c,該第十一正反器121d接收該第十取樣訊號j及該同相時脈訊號clkI,且該第十一正反器121d由該同相時脈訊號clkI觸發而取樣該第十取樣訊號j並輸出一第十一取樣訊號k及反向之該第十一取樣訊號kb。該第十二正反器121e電性連接該第十一正反器121d,該第十二正反器121e接收該第十一取樣訊號k及該同相時脈訊號clkI,且該第十二正反器121e由該同相時脈訊號clkI觸發而取樣該第十一取樣訊號k並輸出一第十二取樣訊號l及反向之該第十二取樣訊號lb。The frequency detection circuit 121 has a
該第十三正反器121f電性連接該第三互斥或閘121b,該第十三正反器121f接收該正交時脈訊號clkQ及該偵測觸發訊號,且該第十三正反器121f由該偵測觸發訊號觸發而取樣該正交時脈訊號clkQ並輸出一第十三取樣訊號m。該第十四正反器121g電性連接該第十三正反器121f,該第十四正反器121g接收該第十三取樣訊號m及該同相時脈訊號clkI,且該第十四正反器121g由該同相時脈訊號clkI觸發而取樣該第十三取樣訊號m並輸出一第十四取樣訊號n及反向之該第十四取樣訊號nb。該第十五正反器121h電性連接該第十四正反器121g,該第十五正反器121h接收該第十四取樣訊號n及該同相時脈訊號clkI,且該第十五正反器121h由該同相時脈訊號clkI觸發而取樣該第十四取樣訊號n並輸出一第十五取樣訊號o及反向之該第十五取樣訊號ob。The thirteenth flip-
該輸出邏輯電路121i電性連接該第十一、十二、十四及十五正反器121d、121e、121g、121h以接收該第十一取樣訊號k、反向之該第十一取樣訊號kb、該第十二取樣訊號l、反向之該第十二取樣訊號lb、反向之該第十四取樣訊號nb及反向之該第十五取樣訊號ob,且該輸出邏輯電路121i輸出該第一頻率上升訊號UP1及該第一頻率下降訊號DN1。在本實施例中,該輸出邏輯電路121i具有一第一及閘and1、一第二及閘and2、一第三及閘and3、一第四及閘and4及一第五及閘and5。該第一及閘and1電性連接第十一、十二正反器121d、121e以接收該反向之該第十一取樣訊號kb及該第十二取樣訊號I。該第二及閘and2電性連接第十四、十五正反器121g、121h以接收該反向之該第十四取樣訊號nb及反向之該第十五取樣訊號ob,該第三及閘電性連接第十一、十二正反器121d、121e以接收該該第十一取樣訊k號及反向之該第十二取樣訊號lb。該第四及閘and4電性連接該第一、二及閘and1、and2,且該第四及閘and4輸出該第一頻率上升訊號UP1,該第五及閘and5電性連接該第二、三及閘and2、and3,且該第五及閘and5輸出該第一頻率下降訊號DN1。The output logic circuit 121i is electrically connected to the eleventh, twelfth, fourteenth and fifteenth flip-
請參閱第7圖,該頻率偵測選擇電路122具有一第十六正反器122a、一第一多工器122b、一第二多工器122c、一第三多工器122d及一第四多工器122e。該第十六正反器122a接收該同相時脈訊號clkI及該輸入數據data,且該第十六正反器122a輸出一頻率差訊號DIFF,該頻率差訊號DIFF為該同相時脈訊號clkI及該輸入數據data之間的頻率差。該第一多工器122b電性連接該第十六正反器122a,該第一多工器122b接收該頻率差訊號DIFF、一接地電壓Gnd及頻率上升/下降控制訊號UP/DN,且該第一多工器122b輸出一第二頻率上升訊號UP2。該第二多工器122c電性連接該第一多工器122b及該頻率偵測電路121,該第二多工器122c接收該第二頻率上升訊號UP2、該第一頻率上升訊號UP1及該鎖定訊號lock,且該第二多工器122c輸出該頻率上升偵測訊號FDU。該第三多工器122d電性連接該第十六正反器122a,該第三多工器122d接收該頻率差訊號DIFF、該接地電壓Gnd及頻率上升/下降控制訊號UP/DN,且該第三多工器122d輸出一第二頻率下降訊號DN2,該第四多工器122e電性連接該第三多工器122d及該頻率偵測電路121,該第二多工器122c接收該第二頻率下降訊號DN2、該第一頻率下降訊號DN1及該鎖定訊號lock,且該第四多工器122e輸出該頻率下降偵測訊號FDD。Referring to Figure 7, the frequency
請參閱第8a及8b圖,為該頻率偵測電路121之各訊號的時序圖,首先定義該同相時脈訊號clkI及該正交時脈訊號clkQ皆為0時為狀態I;該同相時脈訊號clkI為0及該正交時脈訊號clkQ為1時為狀態II;該同相時脈訊號clkI及該正交時脈訊號clkQ皆為1時為狀態III;該同相時脈訊號clkI為1及該正交時脈訊號clkQ為0時為狀態IV。請參閱第8a圖,當該輸入數據data速率比該同相時脈訊號clkI快時,該輸入數據data之負緣取樣之該同相時脈訊號clkI及該正交時脈訊號clkQ的狀態變化為I→II→III→IV→I。相對地,請參閱第8b圖,當該輸入數據data速率比該同相時脈訊號clkI慢時,該輸入數據data之負緣取樣之該同相時脈訊號clkI及該正交時脈訊號clkQ的狀態變化為IV→III→II→I→IV,而可藉由該同相時脈訊號clkI及該正交時脈訊號clkQ的狀態變化測得該同相時脈訊號clkI及該輸入數據data之間的頻率關係。Please refer to Figures 8a and 8b for the timing diagram of each signal of the frequency detection circuit 121. First, it is defined that when the in-phase clock signal clkI and the quadrature clock signal clkQ are both 0, it is state I; When the signal clkI is 0 and the quadrature clock signal clkQ is 1, it is state II; when the in-phase clock signal clkI and the quadrature clock signal clkQ are both 1, it is state III; when the in-phase clock signal clkI is 1 and When the orthogonal clock signal clkQ is 0, it is state IV. Please refer to Figure 8a. When the input data data rate is faster than the in-phase clock signal clkI, the state of the in-phase clock signal clkI and the quadrature clock signal clkQ sampled by the negative edge of the input data data changes to I →II→III→IV→I. Correspondingly, please refer to Figure 8b, when the input data data rate is slower than the in-phase clock signal clkI, the states of the in-phase clock signal clkI and the quadrature clock signal clkQ sampled by the negative edge of the input data data The change is IV→III→II→I→IV, and the frequency between the in-phase clock signal clkI and the input data data can be measured through the state changes of the in-phase clock signal clkI and the quadrature clock signal clkQ. relation.
請再參閱第7圖,由於該頻率偵測電路121在同相時脈訊號clkI及該輸入數據data之間頻率差異過大時可能會有遺失狀態的問題,因此,若該鎖定訊號lock為低電位時,表示頻率差異較大,該頻率偵測選擇電路122輸出該頻率差訊號DIFF作為該頻率上升偵測訊號FDU或該頻率下降偵測訊號FDD。而該鎖定訊號lock為高電位時,表示頻率差異較小,該頻率偵測選擇電路122輸出該頻率偵測電路121之該第一頻率上升訊號UP1或該第一頻率下降訊號DN1作為該頻率上升偵測訊號FDU或該頻率下降偵測訊號FDD。Please refer to Figure 7 again. Since the frequency detection circuit 121 may have a state loss problem when the frequency difference between the in-phase clock signal clkI and the input data data is too large, therefore, if the lock signal lock is low, , indicating a large frequency difference, the frequency
請參閱第1圖,該第一充電泵140電性連接該相位偵測器110以接收該相位偵測訊號之該相位領先訊號PDU及該相位落後訊號PDD,且該第一充電泵140經由一迴路濾波器LF輸出一細調電壓Vf。該第二充電泵150電性連接該頻率偵測器120以接收該頻率偵測訊號之該頻率上升偵測訊號FDU及該頻率下降偵測訊號FDD,且該第二充電泵150根據該頻率偵測訊號對一電容Cg充電或放電而輸出一粗調電壓Vc。該電壓控制振盪器160電性連接該第一充電泵140及該第二充電泵150以接收該粗調電壓Vc及該細調電壓Vf並受其控制,且該電壓控制振盪器160受該細調電壓Vf及該粗調電壓Vc的控制而輸出該同相時脈訊號clkI及該正交時脈訊號clkQ,該同相時脈訊號clkI經由一緩衝器180輸出為一輸出頻率Fout。Referring to Figure 1, the
本發明藉由該磁滯鎖定偵測器130控制該相位偵測器110及該頻率偵測器120,而可選擇性地透過頻率獲取迴路或是相位鎖定迴路進行時脈資料回復,能夠有效地加快該時脈資料回復電路100的鎖定速度並避免兩個迴路之間的相互影響。The present invention uses the
本發明之保護範圍當視後附之申請專利範圍所界定者為準,任何熟知此項技藝者,在不脫離本發明之精神和範圍內所作之任何變化與修改,均屬於本發明之保護範圍。The protection scope of the present invention shall be determined by the appended patent application scope. Any changes and modifications made by anyone familiar with this art without departing from the spirit and scope of the present invention shall fall within the protection scope of the present invention. .
100:時脈資料回復電路 110:相位偵測器 111:第一正反器 112:第二正反器 113:第三正反器 114:第四正反器 115:第一互斥或閘 116:第二互斥或閘 120:頻率偵測器 121:頻率偵測電路 121a:延遲器 121b:第三互斥或閘 121c:第十正反器 121d:第十一正反器 121e:第十二正反器 121f:第十三正反器 121g:第十四正反器 121h:第十五正反器 121i:輸出邏輯電路 122:頻率偵測選擇電路 122a:第十六正反器 122b:第一多工器 122c:第二多工器 122d:第三多工器 122e:第四多工器 130:磁滯鎖定偵測器 131:第一計數器 132:第一磁滯開關 132a:第一傳輸閘 132b:第二傳輸閘 133:第五正反器 134:第二計數器 135:第二磁滯開關 135a:第三傳輸閘 135b:第四傳輸閘 136:第六正反器 137:或閘 138:邏輯運算單元 138a:反或閘 138b:第一反及閘 138c:第二反及閘 138d:第三反及閘 138e:第四反及閘 138f:第七正反器 138g:反閘 140:第一充電泵 150:第二充電泵 160:電壓控制振盪器 170:升頻/降頻控制電路 171:第三計數器 172:第四計數器 173:或閘 174:第八正反器 175:第九正反器 176:反閘 180:緩衝器 clkI:同相時脈訊號 data:輸入數據 clkQ:正交時脈訊號 PDU:相位領先訊號 PDD:相位落後訊號 FDU:頻率上升偵測訊號 FDD:頻率下降偵測訊號 lock:鎖定訊號 LF:迴路濾波器 Vf:細調電壓 Cg:電容 UP/DN:頻率上升/下降控制訊號 S1:第一取樣訊號 S2:第二取樣訊號 S3:第三取樣訊號 S4:第四取樣訊號 A 0~N-1:第一計數訊號 Ab N-1:反向之第一計數訊號最高位元 T1:第一觸發訊號 E1:第一暫存訊號 B 0~N-1:第二計數訊號 Bb N-1:反向之第二計數訊號最高位元 E2:第二暫存訊號 C:第一邏輯訊號 D:反或訊號 R:計數重置訊號 Rb:反向之計數重置訊號 Q 0~4:第三計數訊號 U 0~4:第四計數訊號 clkI/2:除頻之同相時脈訊號 UD_R:升降頻計數重置訊號 j:第十取樣訊號 k:第十一取樣訊號 kb:反向之第十一取樣訊號 l:第十二取樣訊號 lb:反向之第十二取樣訊號 m:第十三取樣訊號 n:第十四取樣訊號 nb:反向之第十四取樣訊號 o:第十五取樣訊號 ob:反向之第十五取樣訊號 and1:第一及閘 and2:第二及閘 and3:第三及閘 and4:第四及閘 and5:第五及閘 DIFF:頻率差訊號 UP1:第一頻率上升訊號 DN1:第一頻率下降訊號 Gnd:接地電壓 UP2:第二頻率上升訊號 DN2:第二頻率下降訊號 lockb:反向之鎖定訊號 Vc:粗調電壓 Fout:輸出頻率 RST:重置端 RSTb:反向重置端 100: Clock data recovery circuit 110: Phase detector 111: First flip-flop 112: Second flip-flop 113: Third flip-flop 114: Fourth flip-flop 115: First mutually exclusive OR gate 116 : The second mutually exclusive OR gate 120: The frequency detector 121: The frequency detection circuit 121a: The delayer 121b: The third mutually exclusive OR gate 121c: The tenth flip-flop 121d: The eleventh flip-flop 121e: The tenth Second flip-flop 121f: Thirteenth flip-flop 121g: Fourteenth flip-flop 121h: Fifteenth flip-flop 121i: Output logic circuit 122: Frequency detection selection circuit 122a: Sixteenth flip-flop 122b: First multiplexer 122c: Second multiplexer 122d: Third multiplexer 122e: Fourth multiplexer 130: Hysteresis lock detector 131: First counter 132: First hysteresis switch 132a: First Transmission gate 132b: Second transmission gate 133: Fifth flip-flop 134: Second counter 135: Second hysteresis switch 135a: Third transmission gate 135b: Fourth transmission gate 136: Sixth flip-flop 137: OR gate 138: Logic operation unit 138a: NOR gate 138b: First NAND gate 138c: Second NAND gate 138d: Third NAND gate 138e: Fourth NAND gate 138f: Seventh flip-flop 138g: NAND gate 140 : First charge pump 150: Second charge pump 160: Voltage controlled oscillator 170: Up/down frequency control circuit 171: Third counter 172: Fourth counter 173: OR gate 174: Eighth flip-flop 175: Nine flip-flop 176: reverse gate 180: buffer clkI: in-phase clock signal data: input data clkQ: quadrature clock signal PDU: phase leading signal PDD: phase lagging signal FDU: frequency up detection signal FDD: frequency down Detection signal lock: Lock signal LF: Loop filter Vf: Fine adjustment voltage Cg: Capacitor UP/DN: Frequency rise/fall control signal S1: First sampling signal S2: Second sampling signal S3: Third sampling signal S4: The fourth sampling signal A 0~N-1 : the first counting signal Ab N-1 : the highest bit of the reverse first counting signal T1: the first trigger signal E1: the first temporary storage signal B 0~N-1 : Second counting signal Bb N-1 : The highest bit of the reverse second counting signal E2: The second temporary storage signal C: The first logical signal D: The inverse OR signal R: The counting reset signal Rb: The reverse counting reset Set signal Q 0~4 : The third counting signal U 0~4 : The fourth counting signal clkI/2: The same-phase clock signal of frequency division UD_R: Up and down frequency counting reset signal j: The tenth sampling signal k: The eleventh Sampling signal kb: the eleventh sampling signal in reverse l: the twelfth sampling signal lb: the twelfth sampling signal in reverse m: the thirteenth sampling signal n: the fourteenth sampling signal nb: the tenth sampling signal in reverse Four sampling signals o: the fifteenth sampling signal ob: the reverse fifteenth sampling signal and1: the first AND gate and2: the second AND gate and3: the third AND gate and4: the fourth AND gate and5: the fifth AND gate DIFF: frequency difference signal UP1: first frequency rising signal DN1: first frequency falling signal Gnd: ground voltage UP2: second frequency rising signal DN2: second frequency falling signal lockb: reverse lock signal Vc: coarse adjustment voltage Fout :Output frequency RST: Reset terminal RSTb: Reverse reset terminal
第1圖:依據本發明之一實施例,一種時脈資料回復電路的方塊圖。 第2圖:依據本發明之一實施例,一相位偵測器的電路圖。 第3a圖:依據本發明之一實施例,該相位偵測器之各訊號的時序圖。 第3b圖:依據本發明之一實施例,該相位偵測器之各訊號的時序圖。 第4圖:依據本發明之一實施例,一磁滯鎖定偵測器的電路圖。 第5圖:依據本發明之一實施例,一升頻/降頻控制電路的電路圖。 第6a圖:依據本發明之一實施例,該升頻/降頻控制電路之各訊號的時序圖。 第6b圖:依據本發明之一實施例,該升頻/降頻控制電路之各訊號的時序圖。 第7圖:依據本發明之一實施例,一頻率偵測器的電路圖。 第8a圖:依據本發明之一實施例,該頻率偵測器之各訊號的時序圖。 第8b圖:依據本發明之一實施例,該頻率偵測器之各訊號的時序圖。 Figure 1: A block diagram of a clock data recovery circuit according to an embodiment of the present invention. Figure 2: Circuit diagram of a phase detector according to an embodiment of the present invention. Figure 3a: Timing diagram of each signal of the phase detector according to an embodiment of the present invention. Figure 3b: Timing diagram of each signal of the phase detector according to an embodiment of the present invention. Figure 4: Circuit diagram of a hysteresis lock detector according to an embodiment of the present invention. Figure 5: A circuit diagram of an up/down frequency control circuit according to an embodiment of the present invention. Figure 6a: Timing diagram of each signal of the upconversion/downconversion control circuit according to an embodiment of the present invention. Figure 6b: Timing diagram of each signal of the upconversion/downconversion control circuit according to an embodiment of the present invention. Figure 7: Circuit diagram of a frequency detector according to an embodiment of the present invention. Figure 8a: Timing diagram of each signal of the frequency detector according to an embodiment of the present invention. Figure 8b: Timing diagram of each signal of the frequency detector according to an embodiment of the present invention.
100:時脈資料回復電路 100: Clock data recovery circuit
110:相位偵測器 110: Phase detector
120:頻率偵測器 120: Frequency detector
130:磁滯鎖定偵測器 130:Hysteresis lock detector
140:第一充電泵 140:First charge pump
150:第二充電泵 150: Second charge pump
160:電壓控制振盪器 160: Voltage controlled oscillator
170:升頻/降頻控制電路 170: Up/down frequency control circuit
180:緩衝器 180:Buffer
clkI:同相時脈訊號 clkI: In-phase clock signal
clkQ:正交時脈訊號 clkQ: Quadrature clock signal
PDU:相位領先訊號 PDU: phase leading signal
PDD:相位落後訊號 PDD: Phase lag signal
lock:鎖定訊號 lock: lock signal
FDU:頻率上升偵測訊號 FDU: frequency rise detection signal
FDD:頻率下降偵測訊號 FDD: Frequency drop detection signal
UP/DN:頻率上升/下降控制訊號 UP/DN: Frequency up/down control signal
LF:迴路濾波器 LF: loop filter
Vf:細調電壓 Vf: fine adjustment voltage
Vc:粗調電壓 Vc: coarse adjustment voltage
Cg:電容 Cg: capacitance
Fout:輸出頻率 Fout: output frequency
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111128853A TWI827182B (en) | 2022-08-01 | 2022-08-01 | Clock data recovery circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111128853A TWI827182B (en) | 2022-08-01 | 2022-08-01 | Clock data recovery circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI827182B true TWI827182B (en) | 2023-12-21 |
TW202408170A TW202408170A (en) | 2024-02-16 |
Family
ID=90053343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW111128853A TWI827182B (en) | 2022-08-01 | 2022-08-01 | Clock data recovery circuit |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI827182B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1742359A1 (en) * | 2005-06-29 | 2007-01-10 | Altera Corporation | Apparatus and method for clock data recovery having a recovery loop with separate proportional path |
US20140292389A1 (en) * | 2008-06-18 | 2014-10-02 | Micron Technology, Inc. | Locked-loop quiescence apparatus, systems, and methods |
US9806879B2 (en) * | 2015-05-28 | 2017-10-31 | Realtek Semiconductor Corp. | Burst mode clock data recovery device and method thereof |
US10840919B1 (en) * | 2020-01-24 | 2020-11-17 | Texas Instruments Incorporated | Frequency domain-based clock recovery |
-
2022
- 2022-08-01 TW TW111128853A patent/TWI827182B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1742359A1 (en) * | 2005-06-29 | 2007-01-10 | Altera Corporation | Apparatus and method for clock data recovery having a recovery loop with separate proportional path |
US20140292389A1 (en) * | 2008-06-18 | 2014-10-02 | Micron Technology, Inc. | Locked-loop quiescence apparatus, systems, and methods |
US9806879B2 (en) * | 2015-05-28 | 2017-10-31 | Realtek Semiconductor Corp. | Burst mode clock data recovery device and method thereof |
US10840919B1 (en) * | 2020-01-24 | 2020-11-17 | Texas Instruments Incorporated | Frequency domain-based clock recovery |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8929498B2 (en) | Techniques for varying a periodic signal based on changes in a data rate | |
US7999583B2 (en) | Method and apparatus for on-chip phase error measurement to determine jitter in phase-locked loops | |
US5812619A (en) | Digital phase lock loop and system for digital clock recovery | |
KR20120138211A (en) | Digital phase locked loop system and method | |
US7801203B2 (en) | Clock and data recovery circuits | |
CN1540868A (en) | Frequency synthesizer of using all-digit frequency detector and analogue phase detector | |
CN101675621A (en) | Clock extraction device with digital phase lock, requiring no external control | |
US6236697B1 (en) | Clock recovery for multiple frequency input data | |
CN108173545A (en) | Phase-locked loop circuit, more phase-locked loop systems and its output phase synchronous method | |
CN103141029B (en) | Sampler circuit | |
CN108322214A (en) | A kind of clock and data recovery circuit of no reference clock input | |
CN108471309A (en) | A kind of lock detecting circuit for phaselocked loop | |
CN106603070A (en) | Phase-locked loop low in stray and quick in locking | |
CN110224697A (en) | A kind of phase lock loop locks method, circuit and transceiver communication system | |
CN109150171A (en) | A kind of phase frequency detector and clock data recovery circuit of high speed low jitter | |
TWI827182B (en) | Clock data recovery circuit | |
CA2851843A1 (en) | Systems and methods for tracking a received data signal in a clock and data recovery circuit | |
US6646477B1 (en) | Phase frequency detector with increased phase error gain | |
TW202408170A (en) | Clock data recovery circuit | |
US8754714B2 (en) | Signal pattern and dispersion tolerant statistical reference oscillator | |
TWI434168B (en) | Clock and data recovery circuit | |
EP2235824B1 (en) | High-frequency counter | |
US8059774B2 (en) | Frequency lock detection | |
CN108988853A (en) | Digital auxiliary lock circuit | |
Krishna et al. | A 1.8-v 3.6-mw 2.4-ghz fully integrated cmos frequency synthesizer for the ieee 802.15. 4 |