TWI523433B - Input signal voltage detection module and method, and related data transmission system - Google Patents

Input signal voltage detection module and method, and related data transmission system Download PDF

Info

Publication number
TWI523433B
TWI523433B TW102140371A TW102140371A TWI523433B TW I523433 B TWI523433 B TW I523433B TW 102140371 A TW102140371 A TW 102140371A TW 102140371 A TW102140371 A TW 102140371A TW I523433 B TWI523433 B TW I523433B
Authority
TW
Taiwan
Prior art keywords
voltage
comparison
switch
signal
electrically connected
Prior art date
Application number
TW102140371A
Other languages
Chinese (zh)
Other versions
TW201519579A (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 TW102140371A priority Critical patent/TWI523433B/en
Publication of TW201519579A publication Critical patent/TW201519579A/en
Application granted granted Critical
Publication of TWI523433B publication Critical patent/TWI523433B/en

Links

Description

輸入訊號電壓偵測模組及方法與相關資料傳輸系統 Input signal voltage detection module and method and related data transmission system

本發明是有關於一種輸入訊號電壓偵測模組及方法與相關資料傳輸系統,且特別是有關於一種可即時偵測資料訊號是否異常的輸入訊號電壓偵測模組及方法與相關資料傳輸系統。 The present invention relates to an input signal voltage detecting module and method and related data transmission system, and particularly to an input signal voltage detecting module and method and related data transmission system capable of detecting whether an abnormality of a data signal is abnormal .

鎖相迴路(phase-locked loop;PLL)電路具有相位同步和頻率鎖定等功能,因此已被廣泛應用在資料傳輸系統和無線通訊等相關領域。請參照第1圖,其係繪示習知鎖相迴路電路10之示意圖。鎖相迴路電路10包含相位頻率偵測器110、電荷泵(charge pump)120、電壓控制振盪器(voltage-controlled oscillator)130和除頻器140。相位頻率偵測器110比較資料訊號FIN和反饋訊號FB的頻率和相位,以產生比較結果。電荷泵120用以將相位頻率偵測器110產生的比較結果轉換成輸入訊號電壓VIN。電壓控制振盪器130用以將輸入訊號電壓VIN轉換為具對應振盪頻率的頻率輸出訊號FOUT。除頻器140調降頻率輸出訊號FOUT的頻率,以產生反饋訊號FB。此外,在電荷泵120和電壓控制振盪器130之間另可包含迴路濾波器(圖未繪 示),用以將輸入訊號電壓VIN的高頻成分去除,使輸入訊號電壓VIN更為平順。然而,鎖相迴路電路10可能會因外在因素而無法將頻率輸出訊號FOUT鎖定在正確的頻率,導致系統異常,若無法即時偵測到系統異常而作對應處理,系統效能將會嚴重受到影響。 The phase-locked loop (PLL) circuit has functions such as phase synchronization and frequency lock, and has been widely used in data transmission systems and wireless communication and other related fields. Please refer to FIG. 1 , which is a schematic diagram of a conventional phase locked loop circuit 10 . The phase locked loop circuit 10 includes a phase frequency detector 110, a charge pump 120, a voltage-controlled oscillator 130, and a frequency divider 140. The phase frequency detector 110 compares the frequency and phase of the data signal F IN and the feedback signal F B to produce a comparison result. The charge pump 120 is configured to convert the comparison result generated by the phase frequency detector 110 into an input signal voltage V IN . The voltage controlled oscillator 130 is configured to convert the input signal voltage V IN into a frequency output signal F OUT having a corresponding oscillation frequency. The frequency divider 140 reduces the frequency of the frequency output signal F OUT to generate a feedback signal F B . Further, between the charge pump 120 and a voltage controlled oscillator circuit 130 can further include a filter (not shown) for the high frequency component of the input signal voltage V IN is removed, the input signal voltage V IN a smoother . However, the phase-locked loop circuit 10 may not be able to lock the frequency output signal F OUT to the correct frequency due to external factors, resulting in a system abnormality. If the system abnormality cannot be detected immediately, the system performance will be seriously affected. influences.

本發明的目的是在於提供一種偵測機制,可即時偵測輸入訊號電壓,以判斷頻率輸出訊號是否鎖定在正確的頻率。若頻率輸出訊號未鎖定在正確的頻率,則判斷系統為異常,並可即時作對應處理,進而提升系統效能。 The object of the present invention is to provide a detection mechanism for instantly detecting an input signal voltage to determine whether a frequency output signal is locked at a correct frequency. If the frequency output signal is not locked at the correct frequency, the system is judged to be abnormal, and the corresponding processing can be performed immediately, thereby improving the system performance.

依據本發明之上述目的,提出一種輸入訊號電壓偵測模組。此輸入訊號電壓偵測模組適用於偵測輸入訊號電壓,包含比較電壓產生單元、比較單元及控制單元。比較電壓產生單元用以根據輸入訊號電壓產生輸出訊號電壓、第一比較電壓及第二比較電壓。比較單元用以根據輸出訊號電壓、第一比較電壓、第二比較電壓及第一時脈訊號產生第一比較結果及第二比較結果。控制單元用以根據第一比較結果及第二比較結果產生控制訊號。 According to the above object of the present invention, an input signal voltage detecting module is proposed. The input signal voltage detecting module is suitable for detecting an input signal voltage, and includes a comparison voltage generating unit, a comparing unit and a control unit. The comparison voltage generating unit is configured to generate an output signal voltage, a first comparison voltage, and a second comparison voltage according to the input signal voltage. The comparing unit is configured to generate a first comparison result and a second comparison result according to the output signal voltage, the first comparison voltage, the second comparison voltage, and the first clock signal. The control unit is configured to generate a control signal according to the first comparison result and the second comparison result.

依據本發明之一實施例,上述比較電壓產生單元包含運算放大器、電晶體、第一電阻及第二電阻。運算放大器具有正相輸入端、負相輸入端及輸出端。運算放大器之正相輸入端接收輸出訊號電壓,且運算放大器之負相輸入端接收輸入電壓訊號。電晶體具有源極、閘極及汲極。電晶體之源極電性連接電壓源,且電晶體之閘極電性連接輸 出端。第一電阻具有第一端及第二端。第一電阻之第一端電性連接於電晶體之源極且用以提供第一比較電壓,且第一電阻之第二端用以提供輸出訊號電壓。第一電阻之第二端。第二電阻具有一第一端及一第二端。第二電阻之第一端電性連接第一電阻之第二端且用以提供輸出訊號電壓,且第二電阻之第二端用以提供第二比較電壓。 According to an embodiment of the invention, the comparison voltage generating unit includes an operational amplifier, a transistor, a first resistor, and a second resistor. The operational amplifier has a positive phase input, a negative phase input, and an output. The positive phase input of the operational amplifier receives the output signal voltage, and the negative phase input of the operational amplifier receives the input voltage signal. The transistor has a source, a gate and a drain. The source of the transistor is electrically connected to the voltage source, and the gate of the transistor is electrically connected Out. The first resistor has a first end and a second end. The first end of the first resistor is electrically connected to the source of the transistor and is used to provide a first comparison voltage, and the second end of the first resistor is used to provide an output signal voltage. The second end of the first resistor. The second resistor has a first end and a second end. The first end of the second resistor is electrically connected to the second end of the first resistor and is configured to provide an output signal voltage, and the second end of the second resistor is configured to provide a second comparison voltage.

依據本發明之又一實施例,上述比較單元包含高電壓比較單元及低電壓比較單元。高電壓比較單元用以根據輸出訊號電壓、第一比較電壓及第一時脈訊號產生第一比較結果。高電壓比較單元包含第一開關、第一電容及第一比較器。第一開關電性連接第一電阻之第一端,用以根據第一時脈訊號切換為開啟或關閉狀態。第一電容電性連接於第一開關與接地端之間。第一比較器具有正相輸入端、負相輸入端及輸出端。第一比較器之正相輸入端電性連接第一電阻之第二端,第一比較器之負相輸入端電性連接第一電容,且第一比較器之輸出端用以輸出第一比較結果。低電壓比較單元用以根據輸出訊號電壓、第二比較電壓及第一時脈訊號產生第二比較結果。低電壓比較單元包含第二開關、第二電容及第二比較器。第二開關電性連接第二電阻之第二端,用以根據第一時脈訊號切換為開啟或關閉狀態。第二電容電性連接第二開關與接地端之間。第二比較器具有正相輸入端、負相輸入端及輸出端。第二比較器之正相輸入端電性連接第二電阻之第一端,第二比較器之負相輸入端電性連接第二電容,且第二比較器之輸出端用 以輸出第二比較結果。 According to still another embodiment of the present invention, the comparison unit includes a high voltage comparison unit and a low voltage comparison unit. The high voltage comparison unit is configured to generate a first comparison result according to the output signal voltage, the first comparison voltage, and the first clock signal. The high voltage comparison unit includes a first switch, a first capacitor, and a first comparator. The first switch is electrically connected to the first end of the first resistor for switching to an on or off state according to the first clock signal. The first capacitor is electrically connected between the first switch and the ground. The first comparator has a positive phase input terminal, a negative phase input terminal, and an output terminal. The non-inverting input end of the first comparator is electrically connected to the second end of the first resistor, the negative phase input end of the first comparator is electrically connected to the first capacitor, and the output end of the first comparator is used to output the first comparison result. The low voltage comparison unit is configured to generate a second comparison result according to the output signal voltage, the second comparison voltage, and the first clock signal. The low voltage comparison unit includes a second switch, a second capacitor, and a second comparator. The second switch is electrically connected to the second end of the second resistor for switching to an on or off state according to the first clock signal. The second capacitor is electrically connected between the second switch and the ground. The second comparator has a positive phase input terminal, a negative phase input terminal, and an output terminal. The non-inverting input end of the second comparator is electrically connected to the first end of the second resistor, the negative phase input end of the second comparator is electrically connected to the second capacitor, and the output end of the second comparator is used To output a second comparison result.

依據本發明之又一實施例,上述比較單元包含高電壓比較單元及低電壓比較單元。高電壓比較單元用以根據輸出訊號電壓、第一比較電壓、共同輸入電壓、第一時脈訊號及第二時脈訊號產生第一比較結果。高電壓比較單元包含第一開關、第二開關、第一電容、第三開關及第一比較器。第一開關電性連接第一電阻之第一端。第一開關用以根據第一時脈訊號切換為開啟或關閉狀態。第二開關電性連接第一電阻之第二端及第一開關。第二開關用以根據第二時脈訊號切換為開啟或關閉狀態。第一電容電性連接第一開關與第二開關。第三開關電性連接第一電容及共同輸入電壓。第三開關用以根據第一時脈訊號切換為開啟或關閉狀態。第一比較器具有正相輸入端、負相輸入端及輸出端。第一比較器之正相輸入端電性連接共同輸入電壓,第一比較器之負相輸入端電性連接第一電容與第三開關,且第一比較器之輸出端用以輸出第一比較結果。低電壓比較單元用以根據輸出訊號電壓、第二比較電壓、共同輸入電壓、第一時脈訊號及第二時脈訊號產生第二比較結果。 低電壓比較單元包含第四開關、第五開關、第二電容、第六開關及第二比較器。第四開關電性連接第二電阻之第二端。第四開關用以根據第一時脈訊號切換為開啟或關閉狀態。第五開關電性連接第二電阻之第一端及第四開關。第五開關用以根據第二時脈訊號切換為開啟或關閉狀態。第二電容電性連接第四開關與第五開關。第六開關電性連接 第二電容及共同輸入電壓。第六開關用以根據第一時脈訊號切換為開啟或關閉狀態。第二比較器具有正相輸入端、負相輸入端及輸出端。第二比較器之正相輸入端電性連接共同輸入電壓,第二比較器之負相輸入端電性連接第二電容與第六開關,且第二比較器之輸出端用以輸出第二比較結果。 According to still another embodiment of the present invention, the comparison unit includes a high voltage comparison unit and a low voltage comparison unit. The high voltage comparison unit is configured to generate a first comparison result according to the output signal voltage, the first comparison voltage, the common input voltage, the first clock signal, and the second clock signal. The high voltage comparison unit includes a first switch, a second switch, a first capacitor, a third switch, and a first comparator. The first switch is electrically connected to the first end of the first resistor. The first switch is configured to switch to an on or off state according to the first clock signal. The second switch is electrically connected to the second end of the first resistor and the first switch. The second switch is configured to switch to an on or off state according to the second clock signal. The first capacitor is electrically connected to the first switch and the second switch. The third switch is electrically connected to the first capacitor and the common input voltage. The third switch is configured to switch to an on or off state according to the first clock signal. The first comparator has a positive phase input terminal, a negative phase input terminal, and an output terminal. The non-inverting input terminal of the first comparator is electrically connected to the common input voltage, the negative phase input end of the first comparator is electrically connected to the first capacitor and the third switch, and the output end of the first comparator is used to output the first comparison result. The low voltage comparison unit is configured to generate a second comparison result according to the output signal voltage, the second comparison voltage, the common input voltage, the first clock signal, and the second clock signal. The low voltage comparison unit includes a fourth switch, a fifth switch, a second capacitor, a sixth switch, and a second comparator. The fourth switch is electrically connected to the second end of the second resistor. The fourth switch is configured to switch to an on or off state according to the first clock signal. The fifth switch is electrically connected to the first end of the second resistor and the fourth switch. The fifth switch is configured to switch to an on or off state according to the second clock signal. The second capacitor is electrically connected to the fourth switch and the fifth switch. The sixth switch is electrically connected The second capacitor and the common input voltage. The sixth switch is configured to switch to an on or off state according to the first clock signal. The second comparator has a positive phase input terminal, a negative phase input terminal, and an output terminal. The non-inverting input terminal of the second comparator is electrically connected to the common input voltage, the negative phase input end of the second comparator is electrically connected to the second capacitor and the sixth switch, and the output end of the second comparator is used to output the second comparison result.

依據本發明之又一實施例,上述第一時脈訊號與第二時脈訊號互為反相。 According to still another embodiment of the present invention, the first clock signal and the second clock signal are mutually inverted.

依據本發明之又一實施例,上述比較電壓產生單元更包含可變電阻單元,電性連接於第二電阻之第二端與接地端之間。 According to still another embodiment of the present invention, the comparison voltage generating unit further includes a variable resistance unit electrically connected between the second end of the second resistor and the ground.

依據本發明之上述目的,另提出一種資料傳輸系統。此資料傳輸系統包含傳送器及接收器。傳送器之操作模式包含訓練模式(training mode)及正常模式(normal mode)。當傳送器之操作模式為正常模式時,傳送器傳輸資料訊號。接收器用以接收資料訊號且包含輸入訊號電壓偵測模組。輸入訊號電壓偵測模組包含比較電壓產生單元、比較單元及控制單元。比較電壓產生單元用以根據輸入訊號電壓產生輸出訊號電壓、第一比較電壓及第二比較電壓。比較單元用以根據輸出訊號電壓、第一比較電壓、第二比較電壓及第一時脈訊號產生第一比較結果及第二比較結果。控制單元用以根據第一比較結果及第二比較結果產生控制訊號,此控制訊號用以切換傳送器之操作模式。 According to the above object of the present invention, a data transmission system is further proposed. This data transmission system consists of a transmitter and a receiver. The mode of operation of the transmitter includes a training mode and a normal mode. When the operating mode of the transmitter is in the normal mode, the transmitter transmits the data signal. The receiver is configured to receive the data signal and includes an input signal voltage detecting module. The input signal voltage detection module includes a comparison voltage generation unit, a comparison unit, and a control unit. The comparison voltage generating unit is configured to generate an output signal voltage, a first comparison voltage, and a second comparison voltage according to the input signal voltage. The comparing unit is configured to generate a first comparison result and a second comparison result according to the output signal voltage, the first comparison voltage, the second comparison voltage, and the first clock signal. The control unit is configured to generate a control signal according to the first comparison result and the second comparison result, where the control signal is used to switch the operation mode of the transmitter.

依據本發明之一實施例,若輸出訊號電壓高於第一 比較電壓或輸出訊號電壓低於第二比較電壓時,控制訊號指示傳送器切換至訓練模式且傳輸時脈回復型樣(clock recovery pattern)訊號。 According to an embodiment of the invention, if the output signal voltage is higher than the first When the comparison voltage or the output signal voltage is lower than the second comparison voltage, the control signal instructs the transmitter to switch to the training mode and transmit a clock recovery pattern signal.

依據本發明之上述目的,另提出一種輸入訊號電壓偵測方法。此輸入訊號電壓偵測方法適用於資料傳輸系統。此資料傳輸系統包含傳送器及接收器。傳送器之操作模式包含訓練模式及正常模式。當傳送器之操作模式為正常模式時,傳送器傳輸資料訊號。接收器用以接收資料訊號。此輸入訊號電壓偵測方法包含取樣資料訊號之輸入訊號電壓,以產生輸出訊號電壓、第一比較電壓及第二比較電壓;根據時脈訊號來比較輸出訊號電壓與第一比較電壓,以產生第一比較結果;根據時脈訊號來比較輸出訊號電壓與第二比較電壓,以產生第二比較結果;以及根據第一比較結果及第二比較結果產生控制訊號,此控制訊號用以切換傳送器之操作模式。 According to the above object of the present invention, an input signal voltage detecting method is further proposed. This input signal voltage detection method is suitable for data transmission systems. This data transmission system consists of a transmitter and a receiver. The operating mode of the transmitter includes a training mode and a normal mode. When the operating mode of the transmitter is in the normal mode, the transmitter transmits the data signal. The receiver is used to receive data signals. The input signal voltage detecting method includes input signal voltage of the sampled data signal to generate an output signal voltage, a first comparison voltage, and a second comparison voltage; and comparing the output signal voltage with the first comparison voltage according to the clock signal to generate the first a comparison result; comparing the output signal voltage with the second comparison voltage according to the clock signal to generate a second comparison result; and generating a control signal according to the first comparison result and the second comparison result, the control signal is used to switch the transmitter Operating mode.

依據本發明之一實施例,若輸出訊號電壓高於第一比較電壓或輸出訊號電壓低於第二比較電壓時,控制訊號指示傳送器切換至訓練模式且傳輸時脈回復型樣訊號。 According to an embodiment of the invention, if the output signal voltage is higher than the first comparison voltage or the output signal voltage is lower than the second comparison voltage, the control signal indicates that the transmitter switches to the training mode and transmits the clock recovery type signal.

10、222‧‧‧鎖相迴路電路 10, 222‧‧‧ phase-locked loop circuit

110‧‧‧相位頻率偵測器 110‧‧‧ phase frequency detector

120‧‧‧電荷泵 120‧‧‧Charge pump

130‧‧‧電壓控制振盪器 130‧‧‧Voltage Controlled Oscillator

140‧‧‧除頻器 140‧‧‧Delephone

200‧‧‧資料傳輸系統 200‧‧‧Data Transmission System

210‧‧‧傳送器 210‧‧‧transmitter

220‧‧‧接收器 220‧‧‧ Receiver

224、300、400、500‧‧‧輸入訊號電壓偵測模組 224, 300, 400, 500‧‧‧ input signal voltage detection module

310、410、510‧‧‧比較電壓產生單元 310, 410, 510‧‧‧Comparative voltage generating unit

320、420、520‧‧‧比較單元 320, 420, 520‧‧‧ comparison unit

330、430、530‧‧‧控制單元 330, 430, 530‧‧‧ control unit

421、521‧‧‧高電壓比較單元 421, 521‧‧‧ high voltage comparison unit

422、522‧‧‧低電壓比較單元 422, 522‧‧‧ low voltage comparison unit

700‧‧‧方法 700‧‧‧ method

702、704、706、708‧‧‧步驟 702, 704, 706, 708‧ ‧ steps

C、C1、C2‧‧‧電容 C, C1, C2‧‧‧ capacitor

CKS、‧‧‧時脈訊號 CKS, ‧‧‧clock signal

CP1、CP2‧‧‧比較器 CP1, CP2‧‧‧ comparator

CR1、CR2‧‧‧比較結果 CR1, CR2‧‧‧ comparison results

CTRL‧‧‧控制訊號 CTRL‧‧‧ control signal

FB‧‧‧反饋訊號 F B ‧‧‧ feedback signal

FIN‧‧‧頻率輸入訊號 F IN ‧‧‧ frequency input signal

FOUT‧‧‧頻率輸出訊號 F OUT ‧‧‧ frequency output signal

GND‧‧‧接地端 GND‧‧‧ ground terminal

OP‧‧‧功率放大器 OP‧‧‧Power Amplifier

R1、R2、R3‧‧‧電阻 R1, R2, R3‧‧‧ resistance

RV‧‧‧可變電阻單元 RV‧‧‧Variable Resistor Unit

SW1、SW2、SW3、SW4、SW5、SW6‧‧‧開關 SW1, SW2, SW3, SW4, SW5, SW6‧‧‧ switch

VC1、VC2‧‧‧比較電壓 V C1 , V C2 ‧‧‧ comparison voltage

VCMI‧‧‧共同輸入電壓 V CMI ‧‧‧ Common input voltage

VIN‧‧‧輸入訊號電壓 V IN ‧‧‧ input signal voltage

VOUT‧‧‧輸出訊號電壓 V OUT ‧‧‧Output signal voltage

VX1、VX2‧‧‧電壓 V X1 , V X2 ‧‧‧ voltage

VDD‧‧‧電壓源 VDD‧‧‧voltage source

T‧‧‧電晶體 T‧‧‧O crystal

W‧‧‧範圍 W‧‧‧Scope

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖係繪示習知鎖相迴路(phase-locked loop;PLL)電路之示意圖;第2圖係繪示本發明實施例資料傳輸系統之示意圖; 第3圖係繪示本發明實施例輸入訊號電壓偵測模組之示意圖;第4圖係繪示本發明實施例輸入訊號電壓偵測模組之示意圖;第5圖係繪示本發明實施例輸入訊號電壓偵測模組之示意圖;第6A圖係繪示本發明實施例輸出訊號電壓的變化之示意圖;第6B圖係繪示本發明實施例輸出訊號電壓的變化之示意圖;以及第7圖係繪示本發明實施例輸入訊號電壓偵測方法之示意圖。 The above and other objects, features, advantages and embodiments of the present invention will become more <RTIgt; <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; 2 is a schematic diagram showing a data transmission system according to an embodiment of the present invention; 3 is a schematic diagram of an input signal voltage detecting module according to an embodiment of the present invention; FIG. 4 is a schematic diagram of an input signal voltage detecting module according to an embodiment of the present invention; FIG. 5 is a diagram showing an embodiment of the present invention; FIG. 6A is a schematic diagram showing changes in output signal voltage according to an embodiment of the present invention; FIG. 6B is a schematic diagram showing changes in output signal voltage according to an embodiment of the present invention; and FIG. A schematic diagram of a method for detecting an input signal voltage according to an embodiment of the present invention is shown.

以下仔細討論本發明的實施例。然而,可以理解的是,實施例提供許多可應用的發明概念,其可實施於各式各樣的特定內容中。所討論之特定實施例僅供說明,並非用以限定本發明之範圍。 Embodiments of the invention are discussed in detail below. However, it will be appreciated that the embodiments provide many applicable inventive concepts that can be implemented in a wide variety of specific content. The specific embodiments discussed are illustrative only and are not intended to limit the scope of the invention.

請參照第2圖,其係繪示本發明實施例資料傳輸系統200之示意圖。資料傳輸系統200包含傳送器210和接收器220。傳送器210之操作模式包含訓練模式(training mode)及正常模式(normal mode)。當傳送器210之操作模式為訓練模式時,傳送器210傳輸時脈回復型樣(clock recovery pattern)訊號,以供接收器220進行頻率鎖定。當頻率鎖定完成後,傳送器210之操作模式切換為正常模 式,以傳輸資料訊號至接收器220。接收器220包含鎖相迴路(phase-locked loop;PLL)電路222和輸入訊號電壓偵測模組224。鎖相迴路電路222處理對應資料訊號的頻率輸入訊號FIN,以產生輸入訊號電壓VIN,並根據輸入訊號電壓VIN調整頻率輸出訊號FOUT的頻率,使頻率輸出訊號FOUT鎖定在正確的頻率。輸入訊號電壓偵測模組224用以偵測輸入訊號電壓VIN,若偵測到輸入訊號電壓VIN的變化太大,則代表頻率輸出訊號FOUT未鎖定在正確的頻率。此時,輸入訊號電壓偵測模組224產生的控制訊號CTRL指示傳送器210切換至訓練模式,且使傳送器210傳輸時脈回復型樣訊號至接收器220,以重新進行頻率輸出訊號FOUT的頻率鎖定。 Please refer to FIG. 2, which is a schematic diagram of a data transmission system 200 according to an embodiment of the present invention. The data transmission system 200 includes a transmitter 210 and a receiver 220. The operation mode of the transmitter 210 includes a training mode and a normal mode. When the operating mode of the transmitter 210 is the training mode, the transmitter 210 transmits a clock recovery pattern signal for the receiver 220 to perform frequency locking. When the frequency lock is completed, the operation mode of the transmitter 210 is switched to the normal mode to transmit the data signal to the receiver 220. The receiver 220 includes a phase-locked loop (PLL) circuit 222 and an input signal voltage detection module 224. The phase-locked loop circuit 222 processes the frequency input signal F IN corresponding to the data signal to generate the input signal voltage V IN , and adjusts the frequency of the frequency output signal F OUT according to the input signal voltage V IN to lock the frequency output signal F OUT to the correct one. frequency. The input signal voltage detecting module 224 is configured to detect the input signal voltage V IN . If the change of the input signal voltage V IN is detected to be too large, the representative frequency output signal F OUT is not locked at the correct frequency. At this time, the control signal CTRL generated by the input signal voltage detecting module 224 instructs the transmitter 210 to switch to the training mode, and causes the transmitter 210 to transmit the clock return pattern signal to the receiver 220 to re-transmit the frequency output signal F OUT . The frequency is locked.

請參照第3圖,其係繪示本發明實施例輸入訊號電壓偵測模組300之示意圖。輸入訊號電壓偵測模組300為第2圖中輸入訊號電壓偵測模組224的一實施例。輸入訊號電壓偵測模組300包含比較電壓產生單元310、比較單元320和控制單元330。比較電壓產生單元310接收輸入訊號電壓VIN,且根據輸入訊號電壓VIN產生輸出訊號電壓VOUT和比較電壓VC1、VC2。比較單元320用以根據時脈訊號CKS鎖定比較電壓VC1、VC2,且將輸出訊號電壓VOUT與比較電壓VC1、VC2比較,以分別產生比較結果CR1、CR2。控制單元330根據比較結果CR1、CR2產生控制訊號CTRL。 Please refer to FIG. 3 , which is a schematic diagram of an input signal voltage detecting module 300 according to an embodiment of the present invention. The input signal voltage detecting module 300 is an embodiment of the input signal voltage detecting module 224 in FIG. The input signal voltage detecting module 300 includes a comparison voltage generating unit 310, a comparing unit 320, and a control unit 330. The comparison voltage generating unit 310 receives the input signal voltage V IN and generates an output signal voltage V OUT and comparison voltages V C1 , V C2 according to the input signal voltage V IN . The comparing unit 320 is configured to lock the comparison voltages V C1 and V C2 according to the clock signal CKS, and compare the output signal voltage V OUT with the comparison voltages V C1 and V C2 to generate comparison results CR1 and CR2 , respectively. The control unit 330 generates a control signal CTRL based on the comparison results CR1, CR2.

請參照第4圖,其係繪示本發明實施例輸入訊號電壓偵測模組400之示意圖。輸入訊號電壓偵測模組400為 輸入訊號電壓偵測模組300之一實施例。輸入訊號電壓偵測模組400包含比較電壓產生單元410、比較單元420和控制單元430。比較電壓產生單元410、比較單元420和控制單元430分別對應第3圖中比較電壓產生單元310、比較單元320和控制單元330。 Please refer to FIG. 4 , which is a schematic diagram of an input signal voltage detecting module 400 according to an embodiment of the present invention. The input signal voltage detecting module 400 is An embodiment of the input signal voltage detection module 300. The input signal voltage detecting module 400 includes a comparison voltage generating unit 410, a comparing unit 420, and a control unit 430. The comparison voltage generating unit 410, the comparing unit 420, and the control unit 430 correspond to the comparison voltage generating unit 310, the comparing unit 320, and the control unit 330 in FIG. 3, respectively.

比較電壓產生單元410包含運算放大器OP、電晶體T、電容C、電阻R1、R2、R3和可變電阻單元RV。運算放大器OP的正相輸入端接收輸出訊號電壓VOUT,且運算放大器OP的負相輸入端接收輸入電壓訊號VIN。電晶體T的源極電性連接於電壓源VDD,且其閘極電性連接於運算放大器OP的輸出端。電容C和電阻R1串接,並分別電性連接於電晶體T的閘極和源極。電阻R2的一端電性連接於電晶體T的源極,且其用以提供比較電壓VC1。電阻R2的另一端用以提供輸出訊號電壓VOUT。電阻R3的一端電性連接於電阻R2的另一端,且電阻R3的另一端用以提供比較電壓VC2。可變電阻單元RV電性連接於電阻R3與接地端GND之間,其用以調整比較電壓VC1、VC2和其之間的寬度。 The comparison voltage generating unit 410 includes an operational amplifier OP, a transistor T, a capacitor C, resistors R1, R2, R3, and a variable resistance unit RV. The non-inverting input terminal of the operational amplifier OP receives the output signal voltage V OUT , and the negative phase input terminal of the operational amplifier OP receives the input voltage signal V IN . The source of the transistor T is electrically connected to the voltage source VDD, and its gate is electrically connected to the output terminal of the operational amplifier OP. The capacitor C and the resistor R1 are connected in series, and are electrically connected to the gate and the source of the transistor T, respectively. One end of the resistor R2 is electrically connected to the source of the transistor T, and is used to provide a comparison voltage V C1 . The other end of the resistor R2 is used to provide an output signal voltage V OUT . One end of the resistor R3 is electrically connected to the other end of the resistor R2, and the other end of the resistor R3 is used to provide a comparison voltage V C2 . The variable resistance unit RV is electrically connected between the resistor R3 and the ground GND for adjusting the comparison voltages V C1 , V C2 and the width therebetween.

比較單元420包含高電壓比較單元421和低電壓比較單元422。高電壓比較單元421用以根據輸出訊號電壓VOUT、比較電壓VC1及時脈訊號CKS產生比較結果CR1。高電壓比較單元421包含開關SW1、電容C1和比較器CP1。開關SW1電性連接於電阻R2的一端,且其狀態係根據時脈訊號CKS切換為開啟或關閉狀態。電容C1電性連 接於開關SW1與接地端GND之間。於時脈訊號CKS為高準位時,開關SW1為關閉狀態,此時電容C1兩端的電位差更新為比較電壓VC1。比較器CP1的正相輸入端電性連接於電阻R2的另一端,比較器CP1的負相輸入端電性連接於電容C1,且比較器CP1的輸出端用以輸出比較結果CR1。當輸出訊號電壓VOUT小於比較電壓VC1時,比較結果CR1的電位為低準位。相反地,當輸出訊號電壓VOUT大於比較電壓VC1時,比較結果CR1的電位為高準位。 The comparison unit 420 includes a high voltage comparison unit 421 and a low voltage comparison unit 422. The high voltage comparison unit 421 is configured to generate a comparison result CR1 according to the output signal voltage V OUT , the comparison voltage V C1 and the timely pulse signal CKS. The high voltage comparison unit 421 includes a switch SW1, a capacitor C1, and a comparator CP1. The switch SW1 is electrically connected to one end of the resistor R2, and its state is switched to an on or off state according to the clock signal CKS. The capacitor C1 is electrically connected between the switch SW1 and the ground GND. When the clock signal CKS is at the high level, the switch SW1 is in the off state, and the potential difference across the capacitor C1 is updated to the comparison voltage V C1 . The non-inverting input terminal of the comparator CP1 is electrically connected to the other end of the resistor R2. The negative phase input terminal of the comparator CP1 is electrically connected to the capacitor C1, and the output terminal of the comparator CP1 is used to output the comparison result CR1. When the output signal voltage V OUT is smaller than the comparison voltage V C1 , the potential of the comparison result CR1 is at a low level. Conversely, when the output signal voltage V OUT is greater than the comparison voltage V C1 , the potential of the comparison result CR1 is at a high level.

低電壓比較單元422用以根據輸出訊號電壓VOUT、比較電壓VC1及時脈訊號CKS產生比較結果CR1。與高電壓比較單元421相似,低電壓比較單元422包含開關SW2、電容C2和比較器CP2。開關SW2電性連接於電阻R3的一端,且其狀態係根據時脈訊號CKS切換為開啟或關閉狀態。電容C2電性連接於開關SW2與接地端GND之間。於時脈訊號CKS為高準位時,開關SW2為關閉狀態,此時電容C2兩端的電位差更新為比較電壓VC2。比較器CP2的正相輸入端電性連接於電阻R3的另一端,比較器CP2的負相輸入端電性連接於電容C2,且比較器CP2的輸出端用以輸出比較結果CR2。當輸出訊號電壓VOUT小於比較電壓VC2時,比較結果CR2的電位為低準位。相反地,當輸出訊號電壓VOUT大於比較電壓VC2時,比較結果CR2的電位為高準位。 The low voltage comparison unit 422 is configured to generate a comparison result CR1 according to the output signal voltage V OUT , the comparison voltage V C1 and the timely pulse signal CKS. Similar to the high voltage comparison unit 421, the low voltage comparison unit 422 includes a switch SW2, a capacitor C2, and a comparator CP2. The switch SW2 is electrically connected to one end of the resistor R3, and its state is switched to an on or off state according to the clock signal CKS. The capacitor C2 is electrically connected between the switch SW2 and the ground GND. When the clock signal CKS is at the high level, the switch SW2 is in the off state, and the potential difference across the capacitor C2 is updated to the comparison voltage V C2 . The non-inverting input terminal of the comparator CP2 is electrically connected to the other end of the resistor R3, the negative phase input terminal of the comparator CP2 is electrically connected to the capacitor C2, and the output terminal of the comparator CP2 is used to output the comparison result CR2. When the output signal voltage V OUT is smaller than the comparison voltage V C2 , the potential of the comparison result CR2 is at a low level. Conversely, when the output signal voltage V OUT is greater than the comparison voltage V C2 , the potential of the comparison result CR2 is at a high level.

控制單元430接收比較結果CR1、CR2,並根據比較結果CR1、CR2產生控制訊號CTRL。若比較結果CR1 為低準位且比較結果CR2為高準位,代表輸出訊號電壓VOUT位於比較電壓VC1與VC2之間,則控制訊號CTRL指示傳送器210保持在正常模式。若比較結果CR1、CR2均為高準位或均為低準位,代表輸出訊號電壓VOUT位於比較電壓VC1之上,或者位於比較電壓VC2之下,則控制訊號CTRL指示傳送器210切換至訓練模式,使傳送器210傳輸時脈回復型樣訊號至接收器220,以進行頻率輸出訊號FOUT的頻率鎖定。 The control unit 430 receives the comparison results CR1, CR2 and generates a control signal CTRL based on the comparison results CR1, CR2. If the comparison result CR1 is at a low level and the comparison result CR2 is at a high level, indicating that the output signal voltage V OUT is between the comparison voltages V C1 and V C2 , the control signal CTRL indicates that the transmitter 210 remains in the normal mode. If the comparison results CR1 and CR2 are both high level or low level, indicating that the output signal voltage V OUT is above the comparison voltage V C1 or below the comparison voltage V C2 , the control signal CTRL indicates that the transmitter 210 switches. To the training mode, the transmitter 210 transmits a clock recovery pattern signal to the receiver 220 for frequency locking of the frequency output signal F OUT .

請參照第5圖,其係繪示本發明實施例輸入訊號電壓偵測模組500之示意圖。輸入訊號電壓偵測模組500為輸入訊號電壓偵測模組300之另一實施例。輸入訊號電壓偵測模組500包含比較電壓產生單元510、比較單元520和控制單元530。比較電壓產生單元510、比較單元520和控制單元530分別對應第3圖中比較電壓產生單元310、比較單元320和控制單元330。比較電壓產生單元510的架構和實施方式與比較電壓產生單元410相同,故在此不贅述。 Please refer to FIG. 5, which is a schematic diagram of an input signal voltage detecting module 500 according to an embodiment of the present invention. The input signal voltage detecting module 500 is another embodiment of the input signal voltage detecting module 300. The input signal voltage detecting module 500 includes a comparison voltage generating unit 510, a comparing unit 520, and a control unit 530. The comparison voltage generating unit 510, the comparing unit 520, and the control unit 530 correspond to the comparison voltage generating unit 310, the comparing unit 320, and the control unit 330 in FIG. 3, respectively. The structure and implementation of the comparison voltage generating unit 510 are the same as those of the comparison voltage generating unit 410, and thus will not be described herein.

比較單元520包含高電壓比較單元521和低電壓比較單元522。高電壓比較單元521用以根據輸出訊號電壓VOUT、比較電壓VC1及時脈訊號CKS、產生比較結果CR1。在本實施例中,時脈訊號CKS、互為反相訊號。高電壓比較單元521包含開關SW1、SW2、SW3、電容C1和比較器CP1。開關SW1電性連接於電阻R2的一端,且其狀態係根據時脈訊號CKS切換為開啟或關閉狀態。開關SW2電性連接於電阻R2的另一端及開關SW1, 且其狀態係根據時脈訊號切換為開啟或關閉狀態。電容C1電性連接於開關SW1、SW2。開關SW3電性連接於電容C1和共同輸入電壓VCMI,且其狀態係根據時脈訊號CKS切換為開啟或關閉狀態。比較器CP1的正相輸入端電性連接於共同輸入電壓VCMI,比較器CP1的負相輸入端電性連接於電容C1與開關SW3,且比較器的輸出端用以輸出比較結果CR1。 The comparison unit 520 includes a high voltage comparison unit 521 and a low voltage comparison unit 522. The high voltage comparison unit 521 is configured to use the output signal voltage V OUT , the comparison voltage V C1 , the time pulse signal CKS, A comparison result CR1 is generated. In this embodiment, the clock signal CKS, They are mutually inverted signals. The high voltage comparison unit 521 includes switches SW1, SW2, SW3, a capacitor C1, and a comparator CP1. The switch SW1 is electrically connected to one end of the resistor R2, and its state is switched to an on or off state according to the clock signal CKS. The switch SW2 is electrically connected to the other end of the resistor R2 and the switch SW1, and the state is based on the clock signal Switch to the on or off state. The capacitor C1 is electrically connected to the switches SW1 and SW2. The switch SW3 is electrically connected to the capacitor C1 and the common input voltage V CMI , and its state is switched to an on or off state according to the clock signal CKS. The non-inverting input terminal of the comparator CP1 is electrically connected to the common input voltage V CMI , the negative phase input terminal of the comparator CP1 is electrically connected to the capacitor C1 and the switch SW3, and the output terminal of the comparator is used for outputting the comparison result CR1.

於時脈訊號CKS為高準位時,開關SW1、SW3為關閉狀態,且開關SW2為開啟狀態,此時電容C1儲存的電荷量為CQ1×(VC1-VCMI),其中CQ1代表電容C1的電容量。接著,切換時脈訊號CKS為低準位,使開關SW1、SW3切換為開啟狀態,且使開關SW2切換為關閉狀態。此時,電容C1儲存的電荷量為CQ1×(VOUT-VX1),其中VX1為電容C1電性連接比較器CP1之間的電壓。電容C1在時脈訊號CKS切換為低準位的前後所儲存的電荷量為相等,即CQ1×(VC1-VCMI)=CQ1×(VOUT-VX1)。由於電容C1的電容量CQ1不等於0,可將上式化簡以得到VX1=VCMI+(VOUT-VC1)。因此,當電壓VX1小於共同輸入電壓VCMI時,比較結果CR1的電位為高準位,代表輸出訊號電壓VOUT小於比較電壓VC1。相反地,當電壓VX1大於共同輸入電壓VCMI時,比較結果CR1的電位為低準位,代表輸出訊號電壓VOUT大於比較電壓VC1When the clock signal CKS is at the high level, the switches SW1 and SW3 are in the off state, and the switch SW2 is in the on state. At this time, the amount of charge stored in the capacitor C1 is C Q1 ×(V C1 -V CMI ), where C Q1 represents Capacitance of capacitor C1. Then, the switching clock signal CKS is switched to the low level, the switches SW1 and SW3 are switched to the on state, and the switch SW2 is switched to the off state. At this time, the amount of charge stored in the capacitor C1 is C Q1 ×(V OUT -V X1 ), where V X1 is the voltage between the capacitor C1 and the comparator CP1. Capacitor C1 stores the amount of charge before and after the clock signal CKS is switched to the low level, that is, C Q1 × (V C1 - V CMI ) = C Q1 × (V OUT - V X1 ). Since the capacitance C Q1 of the capacitor C1 is not equal to 0, the above equation can be simplified to obtain V X1 =V CMI +(V OUT -V C1 ). Therefore, when the voltage V X1 is less than the common input voltage V CMI , the potential of the comparison result CR1 is a high level, which represents that the output signal voltage V OUT is smaller than the comparison voltage V C1 . Conversely, when the voltage V X1 is greater than the common input voltage V CMI , the potential of the comparison result CR1 is a low level, which represents that the output signal voltage V OUT is greater than the comparison voltage V C1 .

低電壓比較單元522用以根據輸出訊號電壓VOUT、比較電壓VC2及時脈訊號CKS、產生比較結 果CR2。低電壓比較單元522包含開關SW4、SW5、SW6、電容C2和比較器CP2。開關SW4電性連接於電阻R3的一端,且其狀態係根據時脈訊號CKS切換為開啟或關閉狀態。開關SW5電性連接於電阻R3的另一端及開關SW2,且其狀態係根據時脈訊號切換為開啟或關閉狀態。電容C2電性連接於開關SW4、SW5。開關SW6電性連接於電容C2和共同輸入電壓VCMI,且其狀態係根據時脈訊號CKS切換為開啟或關閉狀態。比較器CP2的正相輸入端電性連接於共同輸入電壓VCMI,比較器CP2的負相輸入端電性連接於電容C2與開關SW6,且比較器的輸出端用以輸出比較結果CR2。 The low voltage comparison unit 522 is configured to detect the signal voltage V OUT , the comparison voltage V C2 , and the pulse signal CKS according to the output voltage. A comparison result CR2 is generated. The low voltage comparison unit 522 includes switches SW4, SW5, SW6, a capacitor C2, and a comparator CP2. The switch SW4 is electrically connected to one end of the resistor R3, and its state is switched to an on or off state according to the clock signal CKS. The switch SW5 is electrically connected to the other end of the resistor R3 and the switch SW2, and the state is based on the clock signal Switch to the on or off state. The capacitor C2 is electrically connected to the switches SW4 and SW5. The switch SW6 is electrically connected to the capacitor C2 and the common input voltage V CMI , and its state is switched to an on or off state according to the clock signal CKS. The non-inverting input terminal of the comparator CP2 is electrically connected to the common input voltage V CMI , the negative phase input terminal of the comparator CP2 is electrically connected to the capacitor C2 and the switch SW6, and the output end of the comparator is used to output the comparison result CR2.

於時脈訊號CKS為高準位時,開關SW4、SW6為關閉狀態,且開關SW5為開啟狀態,此時電容C2儲存的電荷量為CQ2×(VC2-VCMI),其中CQ2代表電容C2的電容量。接著,切換時脈訊號CKS為低準位,使開關SW4、SW6切換為開啟狀態,且使開關SW5切換為關閉狀態。此時,電容C2儲存的電荷量為CQ2×(VOUT-VX2),其中VX2為電容C2電性連接比較器CP2之間的電壓。電容C2在時脈訊號CKS切換為低準位的前後所儲存的電荷量為相等,即CQ2×(VC2-VCMI)=CQ2×(VOUT-VX2)。由於電容C2的電容量CQ2不等於0,可將上式化簡以得到VX2=VCMI+(VOUT-VC2)。因此,當電壓VX2小於共同輸入電壓VCMI時,比較結果CR2的電位為高準位,代表輸出訊號電壓VOUT小於比較電壓VC2。相反地,當電壓VX2大於共同輸入電壓VCMI時,比較結果 CR2的電位為低準位,代表輸出訊號電壓VOUT大於比較電壓VC2When the clock signal CKS is at the high level, the switches SW4 and SW6 are in the off state, and the switch SW5 is in the on state. At this time, the amount of charge stored in the capacitor C2 is C Q2 × (V C2 - V CMI ), where C Q2 represents Capacitance of capacitor C2. Then, the switching clock signal CKS is switched to the low level, the switches SW4 and SW6 are switched to the on state, and the switch SW5 is switched to the off state. At this time, the amount of charge stored in the capacitor C2 is C Q2 × (V OUT - V X2 ), where V X2 is the voltage between the capacitor C2 and the comparator CP2. The amount of charge stored in the capacitor C2 before and after the clock signal CKS is switched to the low level is equal, that is, C Q2 × (V C2 - V CMI ) = C Q2 × (V OUT - V X2 ). Since the capacitance C Q2 of the capacitor C2 is not equal to 0, the above equation can be simplified to obtain V X2 = V CMI + (V OUT - V C2 ). Therefore, when the voltage V X2 is less than the common input voltage V CMI , the potential of the comparison result CR2 is a high level, which represents that the output signal voltage V OUT is smaller than the comparison voltage V C2 . Conversely, when the voltage V X2 is greater than the common input voltage V CMI , the potential of the comparison result CR2 is a low level, which represents that the output signal voltage V OUT is greater than the comparison voltage V C2 .

控制單元530接收比較結果CR1、CR2,並根據比較結果CR1、CR2產生控制訊號CTRL。若比較結果CR1為高準位且比較結果CR2為低準位,代表輸出訊號電壓VOUT位於比較電壓VC1與VC2之間,則控制訊號CTRL指示傳送器210保持在正常模式。若比較結果CR1、CR2均為高準位或均為低準位,代表輸出訊號電壓VOUT位於比較電壓VC1之上,或者位於比較電壓VC2之下,則控制訊號CTRL指示傳送器210切換至訓練模式,使傳送器210傳輸時脈回復型樣訊號至接收器220,以進行頻率輸出訊號FOUT的頻率鎖定。 The control unit 530 receives the comparison results CR1, CR2 and generates a control signal CTRL based on the comparison results CR1, CR2. If the comparison result CR1 is at a high level and the comparison result CR2 is at a low level, indicating that the output signal voltage V OUT is between the comparison voltages V C1 and V C2 , the control signal CTRL indicates that the transmitter 210 remains in the normal mode. If the comparison results CR1 and CR2 are both high level or low level, indicating that the output signal voltage V OUT is above the comparison voltage V C1 or below the comparison voltage V C2 , the control signal CTRL indicates that the transmitter 210 switches. To the training mode, the transmitter 210 transmits a clock recovery pattern signal to the receiver 220 for frequency locking of the frequency output signal F OUT .

請參照第6A和6B圖,其係分別繪示本發明實施例輸出訊號電壓的變化之示意圖。比較電壓VC1、VC2之間形成範圍W。範圍W的寬度或位置可根據輸入訊號電壓VIN或可變電阻單元RV的電阻值作對應調整。在第6A圖中,輸出訊號電壓VOUT未高於比較電壓VC1或低於比較電壓VC2,即未超出範圍W,此時控制單元產生的控制訊號CTRL指示傳送器210保持在正常模式,使傳送器210繼續傳輸資料訊號至接收器220。在第6B圖中,輸出訊號電壓VOUT起先位於範圍W內,之後降低至低於比較電壓VC2,代表輸出訊號電壓VOUT變化太大,此時控制單元產生的控制訊號CTRL指示傳送器210切換至訓練模式,使傳送器210傳輸時脈回復型樣訊號至接收器220,以進行頻率輸出 訊號FOUT的頻率鎖定。 Please refer to FIG. 6A and FIG. 6B, which are respectively schematic diagrams showing changes in output signal voltage according to an embodiment of the present invention. A range W is formed between the comparison voltages V C1 and V C2 . The width or position of the range W can be adjusted according to the input signal voltage V IN or the resistance value of the variable resistance unit RV. In FIG. 6A, the output signal voltage V OUT is not higher than the comparison voltage V C1 or lower than the comparison voltage V C2 , that is, the range W is not exceeded. At this time, the control signal CTRL generated by the control unit indicates that the transmitter 210 remains in the normal mode. The transmitter 210 is caused to continue transmitting the data signal to the receiver 220. In FIG. 6B, the output signal voltage V OUT is initially located in the range W, and then decreases below the comparison voltage V C2 , indicating that the output signal voltage V OUT changes too much. At this time, the control signal CTRL generated by the control unit indicates the transmitter 210. Switching to the training mode causes the transmitter 210 to transmit a clock recovery pattern signal to the receiver 220 for frequency locking of the frequency output signal F OUT .

請參照第7圖,其係繪示本發明實施例輸入訊號電壓偵測方法700之示意圖。輸入訊號電壓偵測方法700適用於第2圖至第5圖所繪示的輸入訊號電壓偵測模組224、300、400、500。首先,進行步驟702,取樣輸入訊號電壓VIN,以產生輸出訊號電壓VOUT和比較電壓VC1、VC2,其中比較電壓VC1高於比較電壓VC2。接著,進行步驟704,根據時脈訊號CKS來比較該輸出訊號電壓VOUT與比較電壓VC1,以產生比較結果CR1。進行步驟704時亦同時進行步驟706,根據時脈訊號CKS來比較輸出訊號電壓VOUT與比較電壓VC2,以產生比較結果CR2。最後,進行步驟708,根據比較結果CR1、CR2產生控制訊號CTRL,以用來切換傳送器210的操作模式。若輸出訊號電壓VOUT高於比較電壓VC1或低於比較電壓VC2,控制訊號CTRL指示傳送器210切換至訓練模式,使傳送器210傳輸時脈回復型樣訊號至接收器220,以進行頻率輸出訊號FOUT的頻率鎖定。 Please refer to FIG. 7 , which is a schematic diagram of an input signal voltage detecting method 700 according to an embodiment of the present invention. The input signal voltage detecting method 700 is applicable to the input signal voltage detecting modules 224, 300, 400, and 500 illustrated in FIGS. 2 to 5. First, in step 702, the input signal voltage V IN is sampled to generate an output signal voltage V OUT and a comparison voltage V C1 , V C2 , wherein the comparison voltage V C1 is higher than the comparison voltage V C2 . Next, in step 704, the output signal voltage V OUT and the comparison voltage V C1 are compared according to the clock signal CKS to generate a comparison result CR1. When step 704 is performed, step 706 is simultaneously performed, and the output signal voltage V OUT and the comparison voltage V C2 are compared according to the clock signal CKS to generate a comparison result CR2. Finally, step 708 is performed to generate a control signal CTRL according to the comparison results CR1, CR2 for switching the operation mode of the transmitter 210. If the output signal voltage V OUT is higher than the comparison voltage V C1 or lower than the comparison voltage V C2 , the control signal CTRL instructs the transmitter 210 to switch to the training mode, so that the transmitter 210 transmits the clock recovery pattern signal to the receiver 220 for performing. The frequency output signal F OUT is frequency locked.

綜上所述,本發明輸入訊號電壓偵測模組及方法與相關資料傳輸系統可藉由即時偵測輸入訊號電壓來判斷頻率輸出訊號是否鎖定在正確的頻率。若頻率輸出訊號未鎖定在正確的頻率,則判斷系統為異常,並可即時作對應處理,使資料傳輸系統重新進行頻率輸出訊號的鎖定,以將頻率輸出訊號鎖定在正確的頻率,進而提升系統效能。 In summary, the input signal voltage detecting module and method of the present invention and the related data transmission system can determine whether the frequency output signal is locked at the correct frequency by detecting the input signal voltage in real time. If the frequency output signal is not locked at the correct frequency, the system is judged to be abnormal, and the corresponding processing can be performed immediately, so that the data transmission system re-locks the frequency output signal to lock the frequency output signal at the correct frequency, thereby improving the system. efficacy.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and those skilled in the art may, without departing from the spirit of the invention. And the scope of the invention is defined by the scope of the appended claims.

300‧‧‧輸入訊號電壓偵測模組 300‧‧‧Input signal voltage detection module

310‧‧‧比較電壓產生單元 310‧‧‧Comparative voltage generating unit

320‧‧‧比較單元 320‧‧‧Comparative unit

330‧‧‧控制單元 330‧‧‧Control unit

CKS‧‧‧時脈訊號 CKS‧‧‧ clock signal

CR1、CR2‧‧‧比較結果 CR1, CR2‧‧‧ comparison results

CTRL‧‧‧控制訊號 CTRL‧‧‧ control signal

VC1、VC2‧‧‧比較電壓 V C1 , V C2 ‧‧‧ comparison voltage

VIN‧‧‧輸入訊號電壓 The input signal voltage V IN ‧‧‧

VOUT‧‧‧輸出訊號電壓 V OUT ‧‧‧Output signal voltage

Claims (10)

一種輸入訊號電壓偵測模組,適用於偵測一輸入訊號電壓,該電壓偵測模組包含:一比較電壓產生單元,用以根據該輸入訊號電壓產生一輸出訊號電壓、一第一比較電壓及一第二比較電壓;一比較單元,用以根據該輸出訊號電壓、該第一比較電壓、該第二比較電壓及一第一時脈訊號產生一第一比較結果及一第二比較結果;以及一控制單元,用以根據該第一比較結果及該第二比較結果產生一控制訊號。 An input signal voltage detecting module is configured to detect an input signal voltage. The voltage detecting module includes: a comparison voltage generating unit configured to generate an output signal voltage and a first comparison voltage according to the input signal voltage And a second comparison voltage; a comparison unit configured to generate a first comparison result and a second comparison result according to the output signal voltage, the first comparison voltage, the second comparison voltage, and a first clock signal; And a control unit, configured to generate a control signal according to the first comparison result and the second comparison result. 如請求項1所述之輸入訊號電壓偵測模組,其中該比較電壓產生單元包含:一運算放大器,具有一正相輸入端、一負相輸入端及一輸出端,該運算放大器之正相輸入端接收該輸出訊號電壓,且該運算放大器之負相輸入端接收該輸入電壓訊號;一電晶體,具有一源極、一閘極及一汲極,該電晶體之源極電性連接於一電壓源,且該電晶體之閘極電性連接於該輸出端;一第一電阻,具有一第一端及一第二端,該第一電阻之第一端電性連接於該電晶體之源極且用以提供該第一比較電壓,且該第一電阻之第二端用以提供該輸出訊號電壓;以及 一第二電阻,具有一第一端及一第二端,該第二電阻之第一端電性連接於該第一電阻之第二端且用以提供該輸出訊號電壓,且該第二電阻之第二端用以提供該第二比較電壓。 The input signal voltage detecting module of claim 1, wherein the comparison voltage generating unit comprises: an operational amplifier having a positive phase input terminal, a negative phase input terminal and an output terminal, the positive phase of the operational amplifier The input terminal receives the output signal voltage, and the negative phase input terminal of the operational amplifier receives the input voltage signal; a transistor having a source, a gate and a drain, the source of the transistor is electrically connected a voltage source, and the gate of the transistor is electrically connected to the output end; a first resistor has a first end and a second end, and the first end of the first resistor is electrically connected to the transistor a source for providing the first comparison voltage, and a second end of the first resistor for providing the output signal voltage; a second resistor having a first end and a second end, the first end of the second resistor being electrically connected to the second end of the first resistor and configured to provide the output signal voltage, and the second resistor The second end is configured to provide the second comparison voltage. 如請求項2所述之輸入訊號電壓偵測模組,其中該比較單元包含:一高電壓比較單元,用以根據該輸出訊號電壓、該第一比較電壓及該第一時脈訊號產生該第一比較結果,該高電壓比較單元包含:一第一開關,電性連接於該第一電阻之第一端,該第一開關用以根據該第一時脈訊號切換為開啟或關閉狀態;一第一電容,電性連接於該第一開關與一接地端之間;以及一第一比較器,具有一正相輸入端、一負相輸入端及一輸出端,該第一比較器之正相輸入端電性連接於該第一電阻之第二端,該第一比較器之負相輸入端電性連接於該第一電容,且該第一比較器之輸出端用以輸出該第一比較結果;以及一低電壓比較單元,用以根據該輸出訊號電壓、該第二比較電壓及該第一時脈訊號產生該第二比較結果,該低電壓比較單元包含:一第二開關,電性連接於該第二電阻之第二端, 該第二開關用以根據該第一時脈訊號切換為開啟或關閉狀態;一第二電容,電性連接於該第二開關與該接地端之間;以及一第二比較器,具有一正相輸入端、一負相輸入端及一輸出端,該第二比較器之正相輸入端電性連接於該第二電阻之第一端,該第二比較器之負相輸入端電性連接於該第二電容,且該第二比較器之輸出端用以輸出該第二比較結果。 The input signal voltage detecting module of claim 2, wherein the comparing unit comprises: a high voltage comparing unit, configured to generate the first according to the output signal voltage, the first comparison voltage, and the first clock signal a comparison result, the high voltage comparison unit includes: a first switch electrically connected to the first end of the first resistor, the first switch configured to switch to an on or off state according to the first clock signal; a first capacitor electrically connected between the first switch and a ground; and a first comparator having a positive phase input terminal, a negative phase input terminal and an output terminal, the first comparator being positive The phase input terminal is electrically connected to the second end of the first resistor, the negative phase input end of the first comparator is electrically connected to the first capacitor, and the output end of the first comparator is used to output the first a comparison result; and a low voltage comparison unit configured to generate the second comparison result according to the output signal voltage, the second comparison voltage, and the first clock signal, the low voltage comparison unit comprising: a second switch, Sexually connected to the second The second end of the resistor, The second switch is configured to switch to an on or off state according to the first clock signal; a second capacitor electrically connected between the second switch and the ground; and a second comparator having a positive a phase input terminal, a negative phase input terminal and an output terminal, wherein the non-inverting input terminal of the second comparator is electrically connected to the first end of the second resistor, and the negative phase input terminal of the second comparator is electrically connected And the output of the second comparator is used to output the second comparison result. 如請求項2所述之輸入訊號電壓偵測模組,其中該比較單元包含:一高電壓比較單元,用以根據該輸出訊號電壓、該第一比較電壓、一共同輸入電壓、該第一時脈訊號及一第二時脈訊號產生該第一比較結果,該高電壓比較單元包含:一第一開關,電性連接於該第一電阻之第一端,該第一開關用以根據該第一時脈訊號切換為開啟或關閉狀態;一第二開關,電性連接於該第一電阻之第二端及該第一開關,該第二開關用以根據該第二時脈訊號切換為開啟或關閉狀態;一第一電容,電性連接於該第一開關與該第二開關;一第三開關,電性連接於該第一電容及該共同輸 入電壓,該第三開關用以根據該第一時脈訊號切換為開啟或關閉狀態;以及一第一比較器,具有一正相輸入端、一負相輸入端及一輸出端,該第一比較器之正相輸入端電性連接於該共同輸入電壓,該第一比較器之負相輸入端電性連接於該第一電容與該第三開關,且該第一比較器之輸出端用以輸出該第一比較結果;以及一低電壓比較單元,用以根據該輸出訊號電壓、該第二比較電壓、該共同輸入電壓、該第一時脈訊號及該第二時脈訊號產生該第二比較結果,該低電壓比較單元包含:一第四開關,電性連接於該第二電阻之第二端,該第四開關用以根據該第一時脈訊號切換為開啟或關閉狀態;一第五開關,電性連接於該第二電阻之第一端及該第四開關,該第五開關用以根據該第二時脈訊號切換為開啟或關閉狀態;一第二電容,電性連接於該第四開關與該第五開關;一第六開關,電性連接於該第二電容及該共同輸入電壓,該第六開關用以根據該第一時脈訊號切換為開啟或關閉狀態;以及一第二比較器,具有一正相輸入端、一負相輸入端及一輸出端,該第二比較器之正相輸入端電性連接於該共同輸入電壓,該第二比較器之負相輸入端電性 連接於該第二電容與該第六開關,且該第二比較器之輸出端用以輸出該第二比較結果。 The input signal voltage detecting module of claim 2, wherein the comparing unit comprises: a high voltage comparing unit, configured to: according to the output signal voltage, the first comparison voltage, a common input voltage, the first time The first signal is generated by the pulse signal and the second clock signal. The high voltage comparison unit includes: a first switch electrically connected to the first end of the first resistor, the first switch being used according to the first The first switch is electrically connected to the second end of the first resistor and the first switch, and the second switch is configured to be turned on according to the second clock signal. Or a closed state; a first capacitor electrically connected to the first switch and the second switch; a third switch electrically connected to the first capacitor and the common input a third switch for switching to an on or off state according to the first clock signal; and a first comparator having a positive phase input terminal, a negative phase input terminal and an output terminal, the first The positive phase input terminal of the comparator is electrically connected to the common input voltage, the negative phase input end of the first comparator is electrically connected to the first capacitor and the third switch, and the output end of the first comparator is used And outputting the first comparison result; and a low voltage comparison unit, configured to generate the first according to the output signal voltage, the second comparison voltage, the common input voltage, the first clock signal, and the second clock signal As a result of the comparison, the low voltage comparison unit includes: a fourth switch electrically connected to the second end of the second resistor, wherein the fourth switch is configured to switch to an on or off state according to the first clock signal; The fifth switch is electrically connected to the first end of the second resistor and the fourth switch, and the fifth switch is configured to switch to an on or off state according to the second clock signal; a second capacitor is electrically connected In the fourth switch and the a sixth switch electrically connected to the second capacitor and the common input voltage, the sixth switch for switching to an on or off state according to the first clock signal; and a second comparator having a positive phase input terminal, a negative phase input terminal and an output terminal, wherein the non-inverting input terminal of the second comparator is electrically connected to the common input voltage, and the negative phase input terminal of the second comparator is electrically The second capacitor is connected to the sixth switch, and the output of the second comparator is used to output the second comparison result. 如請求項4所述之輸入訊號電壓偵測模組,其中該第一時脈訊號與該第二時脈訊號互為反相。 The input signal voltage detecting module of claim 4, wherein the first clock signal and the second clock signal are mutually inverted. 如請求項2所述之輸入訊號電壓偵測模組,其中該比較電壓產生單元更包含一可變電阻單元,電性連接於該第二電阻之第二端與一接地端之間。 The input signal voltage detecting module of claim 2, wherein the comparison voltage generating unit further comprises a variable resistance unit electrically connected between the second end of the second resistor and a ground. 一種資料傳輸系統,包含一傳送器及一接收器,該傳送器之操作模式包含訓練模式(training mode)及正常模式(normal mode),當該傳送器之操作模式為正常模式時,該傳送器傳輸一資料訊號,該接收器用以接收該資料訊號,且該接收器包含一輸入訊號電壓偵測模組,該輸入訊號電壓偵測模組包含:一比較電壓產生單元,用以根據對應該資料訊號之一輸入訊號電壓產生一輸出訊號電壓、一第一比較電壓及一第二比較電壓,其中該第一比較電壓高於該第二比較電壓;一比較單元,用以根據該輸出訊號電壓、該第一比較電壓、該第二比較電壓及一第一時脈訊號產生一第一比較結果及一第二比較結果;以及一控制單元,用以根據該第一比較結果及該第二比較結果產生一控制訊號,該控制訊號用以切換該傳送器之操 作模式。 A data transmission system includes a transmitter and a receiver. The operation mode of the transmitter includes a training mode and a normal mode. When the operation mode of the transmitter is the normal mode, the transmitter Transmitting a data signal, the receiver is configured to receive the data signal, and the receiver includes an input signal voltage detecting module, the input signal voltage detecting module includes: a comparison voltage generating unit configured to respond to the corresponding data The input signal voltage of the signal generates an output signal voltage, a first comparison voltage, and a second comparison voltage, wherein the first comparison voltage is higher than the second comparison voltage; and a comparison unit is configured to perform, according to the output signal voltage, The first comparison voltage, the second comparison voltage, and a first clock signal generate a first comparison result and a second comparison result; and a control unit configured to use the first comparison result and the second comparison result Generating a control signal for switching the operation of the transmitter Mode. 如請求項7所述之資料傳輸系統,其中若該輸出訊號電壓高於該第一比較電壓或該輸出訊號電壓低於該第二比較電壓時,該控制訊號指示該傳送器切換至訓練模式且傳輸一時脈回復型樣(clock recovery pattern)訊號。 The data transmission system of claim 7, wherein if the output signal voltage is higher than the first comparison voltage or the output signal voltage is lower than the second comparison voltage, the control signal indicates that the transmitter switches to the training mode and Transmit a clock recovery pattern signal. 一種輸入訊號電壓偵測方法,適用於一資料傳輸系統,該資料傳輸系統包含一傳送器及一接收器,該傳送器之操作模式包含訓練模式(training mode)及正常模式(normal mode),當該傳送器之操作模式為該正常模式時,該傳送器傳輸一資料訊號,該接收器用以接收該資料訊號,該輸入訊號電壓偵測方法包含:取樣該資料訊號之一輸入訊號電壓,以產生一輸出訊號電壓、一第一比較電壓及一第二比較電壓,其中該第一比較電壓高於該第二比較電壓;根據一時脈訊號來比較該輸出訊號電壓與該第一比較電壓,以產生一第一比較結果;根據該時脈訊號來比較該輸出訊號電壓與該第二比較電壓,以產生一第二比較結果;以及根據該第一比較結果及該第二比較結果產生一控制訊號,該控制訊號用以切換該傳送器之操作模式。 An input signal voltage detecting method is applicable to a data transmission system, the data transmission system includes a transmitter and a receiver, and the operation mode of the transmitter includes a training mode and a normal mode. When the operation mode of the transmitter is the normal mode, the transmitter transmits a data signal, and the receiver is configured to receive the data signal. The input signal voltage detection method includes: sampling one of the data signals to input a signal voltage to generate An output signal voltage, a first comparison voltage, and a second comparison voltage, wherein the first comparison voltage is higher than the second comparison voltage; comparing the output signal voltage with the first comparison voltage according to a clock signal to generate a first comparison result; comparing the output signal voltage and the second comparison voltage according to the clock signal to generate a second comparison result; and generating a control signal according to the first comparison result and the second comparison result, The control signal is used to switch the operating mode of the transmitter. 如請求項9所述之輸入訊號電壓偵測方法,其中 若該輸出訊號電壓高於該第一比較電壓或該輸出訊號電壓低於該第二比較電壓,該控制訊號指示該傳送器切換至該訓練模式且傳輸一時脈回復型樣(clock recovery pattern)訊號。 The input signal voltage detecting method according to claim 9, wherein If the output signal voltage is higher than the first comparison voltage or the output signal voltage is lower than the second comparison voltage, the control signal indicates that the transmitter switches to the training mode and transmits a clock recovery pattern signal. .
TW102140371A 2013-11-06 2013-11-06 Input signal voltage detection module and method, and related data transmission system TWI523433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102140371A TWI523433B (en) 2013-11-06 2013-11-06 Input signal voltage detection module and method, and related data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102140371A TWI523433B (en) 2013-11-06 2013-11-06 Input signal voltage detection module and method, and related data transmission system

Publications (2)

Publication Number Publication Date
TW201519579A TW201519579A (en) 2015-05-16
TWI523433B true TWI523433B (en) 2016-02-21

Family

ID=53721098

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102140371A TWI523433B (en) 2013-11-06 2013-11-06 Input signal voltage detection module and method, and related data transmission system

Country Status (1)

Country Link
TW (1) TWI523433B (en)

Also Published As

Publication number Publication date
TW201519579A (en) 2015-05-16

Similar Documents

Publication Publication Date Title
US10581444B2 (en) Apparatus and method for automatic bandwidth calibration for phase locked loop
US8098110B2 (en) Phase locked loop apparatus with selectable capacitance device
US8378752B2 (en) Oscillator circuit
TWI720423B (en) Integrated circuit and anti-interference method thereof
US9654115B2 (en) Phase-locked loop circuit, data recovery circuit, and control method for phase-locked loop circuit
US10623005B2 (en) PLL circuit and CDR apparatus
US9793902B2 (en) Reference-less clock and data recovery circuit
JP4371893B2 (en) Charge pump circuit and PLL circuit using the charge pump circuit
US9100024B2 (en) Clock and data recovery tolerating long consecutive identical digits
US9432028B2 (en) Clock data recovery circuit and a method of operating the same
US20150078427A1 (en) Clock data recovery circuit
US8373511B2 (en) Oscillator circuit and method for gain and phase noise control
TWI523433B (en) Input signal voltage detection module and method, and related data transmission system
US20150030114A1 (en) Frequency locking system
US7885361B2 (en) Method and apparatus for 0/180 degree phase detector
TWI713796B (en) Method and circuit for controlling oscillator and apparatus and device employing the same
TWI542157B (en) Clock and data recovery circuit
TWI385926B (en) Clock generator
US9559705B1 (en) Clock and data recovery circuit with bidirectional frequency detection and electronic device using the same
TWI699962B (en) Device and method of frequency tuning
KR101517389B1 (en) Resistor-capacitor auto calibration system and calibration method therefor
US20230114343A1 (en) Poly phase filter with phase error enhance technique
WO2019109356A1 (en) Clock system, electronic apparatus, and processing method
TW202241049A (en) Signal processing circuit
KR101515345B1 (en) Adc comparator using analog delay locked loop