TWI768714B - Circuit and method for frequency lock error detection and display driving circuit - Google Patents

Circuit and method for frequency lock error detection and display driving circuit Download PDF

Info

Publication number
TWI768714B
TWI768714B TW110105394A TW110105394A TWI768714B TW I768714 B TWI768714 B TW I768714B TW 110105394 A TW110105394 A TW 110105394A TW 110105394 A TW110105394 A TW 110105394A TW I768714 B TWI768714 B TW I768714B
Authority
TW
Taiwan
Prior art keywords
comparison result
data
voltage signal
circuit
error detection
Prior art date
Application number
TW110105394A
Other languages
Chinese (zh)
Other versions
TW202234375A (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 TW110105394A priority Critical patent/TWI768714B/en
Application granted granted Critical
Publication of TWI768714B publication Critical patent/TWI768714B/en
Publication of TW202234375A publication Critical patent/TW202234375A/en

Links

Images

Abstract

A circuit for frequency lock error detection is disclosed, which includes a comparison unit and a control unit. The comparison unit is configured to compare a common mode signal with a first reference voltage signal and a second reference voltage signal to generate a comparison result, in which the common mode signal corresponds to a different signal pair outputted by a timing controller. The control unit is configured to determine whether to reset a clock and data recovery circuit coupled to the timing controller based on the comparison result.

Description

頻率鎖定錯誤偵測電路、頻率鎖定錯誤偵測方法和顯示驅動電路Frequency lock error detection circuit, frequency lock error detection method and display driving circuit

本發明是有關於頻率鎖定錯誤偵測,且特別是指一種具有頻率鎖定錯誤偵測功能的頻率鎖定錯誤偵測電路、頻率鎖定錯誤偵測方法和顯示驅動電路。The present invention relates to frequency lock error detection, and more particularly to a frequency lock error detection circuit with frequency lock error detection function, a frequency lock error detection method and a display driving circuit.

資料驅動器具有時脈及資料回復電路,其可對時序控制器輸出的資料訊號進行頻率鎖定處理,進而產生回復時脈訊號和回復資料訊號。然而,在系統開機時,共模電壓訊號可能會受到雜訊干擾,導致後續頻率鎖定出現錯誤,產生錯誤的回復時脈訊號和回復資料訊號,進而造成影像顯示的問題產生。The data driver has a clock and a data recovery circuit, which can perform frequency locking processing on the data signal output by the timing controller, thereby generating a recovery clock signal and a recovery data signal. However, when the system is powered on, the common-mode voltage signal may be disturbed by noise, resulting in an error in subsequent frequency locking, resulting in an incorrect recovery clock signal and recovery data signal, thus causing problems in image display.

本發明的目的是在於提供頻率鎖定錯誤偵測功能,其可在顯示裝置系統開機時,偵測時脈資料回復電路鎖定的頻率是否錯誤,並在偵測到頻率鎖定錯誤時,重設時脈資料回復電路,避免因頻率鎖定錯誤而產生的錯誤的回復時脈訊號和回復資料訊號。The purpose of the present invention is to provide a frequency lock error detection function, which can detect whether the frequency locked by the clock data recovery circuit is wrong when the display device system is turned on, and reset the clock when a frequency lock error is detected. The data recovery circuit avoids the wrong recovery clock signal and recovery data signal caused by the frequency locking error.

本發明之一方向是指一種頻率鎖定錯誤偵測電路,其包含比較單元和控制單元。比較單元用以對共模電壓(common mode voltage)訊號與第一參考電壓訊號和第二參考電壓訊號進行比較,以產生第一比較結果,其中共模電壓訊號對應由時序控制器輸出的差動訊號對。控制單元用以依據第一比較結果,決定是否重設耦接時序控制器的時脈資料回復(clock and data recovery)電路。One aspect of the present invention is a frequency lock error detection circuit, which includes a comparison unit and a control unit. The comparison unit is used for comparing the common mode voltage signal with the first reference voltage signal and the second reference voltage signal to generate a first comparison result, wherein the common mode voltage signal corresponds to the differential output by the timing controller Signal pair. The control unit is used for determining whether to reset a clock and data recovery circuit coupled to the timing controller according to the first comparison result.

依據本發明一或多個實施例,上述比較單元包含第一比較器、第二比較器和邏輯閘。第一比較器的第一輸入端和第二輸入端分別用以輸入第一參考電壓訊號和共模電壓訊號。第二比較器的第一輸入端和第二輸入端分別用以輸入共模電壓訊號和第二參考電壓訊號。邏輯閘的第一輸入端和第二輸入端分別耦接第一比較器和第二比較器的輸出端,且邏輯閘的輸出端用以輸出第一比較結果。According to one or more embodiments of the present invention, the comparison unit includes a first comparator, a second comparator, and a logic gate. The first input terminal and the second input terminal of the first comparator are respectively used for inputting the first reference voltage signal and the common mode voltage signal. The first input terminal and the second input terminal of the second comparator are respectively used for inputting the common mode voltage signal and the second reference voltage signal. The first input terminal and the second input terminal of the logic gate are respectively coupled to the output terminals of the first comparator and the second comparator, and the output terminal of the logic gate is used for outputting the first comparison result.

依據本發明一或多個實施例,上述頻率鎖定錯誤偵測電路更包含第一相移電路,其耦接第一比較器的第二輸入端和第二比較器的第一輸入端。According to one or more embodiments of the present invention, the frequency lock error detection circuit further includes a first phase shift circuit coupled to the second input terminal of the first comparator and the first input terminal of the second comparator.

依據本發明一或多個實施例,上述頻率鎖定錯誤偵測電路更包含第二相移電路和第三相移電路,其分別耦接第一比較器和第二比較器的輸出端。According to one or more embodiments of the present invention, the above-mentioned frequency lock error detection circuit further includes a second phase shift circuit and a third phase shift circuit, which are respectively coupled to the output ends of the first comparator and the second comparator.

依據本發明一或多個實施例,上述頻率鎖定錯誤偵測電路更包含數位比較器,其用以對時脈資料回復電路產生的回復資料訊號與比較資料串進行比較,以產生第二比較結果。其中,控制單元用以依據第一比較結果及第二比較結果,決定是否重設時脈資料回復電路。According to one or more embodiments of the present invention, the above-mentioned frequency lock error detection circuit further includes a digital comparator, which is used for comparing the recovery data signal generated by the clock data recovery circuit with the comparison data string to generate a second comparison result . The control unit is used for determining whether to reset the clock data recovery circuit according to the first comparison result and the second comparison result.

本發明之另一方向是指一種頻率鎖定錯誤偵測方法,其包含:對共模電壓訊號與第一參考電壓訊號和第二參考電壓訊號進行比較,以產生第一比較結果,其中共模電壓訊號對應由時序控制器輸出的差動訊號對;以及依據第一比較結果,決定是否重設耦接時序控制器的時脈資料回復電路。Another aspect of the present invention is directed to a frequency lock error detection method, which includes: comparing a common-mode voltage signal with a first reference voltage signal and a second reference voltage signal to generate a first comparison result, wherein the common-mode voltage The signal corresponds to the differential signal pair output by the timing controller; and according to the first comparison result, it is determined whether to reset the clock data recovery circuit coupled to the timing controller.

依據本發明一或多個實施例,上述頻率鎖定錯誤偵測方法更包含:對時脈資料回復電路產生的回復資料訊號與比較資料串進行比較,以產生第二比較結果;以及依據第一比較結果及第二比較結果,決定是否重設時脈資料回復電路。According to one or more embodiments of the present invention, the above-mentioned frequency lock error detection method further comprises: comparing the recovery data signal generated by the clock data recovery circuit with the comparison data string to generate a second comparison result; and according to the first comparison The result and the second comparison result determine whether to reset the clock data recovery circuit.

依據本發明一或多個實施例,上述差動訊號對是依據對應比較資料串的時脈訓練資料產生。According to one or more embodiments of the present invention, the above-mentioned differential signal pair is generated according to the clock training data corresponding to the comparison data string.

本發明之又一方向是指一種顯示驅動電路,其包含時序控制器、時脈資料回復電路和頻率鎖定錯誤偵測電路。時序控制器用以產生差動訊號對。時脈資料回復電路耦接時序控制器,且用以依據差動訊號對產生回復資料訊號和回復時脈訊號。頻率鎖定錯誤偵測電路包含比較單元和控制單元,其中比較單元用以對對應差動訊號對的共模電壓訊號與第一參考電壓訊號和第二參考電壓訊號進行比較,以產生第一比較結果,而控制單元用以依據第一比較結果,決定是否重設時脈資料回復電路。Another aspect of the present invention is directed to a display driving circuit, which includes a timing controller, a clock data recovery circuit, and a frequency lock error detection circuit. The timing controller is used for generating differential signal pairs. The clock data recovery circuit is coupled to the timing controller and used for generating a recovery data signal and a recovery clock signal according to the differential signal pair. The frequency lock error detection circuit includes a comparison unit and a control unit, wherein the comparison unit is used for comparing the common mode voltage signal of the corresponding differential signal pair with the first reference voltage signal and the second reference voltage signal to generate a first comparison result , and the control unit is used for determining whether to reset the clock data recovery circuit according to the first comparison result.

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

在本文中所使用的用語僅是為了描述特定實施例,非用以限制申請專利範圍。除非另有限制,否則單數形式的「一」或「該」用語也可用來表示複數形式。The terms used herein are for the purpose of describing particular embodiments only and are not intended to limit the scope of the claims. Unless otherwise limited, the singular form "a" or "the" may also be used to refer to the plural form.

以下說明和申請專利範圍可使用術語「耦接」及其衍生詞。在特定實施例中,「耦接」可指二或多個元件相互直接實體或電性接觸,或是不彼此直接接觸。「耦接」還可指二或多個元件相互操作或動作。The following description and claims may use the term "coupled" and its derivatives. In certain embodiments, "coupled" may mean that two or more elements are in direct physical or electrical contact with each other, or are not in direct contact with each other. "Coupled" may also refer to the mutual operation or action of two or more elements.

為了簡化和明確說明,本文可能會在各種實施例中重複使用元件符號和/或字母,但這並不表示所討論的各種實施例及/或配置之間有因果關係。For simplicity and clarity of illustration, reference numerals and/or letters may be repeated herein among various embodiments, but this does not imply a causal relationship between the various embodiments and/or configurations discussed.

請參照圖1,其為本發明實施例之顯示裝置100的示意圖。顯示裝置100包含顯示面板110、資料驅動器120、掃描驅動器130和時序控制器140。顯示面板110可以是薄膜電晶體液晶顯示面板(TFT-LCD),但不限於此。顯示面板110包含多個畫素單元P、多個資料線D和多個掃描線S。在顯示面板110中,所有畫素單元P形成M行和N列的矩陣。每一畫素單元P包含開關元件T,其係由一條資料線D和一條掃描線S所驅動,以在一特定時間區間開啟,使得畫素單元P可顯示對應的灰階。資料驅動器120用以產生資料驅動訊號DS(1)~DS(M),其分別用於驅動各資料線D,以將灰階資料傳送到每一行的畫素單元P。掃描驅動器130用以產生掃描驅動訊號SS(1)~SS(N)來驅動各掃描線S,以控制每一列的畫素單元P中開關元件T的開關狀態。在一特定時間區間內,開關元件T的開關狀態為開啟,使畫素單元P顯示對應灰階。利用視覺暫留的原理,人眼可看到完整的顯示畫面。時序控制器140控制掃描驅動器130依序驅動顯示面板110的各掃描線S,並於各掃描線S依序被驅動時,控制資料驅動器120送入相對應的影像資料至顯示面板110的各資料線D。在一些實施例中,資料驅動器120、掃描驅動器130和時序控制器140可整合為單個顯示驅動電路且製作在單一晶片中。進一步地,在一些實施例中,整合資料驅動器120、掃描驅動器130和時序控制器140等功能的晶片也可對具有內嵌式(in-cell)觸控感測結構或者其上方具有觸控面板的顯示面板110提供觸控感測功能。Please refer to FIG. 1 , which is a schematic diagram of a display device 100 according to an embodiment of the present invention. The display device 100 includes a display panel 110 , a data driver 120 , a scan driver 130 and a timing controller 140 . The display panel 110 may be a thin film transistor liquid crystal display panel (TFT-LCD), but is not limited thereto. The display panel 110 includes a plurality of pixel units P, a plurality of data lines D and a plurality of scan lines S. In the display panel 110, all the pixel units P form a matrix of M rows and N columns. Each pixel unit P includes a switching element T, which is driven by a data line D and a scan line S to be turned on in a specific time interval, so that the pixel unit P can display a corresponding gray scale. The data driver 120 is used for generating the data driving signals DS(1)-DS(M), which are respectively used for driving the data lines D, so as to transmit the grayscale data to the pixel units P of each row. The scan driver 130 is used for generating scan driving signals SS( 1 ) to SS(N) to drive each scan line S, so as to control the switching state of the switching element T in the pixel unit P of each column. During a certain time interval, the switching state of the switching element T is turned on, so that the pixel unit P displays the corresponding gray scale. Using the principle of persistence of vision, the human eye can see the complete display screen. The timing controller 140 controls the scan driver 130 to sequentially drive each scan line S of the display panel 110 , and controls the data driver 120 to send corresponding image data to each data of the display panel 110 when each scan line S is driven in sequence line D. In some embodiments, the data driver 120, the scan driver 130 and the timing controller 140 can be integrated into a single display driver circuit and fabricated in a single chip. Further, in some embodiments, the chip integrating the functions of the data driver 120 , the scan driver 130 and the timing controller 140 can also have an in-cell touch sensing structure or a touch panel above it. The display panel 110 provides a touch sensing function.

圖2為本發明實施例之顯示驅動電路的部分電路方塊圖。在圖2中,時脈資料回復(clock and data recovery)電路122可以是資料驅動器120的一部分電路,其耦接時序控制器140,並接收時序控制器140所輸出的差動訊號對V DATA +、V DATA -,據以產生回復資料訊號和回復時脈訊號。頻率鎖定錯誤偵測電路200包含比較單元210和控制單元220,其中比較單元210用以對對應差動訊號對V DATA +、V DATA -的共模電壓(common mode voltage)訊號與參考電壓訊號V REF1、V REF2進行比較,以產生比較結果CR1,而控制單元220用以依據該比較結果CR1,決定是否重設時脈資料回復電路122。 FIG. 2 is a partial circuit block diagram of a display driving circuit according to an embodiment of the present invention. In FIG. 2 , the clock and data recovery circuit 122 may be a part of the data driver 120 , which is coupled to the timing controller 140 and receives the differential signal pair V DATA + output by the timing controller 140 , V DATA - , according to which the reply data signal and the reply clock signal are generated. The frequency lock error detection circuit 200 includes a comparison unit 210 and a control unit 220, wherein the comparison unit 210 is used for comparing the common mode voltage signal corresponding to the differential signal pair V DATA + , V DATA - and the reference voltage signal V REF1 and V REF2 are compared to generate a comparison result CR1, and the control unit 220 is used for determining whether to reset the clock data recovery circuit 122 according to the comparison result CR1.

圖3為本發明實施例之頻率鎖定錯誤偵測方法300的流程圖。首先,進行步驟S302,進行系統開機,使時脈資料回復電路進行時脈及資料回復,且接著進行步驟S304,提供時脈訓練資料,使時序控制器140輸出之差動訊號對V DATA +、V DATA -具有符合時脈訓練資料的型式。之後,進行步驟S306,判斷共模電壓訊號V CM的電位是否在預定範圍,即是否在參考電壓訊號V REF1、V REF2的範圍內。共模電壓訊號V CM的電位可以是差動訊號對V DATA +、V DATA -的電位的中間值,即V CM=(V DATA ++V DATA -)/2。若共模電壓訊號V CM的電位在參考電壓訊號V REF1、V REF2的範圍內,即V REF2<V CM<V REF1,則接著進行步驟S308,確認頻率是否已鎖定;反之,則進行步驟S310,停止時脈及資料回復,並重設時脈資料回復電路,以及接著回到步驟S304。 FIG. 3 is a flowchart of a frequency lock error detection method 300 according to an embodiment of the present invention. First, step S302 is performed, the system is powered on, the clock data recovery circuit is enabled to perform clock and data recovery, and then step S304 is performed, clock training data is provided, so that the differential signal output by the timing controller 140 is paired with V DATA + , V DATA - has a pattern that matches the clock training data. Afterwards, step S306 is performed to determine whether the potential of the common mode voltage signal V CM is within a predetermined range, that is, within the range of the reference voltage signals V REF1 and V REF2 . The potential of the common-mode voltage signal V CM may be an intermediate value of the potentials of the differential signal pair V DATA + , V DATA , that is, V CM =(V DATA + +V DATA )/2. If the potential of the common-mode voltage signal V CM is within the range of the reference voltage signals V REF1 and V REF2 , that is, V REF2 <V CM <V REF1 , then proceed to step S308 to confirm whether the frequency is locked; otherwise, proceed to step S310 , stop the clock and data recovery, and reset the clock data recovery circuit, and then return to step S304.

在步驟S308中,若判別頻率已鎖定,則進入步驟S312,完成時脈資料回復,且利用回復資料訊號和回復時脈訊號進行影像顯示;反之,若判別頻率未鎖定,則回到步驟S304。In step S308, if it is determined that the frequency is locked, then proceed to step S312, complete the clock data recovery, and use the recovered data signal and the recovered clock signal for image display; otherwise, if it is determined that the frequency is not locked, then go back to step S304.

圖4為圖2之比較單元210的元件示意圖。如圖4所示,共模電壓訊號V CM是由電阻R1、R2轉換差動訊號對V DATA +、V DATA -而得,且比較器212A、212B分別以參考電壓訊號V REF1、V REF2對共模電壓訊號V CM進行比較,其中參考電壓訊號V REF1的電位高於參考電壓訊號V REF2的電位。比較器212A的正負輸入端分別配置為輸入共模電壓訊號V CM和參考電壓訊號V REF1,而比較器212B的正負輸入端分別配置為輸入參考電壓訊號V REF2和共模電壓訊號V CM。邏輯閘214的兩個輸入端和輸出端分別耦接比較器212A、212B的輸出端和輸出比較結果CR1。在其他實施例中,比較器212A、212B可變更為分別以參考電壓訊號VREF1、VREF2對共模電壓訊號VCM進行比較。 FIG. 4 is a schematic diagram of components of the comparison unit 210 of FIG. 2 . As shown in FIG. 4 , the common mode voltage signal V CM is obtained by converting the differential signal pair V DATA + and V DATA - by the resistors R1 and R2, and the comparators 212A and 212B use the reference voltage signals V REF1 and V REF2 to pair the pair, respectively. The common mode voltage signal V CM is compared, wherein the potential of the reference voltage signal V REF1 is higher than that of the reference voltage signal V REF2 . The positive and negative input terminals of the comparator 212A are respectively configured to input the common mode voltage signal V CM and the reference voltage signal V REF1 , and the positive and negative input terminals of the comparator 212B are respectively configured to input the reference voltage signal V REF2 and the common mode voltage signal V CM . The two input terminals and the output terminal of the logic gate 214 are respectively coupled to the output terminals of the comparators 212A and 212B and output the comparison result CR1 . In other embodiments, the comparators 212A and 212B can be changed to compare the common-mode voltage signal V CM with the reference voltage signals V REF1 and V REF2 , respectively.

邏輯閘214輸出的比較結果CR1由比較器212A、212B的輸出端所輸出的訊號決定。若共模電壓訊號VCM的電位高於參考電壓訊號VREF1、VREF2的電位,則比較器212A、212B分別輸出低邏輯電位訊號和高邏輯電位訊號,且邏輯閘214輸出之比較結果CR1的電位為高邏輯電位,代表共模電壓訊號VCM的電位不在預定範圍內。若共模電壓訊號VCM的電位低於參考電壓訊號VREF1的電位但高於參考電壓訊號VREF2的電位,則比較器212A、212B均輸出高邏輯電位訊號,且邏輯閘214輸出之比較結果CR1的電位為低邏輯電位,代表共模電壓訊號VCM的電位在預定範圍內。若共模電壓訊號VCM的電位低於參考電壓訊號VREF1、VREF2的電位,則比較器212A、212B分別輸出高邏輯電位訊號和低邏輯電位訊號,且邏輯閘214輸出之比較結果CR1的電位為高邏輯電位,代表共模電壓訊號VCM的電位不在預定範圍內。邏輯閘214可以是互斥或閘(Exclusive OR gate)或是由多個其他類型的邏輯閘組成的邏輯單元。在比較結果CR1為高邏輯電位下,控制單元220輸出的控制訊號CTRL用以停止時脈和資料回復,並重設時脈資料回復電路122。 The comparison result CR1 output by the logic gate 214 is determined by the signals output by the output terminals of the comparators 212A and 212B. If the potential of the common-mode voltage signal V CM is higher than the potential of the reference voltage signals V REF1 and V REF2 , the comparators 212A and 212B respectively output a low logic potential signal and a high logic potential signal, and the logic gate 214 outputs a comparison result CR1 of The potential is a high logic potential, which means that the potential of the common mode voltage signal V CM is not within a predetermined range. If the potential of the common-mode voltage signal V CM is lower than the potential of the reference voltage signal V REF1 but higher than the potential of the reference voltage signal V REF2 , the comparators 212A and 212B both output high logic potential signals, and the logic gate 214 outputs the comparison result. The potential of CR1 is a low logic potential, which means that the potential of the common mode voltage signal V CM is within a predetermined range. If the potential of the common-mode voltage signal V CM is lower than the potential of the reference voltage signals V REF1 and V REF2 , the comparators 212A and 212B respectively output a high logic potential signal and a low logic potential signal, and the logic gate 214 outputs a comparison result CR1 of The potential is a high logic potential, which means that the potential of the common mode voltage signal V CM is not within a predetermined range. The logic gate 214 may be an exclusive OR gate or a logic unit composed of multiple other types of logic gates. When the comparison result CR1 is at a high logic level, the control signal CTRL output from the control unit 220 is used to stop the clock and data recovery, and reset the clock data recovery circuit 122 .

比較器212A的負輸入端和比較器212B正輸入端可包含相移電路(圖未繪示),其用以去除共模電壓訊號V CM的交流成分。此外,比較器212A、212B的輸出端也可各自包含相移電路(圖未繪示)。本文所指之相移電路,可以是RC濾波電路或是其他合適電路。 The negative input terminal of the comparator 212A and the positive input terminal of the comparator 212B may include a phase shift circuit (not shown) for removing the AC component of the common mode voltage signal V CM . In addition, the output terminals of the comparators 212A and 212B may each include a phase shift circuit (not shown). The phase shift circuit referred to in this article can be an RC filter circuit or other suitable circuits.

圖5為本發明實施例之顯示驅動電路的部分電路方塊圖。在圖5中,頻率鎖定錯誤偵測電路500包含比較單元510、數位比較器520和控制單元530。比較單元510相同或相似於頻率鎖定錯誤偵測電路200中的比較單元210,在此不贅述。數位比較器520用以對回復資料訊號DATA與比較資料串COMP進行比較,以產生比較結果CR2,其中比較資料串COMP對應用以產生差動訊號對V DATA +、V DATA -的時脈訓練資料。在一些實施例中,若回復資料訊號DATA符合比較資料串COMP的型式,則輸出的比較結果CR2為低邏輯準位,而若回復資料訊號DATA不符合比較資料串COMP的型式,則輸出的比較結果CR2為高邏輯準位。在比較結果CR1、CR2的至少一個為高邏輯電位下,控制單元530輸出的控制訊號CTRL用以停止時脈和資料回復,並重設時脈資料回復電路122。 FIG. 5 is a partial circuit block diagram of a display driving circuit according to an embodiment of the present invention. In FIG. 5 , the frequency lock error detection circuit 500 includes a comparison unit 510 , a digital comparator 520 and a control unit 530 . The comparison unit 510 is the same as or similar to the comparison unit 210 in the frequency lock error detection circuit 200 , and details are not described here. The digital comparator 520 is used for comparing the reply data signal DATA with the comparison data string COMP to generate a comparison result CR2, wherein the comparison data string COMP corresponds to the clock training data for generating the differential signal pair V DATA + , V DATA - . In some embodiments, if the reply data signal DATA conforms to the pattern of the comparison data string COMP, the output comparison result CR2 is a low logic level, and if the reply data signal DATA does not conform to the pattern of the comparison data string COMP, the output comparison result CR2 As a result, CR2 is a high logic level. When at least one of the comparison results CR1 and CR2 is at a high logic level, the control signal CTRL output from the control unit 530 is used to stop the clock and data recovery, and reset the clock data recovery circuit 122 .

圖6為本發明實施例之頻率鎖定錯誤偵測方法600的流程圖。頻率鎖定錯誤偵測方法600中的步驟S602、S604、S606、S610分別相同或相似於頻率鎖定錯誤偵測方法300中的步驟S302、S304、S306、S310,在此不贅述。在步驟S608中,若判別頻率已鎖定,則進入步驟S612,對回復資料訊號與比較資料串進行比較;反之,若判別頻率未鎖定,則回到步驟S604。FIG. 6 is a flowchart of a frequency lock error detection method 600 according to an embodiment of the present invention. Steps S602 , S604 , S606 , and S610 in the frequency lock error detection method 600 are respectively the same as or similar to steps S302 , S304 , S306 , and S310 in the frequency lock error detection method 300 , and are not repeated here. In step S608, if it is determined that the frequency is locked, the process proceeds to step S612, and the reply data signal is compared with the comparison data string; otherwise, if it is determined that the frequency is not locked, the process returns to step S604.

在步驟S612中,若判別回復資料訊號符合比較資料串的型式,則進入步驟S614,完成時脈資料回復,且利用回復資料訊號和回復時脈訊號進行影像顯示;反之,若判別頻率未鎖定,則進行步驟S610,停止時脈及資料回復,並重設時脈資料回復電路,以及接著回到步驟S604。In step S612, if it is determined that the reply data signal conforms to the type of the comparison data string, then proceed to step S614 to complete the clock data recovery, and use the reply data signal and the reply clock signal for image display; otherwise, if it is determined that the frequency is not locked, Then go to step S610, stop the clock and data recovery, and reset the clock data recovery circuit, and then return to step S604.

圖7A為本發明實施例之比較資料串COMP的示例。如圖7A所示,在本示例中,比較資料串COMP具有9個位元(分別為COMP[1]至COMP[9]),且具有第1至第9種型式(分別為序號1至9),且在任一種型式中,位元值為0、1分別代表低電位和高電位。回復資料訊號DATA須符合第1至第9種型式的其中一種型式,始判別頻率已正確鎖定,否則即判別頻率鎖定錯誤,從而重設時脈資料回復電路。在一些實施例中,回復資料訊號DATA以9個位元為單位連續與比較資料串COMP進行比較。若均符合第1至第9種型式的同一種型式,則判別頻率已正確鎖定;反之,則即判別頻率鎖定錯誤,從而重設時脈資料回復電路。上述判別方式相似於判別回復資料訊號DATA是否符合連續5個高電位位元且接著連續4個低電位位元依序循環的型式。連續比較的次數可依據電路設計和產品規格等對應調整。FIG. 7A is an example of a comparison data string COMP according to an embodiment of the present invention. As shown in FIG. 7A , in this example, the comparison data string COMP has 9 bits (respectively COMP[1] to COMP[9]), and has the first to ninth types (respectively serial numbers 1 to 9) ), and in either form, the bit values 0 and 1 represent low potential and high potential, respectively. The recovery data signal DATA must conform to one of the first to ninth types, before it is determined that the frequency has been locked correctly, otherwise it is determined that the frequency is locked incorrectly, thereby resetting the clock data recovery circuit. In some embodiments, the reply data signal DATA is continuously compared with the comparison data string COMP in units of 9 bits. If all conform to the same type of the first to ninth types, it is determined that the frequency has been locked correctly; otherwise, it is determined that the frequency is locked incorrectly, thereby resetting the clock data recovery circuit. The above-mentioned judging method is similar to the type of judging whether the reply data signal DATA conforms to 5 consecutive high-level bits and then 4 consecutive low-level bits to cycle in sequence. The number of consecutive comparisons can be adjusted according to circuit design and product specifications.

圖7B為本發明實施例之比較資料串COMP的示例。如圖7B所示,在本示例中,比較資料串COMP同樣具有9個位元(分別為COMP[1]至COMP[9]),且具有第1至第9種型式(分別為序號1至9),且在任一種型式中,位元值為0、1分別代表低電位和高電位,位元值為X代表高/低電位(即不限低電位或高電位)。回復資料訊號DATA須符合第1至第9種型式的其中一種型式,始判別頻率已正確鎖定,否則即判別頻率鎖定錯誤,從而重設時脈資料回復電路。在一些實施例中,回復資料訊號DATA以9個位元為單位連續與比較資料串COMP進行比較。若均符合第1至第9種型式的同一種型式,則判別頻率已正確鎖定;反之,則判別頻率鎖定錯誤,從而重設時脈資料回復電路。上述判別方式相似於判別回復資料訊號DATA是否符合連續4個高電位位元且隔1個位元後接著連續3個低電位位元並隔1個位元依序循環的型式。同樣地,連續比較的次數可依據電路設計和產品規格等對應調整。FIG. 7B is an example of a comparison data string COMP according to an embodiment of the present invention. As shown in FIG. 7B , in this example, the comparison data string COMP also has 9 bits (respectively COMP[1] to COMP[9]), and has the first to ninth types (respectively serial numbers 1 to 9). 9), and in either type, the bit value is 0 and 1 to represent low potential and high potential, respectively, and the bit value X represents high/low potential (ie, no limit to low potential or high potential). The recovery data signal DATA must conform to one of the first to ninth types, before it is determined that the frequency has been locked correctly, otherwise it is determined that the frequency is locked incorrectly, thereby resetting the clock data recovery circuit. In some embodiments, the reply data signal DATA is continuously compared with the comparison data string COMP in units of 9 bits. If all conform to the same type of the 1st to 9th types, it is judged that the frequency has been locked correctly; otherwise, it is judged that the frequency locking is wrong, thereby resetting the clock data recovery circuit. The above judging method is similar to the method of judging whether the reply data signal DATA conforms to 4 consecutive high-level bits, followed by 1-bit, followed by 3 consecutive low-level bits, which are cycled in sequence with 1-bit intervals. Likewise, the number of consecutive comparisons can be adjusted according to circuit design and product specifications.

依據上述本發明實施例,可在顯示裝置系統開機時,偵測時脈資料回復電路鎖定的頻率是否錯誤,並在偵測到頻率鎖定錯誤時,重設時脈資料回復電路,避免因頻率鎖定錯誤而產生的錯誤的回復時脈訊號和回復資料訊號。According to the above embodiments of the present invention, when the display device system is powered on, it is possible to detect whether the frequency locked by the clock data recovery circuit is wrong, and when the frequency locking error is detected, reset the clock data recovery circuit to avoid frequency locking. Errors are caused by the wrong reply clock signal and reply data signal.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed above by the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, The protection scope of the present invention shall be determined by the scope of the appended patent application.

100:顯示裝置 110:顯示面板 120:資料驅動器 122:時脈資料回復電路 130:掃描驅動器 140:時序控制器 200,500:頻率鎖定錯誤偵測電路 210,510:比較單元 212A,212B:比較器 214:邏輯閘 220,530:控制單元 300,600:頻率鎖定錯誤偵測方法 520:數位比較器 COMP:比較資料串 CR1,CR2:比較結果 CTRL:控制訊號 D:資料線 DATA:回復資料訊號 DS(1)~DS(M):資料驅動訊號 LOCK:回復時脈訊號 P:畫素單元 R1,R2:電阻 S:掃描線 S302,S304,S306,S308,S310,S602,S604,S606,S608,S610,S612,S614:步驟 SS(1)~SS(N):掃描驅動訊號 T:開關元件 V CM:共模電壓訊號 V REF1,V REF2:參考電壓訊號 V DATA +,V DATA -:差動訊號對 100: display device 110: display panel 120: data driver 122: clock data recovery circuit 130: scan driver 140: timing controller 200, 500: frequency lock error detection circuit 210, 510: comparison unit 212A, 212B: comparator 214: logic gate 220, 530: control unit 300, 600: frequency lock error detection method 520: digital comparator COMP: comparison data string CR1, CR2: comparison result CTRL: control signal D: data line DATA: reply data signal DS(1)~DS(M) : Data drive signal LOCK: Recovery clock signal P: Pixel unit R1, R2: Resistor S: Scan line S302, S304, S306, S308, S310, S602, S604, S606, S608, S610, S612, S614: Step SS (1)~SS(N): Scanning drive signal T: Switching element V CM : Common mode voltage signal V REF1 , V REF2 : Reference voltage signal V DATA + , V DATA - : differential signal pair

為了更完整了解實施例及其優點,現參照結合所附圖式所做之下列描述,其中: [圖1]為本發明實施例之顯示裝置的示意圖; [圖2]為本發明實施例之顯示驅動電路的部分電路方塊圖; [圖3]為本發明實施例之頻率鎖定錯誤偵測方法的流程圖; [圖4]為[圖2]之比較單元的元件示意圖; [圖5]為本發明實施例之顯示驅動電路的部分電路方塊圖; [圖6]為本發明實施例之頻率鎖定錯誤偵測方法的流程圖;以及 [圖7A]和[圖7B]分別為本發明實施例之比較資料串的示例。 For a more complete understanding of embodiments and their advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, wherein: 1 is a schematic diagram of a display device according to an embodiment of the present invention; [FIG. 2] is a partial circuit block diagram of a display driving circuit according to an embodiment of the present invention; 3 is a flowchart of a frequency lock error detection method according to an embodiment of the present invention; [FIG. 4] is a schematic diagram of the components of the comparison unit of [FIG. 2]; [FIG. 5] is a partial circuit block diagram of a display driving circuit according to an embodiment of the present invention; [FIG. 6] is a flowchart of a frequency lock error detection method according to an embodiment of the present invention; and [FIG. 7A] and [FIG. 7B] are examples of comparison data strings according to the embodiment of the present invention, respectively.

100:顯示裝置 100: Display device

110:顯示面板 110: Display panel

120:資料驅動器 120:Data Drive

130:掃描驅動器 130: Scan Drive

140:時序控制器 140: Timing Controller

D:資料線 D: data line

DS(1)~DS(M):資料驅動訊號 DS(1)~DS(M): Data-driven signal

P:畫素單元 P: pixel unit

S:掃描線 S: scan line

SS(1)~SS(N):掃描驅動訊號 SS(1)~SS(N): scan drive signal

T:開關元件 T: switching element

Claims (10)

一種頻率鎖定錯誤偵測電路,包含:一比較單元,用以對一共模電壓(common mode voltage)訊號與一第一參考電壓訊號和一第二參考電壓訊號進行比較,以產生一第一比較結果,該共模電壓訊號對應由一時序控制器輸出之差動訊號對;以及一控制單元,用以依據該第一比較結果,決定是否重設耦接該時序控制器之一時脈資料回復(clock and data recovery)電路。 A frequency lock error detection circuit includes: a comparison unit for comparing a common mode voltage signal with a first reference voltage signal and a second reference voltage signal to generate a first comparison result , the common mode voltage signal corresponds to a differential signal pair output by a timing controller; and a control unit for determining whether to reset a clock data recovery (clock data) coupled to the timing controller according to the first comparison result and data recovery) circuit. 如請求項1所述之頻率鎖定錯誤偵測電路,其中該比較單元包含:一第一比較器,其第一輸入端和第二輸入端分別用以輸入該第一參考電壓訊號和該共模電壓訊號;一第二比較器,其第一輸入端和第二輸入端分別用以輸入該共模電壓訊號和該第二參考電壓訊號;以及一邏輯閘,其第一輸入端和第二輸入端分別耦接該第一比較器和該第二比較器之輸出端,且其輸出端用以輸出該第一比較結果。 The frequency lock error detection circuit as claimed in claim 1, wherein the comparison unit comprises: a first comparator, the first input terminal and the second input terminal of which are respectively used for inputting the first reference voltage signal and the common mode voltage signal; a second comparator whose first input terminal and second input terminal are respectively used to input the common mode voltage signal and the second reference voltage signal; and a logic gate whose first input terminal and second input terminal are respectively used The terminals are respectively coupled to the output terminals of the first comparator and the second comparator, and the output terminals are used for outputting the first comparison result. 如請求項2所述之頻率鎖定錯誤偵測電路,更包含:一第一相移電路,耦接該第一比較器之第二輸入端和該第二比較器之第一輸入端。 The frequency lock error detection circuit as claimed in claim 2, further comprising: a first phase shift circuit coupled to the second input terminal of the first comparator and the first input terminal of the second comparator. 如請求項1或3所述之頻率鎖定錯誤偵測電路,更包含:一第二相移電路,耦接該第一比較器之輸出端;以及一第三相移電路,耦接該第二比較器之輸出端。 The frequency lock error detection circuit as claimed in claim 1 or 3, further comprising: a second phase shift circuit coupled to the output end of the first comparator; and a third phase shift circuit coupled to the second phase shift circuit Comparator output. 如請求項1所述之頻率鎖定錯誤偵測電路,更包含:一數位比較器,用以對該時脈資料回復電路產生之一回復資料訊號與一比較資料串進行比較,以產生一第二比較結果;其中,該控制單元用以依據該第一比較結果及該第二比較結果,決定是否重設該時脈資料回復電路。 The frequency lock error detection circuit as claimed in claim 1, further comprising: a digital comparator for comparing a reply data signal generated by the clock data restoration circuit with a comparison data string to generate a second a comparison result; wherein, the control unit is used for determining whether to reset the clock data recovery circuit according to the first comparison result and the second comparison result. 一種頻率鎖定錯誤偵測方法,包含:對一共模電壓訊號與一第一參考電壓訊號和一第二參考電壓訊號進行比較,以產生一第一比較結果,該共模電壓訊號對應由一時序控制器輸出之差動訊號對;以及依據該第一比較結果,決定是否重設耦接該時序控制器之一時脈資料回復電路。 A frequency lock error detection method, comprising: comparing a common mode voltage signal with a first reference voltage signal and a second reference voltage signal to generate a first comparison result, the common mode voltage signal corresponding to a timing control and determining whether to reset a clock data recovery circuit coupled to the timing controller according to the first comparison result. 如請求項6所述之頻率鎖定錯誤偵測方法,更包含:對該時脈資料回復電路產生之一回復資料訊號與一比較 資料串進行比較,以產生一第二比較結果;以及依據該第一比較結果及該第二比較結果,決定是否重設該時脈資料回復電路。 The frequency lock error detection method as claimed in claim 6, further comprising: generating a recovery data signal from the clock data recovery circuit with a comparison The data strings are compared to generate a second comparison result; and according to the first comparison result and the second comparison result, it is determined whether to reset the clock data recovery circuit. 如請求項7所述之頻率鎖定錯誤偵測方法,其中該差動訊號對係依據對應該比較資料串之一時脈訓練資料產生。 The frequency lock error detection method as claimed in claim 7, wherein the differential signal pair is generated according to a clock training data corresponding to the comparison data string. 一種顯示驅動電路,包含:一時序控制器,用以產生一差動訊號對;一時脈資料回復電路,耦接該時序控制器,該時脈資料回復電路用以依據該差動訊號對產生一回復資料訊號和一回復時脈訊號;以及一頻率鎖定錯誤偵測電路,包含:一比較單元,用以對對應該差動訊號對之一共模電壓訊號與一第一參考電壓訊號和一第二參考電壓訊號進行比較,以產生一第一比較結果;以及一控制單元,用以依據該第一比較結果,決定是否重設該時脈資料回復電路。 A display driving circuit includes: a timing controller for generating a differential signal pair; a clock data recovery circuit coupled to the timing controller, the clock data recovery circuit for generating a differential signal pair according to the differential signal pair A recovery data signal and a recovery clock signal; and a frequency lock error detection circuit, comprising: a comparison unit for corresponding to a common mode voltage signal of the differential signal pair, a first reference voltage signal and a second The reference voltage signals are compared to generate a first comparison result; and a control unit is used for determining whether to reset the clock data recovery circuit according to the first comparison result. 如請求項9所述之顯示驅動電路,其中該頻率鎖定錯誤偵測電路更包含:一數位比較器,用以對該回復資料訊號與一比較資料串進行比較,以產生一第二比較結果; 其中,該控制單元用以依據該第一比較結果及該第二比較結果,決定是否重設該時脈資料回復電路。 The display driving circuit of claim 9, wherein the frequency lock error detection circuit further comprises: a digital comparator for comparing the reply data signal with a comparison data string to generate a second comparison result; Wherein, the control unit is used for determining whether to reset the clock data recovery circuit according to the first comparison result and the second comparison result.
TW110105394A 2021-02-17 2021-02-17 Circuit and method for frequency lock error detection and display driving circuit TWI768714B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110105394A TWI768714B (en) 2021-02-17 2021-02-17 Circuit and method for frequency lock error detection and display driving circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110105394A TWI768714B (en) 2021-02-17 2021-02-17 Circuit and method for frequency lock error detection and display driving circuit

Publications (2)

Publication Number Publication Date
TWI768714B true TWI768714B (en) 2022-06-21
TW202234375A TW202234375A (en) 2022-09-01

Family

ID=83104025

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110105394A TWI768714B (en) 2021-02-17 2021-02-17 Circuit and method for frequency lock error detection and display driving circuit

Country Status (1)

Country Link
TW (1) TWI768714B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201112715A (en) * 2009-07-28 2011-04-01 Renesas Electronics Corp Clock data recovery circuit and display device
TW201117591A (en) * 2009-08-13 2011-05-16 Samsung Electronics Co Ltd Clock and data recovery circuit of a source driver and a display device
TW201207827A (en) * 2009-10-16 2012-02-16 Semiconductor Energy Lab Liquid crystal display device and electronic apparatus having the same
CN108091292A (en) * 2016-11-22 2018-05-29 硅工厂股份有限公司 Data driven unit and the display device including the data driven unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201112715A (en) * 2009-07-28 2011-04-01 Renesas Electronics Corp Clock data recovery circuit and display device
TW201117591A (en) * 2009-08-13 2011-05-16 Samsung Electronics Co Ltd Clock and data recovery circuit of a source driver and a display device
TW201207827A (en) * 2009-10-16 2012-02-16 Semiconductor Energy Lab Liquid crystal display device and electronic apparatus having the same
CN108091292A (en) * 2016-11-22 2018-05-29 硅工厂股份有限公司 Data driven unit and the display device including the data driven unit

Also Published As

Publication number Publication date
TW202234375A (en) 2022-09-01

Similar Documents

Publication Publication Date Title
US8421727B2 (en) Transmitter circuit, transmission circuit and driver unit
JP5269973B2 (en) Data transmission method and device between timing controller and source driver to which bit error rate test function is added
KR101323055B1 (en) METHOD AND APPARATUS FOR RECOVERING A PIXEL CLOCK BASED INTERNL DISPLAYPORT(iDP) INTERFACE AND DISPLAY DEVICE USING THE SAME
KR20100042278A (en) Integrated method of detecting an image defect in a liquid crystal screen
US20230230557A1 (en) Interface circuit, source driver, and display device
TWI768714B (en) Circuit and method for frequency lock error detection and display driving circuit
CN110609633B (en) Display driving apparatus and display apparatus including the same
US9612682B2 (en) Touch panel and method for detecting the same
US9619077B2 (en) Touch display apparatus and operation method of touch device thereof
CN114978157A (en) Frequency locking error detection circuit, frequency locking error detection method, and display drive circuit
US11862070B2 (en) Source driver and display device
KR20030069783A (en) Flat panel display having transmitting and receiving circuit for digital interface
TW200428083A (en) Display with reduced block dim effect
CN111402770A (en) Testing device of display device
KR20160082729A (en) Display device
CN114446258B (en) Display panel and display device
CN112447149B (en) Display driver, display device, and semiconductor device
KR100702564B1 (en) Semiconductor device and the method of testing the same
US11676519B2 (en) Data driving circuit, method for detecting noise of display signal, and display apparatus
CN111399676B (en) Touch display device and detection method thereof
US20230154378A1 (en) Timing controller, display driving device including the same and method for driving the same
US20210398470A1 (en) Display driving device
TWI818253B (en) Operation system
TWI758600B (en) Display panel and display panel driving method
JP2003348176A (en) Interface circuit and electronic apparatus provided with the same