TWI797401B - Control circuit and control method thereof - Google Patents
Control circuit and control method thereof Download PDFInfo
- Publication number
- TWI797401B TWI797401B TW108144548A TW108144548A TWI797401B TW I797401 B TWI797401 B TW I797401B TW 108144548 A TW108144548 A TW 108144548A TW 108144548 A TW108144548 A TW 108144548A TW I797401 B TWI797401 B TW I797401B
- Authority
- TW
- Taiwan
- Prior art keywords
- image data
- circuit
- storage circuit
- data
- critical value
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Selective Calling Equipment (AREA)
- Air Bags (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
Description
本發明係有關於一種控制電路,特別是有關於一種耦接於一影像擷取裝置與一顯示裝置之間的控制電路。The present invention relates to a control circuit, in particular to a control circuit coupled between an image capture device and a display device.
在目前的影像處理過程中,通常利用微處理器單元(MPU)。然而,現今微控制器單元(MCU)效能越來越強大,漸漸可進行影像處理。不過,微控制器單元的內部儲存空間有限,無法儲存大量的影像資料。In the current image processing process, a microprocessor unit (MPU) is usually utilized. However, nowadays microcontroller units (MCUs) are becoming more and more powerful and can gradually perform image processing. However, the internal storage space of the microcontroller unit is limited and cannot store a large amount of image data.
本發明提供一種控制電路,耦接於一影像擷取裝置與一顯示裝置之間。影像擷取裝置根據一工作頻率輸出複數影像資料。控制電路包括一第一傳輸介面、一儲存電路、一處理電路以及一第二傳輸介面。第一傳輸介面耦接影像擷取裝置,用以接收影像資料。儲存電路耦接第一傳輸介面,用以接收並儲存影像資料。處理電路擷取儲存電路所儲存的影像資料,用以產生複數顯示資料,並根據儲存電路所儲存的資料的數量,產生工作頻率。第二傳輸介面耦接處理電路,用以輸出顯示資料予顯示裝置。The invention provides a control circuit coupled between an image capture device and a display device. The image capture device outputs multiple image data according to a working frequency. The control circuit includes a first transmission interface, a storage circuit, a processing circuit and a second transmission interface. The first transmission interface is coupled to the image capture device for receiving image data. The storage circuit is coupled to the first transmission interface for receiving and storing image data. The processing circuit retrieves the image data stored in the storage circuit to generate multiple display data, and generates a working frequency according to the quantity of data stored in the storage circuit. The second transmission interface is coupled to the processing circuit for outputting display data to the display device.
本發明另提供一種控制方法,適用於一控制電路,並包括接收複數影像資料,其中該等影像資料係由一影像擷取裝置所提供;儲存該等影像資料於一儲存電路中;擷取該儲存電路所儲存的該等影像資料,用以產生複數顯示資料;輸出該等顯示資料予一顯示裝置;以及根據該儲存電路所儲存的資料的數量,調整該影像擷取裝置的一工作頻率。The present invention also provides a control method, which is suitable for a control circuit, and includes receiving multiple image data, wherein the image data is provided by an image capture device; storing the image data in a storage circuit; capturing the image data The image data stored in the storage circuit is used to generate multiple display data; output the display data to a display device; and adjust a working frequency of the image capture device according to the amount of data stored in the storage circuit.
本發明之控制方法可經由本發明之控制電路來實作,其為可執行特定功能之硬體或韌體,亦可以透過程式碼方式收錄於一紀錄媒體中,並結合特定硬體來實作。當程式碼被電子裝置、處理器、電腦或機器載入且執行時,電子裝置、處理器、電腦或機器變成用以實行本發明之控制電路或操作系統。The control method of the present invention can be implemented through the control circuit of the present invention, which is hardware or firmware capable of executing specific functions, and can also be recorded in a recording medium in the form of program code, and combined with specific hardware to implement . When the program code is loaded and executed by the electronic device, processor, computer or machine, the electronic device, processor, computer or machine becomes a control circuit or an operating system for implementing the present invention.
為讓本發明之目的、特徵和優點能更明顯易懂,下文特舉出實施例,並配合所附圖式,做詳細之說明。本發明說明書提供不同的實施例來說明本發明不同實施方式的技術特徵。其中,實施例中的各元件之配置係為說明之用,並非用以限制本發明。另外,實施例中圖式標號之部分重覆,係為了簡化說明,並非意指不同實施例之間的關聯性。In order to make the purpose, features and advantages of the present invention more comprehensible, the following specifically cites the embodiments, together with the accompanying drawings, for a detailed description. The description of the present invention provides different examples to illustrate the technical features of different implementations of the present invention. Wherein, the arrangement of each element in the embodiment is for illustration, not for limiting the present invention. In addition, the partial repetition of the symbols in the figures in the embodiments is for the purpose of simplifying the description, and does not imply the relationship between different embodiments.
第1圖為本發明之操作系統的示意圖。如圖所示,操作系統100包括一影像擷取裝置110、一控制電路120以及一顯示裝置130。影像擷取裝置110根據一工作頻率MCLK,感測外界的光線,並根據感測結果,產生影像資料DTI
。在一可能實施例中,影像擷取裝置110轉換工作頻率MCLK,用以產生一畫素頻率PCLK,並根據畫素頻率PCLK輸出影像資料DTI
。在本實施例中,影像擷取裝置110係以一串列方式(serial communication)輸出影像資料DTI
,但並非用以限制本發明。在其它實施例中,影像擷取裝置110係以一並列方式(parallel communication)輸出影像資料DTI
。另外,本發明並不限定影像擷取裝置110的電路架構。在一可能實施例中,影像擷取裝置110包括一感光耦合元件(Charge Coupled Device;CCD)或是一互補金屬氧化物半導體(Complementary Metal-Oxide Semiconductor;CMOS)感測元件。Fig. 1 is a schematic diagram of the operating system of the present invention. As shown in the figure, the
控制電路120耦接於影像擷取裝置110與顯示裝置130之間,接收並儲存影像資料DTI
。在本實施例中,當控制電路120儲存的影像資料DTI
的數量達一目標值時,控制電路120根據本身儲存的影像資料DTI
產生顯示資料DTD
予顯示裝置130。在一可能實施例中,控制電路120直接將影像資料DTI
作為顯示資料DTD
輸出予顯示裝置130。在此例中,每當控制電路120輸出一顯示資料DTD
時,控制電路120刪除相對應的影像資料DTI
。為方便說明,以下內容係假設控制電路120直接將影像資料DTI
作為顯示資料DTD
,但並非用以限制本發明。在其它實施例中,控制電路120處理(如轉換) 影像資料DTI
,用以產生顯示資料DTD
。The
在控制電路120輸出顯示資料DTD
的同時,控制電路120仍持續接收並儲存影像資料DTI
。當控制電路120儲存的影像資料DTI
的數量大於一第一臨界值時,控制電路120降低工作頻率MCLK,用以放慢影像擷取裝置110輸出影像資料DTI
的速度。然而,當控制電路120儲存的影像資料DTI
的數量小於一第二臨界值時,控制電路120提高工作頻率MCLK,用以加快影像擷取裝置110輸出影像資料DTI
的速度。在本實施例中,控制電路120利用串列方式輸出顯示資料DTD
,但並非用以限制本發明。在其它實施例中,控制電路120利用並列方式輸出顯示資料DTD
。本發明並不限定控制電路120的架構。在一可能實施例中,控制電路120係為一微控制單元(MCU)。While the
在其它實施例中,控制電路120根據畫素頻率PCLK接收影像資料DTI
。本發明並不限定工作頻率MCLK與畫素頻率PCLK之間的關係。在一可能實施例中,當控制電路120降低工作頻率MCLK時,畫素頻率PCLK也隨之下降。因此,控制電路120接收影像資料DTI
的速度變慢。在此例中,當控制電路120增加工作頻率MCLK時,畫素頻率PCLK也隨之上升。因此,控制電路120接收影像資料DTI
的速度變快。In other embodiments, the
本發明並不限定控制電路120如何判斷本身所儲存的影像資料DTI
的數量是否達一目標值。在一可能實施例中,每當影像擷取裝置110輸出一影像資料DTI
後,影像擷取裝置110致能一水平同步信號Hsync。因此,控制電路120只要根據水平同步信號Hsync被致能的次數,便可得知影像資料DTI
的數量是否達一目標值。在另一可能實施例中,控制電路120係根據內部被影像資料DTI
填滿的記憶區塊的數量,得知影像資料DTI
的數量是否達一目標值。The present invention does not limit how the
本發明並不限定影像資料DTI
的格式。在一可能實施例中,每一影像資料DTI
係一列影像資料。在此例中,當控制電路120根據一影像資料DTI
輸出一顯示資料DTD
時,顯示裝置130的一列畫素根據顯示資料DTD
而呈現畫面。本發明並不限定控制電路120接收影像資料DTI
的速度以及輸出顯示資料DTD
的速度。控制電路120接收影像資料DTI
的速度可能相同或不同於輸出顯示資料DTD
的速度。The present invention does not limit the format of the image data DTI . In a possible embodiment, each image data DT I is a series of image data. In this example, when the
在一可能實施例中,每當控制電路120接收一影像資料DTI
時,控制電路120增加一計數值。每當控制電路120輸出一顯示資料DTD
時,控制電路120減少該計數值。在此例中,計數值表示控制電路120所儲存的影像資料DTI
的數量。在其它實施例中,控制電路120每隔一固定時間,讀取計數值,並根據計數值調整工作頻率MCLK。In a possible embodiment, whenever the
當計數值大於一高臨界值(或稱第一臨界值)時,表示控制電路120所儲存的影像資料DTI
的數量偏多。因此,控制電路120降低工作頻率MCLK,用以減慢影像擷取裝置110輸出影像資料DTI
的速度。然而,當計數值小於一低臨界值(或稱第二臨界值)時,表示控制電路120所儲存的影像資料DTI
的數量偏少。因此,控制電路120增加工作頻率MCLK,用以加快影像擷取裝置110輸出影像資料DTI
的速度。When the count value is greater than a high threshold value (or called the first threshold value), it indicates that the amount of image data DT I stored in the
在其它實施例中,每當影像擷取裝置110所輸出的影像資料DTI
的數量達一預設值時,影像擷取裝置110致能一垂直同步信號Vsync。舉例而言,當影像擷取裝置110輸出240筆影像資料DTI
後,影像擷取裝置110便致能垂直同步信號Vsync。在此例中,每當影像擷取裝置110輸出一筆影像資料DTI
時,影像擷取裝置110致能水平同步信號Hsync。In other embodiments, the
在一些實施例中,控制電路120透過一積體電路匯流排(Inter-Integrated Circuit;I2
C)125與影像擷取裝置110溝通。在此例中,控制電路120可能根據本身事先儲存的設定值,並透過積體電路匯流排125設定影像擷取裝置110輸出彩色或黑色的影像資料,或是設定影像擷取裝置110每秒輸出畫面的張數,如60張、30張或1張畫面。在一可能實施例中,每1張畫面係由複數筆(如240筆)影像資料DTI
所構成。在一些實施例中,控制電路120透過積體電路匯流排125設定影像資料DTI
的解析度。舉例而言,控制電路120可能要求影像擷取裝置110輸出解析度為320X240或640X480的影像資料,以符合顯示裝置130的解析度。In some embodiments, the
顯示裝置130根據顯示資料DTD
呈現畫面。在一可能實施例中,顯示裝置130具有一i80介面(未顯示)或是一串列週邊介面(serial peripheral interface),用以接收顯示資料DTD
。本發明並不限定顯示裝置130的種類。在一可能實施例中,顯示裝置130係為一非自發光顯示器(non-self-luminous display),如液晶顯示器(LCD display)。在其它實施例中,顯示裝置130係為一自發光顯示器(self-luminous display),如有機發光二極體顯示器(Organic Light Emitting Diode Display;OLED display)。The
第2圖為本發明之控制電路的一可能示意圖。如圖所示,控制電路120包括傳輸介面210、230、一處理電路220以及一儲存電路240。傳輸介面210耦接影像擷取裝置110,用以傳送影像資料DTI
、工作頻率MCLK、垂直同步信號Vsync、水平同步信號Hsync及畫素頻率PCLK。另外,傳輸介面210具有積體電路匯流排125。Figure 2 is a possible schematic diagram of the control circuit of the present invention. As shown in the figure, the
處理電路220透過傳輸介面210接收影像資料DTI
,並將影像資料DTI
寫入儲存電路240。在本實施例中,當儲存電路240所儲存的影像資料DTI
的數量達一目標值時,處理電路220開始依序讀取並輸出儲存電路240所儲存的影像資料。The
傳輸介面230傳送顯示資料DTD
予顯示裝置130。在本實施例中,傳輸介面230係以串列方式接收顯示資料DTD
,並以串列方式輸出顯示資料DTD
予顯示裝置130,但並非用以限制本發明。在其它實施例中,傳輸介面230可能以並列方式接收處理電路220所產生顯示資料DTD
。The
儲存電路240耦接處理電路220,用以儲存影像資料DTI
。在本實施例中,儲存電路240透過處理電路220,間接地接收影像資料DTI
,但並非用以限制本發明。在其它實施例中,儲存電路240直接耦接傳輸介面210,用以直接接收影像資料DTI
。本發明並不限定儲存電路240的種類。在一可能實施例中,儲存電路240係為一靜態隨機存取記憶體(SRAM)。The
第3圖係為儲存電路240的示意圖。如圖所示,儲存電路240具有區塊BK0~BK11,用以儲存複數影像資料DTI
。在其它實施例中,儲存電路240具有其它的區塊,用以儲存其它資訊。本實施例中,區塊BK0~BK11之每一者用以儲存一筆影像資料。在此例中,區塊BK0~BK11之每一者所儲存的影像資料係為顯示裝置130的一列畫素所需的資料。在其它實施例中,每一區塊所儲存的影像資料可供複數列畫素使用,或是複數區塊所儲存的影像資料可供單一列畫素使用。FIG. 3 is a schematic diagram of the
在本實施例中,假設儲存電路240儲存九筆影像資料DTI
,並且每一筆影像資料DTI
可填滿一區塊。因此,區塊BK0~BK8為填滿狀態,而區塊BK9~BK11為未填滿狀態。由於區塊BK0~BK8為填滿狀態,故指標IND指向區塊BK8。在此例中,當指標IND指向區塊BK5時,表示影像資料DTI
的數量已達目標值DATCAP/2。因此,處理電路220開始讀取並輸出儲存電路240所儲存的影像資料DTI
。In this embodiment, it is assumed that the
舉例而言,處理電路220可能先讀取區塊BK0所儲存的影像資料,並將區塊BK0所儲存的影像資料作為第一筆顯示資料DTD
輸出予顯示裝置130。顯示裝置130裡的第一列畫素根據第一筆的顯示資料DTD
呈現畫面。此時,指標值IND可能往下移動。然而,由於處理電路220持續寫入影像資料DTI
至儲存電路240,故指標值IND可能逐漸往上移動至區塊BK8。For example, the
當指標值IND指向區塊BK8時,表示儲存電路240所儲存的影像資料DTI
的數量已達高臨界值DATHTH。因此,處理電路220降低工作頻率MCLK,用以命令影像擷取裝置110減慢輸出影像資料DTI
的速度。然而,當指標值IND指向區塊BK1時,表示儲存電路240所儲存的影像資料DTI
的數量已低於低臨界值DATLTH。因此,處理電路220提高工作頻率MCLK,用以命令影像擷取裝置110增加輸出影像資料DTI
的速度。當指標IND位於高臨界值DATHTH與低臨界值DATLTH之間時,處理電路220不調整工作頻率MCLK。在一可能實施例中,目標值DATCAP/2係為儲存電路240用以儲存列影像資料的記憶空間DATCAP的一半。When the index value IND points to the block BK8, it means that the quantity of the image data DT I stored in the
由於處理電路220在儲存電路240的影像資料的數量達一目標值後,便開始讀取儲存電路240所儲存的影像資料,用以提供顯示資料DTD
予顯示裝置130,故儲存電路240的記憶空間不需太大。再者,由於處理電路220動態地調整工作頻率MCLK,故可適當地控制儲存電路240所儲存的列影像資料的數量,而不會遺失影像資料DTI
。Since the
在一些實施例中,當處理電路220偵測到一異常情況發生時,處理電路220執行一特定動作。舉例而言,當指標IND大於一邊界值DATFULLF(如稱第三臨界值),表示影像擷取裝置110輸出影像資料DTI
的速度太快,儲存電路240來不及儲存影像資料DTI
。因此,處理電路220可能在輸出BK0~BK11所儲存的列影像資料後,暫停提供顯示資料DTD
予顯示裝置130,直到垂直同步信號Vsync被致能。在此例中,由於處理電路220暫停刷新顯示裝置130的畫面,故顯示裝置130的某些列畫素可能呈現上一畫面。然而,在垂直同步信號Vsync被致能後,處理電路220開始輸出顯示資料DTD
予顯示裝置130,因此,使用者不易觀察到顯示裝置130呈現不正確的畫面。在其它實施例中,當儲存電路240來不及儲存影像資料DTI
時,處理電路220可能輸出特定顯示資料予顯示裝置130,用以讓顯示裝置130的某些列畫素呈現黑畫面。In some embodiments, when the
同樣地,當指標IND低於另一邊界值DATEPTF(如稱第四臨界值),表示影像擷取裝置110輸出影像資料DTI
的速度太慢,儲存電路240未儲存完整的影像資料DTI
。因此,處理電路220無法提供正確的顯示資料DTD
予顯示裝置130。此時,處理電路220可能暫停擷取區塊BK0~BK11,並暫停刷新顯示裝置130的畫面。在此例中,顯示裝置130可能呈現上一畫面。在其它實施例中,處理電路220可能提供一預設影像予呈顯示裝置130,用以讓顯示裝置130暫時呈現黑畫面。此時,處理電路220可能增加工作頻率MCLK,用以加快影像擷取裝置110輸出影像資料DTI
的速度。由於影像資料DTI
的數量很快達目標值DATCAP/2,故處理電路220可立即產生顯示資料DTD
予顯示置130。由於視覺暫留的影響,並且處理電路220即時提供顯示資料DTD
,故使用者不易觀察到顯示裝置130呈現不正確的畫面。Similarly, when the index IND is lower than another boundary value DATEPTF (such as the fourth critical value), it means that the output speed of the
請參考第2圖,控制電路120包括一計數電路250。計數電路250具有一計數值VA。計數值VA相當於第3圖的指標IND。在此例中,處理電路220根據儲存電路240所儲存的影像資料DTI
的數量,調整計數值VA,並根據計數值VA調整工作頻率MCLK。在另一可能實施例中,計數值VA與水平同步信號Hsync被致能的次數有關。此例中,每當影像擷取裝置110致能水平同步信號Hsync時,處理電路220增加計數值VA。每當處理電路220產生一顯示資料DTD
時,處理電路220減少計數值VA。Please refer to FIG. 2 , the
本發明並不限定處理電路220何時調整工作頻率MCLK。在一可能實施例中,每當水平同步信號Hsync被致能時,處理電路220便根據計數值VA調整工作頻率MCLK。在其它實施例中,當水平同步信號Hsync被致能的次數達一預設值時,處理電路220便讀取計數值VA。The present invention does not limit when the
第4圖為本發明之控制方法的一可能流程示意圖。本發明的控制方法400適用於一控制電路(如第2圖的控制電路200),用以調整一影像擷取裝置輸出影像資料的速度。在此例中,控制電路不需設置大容量的記憶體儲存影像資料。因此,可增加控制電路的可使用空間,並減少元件成本,因容量愈大,記憶體愈貴。FIG. 4 is a schematic flow chart of a possible flow of the control method of the present invention. The
首先,進行一初始化設定(步驟S411)。在一可能實施例中,步驟S411係初始化控制電路內部的多個旗標。該等旗標用以提供不同的預設值,如第3圖的DATFULLF、DATHTH、DATCAP/2、DATLTH及DATEPTF。另外,控制電路可能根據該等旗標,設定外部的影像擷取裝置。在一可能實施例中,該等旗標的數量可能事先燒錄在控制電路中,故可省略步驟S411。First, perform an initialization setting (step S411). In a possible embodiment, step S411 is to initialize a plurality of flags inside the control circuit. These flags are used to provide different default values, such as DATFULLF, DATHTH, DATCAP/2, DATLTH and DATEPTF in Figure 3. In addition, the control circuit may set an external image capture device according to the flags. In a possible embodiment, the number of these flags may be programmed in the control circuit in advance, so step S411 may be omitted.
接收並儲存複數影像資料(步驟S412)。在一可能實施例中,該等影像資料係由一影像擷取裝置(如第1圖所示的110)所提供。影像擷取裝置可能包括CCD或是CMOS感測元件。在一些實施例中,每一筆影像資料係為一列影像資料,用以供顯示裝置的一列畫素使用。在一可能實施例中,步驟S412係將該等影像資料儲存於一儲存電路中。該儲存電路可能係為一揮發性記憶體。Receive and store multiple image data (step S412). In a possible embodiment, the image data is provided by an image capture device (such as 110 shown in FIG. 1 ). The image capture device may include a CCD or a CMOS sensor. In some embodiments, each piece of image data is a row of image data for use by a row of pixels of the display device. In a possible embodiment, step S412 is to store the image data in a storage circuit. The storage circuit may be a volatile memory.
判斷被儲存的影像資料的數量是否達一目標值(步驟S413)。在一可能實施例中,該目標值係為步驟S411所初始化的一旗標的數值,如第3圖的目標值DATCAP/2。本發明並不限定步驟S413如何判斷被儲存的影像資料的數量是否達一目標值。在一可能實施例中,每當影像擷取裝置致能一水平同步信號時,一計數值逐漸增加。因此,藉由該計數值,便可得知所儲存的影像資料的數量是否達一目標值。在其它實施例中,步驟S413係根據被影像資料填滿的記憶區塊的數量,判斷被儲存的影像資料的數量是否達一目標值。It is judged whether the quantity of the stored image data reaches a target value (step S413). In a possible embodiment, the target value is the value of a flag initialized in step S411, such as the target value DATCAP/2 in FIG. 3 . The present invention does not limit how the step S413 determines whether the quantity of the stored image data reaches a target value. In a possible embodiment, each time the image capture device enables a horizontal synchronization signal, a count value is gradually increased. Therefore, according to the count value, it can be known whether the quantity of the stored image data reaches a target value. In other embodiments, step S413 is to determine whether the number of stored image data reaches a target value according to the number of memory blocks filled with image data.
當被儲存的影像資料的數量未達目標值時,回到步驟S412,繼續接收並儲存影像資料。當儲存的影像資料的數量達目標值時,輸出一顯示資料予一顯示裝置(步驟S414)。在一可能實施例中,步驟S414係將儲存電路所儲存的影像資料作為顯示資料輸出予顯示裝置。在此例中,每當步驟S414輸出一顯示資料後,上述計數值會被減少。不過,同時只要有一影像資料被儲存,上述計數值會被增加。When the number of stored image data does not reach the target value, return to step S412 to continue receiving and storing image data. When the quantity of the stored image data reaches the target value, output a display data to a display device (step S414). In a possible embodiment, step S414 is to output the image data stored in the storage circuit to the display device as display data. In this example, each time a display data is output in step S414, the count value will be decreased. However, as long as one image data is stored at the same time, the above count value will be increased.
根據所儲存的影像資料的數量,調整影像擷取裝置輸出影像資料的速度(步驟S415)。在一可能實施例中,當影像擷取裝置致能一水平同步信號時,才會觸發步驟S415。舉例而言,在步驟S414後,如果水平同步信號未被觸發,則不進行步驟S415。在其它實施例中,當水平同步信號被致能的次數達一預設值時,才會進行步驟S415。According to the quantity of the stored image data, the speed of outputting the image data by the image capture device is adjusted (step S415). In a possible embodiment, step S415 is only triggered when the image capture device enables a horizontal synchronization signal. For example, after step S414, if the horizontal synchronization signal is not triggered, then step S415 is not performed. In other embodiments, step S415 is performed only when the number of times the horizontal synchronization signal is enabled reaches a preset value.
在本實施例中,步驟S415包括步驟S416~S419。首先,判斷所儲存的影像資料的數量是否大於一第一臨界值(步驟S416)。如果所儲存的影像資料的數量大於第一臨界值時,放慢影像擷取裝置輸出影像資料的速度(步驟S417)。在一可能實施例中,步驟S417係降低影像擷取裝置的工作頻率。在此例中,影像擷取裝置根據減少的工作頻率,減少一畫素頻率。然而,回到步驟S414,繼續讀取並轉換所儲存的影像資料。In this embodiment, step S415 includes steps S416-S419. Firstly, it is determined whether the quantity of the stored image data is greater than a first threshold (step S416). If the amount of the stored image data is greater than the first threshold, slow down the output speed of the image capture device (step S417). In a possible embodiment, step S417 is to reduce the operating frequency of the image capture device. In this example, the image capture device reduces the frequency of one pixel according to the reduced operating frequency. However, return to step S414 to continue reading and converting the stored image data.
如果所儲存的影像資料的數量未大於第一臨界值時,判斷所儲存的影像資料的數量是否小於一第二臨界值(步驟S418)。在本實施例中,第二臨界值小於第一臨界值。當所儲存的影像資料的數量小於第二臨界值時,加快影像擷取裝置輸出影像資料的速度(步驟S419)。在一可能實施例中,步驟S419係加快影像擷取裝置的工作頻率。在此例中,影像擷取裝置可能根據加快的工作頻率,增加畫素頻率。然而,回到步驟S414,繼續讀取並轉換所儲存的影像資料。If the quantity of the stored image data is not greater than the first threshold, it is determined whether the quantity of the stored image data is less than a second threshold (step S418 ). In this embodiment, the second critical value is smaller than the first critical value. When the quantity of the stored image data is less than the second threshold value, the speed of outputting the image data by the image capture device is increased (step S419 ). In a possible embodiment, step S419 is to speed up the working frequency of the image capture device. In this example, the image capture device may increase the pixel frequency according to the accelerated operating frequency. However, return to step S414 to continue reading and converting the stored image data.
在本實施例中,在開始接收影像資料(步驟S412)後,持續接收影像資料。因此,儲存電路所儲存的影像資料的數量可維持在一預設範圍內。In this embodiment, after starting to receive image data (step S412 ), continue to receive image data. Therefore, the amount of image data stored by the storage circuit can be maintained within a preset range.
第5圖為本發明之控制方法的另一流程示意圖。第5圖相似於第4圖,不同之處在於,第5圖的控制方法500多了步驟S520及521。由於步驟S511~S519相似於步驟S411~S419,故不再贅述。在本實施例中。步驟S520係判斷一異常情況是否發生。當異常情況發生時,執行一特定動作(步驟S521),然後回到步驟S512,繼續接收並儲存影像資料。當異常情況未發生時,執行步驟S515。Fig. 5 is another schematic flowchart of the control method of the present invention. FIG. 5 is similar to FIG. 4, except that the
在一可能實施例中,異常情況係為,儲存電路所儲存的資料的數量大於一第三臨界值或是小於一第四臨界值,其中第三臨界值大於第一臨界值,第四臨界值小於第二臨界值。舉例而言,當儲存電路所儲存的影像資料的數量大於第三臨界值時,表示影像擷取裝置輸出影像資料的速度太快了,儲存電路來不及儲存影像資料。在其它實施例中,當儲存電路所儲存的影像資料的數量小於第四臨界值時,表示影像擷取裝置輸出影像資料的速度太慢了,儲存電路裡的影像資料不足以驅動顯示裝置。In a possible embodiment, the abnormal condition is that the amount of data stored in the storage circuit is greater than a third critical value or less than a fourth critical value, wherein the third critical value is greater than the first critical value, and the fourth critical value less than the second critical value. For example, when the amount of image data stored in the storage circuit is greater than the third critical value, it means that the output speed of the image capture device is too fast for the storage circuit to store the image data. In other embodiments, when the amount of image data stored in the storage circuit is less than the fourth critical value, it means that the output speed of the image capture device is too slow, and the image data in the storage circuit is not enough to drive the display device.
當上述異常情況發生時,執行一特定動作,如輸出一預設資料予顯示裝置。在此例中,顯示裝置的畫素可能呈現黑畫面(對應於預設資料)。由於視覺暫留的影像,使用者不會察覺到黑畫面。在其它實施例中,特定動作可能暫停刷新顯示裝置,也就是不輸出任何信號予顯示裝置。因此,顯示裝置呈現先前的畫面。由於本發明的控制電路將適當地調整(加快或放慢)影像擷取裝置輸出影像資料的速度,故可即時刷新顯示裝置,以避免資料過載(overrun)或是欠載(underrun)。When the above abnormal situation occurs, perform a specific action, such as outputting a preset data to the display device. In this example, the pixels of the display device may display a black frame (corresponding to default data). Due to the image persistence of vision, the user will not perceive the black screen. In other embodiments, the specific action may suspend refreshing the display device, that is, not outputting any signal to the display device. Therefore, the display device presents the previous picture. Since the control circuit of the present invention will properly adjust (speed up or slow down) the speed of outputting image data from the image capture device, it can refresh the display device in real time to avoid data overrun or underrun.
本發明之控制方法,或特定型態或其部份,可以以程式碼的型態存在。程式碼可儲存於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,亦或不限於外在形式之電腦程式產品,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以參與本發明之控制電路。程式碼也可透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送,其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之控制路。當在一般用途處理單元實作時,程式碼結合處理單元提供一操作類似於應用特定邏輯電路之獨特裝置。The control method of the present invention, or specific forms or parts thereof, may exist in the form of program codes. The code may be stored on a physical medium, such as a floppy disk, a CD, a hard disk, or any other machine-readable (such as a computer-readable) storage medium, or a computer program product without limitation in an external form, wherein, When the program code is loaded and executed by a machine, such as a computer, the machine becomes a control circuit for participating in the present invention. Code may also be sent via some transmission medium, such as wire or cable, optical fiber, or any type of transmission in which, when the code is received, loaded, and executed by a machine, such as a computer, the machine becomes the one used to participate in this Invented Control Road. When implemented on a general-purpose processing unit, the code combines with the processing unit to provide a unique device that operates similarly to application-specific logic circuits.
除非另作定義,在此所有詞彙(包含技術與科學詞彙)均屬本發明所屬技術領域中具有通常知識者之一般理解。此外,除非明白表示,詞彙於一般字典中之定義應解釋為與其相關技術領域之文章中意義一致,而不應解釋為理想狀態或過分正式之語態。Unless otherwise defined, all terms (including technical and scientific terms) used herein are to be understood by those of ordinary skill in the art to which this invention belongs. In addition, unless expressly stated, the definition of a word in a general dictionary should be interpreted as consistent with the meaning in the article in its related technical field, and should not be interpreted as an ideal state or an overly formal voice.
雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾。舉例來,本發明實施例所系統、裝置或是方法可以硬體、軟體或硬體以及軟體的組合的實體實施例加以實現。因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the present invention. . For example, the system, device or method of the embodiments of the present invention can be implemented in physical embodiments of hardware, software or a combination of hardware and software. Therefore, the scope of protection of the present invention should be defined by the scope of the appended patent application.
100:操作系統 100: operating system
110:影像擷取裝置 110: image capture device
120:控制電路 120: control circuit
130:顯示裝置 130: display device
125:積體電路匯流排 125: Integrated circuit bus
210、230:傳輸介面 210, 230: transmission interface
220:處理電路 220: processing circuit
240:儲存電路 240: storage circuit
250:計數電路 250: counting circuit
400、500:控制方法 400, 500: control method
MCLK:工作頻率 MCLK: operating frequency
VA:計數值 VA: count value
DTI:影像資料 DT I : Image data
PCLK:畫素頻率 PCLK: pixel frequency
DTD:顯示資料 DT D : display data
Hsync:水平同步信號 Hsync: horizontal synchronization signal
Vsync:垂直同步信號 Vsync: vertical synchronization signal
BK0~BK11:區塊 BK0~BK11: block
IND:指標 IND: index
DATCAP/2:目標值 DATCAP/2: target value
DATHTH、DATLTH:臨界值 DATHTH, DATLTH: Threshold
DATCAP:記憶空間 DATCAP: memory space
DATFULLF、DATEPTF:邊界值 DATFULLF, DATEPTF: Boundary value
S411~S419、S511~S521:步驟 S411~S419, S511~S521: steps
第1圖為本發明之操作系統的示意圖。 第2圖為本發明之控制電路的一可能示意圖。 第3圖係為儲存電路的示意圖。 第4圖為本發明之控制方法的一可能流程示意圖。 第5圖為本發明之控制方法的另一可能流程示意圖。Fig. 1 is a schematic diagram of the operating system of the present invention. Figure 2 is a possible schematic diagram of the control circuit of the present invention. FIG. 3 is a schematic diagram of a storage circuit. FIG. 4 is a schematic flow chart of a possible flow of the control method of the present invention. FIG. 5 is a schematic diagram of another possible flow chart of the control method of the present invention.
400:控制方法400: control method
S411~S419:步驟S411~S419: steps
Claims (8)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108144548A TWI797401B (en) | 2019-12-05 | 2019-12-05 | Control circuit and control method thereof |
CN201911374373.4A CN112929512B (en) | 2019-12-05 | 2019-12-27 | Control circuit and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108144548A TWI797401B (en) | 2019-12-05 | 2019-12-05 | Control circuit and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202123675A TW202123675A (en) | 2021-06-16 |
TWI797401B true TWI797401B (en) | 2023-04-01 |
Family
ID=76162208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108144548A TWI797401B (en) | 2019-12-05 | 2019-12-05 | Control circuit and control method thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112929512B (en) |
TW (1) | TWI797401B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI818528B (en) * | 2022-04-29 | 2023-10-11 | 新唐科技股份有限公司 | Control device and control method thereof |
TWI854589B (en) * | 2023-04-11 | 2024-09-01 | 新唐科技股份有限公司 | Microcontroller circuit and boot control method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200849972A (en) * | 2007-06-15 | 2008-12-16 | Holtek Semiconductor Inc | Circuit and method for regulating image clock |
CN101431643A (en) * | 2007-11-06 | 2009-05-13 | 瑞昱半导体股份有限公司 | Apparatus and method for reducing video data output speed |
US8212908B2 (en) * | 2008-02-27 | 2012-07-03 | Ricoh Company, Limited | Timing generator and image scanning apparatus |
US8355183B2 (en) * | 2001-07-31 | 2013-01-15 | Transpacific Systems, Llc | Scanning speed control device and method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63201783A (en) * | 1987-02-18 | 1988-08-19 | Canon Inc | Picture processing device |
US20120169924A1 (en) * | 2011-01-05 | 2012-07-05 | Mediatek Inc. | Video processing apparatus capable of dynamically controlling processed picture quality based on runtime memory bandwidth utilization |
-
2019
- 2019-12-05 TW TW108144548A patent/TWI797401B/en active
- 2019-12-27 CN CN201911374373.4A patent/CN112929512B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8355183B2 (en) * | 2001-07-31 | 2013-01-15 | Transpacific Systems, Llc | Scanning speed control device and method |
TW200849972A (en) * | 2007-06-15 | 2008-12-16 | Holtek Semiconductor Inc | Circuit and method for regulating image clock |
CN101431643A (en) * | 2007-11-06 | 2009-05-13 | 瑞昱半导体股份有限公司 | Apparatus and method for reducing video data output speed |
US8212908B2 (en) * | 2008-02-27 | 2012-07-03 | Ricoh Company, Limited | Timing generator and image scanning apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN112929512A (en) | 2021-06-08 |
CN112929512B (en) | 2024-04-05 |
TW202123675A (en) | 2021-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW583440B (en) | Display control device of liquid crystal panel and liquid crystal display device | |
US20150138212A1 (en) | Display driver ic and method of operating system including the same | |
US20150194137A1 (en) | Method and apparatus for optimizing display updates on an interactive display device | |
TWI797401B (en) | Control circuit and control method thereof | |
JP6601020B2 (en) | Imaging display device | |
KR20170024920A (en) | Display driving circuit and display device comprising thereof | |
JP2011248357A (en) | Processing method, display controller, and computer readable medium | |
JP2019525248A (en) | Reconfigurable display and method for reconfigurable display | |
TWI410916B (en) | Method, apparatus, and computer readable medium thereof for providing a sticky overdrive to a pixel | |
US11250763B2 (en) | Picture frame display apparatus and a display method | |
KR102581719B1 (en) | Device and method for generating luminance compensation data based on mura characteristic and device and method for performing luminance compensation | |
US20240046842A1 (en) | Display device and method for driving pixels by processing image data | |
CN114982250B (en) | Signal processing method and device and display device | |
US10154217B2 (en) | Imaging apparatus, image processing apparatus, and imaging display apparatus | |
TWI616093B (en) | Display system | |
US20090009507A1 (en) | Display controller and method of controlling the same | |
JP2020024380A (en) | Display device and method for controlling the same | |
TWI774100B (en) | Video processor chip and video processing method | |
US20230136973A1 (en) | Display device, and method of operating a display device | |
CN100557685C (en) | Image display method | |
CN100353415C (en) | Display Controller and Related Methods | |
JP2008058856A (en) | Display device | |
US20130120333A1 (en) | Method of establishing look-up table for electrophoretic display and device thereof | |
CN116343711A (en) | Display device and picture burn-in preventing method thereof | |
TW202326659A (en) | Display apparatus and method for preventing image sticking thereof |