1364239 -101年.03月23日梭正春_頁 六、發明說明: 【發明所屬之技術領域】 [0001]本發明係提供一種光源調整系統’尤指一種具有可調整 監控視窗之光源調整系統。 【先前技術】 [0002]目前,運用檢光模組偵測光訊號的應用越來越普遍’例 如配置在手機螢幕之檢光模組係用以偵測環境光,再根 據環境光之強度控制螢幕之光源以節省電源,而設置於 監控攝影機之檢光模組也是用以偵測環境光,若環境光 強度太弱,則啟動輔助光源以拍攝清晰影像。 [0003]但是由於製造良率問題,每一顆所生產的檢光棋組之受 光靈敏度特性會偏移,也就是說,即使待測光源為穩定 標準光源,不同顆檢光模組執行光電轉換後,所產生的 感應電壓仍會偏移。所以為提供客戶具有高均勻性受光 靈敏度的檢錢組’就要對所生產的檢光模組進行受光 靈敏度檢L選分類所生產的檢光模组。 [0004] 然而,在執行檢光模組的受朵愈+ ^ 又九靈敏度檢測時,需要一穩 疋之參考光源,一般係利用—么、μ τ 白光LED光源作為參考光源 。當白光LED光源以定電壓鮑紅n 士 驅動時’則發光強度會從一起 始值漸增至一穩定值,當白, 九1£1>光源以定電流驅動時, 則發光強度會從—妙值漸減至1定值。也就是說, 供應驅動電源至白光LED光调你 摩後’白光LED光源需要相當 的時間才能提供穩定強度之發ψ & 〈輸出先’所以對講求高效率 的生產工廠而言,上述二種 裡艇動方式均不符所需。此外 ’如果白光LED光源需要提供蚯 09613837^單編號 A0101 供决速點滅的測試要求時,則 第3頁/共24頁 Π Λ1 1013113056-0 1364239 _ 101年03月23日核正替換頁 上述二種驅動方式就更不可能符合所需。因此提供一種 參考光源快速調整系統以解決上述問題係為目前所需。 [0005] 有鑑於習知技藝之各項問題,為了能夠兼顧解決之,本 發明人基於多年研究開發與諸多實務經驗,提出一種具 有可調整監控視窗之光源調整系統及其方法,以作為改 善上述缺點之實現方式與依據。 【發明内容】 [0006] 有鑑於此,本發明之目的係在於提供一種具有可調整監 控視窗之光源調整系統及其方法,以驅動光源快速地產 生穩定光輸出。 .1364239 -101.03.23.School of the Invention_Page 6. Description of the Invention: [Technical Field of the Invention] [0001] The present invention provides a light source adjustment system, particularly a light source adjustment system having an adjustable monitoring window. [Prior Art] [0002] At present, the application of detecting a light signal by a light detecting module is becoming more and more common. For example, a light detecting module disposed on a mobile phone screen is used to detect ambient light, and then according to the intensity of ambient light. The light source of the screen saves power, and the light detecting module disposed on the monitoring camera is also used to detect ambient light. If the ambient light intensity is too weak, the auxiliary light source is activated to take a clear image. [0003] However, due to the manufacturing yield problem, the light-receiving sensitivity characteristics of each of the produced light-detecting chess sets are shifted, that is, even if the light source to be tested is a stable standard light source, different light-detecting modules perform photoelectric conversion. After that, the induced voltage generated will still shift. Therefore, in order to provide the customer with a high uniformity of light sensitivity, the inspection unit is required to perform the light-sensing detection of the produced light-detecting module. [0004] However, when performing the detection of the detection module + ^ and nine sensitivity detection, a stable reference light source is needed, generally using a white light LED light source as a reference light source. When the white LED light source is driven by a constant voltage, the red light intensity will gradually increase from a starting value to a stable value. When white, nine 1 £1> the light source is driven by a constant current, then the luminous intensity will be from - The value is gradually reduced to a fixed value of 1. In other words, the supply of the drive power to the white LED light tone after you get the 'white LED light source takes a considerable amount of time to provide a stable strength. & <output first' so the high efficiency of the production plant, the above two The way the boat is moving does not meet the needs. In addition, if the white LED light source needs to provide the test request of 蚯09613837^单号A0101 for the speed limit, then page 3/24 pages Π Λ1 1013113056-0 1364239 _ 101 March 31 nuclear replacement page The two driving methods are even less likely to meet the needs. Therefore, it is currently required to provide a reference light source rapid adjustment system to solve the above problems. [0005] In view of the problems of the prior art, in order to be able to solve the problem, the inventor has proposed a light source adjustment system with an adjustable monitoring window and a method thereof as a method for improving the above based on years of research and development and many practical experiences. The implementation and basis of the shortcomings. SUMMARY OF THE INVENTION [0006] In view of the above, it is an object of the present invention to provide a light source adjustment system having an adjustable monitoring window and a method thereof for driving a light source to rapidly generate a steady light output. .
[0007] 根據本發明之目的,提出一種光源調整系統,用以調整 一光源,該光源調整系統包含一具溫度補償功能之光反 饋模組,用以偵測該光源並輸出一反饋訊號;一比較器 ,耦合於該光反饋模組,接收該反饋訊號以執行一比較 程序產生一上昇訊號及一下降訊號;一計數模組,耦合 於該比較器,接收該上昇訊號及該下降訊號以執行一上 數程序或一下數程序產生一計數值;一起始計數值設定 單元,用以設定該計數模組的該計數值之起始值;一數 位至類比轉換器,耦合於該計數模組,接收該計數值以 轉換為一類比驅動訊號;以及一電流源驅動器,耦合於 該數位至類比轉換器,接收該類比驅動訊號以輸出一驅 動電流至該光源。 [0008] 此外,本發明另提出一種光源調整方法,用以調整一光 源,包含下列步驟:(a)根據該光源所要設定的發光強度 ,設定一視窗比較器之相對應視窗電壓範圍;(b)根據該 09613837#·單编號 A〇1〇l 第 4 頁 / 共 24 頁 1013113056-0 1364239 [Ϊ01 年.03月 23B~^gg 視窗電壓範圍,設定一起始計數值設定單元之相對應起 始計數值;(C)根據該起始計數值,產生一計數模組之計 數值的起始值;(d)利用一數位至類比轉換器,將該計數 值數位訊號轉換為類比驅動訊號;(e)根據該類比驅動訊 號,產生一電流源驅動器之媒動電流輪出以駆動該光源 發出相對應之光;(f)利用一光反饋模組偵測該光源所發 出之光以產生一反饋訊號’並執行一溫度補償程序,以 補償該反饋訊號受溫度變化的影響;(g)判斷該反饋訊號 是否大於該視窗電壓範圍’若是’則執行步驟(h),否則 ’執行步驟(i); (h)致能一下降訊號,使該計數模組執 行一下數程序以減少送计數值,執行步驟(d ) ; (i )判斷 該反饋訊號是否小於該視窗電壓範圍,若是,則執行步 驟(D ’否則,執行步驟(k) ; 致能一上昇訊號,使 該計數模組執行一上數程序以增加該計數值,執行步驟 (d);以及(k)保留該計數值,執行步驟(d)。 【實施方式】 [0009] 兹為使貴審查委員對本發明之技術特徵及所達到之功效 有更進一步之瞭解與認識,謹佐以較佳之實施例及配合 相關圖式而詳細說明如後,但所提供之較佳實施例並不 用以限制本發明所涵蓋的技術範圍。 [0010] :參閱第1圖’第1圖顯示依本發明之光源調整系統的功 能方塊示意圖。圖中,光源調整系統1〇〇包含一光源11() 会光反饋模組120、一比較器130、一驅動訊號控制模 14〇、一驅動訊號起始值設定單元15〇及一電流源驅動 器 16〇 〇[0007] According to an object of the present invention, a light source adjusting system is provided for adjusting a light source, the light source adjusting system includes a light feedback module with a temperature compensation function for detecting the light source and outputting a feedback signal; a comparator coupled to the optical feedback module to receive the feedback signal to perform a comparison process to generate a rising signal and a falling signal; a counting module coupled to the comparator to receive the rising signal and the falling signal to perform a counting program or a number of programs generating a count value; a starting count value setting unit for setting a starting value of the counting value of the counting module; a digit to analog converter coupled to the counting module, Receiving the count value for conversion to an analog drive signal; and a current source driver coupled to the digital to analog converter to receive the analog drive signal to output a drive current to the light source. In addition, the present invention further provides a light source adjusting method for adjusting a light source, comprising the steps of: (a) setting a corresponding window voltage range of a window comparator according to a light intensity to be set by the light source; (b) According to the 09613837#·single number A〇1〇l page 4 / 24 pages 1013113056-0 1364239 [Ϊ01年.03月23B~^gg window voltage range, setting a starting count value setting unit corresponding to The starting count value; (C) generating a starting value of the counting value of a counting module according to the starting counting value; (d) converting the counting value digital signal into an analog driving signal by using a digit to analog converter; (e) generating, according to the analog driving signal, a medium current driver of the current source driver to trigger the light source to emit corresponding light; (f) detecting an light emitted by the light source by using an optical feedback module to generate a light The feedback signal 'and performs a temperature compensation program to compensate for the influence of the temperature change on the feedback signal; (g) determining whether the feedback signal is greater than the window voltage range 'if yes', then performing step (h), otherwise Step (i); (h) enabling a falling signal, causing the counting module to execute a number of programs to reduce the sending of the count value, and performing step (d); (i) determining whether the feedback signal is less than the window voltage range, If yes, execute the step (D 'otherwise, perform step (k); enable a rising signal, cause the counting module to execute an upper program to increase the counting value, perform step (d); and (k) retain the Counting the value and performing step (d). [Embodiment] [0009] In order to enable the reviewing committee to have a better understanding and understanding of the technical features and the efficacies of the present invention, the preferred embodiment and the related The detailed description is as follows, but the preferred embodiments are not intended to limit the technical scope covered by the present invention. [0010] Referring to Figure 1 '1' shows the function of the light source adjustment system according to the present invention. In the figure, the light source adjusting system 1 includes a light source 11 (), an optical feedback module 120, a comparator 130, a driving signal control module 14A, a driving signal starting value setting unit 15 and a Current source drive 16〇 billion
09613837#單蝙號 AOKU 第5頁/共24頁 1013113056-0 1364239 __ 101年.03月23日修正替換頁 [0011] 光反饋模組120偵測光源110所發出之光,以產生一反饋 訊號121,光反饋模組120具有溫度補償功能,使其產生 之反饋訊號121不受溫度變化影響。比較器130接收反饋 訊號121,並將反饋訊號121與一預設準位比較,若反饋 訊號121低於該預設準位,則致能一上昇訊號UP,若反饋 訊號121高於該預設準位,則致能一下降訊號DN。 [0012] 驅動訊號控制模組140根據上昇訊號UP及下降訊號DN以執 行一驅動訊號141的上昇或下降程序,若上昇訊號UP被致 能,則執行上昇程序,若下降訊號DN被致能,則執行下 降程序。驅動訊號控制模組140包含一訊號儲存單元143 ,訊號儲存單元143係用以儲存驅動訊號141,訊號儲存 單元143可以是一訊號取樣及保持電路。驅動訊號起始值 設定單元150可被設定以輸出一起始值設定訊號151,用 以設定驅動訊號控制模組140之驅動訊號141的起始值。 電流源驅動器160根據驅動訊號141以產生一驅動電流 161。驅動電流1 61即用以驅動光源11 0發出相對應強度 的光。 [0013] 光源調整系統100的工作實施原理說明如後,當啟動光源 調整系統100時,驅動訊號起始值設定單元150輸出起始 值設定訊號151,驅動訊號控制模組140根據起始值設定 訊號151以輸出相對應之驅動訊號141的起始值,電流源 驅動器160根據驅動訊號141產生相對應之驅動電流161 ,驅動電流161驅動光源110發出相對應強度的光,光反 饋模組120偵測光源110所發出之光而產生反饋訊號121 ,比較器130將反饋訊號121與該預設準位比較,假設此 09613837产單編號 A〇101 第6頁/共24頁 1013113056-0 1364239 101年.03月日修正替換頁 時反饋訊號121低於該預設準位,意謂光源110所發出的 光強度係低於相對應於該預設準位的光強度,則上昇訊 號UP被致能,驅動訊號控制模組14〇即根據上昇訊號UP執 行上幵程序以提1¾儲存在訊號儲存單元143之驅動訊號 141 ’電流源駆動器160根據被提高的驅動訊號141以提 高媒動電流161。被提高的驅動電流161即用以驅動光源 110發出更高相對應強度的光。 [0014] 其後’光反饋模組1 2 0偵測光源11 〇所發出被提高強度的 光而提高反饋訊號121 ’比較器130將被提高之反饋訊號 121與該預設準位再作比較,假設此時反饋訊號12ι高於 該預設準位’意謂光源110所發出的光強度係高於對應於 s玄預設準位的光強度’則下降訊號DN被致能,驅動訊號 控制模組140即根據下降訊號DN執行下降程序以降低儲存 在訊號健存單元143之驅動訊號141,電流源驅動器160 根據被降低的驅動訊號141以降低驅動電流161。被降低 的驅動電流1 61即用以驅動光源11 0發出較低相對應強度 的光。 [0015] 上述光強度調控程序係不斷地被執行,直到光源11〇產生 相對應於該預設準位的穩定光輸出。 [0016] 在第1圖所示的光源調整系統100中’驅動訊號起始值設 定單元150可以根據比較器130之該預設準位以設定相對 應之起括值設定訊號151 ’用以產生較佳的驅動訊號141 之起始值,因而縮短光源110被調控至相對應穩定光強度 輸出所需的時間。 編號 Α0101 第7頁/共24頁 0961383 1013113056-0 1364239 _:_一 101年.03月23日修正替換頁 [0017] 請參閱第2圖,第2圖顯示依本發明之光源調整系統的一 較佳實施例之方塊功能示意圖。圖中,光源調整系統200 包含一光源210、一光反饋模組220、一比較器230、一 計數模組240、一起始計數值設定單元250、一數位至類 比轉換器260及一電流源驅動器270。 [0018] 光反饋模組220偵測光源210所發出之光,以產生一反饋 訊號221 ’光反饋模組220具有溫度補償功能,使其產生 之反饋訊號221不受溫度變化影響。比較器230接收反饋 訊號221,並將反饋訊號221與一預設準位比較,若反饋 訊號221低於該預設準位,則致能一上昇訊號UP,若反饋 ' 訊號221高於該預設準位,則致能一下降訊號DN。 [0019] 計數模組240根據上昇訊號UP及下降訊號DN以執行一計數 值241的上數或下數程序,若上昇訊號UP被致能’則執行 上數程序,若下降訊號DN被致能,則執行下數程序。起 始計數值設定單元250可被設定以輸出一起始計數值251 ’用以設定計數模組240之計數值241的起始值。起始計 數值設定單元250可以是一指撥開關》數位至類比轉換器 260將計數值241的數位訊號轉換為一類比驅動訊號261 °電流源驅動器270根據類比驅動訊號261以產生一驅動 電流271。驅動電流271即用以驅動光源210發出相對應 強度的光。 [0020] 光源調整系統2〇〇的工作實施原理說明如後,當啟動光源 調整系統200時,起始計數值設定單元250輸出起始計數 值251,驅動計數模組240輸出計數值241之起始值,數 位至類比轉換器260將計數值241之起始值的數位訊號轉 09613837#單编號 A0101 第 8 頁 / 共 24 頁 1013113056-0 1364239 [0021] [0022] [0023] [0024] 年叼月 換為類比驅動訊號261。電流源驅動器270根據類比驅動 訊號261產生相對應之驅動電流271。驅動電流271驅動 光源210發出相對應強度的光。 光反饋模組220偵測光源210所發出之光而產生反饋訊號 221,比較器230將反饋訊號221與該預設準位比較,假 設此時反饋訊號221低於該預設準位,意謂光源210所發 出的光強度係低於相對應於該預設準位的光強度,則上 昇訊號UP被致能,計數模組240即根據上昇訊號UP執行上 數程序以增加計數值241。數位至類比轉換器260將被增 加之計數值241數位訊號轉換為類比驅動訊號261。電流 源驅動器270根據類比驅動訊號261提高驅動電流271。 被提高的驅動電流271即用以驅動光源210發出更高相對 應強度的光。 其後,光反饋模組220偵測光源210所發出被提高強度的 光而提高反饋訊號221,比較器230將被提高之反饋訊號 221與該預設準位再作比較,假設此時反饋訊號221高於 該預設準位’意謂光源21〇所發出的光強度係高於對應於 該預設準位的光強度,則下降訊號DN被致能,計數模組 240即根據下降訊號⑽執行下數程序以減少計數值241。 數位至類比轉換器260將被減少之計數值241數位訊號轉 換為類比驅動訊號261。電流源驅動器270根據類比驅動 訊號261降低驅動電流27ι。被降低的驅動電流27ι即用 以驅動光源210發出較低相對應強度的光。 上述光強度調控程序係不斷地被執行,直到光源210產生 09613837^^^^ A0101 第9頁/共24頁 1013113056-0 1364239 101年.03月幻日核正替換頁 相對應於該預設準位的穩定光輸出。 在第2圖所示的光源調整系統200中,起始計數值設定單 元250可以根據比較器230之該預設準位以設定相對應之 起始計數值251,用以產生較佳的計數值241之起始值, 因而縮短光源210被調控至相對應穩定光強度輸出所需的 時間》 [0025] 請參閱第3圖,第3圖顯示依本發明之光源調整系統的另 一較佳實施例之方塊功能示意圖。圖中,光源調整系統 300包含一LED光源310、一光反饋模組320、一視窗比較 器330、一計數模組340、一起始計數值設定單元350、 一數位至類比轉換器360及一電流源驅動器370。 [0026] 光反饋模組320偵測LED光源310所發出之光,以產生一 反饋訊號321,光反饋模組320具有溫度補償功能,使其 產生之反饋訊號321不受溫度變化影響。視窗比較器330 接收反饋訊號321,並將反饋訊號321與一預設視窗電壓 範圍比較’若反饋訊號321低於該預設視窗電壓範圍,則 致能一上昇訊號UP,若反饋訊號321高於該預設視窗電壓 範圍,則致能一下降訊號DN,若反饋電壓321係在該預設 視窗電壓範圍内,則上昇訊號UP及下降訊號DN均不被致 能。 [0027] 計數模組340根據上昇訊號UP及下降訊號DN以執行一計數 值341的上數、下數或記憶程序,若上昇訊號up被致能, 則執行上數程序,若下降訊號DN被致能,則執行下數程 序,若上昇訊號UP及下降訊號DN均不被致能,則執行記 1013113056-0 憶程序,其中記憶程序意謂保留原計數值341,而不執行 09613837#單编號A〇101 第10頁/共24頁 ^64239 101年03月23日修正替換頁 上數或下數程序*起始計數值設定單元35〇可被設定以輸 出一起始計數值351,用以設定計數模組34〇之計數值 341的起始值》起始計數值設定單元35()可以是一指撥開 關。數位至類比轉換器360將計數值341的數位訊號轉換 為一類比驅動訊號361。電流源驅動器37〇根據類比驅動 訊號361以產生一驅動電流371。驅動電流371即用以驅 動LED先源310發出相對應強度的光。 283计數模組340包含一記憶單元345及-計數器346,記憶 單/0345係用以儲存計數值341,計數器346為一具有上 數及下數功能之計數^,帛域據上昇訊號叩及下降訊 號_計數值341執行上數程序或下數程序。記憶單元 345可以是-揮發性記憶體或是—非揮發性記憶體 ,若記 憶單元345為非揮發性記憶體時,則當光源調整系統3〇〇 關機再開機時’ st數值341可以如前所述,以起始計數值 設定單TC350所提供的起始計數值351作為起始值 ,也可 以設定為前-次關機時,記憶單元345之非揮發性記憶趙 所儲存之计數值341作為起始值。光反饋模組32〇包含一 光感測器325及一反饋訊號處理器326,光感測器325偵 測LED光源310所發出之光,以產生一光感測訊號,反饋 訊號處理^ 326處理該域測訊號以產生反饋訊號321, 反饋訊號處理器326具有溫度補償功能,以補償該光感測 訊號受溫度影響而變化的情況,使其產生之反饋訊號321 不受溫度變化影響。 _光源調整系、统300的工作實施原理說明如後,當啟動光源 調整系統300時’起始計數值設定單元35〇輸出起始計數 名單编號A0101 09613837» 第11頁/共24頁 1013113056-0 1364239 101年.03月23日修正替換頁 值351 ’計數模組340儲存起始計數值351於記憶單元345 ’並輸出起始計數值351作為計數值341之起始值,數位 至類比轉換器360將計數值341之起始值的數位訊號轉換 為類比驅動訊號361。電流源驅動器370根據類比驅動訊 號361產生相對應之驅動電流37ι ^驅動電流371驅動led 光源310發出相對應強度的光。 [0030]光反饋模組320之光感測器325债測LED光源310所發出之 光而產生光感測訊號,反饋訊號處理器326處理該光感測 訊號以產生反饋訊號321,視窗比較器330將反饋訊號 321與該預設視窗電壓範圍比較,假設此時反饋訊號321 低於該預設視窗電壓範圍,意謂LED光源310所發出的光 強度係低於相對應於該預設視窗電壓範圍的光強度,則 上昇訊號UP被致能,計數模組340之計數器346即根據上 昇訊號UP執行上數程序以增加記憶單元345所儲存的計數 值 341。 [0031] 數位至類比轉換器360將被增加之計數值341數位訊號轉 換為類比驅動訊號361。電流源驅動器370根據類比驅動 訊號361提高驅動電流371。被提高的驅動電流371即用 以驅動LED光源310發出更高相對應強度的光。 [0032] 其後,光反饋模組320之光感測器325偵測LED光源310所 發出被提高強度的光而提高光感測訊號,反饋訊號處理 器326處理該被提高之光感測訊號以提高反饋訊號321, 視窗比較器330將被提高之反饋訊號321與該預設視窗電 壓範圍再作比較,假設此時反饋訊號321高於該預設視窗 電壓範圍,意謂LED光源310所發出的光強度係高於相對 09613837产單编&删1 第12頁/共24頁 1013113056-0 101 年.03月 23 日梭: 應於該預設視窗電壓範圍的光強度,則下降訊號DN被致 '^ % ’计數模組340之計數器346即根據下降訊號DN執行下 數程序以減少記憶單元345所儲存的計數值341。 數位至類比轉換器360將被減少之計數值341數位訊號轉 換為類比驅動訊號361。電流源驅動器370根據類比驅動 訊號361降低驅動電流371。被降低的驅動電流371即用 以驅動光源310發出較低相對應強度的光。 [0034] & u 媒著’光反饋模組320之光感測器325偵測LED光源310所 發出被降低強度的光而降低光感測訊號,反饋訊號處理 器326處理該被降低之光感測訊號以降低反饋訊號“I, 視窗比較器330將被降低之反饋訊號321與該預設視窗電 壓範圍再作比較,假設此時反饋訊號321係在該預設視窗 電壓範圍内,意謂LED光源310所發出的光強度係相對應 於該預設視窗電壓範圍的光強度,則上昇訊號ϋρ及下降 訊號DN均不被致能,計數模組34〇即保留記憶單元所儲存 的原計數值341,也就是說,計數器346不執行上數或下 數程序。 [〇〇35]數位至類比轉換器360將被保留之原計數值341數位訊號 轉換為類比驅動訊號361。電流源驅動器37〇根據類比驅 動訊號361保留原驅動電流371。被保留的原驅動電流 371即用以驅動LED光源31〇持續發出原強度的光。 [0036] 上述光強度調控程序係不斷地被執行,直到LED光源31〇 產生相對應於該預設視窗電壓範圍的穩定光輸出。 [0037] 在第3圖所示的光源調整系統3〇〇中,起始計數值設定單 09613837夢單編號 A〇101 第13頁/共24頁 1013113056-0 1364239 __ 101年.03月23日梭正替換頁 元35 0可以根據視窗比較器330之該預設視窗電壓範圍以 設定相對應之起始計數值351,用以產生較佳的計數值 341之起始值,因而縮短LED光源310被調控至相對應穩 定光強度輸出所需的時間。 [0038] 請參閱第4圖,第4圖係顯示依本發明之一較佳實施例的 光源調整方法流程圖,該光源調整方法係用以快速調控 一光源至穩定光強度輸出,該光源調整方法包含下列步 驟: [0039] 步驟S401 :根據所要設定的該光源發光強度,設定一視 窗比較器之相對應視窗電壓範圍; [0040] 步驟S402 :根據該視窗電壓範圍,設定一起始計數值設 定單元之相對應起始計數值; [0041] 步驟S403 :根據該起始計數值,產生一計數模組之計數 值的起始值; [0042] 步驟S404 :利用一數位至類比轉換器,將該計數值數位 訊號轉換為一類比驅動訊號; [0043] 步驟S405 :根據該類比驅動訊號,產生一電流源驅動器 之驅動電流輸出以驅動該光源發出相對應之光; [0044] 步驟S406 :利用一光反饋模組偵測該光源所發出之光以 產生一反饋訊號; [0045] 步驟S407 :判斷該反饋訊號是否大於該視窗電壓範圍, 若是,則執行步驟S408,否則,執行步驟S409 ; [0046] 步驟S408 :致能一下降訊號,使該計數模組執行一下數 09613837^單编號 A〇101 第 14 頁 / 共 24 頁 1013113056-0 13-6423909613837#单单号AOKU Page 5 of 24 page 1013113056-0 1364239 __ 101 years. March 23rd correction replacement page [0011] The optical feedback module 120 detects the light emitted by the light source 110 to generate a feedback signal 121. The optical feedback module 120 has a temperature compensation function, so that the feedback signal 121 generated by the optical feedback module 120 is not affected by temperature changes. The comparator 130 receives the feedback signal 121 and compares the feedback signal 121 with a predetermined level. If the feedback signal 121 is lower than the predetermined level, the rising signal UP is enabled. If the feedback signal 121 is higher than the preset. The level is enabled to lower the signal DN. [0012] The driving signal control module 140 performs a rising or falling process of the driving signal 141 according to the rising signal UP and the falling signal DN. If the rising signal UP is enabled, the rising program is executed, and if the falling signal DN is enabled, Then execute the descending program. The driving signal control module 140 includes a signal storage unit 143. The signal storage unit 143 is used to store the driving signal 141. The signal storage unit 143 can be a signal sampling and holding circuit. The driving signal start value setting unit 150 can be set to output a starting value setting signal 151 for setting the starting value of the driving signal 141 of the driving signal control module 140. Current source driver 160 generates a drive current 161 based on drive signal 141. The driving current 1 61 is used to drive the light source 110 to emit light of a corresponding intensity. [0013] The working principle of the light source adjusting system 100 is as follows. When the light source adjusting system 100 is activated, the driving signal starting value setting unit 150 outputs a starting value setting signal 151, and the driving signal control module 140 sets according to the starting value. The signal 151 outputs a corresponding driving value of the driving signal 141. The current source driver 160 generates a corresponding driving current 161 according to the driving signal 141. The driving current 161 drives the light source 110 to emit light of a corresponding intensity. The optical feedback module 120 detects The light emitted by the light source 110 is generated to generate a feedback signal 121, and the comparator 130 compares the feedback signal 121 with the predetermined level, assuming that the 09613837 is a single number A〇101 page 6/24 pages 1013113056-0 1364239 101 years When the correction signal is corrected on the .03 month, the feedback signal 121 is lower than the preset level, meaning that the light intensity emitted by the light source 110 is lower than the light intensity corresponding to the preset level, and the rising signal UP is enabled. The driving signal control module 14 performs the uploading process according to the rising signal UP to raise the driving signal 141 stored in the signal storage unit 143. The current source actuator 160 is driven according to the boost. Signal 141 increases the medium current 161. The increased drive current 161 is used to drive the light source 110 to emit light of a higher relative intensity. [0014] Thereafter, the 'optical feedback module 120 detects the light of the enhanced intensity emitted by the light source 11 而 and raises the feedback signal 121'. The comparator 130 compares the improved feedback signal 121 with the preset level. If the feedback signal 12ι is higher than the preset level at this time, it means that the light intensity emitted by the light source 110 is higher than the light intensity corresponding to the s-preset level, then the down signal DN is enabled, and the driving signal is controlled. The module 140 performs a falling process according to the falling signal DN to lower the driving signal 141 stored in the signal storage unit 143, and the current source driver 160 reduces the driving current 161 according to the reduced driving signal 141. The reduced drive current 1 61 is used to drive the light source 110 to emit light of a lower corresponding intensity. [0015] The above light intensity adjustment program is continuously executed until the light source 11 〇 produces a stable light output corresponding to the predetermined level. [0016] In the light source adjusting system 100 shown in FIG. 1 , the driving signal starting value setting unit 150 can set the corresponding setting value signal 151 ′ according to the preset level of the comparator 130 for generating The preferred starting value of the drive signal 141 thus shortens the time required for the source 110 to be regulated to a corresponding stable light intensity output. No. 1010101 Page 7 of 240961383 1013113056-0 1364239 _: _ 101. March 23 Revision Replacement Page [0017] Please refer to FIG. 2, and FIG. 2 shows a light source adjustment system according to the present invention. A block diagram of the preferred embodiment. In the figure, the light source adjustment system 200 includes a light source 210, an optical feedback module 220, a comparator 230, a counting module 240, an initial count value setting unit 250, a digital to analog converter 260, and a current source driver. 270. [0018] The optical feedback module 220 detects the light emitted by the light source 210 to generate a feedback signal 221. The optical feedback module 220 has a temperature compensation function, so that the generated feedback signal 221 is not affected by temperature changes. The comparator 230 receives the feedback signal 221 and compares the feedback signal 221 with a predetermined level. If the feedback signal 221 is lower than the predetermined level, the rising signal UP is enabled. If the feedback signal 221 is higher than the preset Set the level to enable a falling signal DN. [0019] The counting module 240 executes a counting number 241 according to the rising signal UP and the falling signal DN, and if the rising signal UP is enabled, the upper program is executed, and if the falling signal DN is enabled , then execute the next few programs. The start count value setting unit 250 can be set to output a start count value 251' for setting the start value of the count value 241 of the count module 240. The start meter value setting unit 250 can be a dip switch "digital to analog converter 260" to convert the digital signal of the count value 241 into an analog drive signal 261. The current source driver 270 drives the signal 261 according to the analog drive signal 261 to generate a drive current 271. The driving current 271 is used to drive the light source 210 to emit light of a corresponding intensity. [0020] The working principle of the light source adjusting system 2〇〇 illustrates that, when the light source adjusting system 200 is activated, the starting count value setting unit 250 outputs the starting count value 251, and the driving counting module 240 outputs the counting value 241. The start value, the digit-to-analog converter 260 converts the digital signal of the start value of the count value 241 to 09936837# single number A0101, page 8 / total 24 pages 1013113056-0 1364239 [0022] [0023] [0024] The year is replaced by the analog drive signal 261. Current source driver 270 generates a corresponding drive current 271 based on analog drive signal 261. The drive current 271 drives the light source 210 to emit light of a corresponding intensity. The feedback module 220 detects the light emitted by the light source 210 to generate the feedback signal 221, and the comparator 230 compares the feedback signal 221 with the preset level, assuming that the feedback signal 221 is lower than the preset level, meaning When the light intensity emitted by the light source 210 is lower than the light intensity corresponding to the predetermined level, the rising signal UP is enabled, and the counting module 240 executes the upper program according to the rising signal UP to increase the counting value 241. The digital to analog converter 260 converts the incremented count value 241 digital signal into an analog drive signal 261. Current source driver 270 boosts drive current 271 based on analog drive signal 261. The increased drive current 271 is used to drive the light source 210 to emit light of a higher relative intensity. Thereafter, the optical feedback module 220 detects the increased intensity of the light emitted by the light source 210 to increase the feedback signal 221, and the comparator 230 compares the improved feedback signal 221 with the predetermined level, assuming that the feedback signal is at this time. The 221 is higher than the preset level, which means that the light intensity emitted by the light source 21〇 is higher than the light intensity corresponding to the preset level, and the falling signal DN is enabled, and the counting module 240 is based on the falling signal (10). The next few programs are executed to reduce the count value 241. Digital to analog converter 260 converts the reduced count value 241 digital signal to analog drive signal 261. Current source driver 270 reduces drive current 27ι based on analog drive signal 261. The reduced drive current 27i is used to drive the light source 210 to emit light of a lower corresponding intensity. The above light intensity control program is continuously executed until the light source 210 generates 09613837^^^^ A0101 page 9 / total 24 pages 1013113056-0 1364239 101.03 month magic day nuclear replacement page corresponds to the preset standard Stable light output of the bit. In the light source adjusting system 200 shown in FIG. 2, the initial count value setting unit 250 can set the corresponding starting count value 251 according to the preset level of the comparator 230 to generate a better count value. The starting value of 241, thus shortening the time required for the light source 210 to be regulated to the corresponding stable light intensity output. [0025] Please refer to FIG. 3, which shows another preferred embodiment of the light source adjusting system according to the present invention. The block function diagram of the example. In the figure, the light source adjustment system 300 includes an LED light source 310, an optical feedback module 320, a window comparator 330, a counting module 340, an initial count value setting unit 350, a digital to analog converter 360, and a current. Source driver 370. The optical feedback module 320 detects the light emitted by the LED light source 310 to generate a feedback signal 321 . The optical feedback module 320 has a temperature compensation function, so that the generated feedback signal 321 is not affected by temperature changes. The window comparator 330 receives the feedback signal 321 and compares the feedback signal 321 with a preset window voltage range. 'If the feedback signal 321 is lower than the preset window voltage range, the rising signal UP is enabled, if the feedback signal 321 is higher than The preset window voltage range enables a falling signal DN. If the feedback voltage 321 is within the preset window voltage range, both the rising signal UP and the falling signal DN are disabled. [0027] The counting module 340 performs a counting number 341 on the up, down or memory according to the rising signal UP and the falling signal DN. If the rising signal up is enabled, the upper program is executed, if the falling signal DN is If enabled, the next program is executed. If the rising signal UP and the falling signal DN are not enabled, then the program 1013113056-0 is executed, wherein the memory program means to retain the original count value 341 without executing 09613837# No. A 〇 101 Page 10 / Total 24 pages ^ 64239 Modified on March 23, 2011, the number of replacement pages or the number of programs * The start count value setting unit 35 〇 can be set to output a start count value 351 for The start value of the count value 341 of the set count module 34 is set. The start count value setting unit 35 () may be a finger switch. The digital to analog converter 360 converts the digital signal of the count value 341 into an analog drive signal 361. Current source driver 37 drives analog signal 361 to generate a drive current 371. The driving current 371 is used to drive the LED source 310 to emit light of a corresponding intensity. The 283 counting module 340 includes a memory unit 345 and a counter 346. The memory unit/0345 is used to store the count value 341. The counter 346 is a count having a function of the upper and lower numbers. The down signal_count value 341 performs an upper program or a lower program. The memory unit 345 can be a volatile memory or a non-volatile memory. If the memory unit 345 is a non-volatile memory, when the light source adjustment system 3 is turned off and on, the st value 341 can be as before. In the above, the initial count value 351 provided by the single TC350 is used as the starting value, and the count value 341 stored by the non-volatile memory Zhao of the memory unit 345 may be set as the starting value. Starting value. The optical feedback module 32 includes a light sensor 325 and a feedback signal processor 326. The light sensor 325 detects the light emitted by the LED light source 310 to generate a light sensing signal, and the feedback signal processing is processed by the 326. The feedback signal is generated by the feedback signal 321 , and the feedback signal processor 326 has a temperature compensation function to compensate for the change of the optical sensing signal caused by the temperature, so that the feedback signal 321 generated is not affected by the temperature change. _Light source adjustment system, the working principle of the system 300 is explained as follows, when the light source adjustment system 300 is activated, the 'start count value setting unit 35 〇 output start count list number A0101 09613837» page 11 / total 24 pages 1013113056- 0 1364239 101. March 23rd Correction Replacement Page Value 351 'The counting module 340 stores the start count value 351 in the memory unit 345' and outputs the start count value 351 as the start value of the count value 341, digital to analog conversion The unit 360 converts the digital signal of the start value of the count value 341 into an analog drive signal 361. The current source driver 370 generates a corresponding driving current 37 ι according to the analog driving signal 361. The driving current 371 drives the LED light source 310 to emit light of a corresponding intensity. The light sensor 325 of the optical feedback module 320 measures the light emitted by the LED light source 310 to generate a light sensing signal, and the feedback signal processor 326 processes the light sensing signal to generate a feedback signal 321 , and the window comparator The reference signal 321 is compared with the preset window voltage range. It is assumed that the feedback signal 321 is lower than the preset window voltage range, which means that the light intensity emitted by the LED light source 310 is lower than the corresponding threshold voltage. For the light intensity of the range, the up signal UP is enabled, and the counter 346 of the counting module 340 executes the upper program according to the rising signal UP to increase the count value 341 stored by the memory unit 345. [0031] The digit to analog converter 360 converts the incremented count value 341 digital signal to an analog drive signal 361. Current source driver 370 boosts drive current 371 based on analog drive signal 361. The increased drive current 371 is used to drive the LED source 310 to emit light of a higher relative intensity. [0032] Thereafter, the light sensor 325 of the optical feedback module 320 detects the increased intensity of the light emitted by the LED light source 310 to improve the light sensing signal, and the feedback signal processor 326 processes the improved light sensing signal. To improve the feedback signal 321 , the window comparator 330 compares the improved feedback signal 321 with the preset window voltage range. It is assumed that the feedback signal 321 is higher than the preset window voltage range, which means that the LED light source 310 emits The light intensity is higher than the relative number of 09,613,837. delete 1 page 12 / total 24 pages 1013113056-0 101 years. March 23rd shuttle: should be in the preset window voltage range of light intensity, then drop signal DN The counter 346 of the "^%" counting module 340 executes the lower program according to the falling signal DN to reduce the count value 341 stored by the memory unit 345. Digital to analog converter 360 converts the reduced count value 341 digital signal to analog drive signal 361. Current source driver 370 reduces drive current 371 based on analog drive signal 361. The reduced drive current 371 is used to drive the light source 310 to emit light of a lower corresponding intensity. [0034] The light sensor 325 of the optical feedback module 320 detects the reduced intensity light emitted by the LED light source 310 to reduce the light sensing signal, and the feedback signal processor 326 processes the reduced light. The sensing signal is used to reduce the feedback signal "I, the window comparator 330 compares the reduced feedback signal 321 with the preset window voltage range, assuming that the feedback signal 321 is within the preset window voltage range, meaning The light intensity emitted by the LED light source 310 is corresponding to the light intensity of the preset window voltage range, and the rising signal ϋρ and the falling signal DN are not enabled, and the counting module 34 保留 retains the original stored in the memory unit. The value 341, that is, the counter 346 does not execute the up or down program. [〇〇35] The digit to analog converter 360 converts the retained original count value 341 digital signal into an analog drive signal 361. The current source driver 37 The original driving current 371 is retained according to the analog driving signal 361. The retained original driving current 371 is used to drive the LED light source 31 to continuously emit the original intensity of light. [0036] The above light intensity control program is continuously Executing until the LED light source 31 〇 produces a stable light output corresponding to the preset window voltage range. [0037] In the light source adjustment system 3 所示 shown in FIG. 3, the initial count value is set to a single 09613837 dream list number. A〇101 Page 13 of 24 1013113056-0 1364239 __ 101 years. March 23rd Shuttle replacement page element 35 0 can be set according to the preset window voltage range of the window comparator 330 to set the corresponding starting point The value 351 is used to generate a preferred starting value of the count value 341, thereby shortening the time required for the LED light source 310 to be regulated to a corresponding stable light intensity output. [0038] Please refer to FIG. 4, and FIG. 4 shows According to a preferred embodiment of the present invention, a method for adjusting a light source is used to quickly adjust a light source to a stable light intensity output. The light source adjustment method includes the following steps: [0039] Step S401: According to the desired setting The light source intensity of the light source is set to a corresponding window voltage range of a window comparator; [0040] step S402: setting a corresponding start count value of a start count value setting unit according to the window voltage range; [0041] Step S403: generating a starting value of the count value of a counting module according to the initial counting value; [0042] Step S404: converting the digital signal of the counting value into an analogy by using a digit to analog converter Driving signal; [0043] Step S405: generating a driving current output of the current source driver according to the analog driving signal to drive the light source to emit corresponding light; [0044] Step S406: detecting the light source by using an optical feedback module The emitted light is used to generate a feedback signal; [0045] Step S407: determining whether the feedback signal is greater than the window voltage range, and if yes, executing step S408, otherwise, performing step S409; [0046] step S408: enabling a drop Signal, so that the counting module executes the number of 09613837^ single number A〇101 page 14 / 24 pages 1013113056-0 13-64239
程序以減少該計數值,執行步驟S404 ; [0047] 步驟S4〇9 :判斷該反饋訊號是否小於該視窗電壓範圍, 若是,則執行步驟S410,否則’執行步驟S411 ; [0048]步驟S4l〇 :致能一上葬訊號,使該計數模組執行一上數 程序以增加該計數值’執行步驟S404 ’以及 [麵]步驟S4l 1 :保留該計數值’執行步驟S404。 [0050] 其中,步驟S401所述之該視窗電Μ範圍可以是一電壓準 位。步驟s402所述之設定一起始計數值設定單元之相對 應起始計數值可以是設定一指撥開關以設定相對應起始 計數值》步驟S406可以另包含執行一溫度補償程序,以 補償該反饋訊號受溫度變化的影響° [0051] 以上所述僅為本發明之較佳實施例,凡依本發明申請專 利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範 圍。 【圖式簡單說明】_ [0052] 第1圖顯示依本發明之光源調整系統的功能方塊示意圖。 第2圖顯示依本發明之光源調整系統的一較佳實施例之方 塊功能示意圖。 第3圖顯示依本發明之光源調整系統的另一較佳實施例之 方塊功能示意圖。 第4圖顯示依本發明較佳實施例之光源調整方法的流程圖 【主要元件符號說明】 1013113056-0 [嶋]100、200 ' 300 :光源調整系統; 09613837#單編號A01〇l 第U頁/共24頁 1364239 101年.03月23日修正替換頁 110、210 :光源; 120、 220、320 :光反饋模組; 121、 221、321 :反饋訊號; 130、230 :比較器; 140 :驅動訊號控制模組; 141 :驅動訊號; 143 :訊號儲存單元; 150 :驅動訊號起始值設定單元; 151 :起始值設定訊號; 160、 270、370 :電流源驅動器; 161、 271、371 :驅動電流; 240、 340 :計數模組; 241、 341 :計數值; 250、 350 :起始計數值設定單元; 251、 351 :起始計數值; 260、 360 :數位至類比轉換器; 261、 361 :類比驅動訊號; 310 : LED光源; 3 2 5 :光感測器; 326 :反饋訊號處理器; 330 :視窗比較器; 345 :記憶單元; 346 :計數器; UP :上昇訊號; DN :下降訊號;以及 S401-S411 :步驟。 09613837^單编號 A〇101 第16頁/共24頁 1013113056-0The program is executed to reduce the count value, and step S404 is performed; [0047] Step S4〇9: determining whether the feedback signal is smaller than the window voltage range, and if yes, executing step S410, otherwise performing 'step S411; [0048] step S4l: A pop-up signal is enabled to cause the counting module to execute an upper program to increase the count value 'execution step S404' and [face] step S41l: retain the count value' to perform step S404. [0050] wherein the window power range described in step S401 may be a voltage level. The corresponding start count value of setting a start count value setting unit in step s402 may be setting a finger switch to set a corresponding start count value. Step S406 may further comprise executing a temperature compensation program to compensate the feedback signal. [0051] The above description is only a preferred embodiment of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS [0052] Fig. 1 is a block diagram showing the function of a light source adjusting system according to the present invention. Figure 2 is a block diagram showing the function of a block in accordance with a preferred embodiment of the light source adjustment system of the present invention. Fig. 3 is a block diagram showing the function of another preferred embodiment of the light source adjusting system according to the present invention. 4 is a flow chart showing a method for adjusting a light source according to a preferred embodiment of the present invention [Description of main components] 1013113056-0 [嶋] 100, 200 '300: light source adjustment system; 09613837# single number A01〇l page U / Total 24 pages 1364239 101 years. March 23rd revised replacement page 110, 210: light source; 120, 220, 320: optical feedback module; 121, 221, 321: feedback signal; 130, 230: comparator; 140: Drive signal control module; 141: drive signal; 143: signal storage unit; 150: drive signal start value setting unit; 151: start value setting signal; 160, 270, 370: current source driver; 161, 271, 371 : drive current; 240, 340: counting module; 241, 341: count value; 250, 350: start count value setting unit; 251, 351: start count value; 260, 360: digital to analog converter; 361: analog drive signal; 310: LED light source; 3 2 5: light sensor; 326: feedback signal processor; 330: window comparator; 345: memory unit; 346: counter; UP: rising signal; Falling signal; and S401-S411: steps. 09613837^单号 A〇101 Page 16 of 24 1013113056-0