TWI827182B - Clock data recovery circuit - Google Patents

Clock data recovery circuit Download PDF

Info

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
Application number
TW111128853A
Other languages
Chinese (zh)
Other versions
TW202408170A (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 TW111128853A priority Critical patent/TWI827182B/en
Application granted granted Critical
Publication of TWI827182B publication Critical patent/TWI827182B/en
Publication of TW202408170A publication Critical patent/TW202408170A/en

Links

Images

Abstract

A clock data recovery circuit 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 frequency up/down controlled circuit. The hysteresis lock detector controls the voltage controlled oscillator with the frequency acquisition loop formed by the frequency detector through the second charge pump when the frequency difference between the voltage controlled oscillator and the input data is large. The hysteresis lock detector controls the voltage controlled oscillator with the phase-locked loop formed by the phase detector through the first charge pump when the frequency difference between the voltage controlled oscillator and the input data is small. Therefore, the clock data recovery circuit could quickly lock and avoid the two loops interfere with each other.

Description

時脈資料回復電路Clock data recovery circuit

本發明是關於一種回復電路,特別是關於一種時脈資料回復電路。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 data recovery circuit 100 according to an embodiment of the present invention. The clock data recovery circuit 100 includes a phase detector 110, a frequency detector 120, a magnetic hysteresis lock detector 130, a first charge pump 140, a second charge pump 150, a voltage controlled oscillator 160 and an up/down frequency control circuit 170.

該相位偵測器110接收一同相時脈訊號clkI及一輸入數據data,該相位偵測器110用以偵測該同相時脈訊號clkI及該輸入數據data之間的相位關係而輸出一相位偵測訊號,該相位偵測訊號包含一相位領先偵測訊號PDU及一相位落後偵測訊號PDD。The phase detector 110 receives a same-phase clock signal clkI and an input data data. The phase detector 110 is used to detect the phase relationship between the same-phase clock signal clkI and the input data data and output a phase detection signal. The phase detection signal includes a phase leading detection signal PDU and a phase lagging detection signal PDD.

請參閱第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 phase detector 110 has a first flip-flop 111, a second flip-flop 112, a third flip-flop 113, a fourth flip-flop 114, and a first mutual exclusion device. OR gate 115 and a second mutually exclusive OR gate 116 . The first flip-flop 111 receives the input data data and the in-phase clock signal clkI. The first flip-flop 111 is triggered by the positive edge of the in-phase clock signal clkI to sample the input data data and output a first sample. Signal S1. The second flip-flop 112 is electrically connected to the first flip-flop 111. The second flip-flop 112 receives the first sampling signal S1 and the in-phase clock signal clkI. The second flip-flop 112 is configured by the in-phase The positive edge of the clock signal clkI is triggered to sample the first sampling signal S1 and output a second sampling signal S2. The second sampling signal S2 is used to temporarily store the potential sampled by the previous trigger of the first sampling signal S1. The third flip-flop 113 receives the input data data and the in-phase clock signal clkI. The third flip-flop 113 is triggered by the negative edge of the in-phase clock signal clkI to sample the input data data and output a third sample. Signal S3. The fourth flip-flop 114 is electrically connected to the third flip-flop 113. The fourth flip-flop 114 receives the third sampling signal S3 and the in-phase clock signal clkI. The fourth flip-flop 114 is formed by the in-phase The positive edge of the clock signal clkI is triggered to sample the third sampling signal S3 and output a fourth sampling signal S4. The fourth sampling signal S4 is used to temporarily store the potential sampled by the previous trigger of the third sampling signal S3. The first mutually exclusive OR gate 115 is electrically connected to the first flip-flop 111 and the fourth flip-flop 114 to receive the first sampling signal S1 and the fourth sampling signal S4, and the first mutually exclusive OR gate 115 outputs the phase leading detection signal PDU. The second mutual exclusive OR gate 116 is electrically connected to the second flip-flop 112 and the fourth flip-flop 114 to receive the second sampling signal S2 and the fourth sampling signal S4, and the second mutual exclusive OR gate 116 outputs the phase lag detection signal PDD.

請參閱第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 phase detector 110. Please refer to Figure 3a. When the phase of the in-phase clock signal clkI leads the input data data, because the second sampling signal S2 is the input data data sampled by the first rising edge of the in-phase clock signal clkI and is at a low level, and the fourth sampling signal S4 is the input data data sampled by the first falling edge of the in-phase clock signal clkI and is a high potential, the first sampling signal S1 is the input data data sampled by the second upper edge of the in-phase clock signal clkI and is a high potential. Correspondingly, please refer to Figure 3b. When the phase of the in-phase clock signal clkI lags behind the input data data, the second sampling signal S2 is the input data sampled by the first upper edge of the in-phase clock signal clkI. The input data data sampled by the first lower edge of the in-phase clock signal clkI is at a high level. The fourth sampling signal S4 is at a high level. The first sampling signal S1 is the in-phase clock signal clkI. The input data data sampled by the two upper edges is low level.

請參閱第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 exclusive OR gate 115 is at a high potential, and the phase lagging signal PDD output by the second mutually exclusive OR gate 116 is at a low potential; when the input data data lags behind the in-phase clock signal clkI , the phase leading signal PDU output by the first mutually exclusive OR gate 115 is at a low level, and the phase lagging signal PDD output by the second mutually exclusive OR gate 116 is at a high level, which can be used to determine the in-phase clock signal clkI and the phase relationship between the input data data.

較佳的,該第一正反器111、該第二正反器112、該第三正反器113及該第四正反器114之反向重置端RSTb接收該鎖定訊號lock,以在該鎖定訊號lock為低電位時重置該第一正反器111、該第二正反器112、該第三正反器113及該第四正反器114而重置該相位偵測器110之相位追蹤。Preferably, the reverse reset terminal RSTb of the first flip-flop 111, the second flip-flop 112, the third flip-flop 113 and the fourth flip-flop 114 receives the lock signal lock, so as to When the lock signal lock is low, the first flip-flop 111 , the second flip-flop 112 , the third flip-flop 113 and the fourth flip-flop 114 are reset to reset the phase detector 110 phase tracking.

請參閱第1圖,該磁滯鎖定偵測器130接收該同相時脈訊號clkI及該輸入數據data,該磁滯鎖定偵測器130用於判斷該同相時脈訊號clkI及該輸入數據data之間的頻率差而輸出一鎖定訊號lock至該相位偵測器110及該頻率偵測器120,以決定由相位偵測器110或是頻率偵測器120對該電壓控制振盪器160進行控制。Referring to Figure 1, the hysteresis lock detector 130 receives the in-phase clock signal clkI and the input data data, and the hysteresis lock detector 130 is used to determine the relationship between the in-phase clock signal clkI and the input data data. According to the frequency difference between them, a lock signal lock is output to the phase detector 110 and the frequency detector 120 to determine whether the phase detector 110 or the frequency detector 120 controls the voltage controlled oscillator 160 .

請參閱第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 hysteresis lock detector 130 has a first counter 131, a first hysteresis switch 132, a fifth flip-flop 133, a second counter 134, and a second hysteresis switch 135. , a sixth flip-flop 136 , an OR gate 137 and a logic operation unit 138 . The first counter 131 receives the input data data for counting and outputs a first counting signal A 0 to N-1 . In this embodiment, the first counter 131 is an N-bit counter. The first hysteresis switch 132 is electrically connected to the first counter 131 to receive the two bits A 0 and A K of the first counting signal, and the first hysteresis switch 132 is controlled by the lock signal lock to output a The first trigger signal T1. The fifth flip-flop 133 is electrically connected to the first counter 131 and the first hysteresis switch 132 to receive the highest bit A N-1 of the first counting signal and the first trigger signal T1. The inverter 133 is triggered by the first trigger signal T1 to sample the highest bit A N-1 of the first count signal and output a first temporary storage signal E1. The second counter 134 receives the in-phase clock signal clkI for counting and outputs a second counting signal B 0 ~ N-1 . In this embodiment, the second counter 134 and the first counter 131 are both N-bit elements. counter. The second hysteresis switch 135 is electrically connected to the second counter 134 to receive the two bits B 0 and B K of the second counting signal, and the second hysteresis switch 135 is controlled by the lock signal lock to output a The second trigger signal T2. The sixth flip-flop 136 is electrically connected to the second counter 134 and the second hysteresis switch 135 to receive the highest bit B N-1 of the second count signal and the second trigger signal T2. The inverter 136 is triggered by the second counting signal 134 to sample the highest bit B N-1 of the second counting signal and output a second temporary storage signal E2. The OR gate 137 is electrically connected to the fifth flip-flop 133 and the sixth flip-flop 136 to receive the first temporary signal E1 and the second temporary signal E2, and the OR gate 137 outputs a first logic Signal C. The logic operation unit 138 is electrically connected to the first counter 131, the second counter 134 and the OR gate 137 to receive the highest bit A N-1 of the first counting signal and the highest bit B of the second counting signal. N-1 and the first logic signal C, and the logic operation unit 138 outputs the lock signal lock.

請參閱第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 first hysteresis switch 132 has a first transmission gate 132a and a second transmission gate 132b. The first transmission gate 132a receives the lowest bit A 0 of the first count signal, and the second transmission gate 132 a receives the lowest bit A 0 of the first count signal. The transmission gate 132b receives the K-th bit A K of the first counting signal, and the first transmission gate 132a and the second transmission gate 132b are controlled by the lock signal lock and the reverse lock signal lockb to decide to transmit the first The lowest bit A 0 or the Kth bit A K of the counting signal is used as the first trigger signal T1, where K is between the lowest bit number 0 and the highest bit number N-1 of the first counting signal. Positive integer. The second hysteresis switch 135 has a third transmission gate 135a and a fourth transmission gate 135b. The third transmission gate 135a receives the lowest bit B 0 of the second count signal, and the fourth transmission gate 135b receives the second The Kth bit B K of the count signal, and the third transmission gate 135a and the fourth transmission gate 135b are controlled by the lock signal lock and the reverse lock signal lockb to determine the lowest bit of the second count signal B 0 or the K-th bit B K serves as the second trigger signal T2, where K is a positive integer between the lowest bit number 0 and the highest bit number N-1 of the second counting signal.

請參閱第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 logic operation unit 138 has an inverse-OR gate 138a, a first inverse-AND gate 138b, a second inverse-AND gate 138c, a third inverse-AND gate 138d, and a third inverse-AND gate 138d. Four reverse gates 138e, a seventh flip-flop 138f and a reverse gate 138g. The NOR gate 138a receives the inverted highest bit Ab N-1 of the first count signal and the inverted highest bit Bb N-1 of the second count signal and outputs an NOR signal D. The first NAND gate 138b receives the highest bit A N-1 of the first counting signal and the highest bit B N-1 of the second counting signal and outputs a first NAND signal. The second NAND gate 138c receives the highest bit B N-1 of the second count signal and the first logic signal C and outputs a second inverse AND signal. The third NAND gate 138d receives the highest bit A N of the first count signal. -1 and the first logic signal C and output a third inverse-AND signal. The fourth inverse-AND gate 138e is electrically connected to the first, second and third inverse-AND gates 138b, 138c, 138d to receive the first and second inverse-AND gates 138b, 138c and 138d. and three inverse-AND signals, and the fourth inverse-AND gate 138e outputs a count reset signal R. The seventh flip-flop 138f is electrically connected to the inverse-OR gate 138a and the fourth inverse-AND gate 138e to receive the inverse-OR signal D and the count reset signal R, and the seventh flip-flop 138f is configured by the count reset signal. The signal R is triggered to sample the inverse-OR signal D to output the lock signal lock and the inverse lock signal lockb. The inverse gate 138g is electrically connected to the fourth inverse-AND gate 138e to receive the count reset signal R, and The reverse gate 138g outputs the reverse count reset signal Rb to the first and second counters 131 and 134 and the fifth and sixth flip-flops 133 and 136 for reset.

該第一、四計數器131、134分別對該輸入數據data及該同相時脈輸入訊號clkI進行計數,並在後端電路藉由兩個計數訊號的各位元進行判斷及分析,而在該同相時脈訊號clkI及該輸入數據data之間頻率差異較大時讓該鎖定訊號lock為低電位而開啟該頻率偵測器120進行大幅度之頻率追蹤並關閉相位偵測器110,並在該同相時脈訊號clkI及該輸入數據data之間頻率差異較小時讓該鎖定訊號lock為高電位而開啟該相位偵測器110進行相位鎖定並調整該頻率偵測器120進行小幅度之頻率追蹤。The first and fourth counters 131 and 134 respectively count the input data data and the in-phase clock input signal clkI, and judge and analyze the bits of the two counting signals in the back-end circuit, and at the in-phase time When the frequency difference between the pulse signal clkI and the input data data is large, the lock signal lock is at a low level, turning on the frequency detector 120 to perform large-scale frequency tracking and turning off the phase detector 110, and when the same phase When the frequency difference between the pulse signal clkI and the input data data is small, the lock signal lock is set to a high potential, the phase detector 110 is turned on for phase locking, and the frequency detector 120 is adjusted for small-amplitude frequency tracking.

請參閱第1圖,該升頻/降頻控制電路170接收該同相時脈訊號clkI及該輸入數據data,且該升頻/降頻控制電路170輸出一頻率上升/下降控制訊號UP/DN至該頻率偵測器120。Referring to Figure 1, the up/down frequency control circuit 170 receives the in-phase clock signal clkI and the input data data, and the up/down frequency control circuit 170 outputs a frequency up/down control signal UP/DN to the frequency detector 120.

請參閱第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 frequency control circuit 170 has a third counter 171, a fourth counter 172, an OR gate 173, an eighth flip-flop 174, and a ninth flip-flop. 175 and a reverse gate 176. The third counter 171 receives the in-phase clock signal clkI for counting and outputs a third counting signal Q 0~4 . The fourth counter 172 receives the input data data for counting and outputs a fourth counting signal U 0~4 . The third and fourth counters 171 and 172 are both 5-bit counters. The OR gate 173 is electrically connected to the third counter 171 to receive the highest bit Q 4 and the second highest bit Q 3 of the third counting signals Q 0 ~ 4 , and the OR gate 173 outputs an OR gate signal. The eighth flip-flop 174 is electrically connected to the OR gate 173 and the fourth counter 172 to receive the OR gate signal and the second highest bit U 3 of the fourth count signal. The eighth flip-flop 174 is formed by the fourth The second-highest bit U 3 of the counting signal is triggered to sample the OR signal, and the eighth flip-flop 174 outputs the frequency up/down control signal UP/DN from the inverse output terminal. The ninth flip-flop 175 is electrically connected to the fourth counter 172. The ninth flip-flop 175 receives the highest bit U4 of the fourth count signal and the divided in-phase clock signal clkI/2. The ninth flip-flop 175 is triggered by the divided in-phase clock signal clkI/2 to sample the highest bit U 4 of the fourth count signal, and the ninth flip-flop 175 outputs an up-and-down frequency count through the inverter 176 The reset signal UD_R is sent to the third and fourth counters 171 and 172 for reset.

請參閱第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 control circuit 170. Please refer to Figure 6a. The second highest bit U 3 of the fourth counting signal is second to the third counting signal Q 0~4. When the high-order bit Q3 is faster, the frequency up/down control signal UP/DN is output to 0, which means that the input data data is faster than the in-phase clock signal clkI, and the second-highest bit U3 of the fourth counting signal is faster than the fourth counting signal. When the second highest bit Q 3 of the three counting signals Q 0 to 4 is slow, the frequency up/down control signal UP/DN output is 1, which means that the input data data is slower than the in-phase clock signal clkI.

請參閱第1圖,該頻率偵測器120接收該同相時脈訊號clkI、該輸入數據data及一正交時脈訊號clkQ,該頻率偵測器120用以偵測該同相時脈訊號clkI及該輸入數據data之間的頻率關係而輸出一頻率偵測訊號FD。Referring to Figure 1, the frequency detector 120 receives the in-phase clock signal clkI, the input data data and a quadrature clock signal clkQ. The frequency detector 120 is used to detect the in-phase clock signal clkI and The frequency relationship between the input data data is used to output a frequency detection signal FD.

請參閱第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 frequency detector 120 has a frequency detection circuit 121 and a frequency detection selection circuit 122. The frequency detection signal has a frequency rise detection signal FDU and a frequency Drop detection signal FDD. The frequency detection circuit 121 receives the input data data, the in-phase clock signal clkI and the quadrature clock signal clkQ to detect and output a first frequency up signal UP1 and a first frequency down signal DN1. The frequency detection selection circuit 122 is electrically connected to the frequency detection circuit 121. The frequency detection selection circuit 122 receives the first frequency up signal UP1, the first frequency down signal DN1, the in-phase clock signal clkI and the input data, and the frequency detection selection circuit 122 outputs the frequency up detection signal FDU and the frequency down detection signal FDD.

該頻率偵測電路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 delayer 121a, a third mutual exclusive OR gate 121b, a tenth flip-flop 121c, an eleventh flip-flop 121d, a twelfth flip-flop 121e, a tenth Three flip-flops 121f, a fourteenth flip-flop 121g, a fifteenth flip-flop 121h and an output logic circuit 121i. The delayer 121a receives the input data data and outputs a delayed data. The third exclusive OR gate 121b is electrically connected to the delayer 121a. The third exclusive OR gate 121b receives the input data data and the delayed data. The third exclusive OR gate 121b receives the input data data and the delayed data. The third mutually exclusive OR gate 121b outputs a detection trigger signal. The tenth flip-flop 121c is electrically connected to the mutually exclusive OR gate 121b. The tenth flip-flop 121c receives the in-phase clock signal clkI and the detection trigger signal, and the tenth flip-flop 121c is controlled by the detection The trigger signal triggers to sample the in-phase clock signal clkI and output a tenth sampling signal j. The eleventh flip-flop 121d is electrically connected to the tenth flip-flop 121c. The eleventh flip-flop 121d receives the tenth sampling signal j and the in-phase clock signal clkI, and the eleventh flip-flop 121d 121d is triggered by the in-phase clock signal clkI to sample the tenth sampling signal j and output an eleventh sampling signal k and an inverted eleventh sampling signal kb. The twelfth flip-flop 121e is electrically connected to the eleventh flip-flop 121d. The twelfth flip-flop 121e receives the eleventh sampling signal k and the in-phase clock signal clkI, and the twelfth flip-flop 121e The inverter 121e is triggered by the in-phase clock signal clkI to sample the eleventh sampling signal k and output a twelfth sampling signal l and an inverted twelfth sampling signal lb.

該第十三正反器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-flop 121f is electrically connected to the third mutually exclusive OR gate 121b. The thirteenth flip-flop 121f receives the quadrature clock signal clkQ and the detection trigger signal, and the thirteenth flip-flop 121f The device 121f is triggered by the detection trigger signal to sample the quadrature clock signal clkQ and output a thirteenth sampling signal m. The fourteenth flip-flop 121g is electrically connected to the thirteenth flip-flop 121f. The fourteenth flip-flop 121g receives the thirteenth sampling signal m and the in-phase clock signal clkI, and the fourteenth flip-flop 121g The inverter 121g is triggered by the in-phase clock signal clkI to sample the thirteenth sampling signal m and output a fourteenth sampling signal n and the inverted fourteenth sampling signal nb. The fifteenth flip-flop 121h is electrically connected to the fourteenth flip-flop 121g. The fifteenth flip-flop 121h receives the fourteenth sampling signal n and the in-phase clock signal clkI, and the fifteenth flip-flop 121h The inverter 121h is triggered by the in-phase clock signal clkI to sample the fourteenth sampling signal n and output a fifteenth sampling signal o and the inverted fifteenth sampling signal ob.

該輸出邏輯電路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-flops 121d, 121e, 121g, 121h to receive the eleventh sampling signal k and the inverted eleventh sampling signal kb, the twelfth sampling signal l, the inverted twelfth sampling signal lb, the inverted fourteenth sampling signal nb and the inverted fifteenth sampling signal ob, and the output logic circuit 121i outputs The first frequency up signal UP1 and the first frequency down signal DN1. In this embodiment, the output logic circuit 121i has a first AND gate and1, a second AND gate and2, a third AND gate and3, a fourth AND gate and4 and a fifth AND gate and5. The first AND gate and1 is electrically connected to the eleventh and twelfth flip-flops 121d and 121e to receive the inverted eleventh sampling signal kb and the twelfth sampling signal I. The second AND gate and2 is electrically connected to the fourteenth and fifteenth flip-flops 121g and 121h to receive the reverse fourteenth sampling signal nb and the reverse fifteenth sampling signal ob. The third and The gate is electrically connected to the eleventh and twelfth flip-flops 121d and 121e to receive the eleventh sampling signal k and the reversed twelfth sampling signal lb. The fourth AND gate and4 is electrically connected to the first and second AND gates and1, and2, and the fourth AND gate and4 outputs the first frequency rising signal UP1, and the fifth AND gate and5 is electrically connected to the second and third AND gates and2, and3, and the fifth AND gate and5 outputs the first frequency down signal DN1.

請參閱第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 detection selection circuit 122 has a sixteenth flip-flop 122a, a first multiplexer 122b, a second multiplexer 122c, a third multiplexer 122d and a fourth Multiplexer 122e. The sixteenth flip-flop 122a receives the in-phase clock signal clkI and the input data data, and the sixteenth flip-flop 122a outputs a frequency difference signal DIFF. The frequency difference signal DIFF is the in-phase clock signal clkI and the input data data. The frequency difference between the input data data. The first multiplexer 122b is electrically connected to the sixteenth flip-flop 122a. The first multiplexer 122b receives the frequency difference signal DIFF, a ground voltage Gnd and the frequency up/down control signal UP/DN, and the The first multiplexer 122b outputs a second frequency up signal UP2. The second multiplexer 122c is electrically connected to the first multiplexer 122b and the frequency detection circuit 121. The second multiplexer 122c receives the second frequency up signal UP2, the first frequency up signal UP1 and the The lock signal is locked, and the second multiplexer 122c outputs the frequency rise detection signal FDU. The third multiplexer 122d is electrically connected to the sixteenth flip-flop 122a. The third multiplexer 122d receives the frequency difference signal DIFF, the ground voltage Gnd and the frequency up/down control signal UP/DN, and the The third multiplexer 122d outputs a second frequency down signal DN2. The fourth multiplexer 122e is electrically connected to the third multiplexer 122d and the frequency detection circuit 121. The second multiplexer 122c receives the third frequency down signal DN2. The second frequency down signal DN2, the first frequency down signal DN1 and the lock signal lock, and the fourth multiplexer 122e outputs the frequency down detection signal FDD.

請參閱第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 detection selection circuit 122 outputs the frequency difference signal DIFF as the frequency up detection signal FDU or the frequency down detection signal FDD. When the lock signal lock is at a high potential, it indicates that the frequency difference is small, and the frequency detection selection circuit 122 outputs the first frequency up signal UP1 or the first frequency down signal DN1 of the frequency detection circuit 121 as the frequency up signal. Detection signal FDU or frequency drop detection signal FDD.

請參閱第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 first charge pump 140 is electrically connected to the phase detector 110 to receive the phase leading signal PDU and the phase lagging signal PDD of the phase detection signal, and the first charge pump 140 passes through a The loop filter LF outputs a finely adjusted voltage Vf. The second charge pump 150 is electrically connected to the frequency detector 120 to receive the frequency up detection signal FDU and the frequency down detection signal FDD of the frequency detection signal, and the second charge pump 150 detects The measurement signal charges or discharges a capacitor Cg and outputs a coarse-adjusted voltage Vc. The voltage controlled oscillator 160 is electrically connected to the first charge pump 140 and the second charge pump 150 to receive and be controlled by the coarse voltage Vc and the fine voltage Vf, and the voltage controlled oscillator 160 is controlled by the fine voltage Vc. The in-phase clock signal clkI and the quadrature clock signal clkQ are output under the control of the adjusting voltage Vf and the coarse-adjusting voltage Vc. The in-phase clock signal clkI is output as an output frequency Fout through a buffer 180 .

本發明藉由該磁滯鎖定偵測器130控制該相位偵測器110及該頻率偵測器120,而可選擇性地透過頻率獲取迴路或是相位鎖定迴路進行時脈資料回復,能夠有效地加快該時脈資料回復電路100的鎖定速度並避免兩個迴路之間的相互影響。The present invention uses the hysteresis lock detector 130 to control the phase detector 110 and the frequency detector 120, and can selectively perform clock data recovery through a frequency acquisition loop or a phase lock loop, which can effectively This speeds up the locking speed of the clock data recovery circuit 100 and avoids mutual influence between the two loops.

本發明之保護範圍當視後附之申請專利範圍所界定者為準,任何熟知此項技藝者,在不脫離本發明之精神和範圍內所作之任何變化與修改,均屬於本發明之保護範圍。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)

一種時脈資料回復電路,其包含:一相位偵測器,接收一同相時脈訊號及一輸入數據,該相位偵測器用以偵測該同相時脈訊號及該輸入數據之間的相位關係而輸出一相位偵測訊號,其中該相位偵測器具有一第一正反器、一第二正反器、一第三正反器、一第四正反器、一第一互斥或閘及一第二互斥或閘,且該相位偵測訊號具有一相位領先偵測訊號及一相位落後偵測訊號,該第一正反器接收該輸入數據及該同相時脈訊號,該第一正反器由該同相時脈訊號之正緣觸發而取樣該輸入數據並輸出一第一取樣訊號,該第二正反器電性連接該第一正反器,該第二正反器接收該第一取樣訊號及該同相時脈訊號,該第二正反器由該同相時脈訊號之正緣觸發而取樣該第一取樣訊號並輸出一第二取樣訊號,該第三正反器接收該輸入數據及該同相時脈訊號,該第三正反器由該同相時脈訊號之負緣觸發而取樣該輸入數據並輸出一第三取樣訊號,該第四正反器電性連接該第三正反器,該第四正反器接收該第三取樣訊號及該同相時脈訊號,該第四正反器由該同相時脈訊號之正緣觸發而取樣該第三取樣訊號並輸出一第四取樣訊號,該第一互斥或閘電性連接該第一正反器及該第四正反器以接收該第一取樣訊號及該第四取樣訊號,且該第一互斥或閘輸出該相位領先偵測訊號,該第二互斥或閘電性連接該第二正反器及該第四正反器以接收該第二取樣訊號及該第四取樣訊號,且該第二互斥或閘輸出該相位落後偵測訊號;一頻率偵測器,接收該同相時脈訊號、該輸入數據及一正交時脈訊號,該頻率偵測器用以偵測該同相時脈訊號及該輸入數據之間的頻率關係而輸出一頻率偵測訊號; 一磁滯鎖定偵測器,接收該同相時脈訊號及該輸入數據,該磁滯鎖定偵測器用於判斷該同相時脈訊號及該輸入數據之間的頻率差而輸出一鎖定訊號至該相位偵測器及該頻率偵測器;一第一充電泵,電性連接該相位偵測器以接收該相位偵測訊號,且該第一充電泵經由一迴路濾波器輸出一細調電壓;一第二充電泵,電性連接該頻率偵測器以接收該頻率偵測訊號,且該第二充電泵根據該頻率偵測訊號對一電容充電或放電而輸出一粗調電壓;一電壓控制振盪器,電性連接該第一充電泵及該第二充電泵以接收該粗調電壓及該細調電壓,且該電壓控制振盪器輸出該同相時脈訊號及該正交時脈訊號;以及一升頻/降頻控制電路,接收該同相時脈訊號及該輸入數據,且該升頻/降頻控制電路輸出一頻率上升/下降控制訊號至該頻率偵測器。 A clock data recovery circuit, which includes: a phase detector that receives a same-phase clock signal and an input data, and the phase detector is used to detect the phase relationship between the same-phase clock signal and the input data. Output a phase detection signal, wherein the phase detector has a first flip-flop, a second flip-flop, a third flip-flop, a fourth flip-flop, a first mutually exclusive OR gate and a The second mutually exclusive OR gate, and the phase detection signal has a phase leading detection signal and a phase lagging detection signal, the first flip-flop receives the input data and the in-phase clock signal, the first flip-flop The device is triggered by the positive edge of the in-phase clock signal to sample the input data and output a first sampling signal. The second flip-flop is electrically connected to the first flip-flop, and the second flip-flop receives the first The sampling signal and the in-phase clock signal, the second flip-flop is triggered by the positive edge of the in-phase clock signal to sample the first sampling signal and output a second sampling signal, the third flip-flop receives the input data and the in-phase clock signal. The third flip-flop is triggered by the negative edge of the in-phase clock signal to sample the input data and output a third sampling signal. The fourth flip-flop is electrically connected to the third flip-flop. The fourth flip-flop receives the third sampling signal and the in-phase clock signal. The fourth flip-flop is triggered by the positive edge of the in-phase clock signal to sample the third sampling signal and output a fourth sample. signal, the first mutual exclusive OR gate is electrically connected to the first flip-flop and the fourth flip-flop to receive the first sampling signal and the fourth sampling signal, and the first mutual exclusive OR gate outputs the phase Leading the detection signal, the second mutual exclusive OR gate is electrically connected to the second flip-flop and the fourth flip-flop to receive the second sampling signal and the fourth sampling signal, and the second mutual exclusive OR gate Output the phase lag detection signal; a frequency detector receives the in-phase clock signal, the input data and a quadrature clock signal, and the frequency detector is used to detect the in-phase clock signal and the input data The frequency relationship between them outputs a frequency detection signal; A 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 lock signal to the phase detector and the frequency detector; a first charge pump, electrically connected to the phase detector to receive the phase detection signal, and the first charge pump outputs a finely adjusted voltage through a loop filter; a A 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 and outputs a coarse-adjusted voltage; a voltage-controlled oscillation an oscillator, 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; and a The up/down frequency control circuit receives the in-phase clock signal and the input data, and the up/down frequency control circuit outputs a frequency up/down control signal to the frequency detector. 如請求項1之時脈資料回復電路,其中該磁滯鎖定偵測器具有一第一計數器、一第一磁滯開關、一第五正反器、一第二計數器、一第二磁滯開關、一第六正反器、一或閘及一邏輯運算單元,該第一計數器接收該輸入數據進行計數並輸出一第一計數訊號,該第一磁滯開關電性連接該第一計數器以接收該第一計數訊號,且該第一磁滯開關受該鎖定訊號控制而輸出一第一觸發訊號,該第五正反器電性連接該第一計數器及該第一磁滯開關以接收該第一計數訊號及該第一觸發訊號,該第五正反器被該第一觸發訊號觸發而取樣該第一計數訊號的最高位元並輸出一第一暫存訊號,該第二計數器接收該同相時脈訊號進行計數並輸出一第二計數訊號,該第二磁滯開關電性連接該第二計數器以接收該第二計數訊號,且該第二磁滯開關受該鎖定訊號控制而輸出一第二觸發訊號,該第六 正反器電性連接該第二計數器及該第二磁滯開關以接收該第二計數訊號及該第二觸發訊號,該第六正反器被該第二計數訊號觸發而取樣該第二計數訊號的最高位元並輸出一第二暫存訊號,該或閘電性連接該第五正反器及該第六正反器以接收該第一暫存訊號及該第二暫存訊號,且該或閘輸出一第一邏輯訊號,該邏輯運算單元電性連接該第一計數器、該第二計數器及該或閘以接收該第一計數訊號、該第二計數訊號及該第一邏輯訊號,且該邏輯運算單元輸出該鎖定訊號。 The clock data recovery circuit of claim 1, wherein the hysteresis lock detector has a first counter, a first hysteresis switch, a fifth flip-flop, a second counter, a second hysteresis switch, A sixth flip-flop, an OR gate and a logic operation unit, the first counter receives the input data to count and outputs a first counting signal, the first hysteresis switch is electrically connected to the first counter to receive the The first counting signal, and the first hysteresis switch is controlled by the locking signal to output a first trigger signal. The fifth flip-flop is electrically connected to the first counter and the first hysteresis switch to receive the first The counting signal and the first trigger signal. The fifth flip-flop is triggered by the first trigger signal to sample the highest bit of the first counting signal and output a first temporary storage signal. The second counter receives the in-phase time The pulse signal is counted and a second counting signal is output. The second hysteresis switch is electrically connected to the second counter to receive the second counting signal, and the second hysteresis switch is controlled by the lock signal to output a second Trigger signal, the sixth The flip-flop is electrically connected to the second counter and the second hysteresis switch to receive the second count signal and the second trigger signal. The sixth flip-flop is triggered by the second count signal to sample the second count. The highest bit of the signal and outputs a second temporary signal, the OR gate is electrically connected to the fifth flip-flop and the sixth flip-flop to receive the first temporary signal and the second temporary signal, and The OR gate outputs a first logic signal, and the logic operation unit is electrically connected to the first counter, the second counter and the OR gate to receive the first counting signal, the second counting signal and the first logic signal, And the logic operation unit outputs the lock signal. 如請求項2之時脈資料回復電路,其中該第一磁滯開關具有一第一傳輸閘及一第二傳輸閘,該第一傳輸閘接收該第一計數訊號之最低位元,該第二傳輸閘接收第一計數訊號之第K位元,且該第一傳輸閘及該第二傳輸閘受該鎖定訊號及反向之該鎖定訊號控制而決定將該第一計數訊號之最低位元或第K位元作為該第一觸發訊號,其中K為介於該第一計數訊號最低位元數及最高位元數之間的正整數。 For example, the clock data recovery circuit of claim 2, wherein the first hysteresis switch has a first transmission gate and a second transmission gate, the first transmission gate receives the lowest bit of the first count signal, and the second transmission gate The transmission gate receives the K-th bit of the first counting signal, and the first transmission gate and the second transmission gate are controlled by the lock signal and the reverse lock signal to decide whether to convert the lowest bit of the first counting signal or The Kth bit serves as the first trigger signal, where K is a positive integer between the lowest bit number and the highest bit number of the first counting signal. 如請求項2之時脈資料回復電路,其中該邏輯運算單元具有一反或閘、一第一反及閘、一第二反及閘、一第三反及閘、一第四反及閘、一第七正反器及一反閘,該反或閘接收反向之該第一計數訊號的最高位元及反向之該第二計數訊號的最高位元並輸出一反或訊號,該第一反及閘接收該第一計數訊號之最高位元及該第二計數訊號之最高位元並輸出一第一反及訊號,該第二反及閘接收該第二計數訊號之最高位元及該第一邏輯訊號並輸出一第二反及訊號,該第三反及閘接收該第一計數訊號之最高位元及該第一邏輯訊號並輸出一第三反及訊號,該第四反及閘電性連接該第一、二及三反及閘以接收該第一、二及三反及訊號,該第四反及閘輸出一計數重置訊號,該第七正反器電性連接該反或閘及該第四反及閘以接收該反或訊號及該計數重置訊號,且該第七正反器受該計 數重置訊號觸發對該反或訊號取樣而輸出該鎖定訊號及反向之該鎖定訊號,該反閘電性連接該第四反及閘以接收該計數重置訊號,且該反閘輸出反向之該計數重置訊號至該第一、二計數器及該第五、六正反器進行重置。 For example, the clock data recovery circuit of claim 2, wherein the logic operation unit has an inverse-OR gate, a first inverse-AND gate, a second inverse-AND gate, a third inverse-AND gate, a fourth inverse-AND gate, A seventh flip-flop and an inverse gate. The inverted OR gate receives the highest bit of the inverted first count signal and the highest bit of the inverted second count signal and outputs an inverted OR signal. The inverted OR gate An NAND gate receives the highest bit of the first counting signal and the highest bit of the second counting signal and outputs a first NAND signal. The second NAND gate receives the highest bit of the second counting signal and The first logic signal also outputs a second inverse-AND signal. The third inverse-AND gate receives the highest bit of the first count signal and the first logic signal and outputs a third inverse-AND signal. The fourth inverse-AND gate The gate is electrically connected to the first, second and third NAND gates to receive the first, second and third NAND signals, the fourth NAND gate outputs a count reset signal, and the seventh flip-flop is electrically connected to the The NOR gate and the fourth NOR gate are used to receive the NOR signal and the count reset signal, and the seventh flip-flop is affected by the count reset signal. The count reset signal triggers sampling of the inverse OR signal to output the lock signal and the inverse lock signal. The invert gate is electrically connected to the fourth invert gate to receive the count reset signal, and the invert gate outputs the inverse The count reset signal is sent to the first and second counters and the fifth and sixth flip-flops for resetting. 如請求項1之時脈資料回復電路,其中該升降頻控制電路具有一第三計數器、一第四計數器、一或閘、一第八正反器、一第九正反器及一反閘,該第三計數器接收該同相時脈訊號進行計數而輸出一第三計數訊號,該第四計數器接收該輸入數據進行計數而輸出一第四計數訊號,該或閘電性連接該第三計數器以接收該第三計數訊號之最高位元及次高位元,且該或閘輸出一或閘訊號,該第八正反器電性連接該或閘及該第四計數器以接收該或閘訊號及該第四計數訊號之次高位元,該第八正反器由該第四計數訊號之次高位元觸發而取樣該或閘訊號,且該第八正反器輸出該頻率上升/下降控制訊號,該第九正反器電性連接該第四計數器,該第九正反器接收該第四計數訊號之最高位元及除頻之該同相時脈訊號,該第九正反器由除頻之該同相時脈訊號觸發而取樣該第四計數訊號之最高位元,且該第九正反器經由該反閘輸出一升降頻計數重置訊號至該第三、四計數器進行重置。 For example, the clock data recovery circuit of claim 1, wherein the up/down frequency control circuit has a third counter, a fourth counter, an OR gate, an eighth flip-flop, a ninth flip-flop and an inverse gate, The third counter receives the in-phase clock signal to count and outputs a third counting signal. The fourth counter receives the input data to count and outputs a fourth counting signal. The OR gate is electrically connected to the third counter to receive The highest bit and the second highest bit of the third counting signal, and the OR gate outputs an OR gate signal. The eighth flip-flop is electrically connected to the OR gate and the fourth counter to receive the OR gate signal and the third counter. The second highest bit of the fourth count signal, the eighth flip-flop is triggered by the second highest bit of the fourth count signal to sample the OR gate signal, and the eighth flip-flop outputs the frequency up/down control signal, the eighth flip-flop Nine flip-flops are electrically connected to the fourth counter. The ninth flip-flop receives the highest bit of the fourth count signal and the divided in-phase clock signal. The ninth flip-flop is divided by the divided in-phase clock signal. The clock signal is triggered to sample the highest bit of the fourth count signal, and the ninth flip-flop outputs an up-and-down frequency count reset signal to the third and fourth counters through the inverter for resetting. 如請求項1之時脈資料回復電路,其中該頻率偵測器具有一頻率偵測電路及一頻率偵測選擇電路,該頻率偵測訊號具有一頻率上升偵測訊號及一頻率下降偵測訊號,該頻率偵測電路接收該輸入數據、該同相時脈訊號及該正交時脈訊號進行偵測並輸出一第一頻率上升訊號及一第一頻率下降訊號,該頻率偵測選擇電路電性連接該頻率偵測電路,該頻率偵測選擇電路接收該第一頻率上升訊號、該第一頻率下降訊號、該同相時脈訊號及該輸入數據,且該頻率偵測選擇電路輸出該頻率上升偵測訊號及該頻率下降偵測訊號。 For example, the clock data recovery circuit of claim 1, wherein the frequency detector has a frequency detection circuit and a frequency detection selection circuit, and the frequency detection signal has a frequency rising detection signal and a frequency falling detection signal, The frequency detection circuit receives the input data, the in-phase clock signal and the quadrature clock signal to detect and output a first frequency rising signal and a first frequency falling signal. The frequency detection selection circuit is electrically connected The frequency detection circuit, the frequency detection selection circuit receives the first frequency rising signal, the first frequency falling signal, the in-phase clock signal and the input data, and the frequency detection selection circuit outputs the frequency rising detection signal and the frequency drop detection signal. 如請求項6之時脈資料回復電路,其中該頻率偵測電路具有一延遲器、一第三互斥或閘、一第十正反器、一第十一正反器、一第十二正反器、一第十三正反器、一第十四正反器、一第十五正反器及一輸出邏輯電路,該延遲器接收該輸入數據並輸出一延遲數據,該第三互斥或閘電性連接該延遲器,該第三互斥或閘接收該輸入數據及該延遲數據,該第三互斥或閘輸出一偵測觸發訊號,該第十正反器電性連接該互斥或閘,該第十正反器接收該同相時脈訊號及該偵測觸發訊號,且該第十正反器輸出一第十取樣訊號,該第十一正反器電性連接該第十正反器,該第十一正反器接收該第十取樣訊號及該同相時脈訊號,且該第十一正反器輸出一第十一取樣訊號及反向之該第十一取樣訊號,該第十二正反器電性連接該第十一正反器,該第十二正反器接收該第十一取樣訊號及該同相時脈訊號,且該第十二正反器輸出一第十二取樣訊號及反向之該第十二取樣訊號,該第十三正反器電性連接該第三互斥或閘,該第十三正反器接收該正交時脈訊號及該偵測觸發訊號,且該第十三正反器輸出一第十三取樣訊號,該第十四正反器電性連接該第十三正反器,該第十四正反器接收該第十三取樣訊號及該同相時脈訊號,且該第十四正反器輸出一第十四取樣訊號及反向之該第十四取樣訊號,該第十五正反器電性連接該第十四正反器,該第十五正反器接收該第十四取樣訊號及該同相時脈訊號,且該第十五正反器輸出一第十五取樣訊號及反向之該第十五取樣訊號,該輸出邏輯電路電性連接該第十一、十二、十四及十五正反器以接收該第十一取樣訊號、反向之該第十一取樣訊號、該第十二取樣訊號、反向之該第十二取樣訊號、反向之該第十四取樣訊號及反向之該第十五取樣訊號,且該輸出邏輯電路輸出該第一頻率上升訊號及該第一頻率下降訊號。 For example, the clock data recovery circuit of claim 6, wherein the frequency detection circuit has a delayer, a third mutually exclusive OR gate, a tenth flip-flop, an eleventh flip-flop, and a twelfth flip-flop. inverter, a thirteenth flip-flop, a fourteenth flip-flop, a fifteenth flip-flop and an output logic circuit, the delay device receives the input data and outputs a delayed data, the third mutex The OR gate is electrically connected to the delay device, the third mutual exclusive OR gate receives the input data and the delayed data, the third mutual exclusive OR gate outputs a detection trigger signal, and the tenth flip-flop is electrically connected to the mutual exclusive OR gate. reject or gate, the tenth flip-flop receives the in-phase clock signal and the detection trigger signal, and the tenth flip-flop outputs a tenth sampling signal, and the eleventh flip-flop is electrically connected to the tenth A flip-flop, the eleventh flip-flop receives the tenth sampling signal and the in-phase clock signal, and the eleventh flip-flop outputs an eleventh sampling signal and the inverted eleventh sampling signal, The twelfth flip-flop is electrically connected to the eleventh flip-flop, the twelfth flip-flop receives the eleventh sampling signal and the in-phase clock signal, and the twelfth flip-flop outputs a first Twelve sampling signals and the reversed twelfth sampling signal, the thirteenth flip-flop is electrically connected to the third mutually exclusive OR gate, and the thirteenth flip-flop receives the quadrature clock signal and the detection The trigger signal is detected, and the thirteenth flip-flop outputs a thirteenth sampling signal. The fourteenth flip-flop is electrically connected to the thirteenth flip-flop, and the fourteenth flip-flop receives the thirteenth sampling signal. The sampling signal and the in-phase clock signal, and the fourteenth flip-flop outputs a fourteenth sampling signal and the inverted fourteenth sampling signal, the fifteenth flip-flop is electrically connected to the fourteenth positive inverter an inverter, the fifteenth flip-flop receives the fourteenth sampling signal and the in-phase clock signal, and the fifteenth flip-flop outputs a fifteenth sampling signal and the inverted fifteenth sampling signal, The output logic circuit is electrically connected to the eleventh, twelfth, fourteenth and fifteenth flip-flops to receive the eleventh sampling signal, the inverted eleventh sampling signal, the twelfth sampling signal, the inverse The twelfth sampling signal in the direction, the fourteenth sampling signal in the opposite direction, and the fifteenth sampling signal in the opposite direction, and the output logic circuit outputs the first frequency rising signal and the first frequency falling signal. 如請求項7之時脈資料回復電路,其中該輸出邏輯電路具有一第 一及閘、一第二及閘、一第三及閘、一第四及閘及一第五及閘,該第一及閘電性連接第十一、十二正反器以接收該反向之該第十一取樣訊號及該第十二取樣訊號,該第二及閘電性連接第十四、十五正反器以接收該反向之該第十四取樣訊號及反向之該第十五取樣訊號,該第三及閘電性連接第十一、十二正反器以接收該該第十一取樣訊號及反向之該第十二取樣訊號,該第四及閘電性連接該第一、二及閘,且該第四及閘輸出該第一頻率上升訊號,該第五及閘電性連接該第二、三及閘,且該第五及閘輸出該第一頻率下降訊號。 The clock data recovery circuit of claim 7, wherein the output logic circuit has a first A AND gate, a second AND gate, a third AND gate, a fourth AND gate and a fifth AND gate, the first AND gate is electrically connected to the eleventh and twelfth flip-flops to receive the reverse The eleventh sampling signal and the twelfth sampling signal, the second and gate are electrically connected to the fourteenth and fifteenth flip-flops to receive the reversed fourteenth sampling signal and the reversed third Fifteenth sampling signal, the third and gate are electrically connected to the eleventh and twelfth flip-flop to receive the eleventh sampling signal and the reversed twelfth sampling signal, the fourth and gate are electrically connected The first and second AND gates, and the fourth AND gate output the first frequency rising signal, the fifth AND gate is electrically connected to the second and third AND gate, and the fifth AND gate outputs the first frequency falling signal signal. 如請求項6之時脈資料回復電路,其中該頻率偵測選擇電路具有一第十六正反器、一第一多工器、一第二多工器、一第三多工器及一第四多工器,該第十六正反器接收該同相時脈訊號及該輸入數據,且該第十六正反器輸出一頻率差訊號,該第一多工器電性連接該第十六正反器,該第一多工器接收該頻率差訊號、一接地電壓及頻率上升/下降控制訊號,且該第一多工器輸出一第二頻率上升訊號,該第二多工器電性連接該第一多工器及該頻率偵測電路,該第二多工器接收該第二頻率上升訊號、該第一頻率上升訊號及該鎖定訊號,且該第二多工器輸出該頻率上升偵測訊號,該第三多工器電性連接該第十六正反器,該第三多工器接收該頻率差訊號、該接地電壓及頻率上升/下降控制訊號,且該第三多工器輸出一第二頻率下降訊號,該第四多工器電性連接該第三多工器及該頻率偵測電路,該第二多工器接收該第二頻率下降訊號、該第一頻率下降訊號及該鎖定訊號,且該第四多工器輸出該頻率下降偵測訊號。 For example, the clock data recovery circuit of claim 6, wherein the frequency detection selection circuit has a sixteenth flip-flop, a first multiplexer, a second multiplexer, a third multiplexer and a first multiplexer. Four multiplexers, the sixteenth flip-flop receives the in-phase clock signal and the input data, and the sixteenth flip-flop outputs a frequency difference signal, the first multiplexer is electrically connected to the sixteenth flip-flop Flip-flop, the first multiplexer receives the frequency difference signal, a ground voltage and the frequency rise/fall control signal, and the first multiplexer outputs a second frequency rise signal, the second multiplexer electrically The first multiplexer and the frequency detection circuit are connected, the second multiplexer receives the second frequency increase signal, the first frequency increase signal and the lock signal, and the second multiplexer outputs the frequency increase To detect the signal, the third multiplexer is electrically connected to the sixteenth flip-flop, the third multiplexer receives the frequency difference signal, the ground voltage and the frequency rise/fall control signal, and the third multiplexer The second multiplexer outputs a second frequency down signal, the fourth multiplexer is electrically connected to the third multiplexer and the frequency detection circuit, the second multiplexer receives the second frequency down signal, the first frequency down signal signal and the lock signal, and the fourth multiplexer outputs the frequency drop detection signal.
TW111128853A 2022-08-01 2022-08-01 Clock data recovery circuit TWI827182B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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