TWI877016B - Control circuit and control method thereof - Google Patents
Control circuit and control method thereof Download PDFInfo
- Publication number
- TWI877016B TWI877016B TW113120086A TW113120086A TWI877016B TW I877016 B TWI877016 B TW I877016B TW 113120086 A TW113120086 A TW 113120086A TW 113120086 A TW113120086 A TW 113120086A TW I877016 B TWI877016 B TW I877016B
- Authority
- TW
- Taiwan
- Prior art keywords
- circuit
- input
- power converter
- control
- voltage
- Prior art date
Links
Images
Landscapes
- Power Sources (AREA)
Abstract
Description
本發明是有關於一種電子裝置,且特別是有關於一種電子裝置的控制電路及其控制方法。The present invention relates to an electronic device, and in particular to a control circuit and a control method of the electronic device.
在先前技術中,投影裝置常使用聯發科(Mediatek,MTK)所製成的特殊應用晶片(ASIC),來實現多媒體應用的功能,以及實現影像接收器、聲音放大器(Audio Amplifier)以及微控制器(MCU)運作的功能,另外,投影裝置還會搭配德州儀器(Texas Instruments) 所製成的特殊應用晶片(ASIC),來實現對DMD(Digital Micro-mirror Device)晶片、燈具(Lamp)以及風扇等控制。在搭配使用此兩種特殊應用晶片時,如何避免出現誤動作而造成投影裝置的系統當機為一重要的課題。In the prior art, projection devices often use ASICs made by MediaTek (MTK) to implement multimedia application functions, as well as image receivers, audio amplifiers, and microcontrollers (MCU) operation functions. In addition, projection devices are also paired with ASICs made by Texas Instruments to control DMD (Digital Micro-mirror Device) chips, lamps, fans, etc. When using these two ASICs together, how to avoid erroneous operation that causes the system crash of the projection device is an important issue.
“先前技術”段落只是用來幫助了解本發明內容,因此在“先前技術”段落所揭露的內容可能包含一些沒有構成所屬技術領域中具有通常知識者所知道的習知技術。在“先前技術”段落所揭露的內容,不代表該內容或者本發明一個或多個實施例所要解決的問題,也不代表在本發明申請前已被所屬技術領域中具有通常知識者所知曉或認知。The "Prior Art" section is only used to help understand the content of the present invention. Therefore, the content disclosed in the "Prior Art" section may contain some content that does not constitute the common knowledge of the person skilled in the art. The content disclosed in the "Prior Art" section does not represent the problem to be solved by the content or one or more embodiments of the present invention, nor does it mean that the content or the problem has been known or recognized by the person skilled in the art before the application of the present invention.
本發明提供一種控制電路及其控制方法,可有效避免控制電路出現誤動作而造成投影裝置的系統當機。The present invention provides a control circuit and a control method thereof, which can effectively prevent the system crash of a projection device caused by erroneous operation of the control circuit.
本發明的其他目的和優點可以從本發明所揭露的技術特徵中得到進一步的了解。Other purposes and advantages of the present invention can be further understood from the technical features disclosed in the present invention.
為達上述之一或部份或全部目的或是其他目的,本發明之一實施例提供一種控制電路,控制電路包括電源轉換器、開關單元、第一電路以及第二電路,其中第一電路耦接電源轉換器、第二電路以及開關單元,開關單元耦接於電源轉換器及第二電路之間。開關單元用以導通或關閉電源轉換器及第二電路之間的供電路徑。第一電路適於接收韌體更新指令且依據韌體更新指令控制電源轉換器提供第一電壓給開關單元,並且第一電路進行初始設定。第一電路於完成初始設定後提供第一信號給第二電路的預設接腳。在第一電路提供第一信號給第二電路後,第一電路控制開關單元導通電源轉換器及第二電路之間的供電路徑,使開關單元將來自電源轉換器的第一電壓轉換為第三電壓提供給第二電路,使第二電路啟動,第二電路在啟動後,接收到來自第一電路的第一信號而進入韌體更新模式。To achieve one or part or all of the above purposes or other purposes, an embodiment of the present invention provides a control circuit, the control circuit includes a power converter, a switch unit, a first circuit and a second circuit, wherein the first circuit is coupled to the power converter, the second circuit and the switch unit, and the switch unit is coupled between the power converter and the second circuit. The switch unit is used to turn on or off the power supply path between the power converter and the second circuit. The first circuit is suitable for receiving a firmware update instruction and controlling the power converter to provide a first voltage to the switch unit according to the firmware update instruction, and the first circuit performs initial setting. After completing the initial setting, the first circuit provides a first signal to a preset pin of the second circuit. After the first circuit provides the first signal to the second circuit, the first circuit controls the switch unit to turn on the power supply path between the power converter and the second circuit, so that the switch unit converts the first voltage from the power converter into a third voltage and provides it to the second circuit, so that the second circuit is started. After the second circuit is started, it receives the first signal from the first circuit and enters the firmware update mode.
本發明還提供一種控制電路的控制方法,控制電路包括電源轉換器、開關單元、第一電路以及第二電路,其中第一電路耦接電源轉換器、第二電路以及開關單元,開關單元耦接於電源轉換器以及第二電路之間,用以導通或關閉電源轉換器及第二電路之間的供電路徑。控制方法包括下列步驟。第一電路適於接收韌體更新指令且依據韌體更新指令控制電源轉換器提供第一電壓給開關單元,並且第一電路進行初始設定。在第一電路完成初始設定後提供第一信號給第二電路的預設接腳。在第一電路提供第一信號給第二電路後,第一電路控制開關單元導通電源轉換器及第二電路之間的路徑。使開關單元將來自電源轉換器的第一電壓轉換為第三電壓提供給第二電路,使第二電路啟動,第二電路在啟動後,接收到來自第一電路的第一信號而進入韌體更新模式。The present invention also provides a control method for a control circuit, wherein the control circuit includes a power converter, a switch unit, a first circuit and a second circuit, wherein the first circuit is coupled to the power converter, the second circuit and the switch unit, and the switch unit is coupled between the power converter and the second circuit to turn on or off the power supply path between the power converter and the second circuit. The control method includes the following steps. The first circuit is suitable for receiving a firmware update instruction and controlling the power converter to provide a first voltage to the switch unit according to the firmware update instruction, and the first circuit performs initial settings. After the first circuit completes the initial settings, a first signal is provided to a preset pin of the second circuit. After the first circuit provides the first signal to the second circuit, the first circuit controls the switch unit to turn on the path between the power converter and the second circuit. The switch unit converts the first voltage from the power converter into a third voltage and provides the third voltage to the second circuit, so that the second circuit is started. After the second circuit is started, it receives the first signal from the first circuit and enters the firmware update mode.
基于上述,本發明實施例的第一電路可在提供第一信號給第二電路的預設接腳後,控制開關單元將來自電源轉換器的第一電壓轉換為第三電壓提供給第二電路,以啟動第二電路反應第一信號而進入韌體更新模式。如此可有效地避免第二電路太晚接收到預設接腳的第一信號而出現誤動作,進而造成投影裝置的系統當機。Based on the above, after providing the first signal to the preset pin of the second circuit, the first circuit of the embodiment of the present invention can control the switch unit to convert the first voltage from the power converter into a third voltage and provide it to the second circuit, so as to activate the second circuit to respond to the first signal and enter the firmware update mode. This can effectively prevent the second circuit from receiving the first signal of the preset pin too late and causing erroneous operation, thereby causing the system of the projection device to crash.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more clearly understood, embodiments are given below and described in detail with reference to the accompanying drawings.
有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一較佳實施例的詳細說明中,將可清楚的呈現。以下實施例中所提到的方向用語,例如:上、下、左、右、前或後等,僅是參考附加圖式的方向。因此,使用的方向用語是用來說明並非用來限制本發明。The above-mentioned other technical contents, features and effects of the present invention will be clearly presented in the following detailed description of a preferred embodiment with reference to the drawings. The directional terms mentioned in the following embodiments, such as up, down, left, right, front or back, etc., are only referenced to the directions of the attached drawings. Therefore, the directional terms used are used to illustrate and are not used to limit the present invention.
圖1是依照本發明的實施例的一種控制電路的示意圖,請參照圖1。控制電路100適用於投影裝置,其可包括電源轉換器102、開關單元104、第一電路106以及第二電路108。其中電源轉換器102可例如為本領域技術人員所熟知的電源供應器,第一電路106可為顯示控制單晶片(例如MT9266晶片),第二電路108可為數位光學處理晶片(例如DDP442X晶片),然不以此為限。第一電路106具有至少一第一輸入輸出接腳P1、P2及第二輸入輸出接腳P3,其中第一輸入輸出接腳P1、P2及第二輸入輸出接腳P3可被定義為相同的輸入輸出接腳P1~P3。第一電路106還具有第三輸入輸出接腳P4及第四輸入輸出接腳P5,第三輸入輸出接腳P4及第四輸入輸出接腳P5可被定義為相同的輸入輸出接腳P4、P5。須說明的是,輸入輸出接腳例如為本領域技術人員所知的通用目的輸入輸出(GPIO,General-purpose input/output)。第一電路106藉由第二輸入輸出接腳P3耦接電源轉換器102,第一電路106藉由第三輸入輸出接腳P4耦接開關單元104,第一電路106藉由第四輸入輸出接腳P5耦接第二電路108的預設接腳PIN1,開關單元104耦接在電源轉換器102與第二電路108之間,用以導通或關閉電源轉換器102及第二電路108之間的供電路徑。開關單元104可例如以金氧半場效電晶體(MOSFET, Metal Oxide Semiconductor Field Effect Transistor)或雙極性接面電晶體(BJT, Bipolar Junction Transistor)實施,然只要是能作為開關功能的元件皆適用本案,並不以此為限。其中在電源提供給控制電路100但控制電路100未被啟動的情況下,第一輸入輸出接腳P1、P2及第二輸入輸出接腳P3能夠被偵測及控制,在電源提供給控制電路100且控制電路100被啟動的情況下,第三輸入輸出接腳P4及第四輸入輸出接腳P5才能被偵測或控制。舉例來說,當投影裝置包括控制電路100時,電源提供給控制電路100的方式例如是投影裝置插上電源線,使控制電路100獲得電源,若使用者未按壓投影裝置的電源鍵,則控制電路100進入待機模式,控制電路100處於未被啟動的情況以例如5V的待機電壓進行基本工作,例如顯示待機指示燈或是使紅外線模組處於待機模式,在此待機模式下,第一輸入輸出接腳P1、P2及第二輸入輸出接腳P3會被偵測及控制。而在投影裝置插上電源線後,例如當使用者按壓投影裝置的電源鍵時,控制電路100便可進入工作模式,控制電路100處於被啟動的情況以例如12V的工作電壓進行正常工作,在此工作模式下,第三輸入輸出接腳P4及第四輸入輸出接腳P5才能被偵測或控制。FIG. 1 is a schematic diagram of a control circuit according to an embodiment of the present invention, please refer to FIG. 1. The
第一電路106可藉由至少一第一輸入輸出接腳P1、P2接收韌體更新指令CMD1,第一電路106依據韌體更新指令CMD1控制電源轉換器102提供第一電壓V1給開關單元104及提供第二電壓V2給第一電路106,第一電路106接收第二電壓V2後會進行初始設定,其中初始設定可例如為靜音、或是聲音的高低設定等。其中韌體更新指令CMD1的產生方式例如是藉由使用者按住與至少一第一輸入輸出接腳P1、P2對應的投影裝置的電源鍵與選單鍵後,再將投影裝置插上電源線,藉此使第一電路106接收到韌體更新指令CMD1。進一步來說,第一電路106可包括微控制器110,在至少一第一輸入輸出接腳P1、P2對應的按鍵(例如電源鍵與選單鍵)被按壓後,將投影裝置插上電源線,便可提供電源給控制電路100,進而使第一電路106接收到韌體更新指令CMD1,並控制電源轉換器102提供啟動電壓VSBY給微控制器110。此時,在待機模式下,微控制器110可控制第一電路106從第二輸入輸出接腳P3輸出電源控制信號VON給電源轉換器102(如圖1所示),以控制電源轉換器102提供第一電壓V1給開關單元104,以及控制電源轉換器102提供第二電壓V2給第一電路106,其中第一電壓V1及第二電壓V2可例如具有相同的電壓值,然不以此為限。The
在部分實施例中,產生韌體更新指令CMD1的方式並不限定於使用電源鍵與選單鍵,也可使用其他按鍵的組合,或僅使用單一按鍵。也就是說,在其他實施例中,也可藉由至少一第一輸入輸出接腳P1、P2的一個,或更多可在待機模式下能夠被偵測及控制的輸入輸出接腳來接收韌體更新指令CMD1。In some embodiments, the method of generating the firmware update command CMD1 is not limited to using the power key and the menu key, and may also use a combination of other keys, or only use a single key. That is, in other embodiments, the firmware update command CMD1 may also be received by at least one of the first input/output pins P1 and P2, or more input/output pins that can be detected and controlled in the standby mode.
請繼續參考圖1,於本實施例中,第一電路106是接收來自電源轉換器102的第二電壓V2而進行初始設定,第一電路106於完成初始設定後,提供第一信號VD1。也就是說,在第一電路106完成初始設定後,第一電路106可提供第一信號VD1至第二電路108的預設接腳PIN1,其中提供給第二電路108的第一信號VD1的準位可例如為低電壓邏輯準位,然不以此為限。在第一電路106提供第一信號VD1至第二電路108後,第一電路106控制開關單元104導通電源轉換器102及第二電路108之間的供電路徑,使開關單元104將來自電源轉換器102的第一電壓V1轉換為第三電壓V3,並將第三電壓V3提供給第二電路108,用以啟動第二電路108。第二電路108在啟動後,可接收到來自第一電路106的第一信號VD1而進入韌體更新模式。Please continue to refer to FIG. 1. In this embodiment, the
圖2是依照本發明實施例的一種控制電路的工作順序示意圖。請參考圖2並搭配圖1,於本實施例中,當使用者按住與至少一第一輸入輸出接腳P1、P2對應的投影裝置的電源鍵與選單鍵後,再將投影裝置插上電源線,藉此可使第一電路106接收到韌體更新指令CMD1,使第一電路106從第二輸入輸出接腳P3輸出電源控制信號VON給電源轉換器102,以控制電源轉換器102提供第二電壓V2給第一電路106進行初始設定,如流程Sa。在第一電路106完成初始設定後,第一電路106可提供第一信號VD1至第二電路108的預設接腳PIN1,使第二電路108的預設接腳PIN1可被設定至第一信號VD1的準位(低電壓邏輯準位),如流程Sb。再來便如流程Sc,第一電路106控制開關單元104導通電源轉換器102及第二電路108之間的供電路徑,使開關單元104將來自電源轉換器102的第一電壓V1轉換為第三電壓V3,並將第三電壓V3提供給第二電路108,用以啟動第二電路108。第二電路108在啟動後,可接收到來自第一電路106的第一信號VD1而進入韌體更新模式,如流程Sd。FIG2 is a schematic diagram of the working sequence of a control circuit according to an embodiment of the present invention. Please refer to FIG2 and FIG1. In this embodiment, when the user presses the power button and the menu button of the projection device corresponding to at least one first input-output pin P1, P2, and then plugs the projection device into a power cord, the
圖3是依照本發明實施例的一種控制電路的操作時序圖。請同時參考圖1、圖2、圖3,在時間點t1時,第一電路106從第二輸入輸出接腳P3輸出電源控制信號VON給電源轉換器102,以控制電源轉換器102提供第一電壓V1給開關單元104,以及控制電源轉換器102提供第二電壓V2給第一電路106。如圖3所示,第一電路106在對應時間t1~t2的期間T1進行初始設定,使第一信號VD1產生第一準位,其中第一準位在時間t1~t2時可例如為高電壓邏輯準位,藉此才可使第一電路106進行初始設定,並於第一電路106完成初始設定後,例如是時間點t2完成初始設定,第一電路106將第一準位改變為第二準位,其中第二準位例如是低電壓邏輯準位,藉此可使第二電路108的預設接腳PIN1在收到對應該第二準位的第一信號VD1時進入韌體更新模式。FIG3 is an operation timing diagram of a control circuit according to an embodiment of the present invention. Please refer to FIG1, FIG2, and FIG3 simultaneously. At time point t1, the
請繼續參考圖3,在第一電路106提供對應該第二準位的第一信號VD1給第二電路108後,第一電路106可在時間點t3提供開關控制信號VSW給開關單元104,以控制開關單元104導通電源轉換器102及第二電路108之間的供電路徑,而使開關單元104將來自電源轉換器102的第一電壓V1轉換為第三電壓V3,並將第三電壓V3提供至第二電路108,進而啟動第二電路108。第二電路108在啟動後,可接收到來自第一電路106對應該第二準位的第一信號VD1,如時間點t4,使第二電路108的預設接腳PIN1被設定為第一信號VD1的準位(低電壓邏輯準位),便可進入韌體更新模式。其中韌體更新模式可例如用於更新投影裝置的顏色、亮度、喇叭參數以及光閥控制的設定,但並不以此為限。Please continue to refer to Figure 3. After the
如此,先將第一信號VD1提供至第二電路108的預設接腳PIN1後,才控制開關單元104將第一電壓V1轉換為第三電壓V3提供給第二電路108,可有效地避免第二電路108太晚接收到預設接腳PIN1的第一信號VD1而出現誤動作,進而造成投影裝置的系統當機。In this way, the first signal VD1 is first provided to the default pin PIN1 of the
圖4A是依照本發明實施例第一電路的微控制器的啟動流程圖,圖4B是依照本發明實施例第二電路的啟動流程圖。如圖4A,第一電路106的微控制器110在接收到電源轉換器102所提供的第二電壓V2後,如步驟Sa-1啟動(Startup),啟動後如步驟Sa-2,微控制器110中的中斷控制器(Interrupt Controller)可使微控制器110仍處於中斷控制的狀態,便可進入步驟Sa-3,使微控制器110進入初始設定的階段(U-Boot stage)後開始進行初始設定,微控制器110初始設定完成後便可如步驟Sa-4,進入作業系統中,作業系統例如是Linux作業系統。第一電路106的微控制器110可在執行如圖4A所示的啟動流程而完成初始設定後,提供第一信號VD1給第二電路108的預設接腳PIN1,此時開關單元104尚未提供第三電壓V3給第二電路108,也就是說,第二電路108尚未開始圖4B的啟動流程。在開關單元104提供第三電壓V3給第二電路108時,第二電路108便進入步驟Sb-1啟動(Startup),啟動後如步驟Sb-2,進入基本輸入輸出系統(BIOS)進行基本設定,接下來如步驟Sb-3,進入啟動階段的模式(Bootloader),由於來自第一電路106的第一信號VD1已先提供到第二電路108的預設接腳PIN1,因此當第二電路108運作時的瞬間即可收到第一信號VD1,所以不會如步驟Sb-4進入作業系統(Linux作業系統)。也就是說,第二電路108在啟動階段的模式(Bootloader)因接收到預設接腳PIN1被設定至第一信號VD1對應的準位(低電壓邏輯準位),因此可進入韌體更新模式。請再搭配圖3,當第二電路108在時間點t4進入啟動階段的模式(Bootloader)時,第二電路108的預設接腳PIN1已被設定為第一信號VD1對應的準位(低電壓邏輯準位)。如此,可有效地避免第二電路108太晚接收到預設接腳PIN1的第一信號VD1而出現誤動作,進而造成投影裝置的系統當機。FIG4A is a flowchart of the startup of the microcontroller of the first circuit according to the embodiment of the present invention, and FIG4B is a flowchart of the startup of the second circuit according to the embodiment of the present invention. As shown in FIG4A, after receiving the second voltage V2 provided by the
此外,上述的實施例僅需使用一個微控制器110便可有效地確保第二電路108順利地進行韌體更新,避免第一電路106在初始設定完成前與第二電路108彼此之間有誤動作,而不需使用多個微控制器,因此可有效地降低成本,且僅藉由第一電路106的微控制器110進行更新流程的控制而不搭配其他微控制器,便可簡化軟硬體設計與控制方式。In addition, the above-mentioned embodiment only needs to use one
另外,由於上述實施例的第一電路106在提供第一信號VD1及提供開關控制信號VSW時不是使用在電源提供給控制電路100但未被啟動的情況下才能被偵測或控制的輸入輸出接腳(例如類似第一輸入輸出接腳P1、P2及第二輸入輸出接腳P3)來使第二電路108進入韌體更新模式,因此可將在電源提供給控制電路100但未被啟動的情況下能夠被偵測及控制的輸入輸出接腳保留給其它應用,例如紅外線偵測、Wi-Fi 喚醒、控制LED燈在待機模式的行為,或者是使用數位-類比的按鍵(ADC-KEY)並聯被保留的輸入輸出接腳的應用,而使控制電路100的設計更具有彈性。上述的應用僅是舉例說明,並不是限制應用的範圍。In addition, since the
圖5是依照本發明實施例的一種控制電路的控制方法的流程圖,其中控制電路適用於投影裝置,控制電路可包括電源轉換器、開關單元、第一電路以及第二電路,其中第一電路耦接電源轉換器、第二電路以及開關單元,開關單元耦接於電源轉換器以及第二電路之間,開關單元用以導通或關閉電源轉換器及第二電路之間的供電路徑。由上述實施例可知,控制電路的控制方法可至少包括下列步驟。首先,藉由第一電路接收韌體更新指令且依據韌體更新指令控制電源轉換器提供第一電壓給開關單元,並且第一電路進行初始設定(步驟S502)。在第一電路完成初始設定後,第一電路提供第一信號給第二電路的預設接腳(步驟S504),第一信號對應的準位可例如為低電壓邏輯準位,然不以此為限。在第一電路提供第一信號給第二電路後,第一電路控制開關單元導通電源轉換器及第二電路之間的供電路徑(步驟S506),而使開關單元將來自電源轉換器的第一電壓轉換為第三電壓提供給第二電路,使第二電路啟動,第二電路在啟動後,接收到來自第一電路的第一信號而進入韌體更新模式(步驟S508)。FIG5 is a flow chart of a control method of a control circuit according to an embodiment of the present invention, wherein the control circuit is applicable to a projection device, and the control circuit may include a power converter, a switch unit, a first circuit, and a second circuit, wherein the first circuit is coupled to the power converter, the second circuit, and the switch unit, the switch unit is coupled between the power converter and the second circuit, and the switch unit is used to turn on or off the power supply path between the power converter and the second circuit. From the above embodiment, it can be seen that the control method of the control circuit may at least include the following steps. First, the first circuit receives a firmware update instruction and controls the power converter to provide a first voltage to the switch unit according to the firmware update instruction, and the first circuit performs initial settings (step S502). After the first circuit completes the initial setting, the first circuit provides a first signal to the default pin of the second circuit (step S504). The level corresponding to the first signal can be, for example, a low voltage logic level, but is not limited thereto. After the first circuit provides the first signal to the second circuit, the first circuit controls the switch unit to conduct the power supply path between the power converter and the second circuit (step S506), so that the switch unit converts the first voltage from the power converter into a third voltage and provides it to the second circuit, so that the second circuit is activated. After the second circuit is activated, it receives the first signal from the first circuit and enters the firmware update mode (step S508).
詳細來說,控制電路的控制方法可如圖6所示。圖6是依照本發明實施例的一種控制電路的控制方法的細部流程圖。請參考圖6並搭配圖1,在投影裝置的電源鍵與選單鍵被按壓後,將投影裝置插上電源線,使電源提供給控制電路100,進而使第一電路106接收到韌體更新指令CMD1,並控制電源轉換器102提供啟動電壓VSBY給微控制器110,使微控制器110開始運作(如步驟S1)。詳細來說,在至少一第一輸入輸出接腳P1、P2對應的按鍵(例如電源鍵與選單鍵)被按壓後,將投影裝置插上電源線,便可使電源提供給控制電路100,進而使第一電路106接收到韌體更新指令CMD1,且使電源轉換器102提供啟動電壓VSBY給微控制器110。In detail, the control method of the control circuit can be shown in FIG6. FIG6 is a detailed flow chart of a control method of the control circuit according to an embodiment of the present invention. Please refer to FIG6 and FIG1, after the power button and the menu button of the projection device are pressed, the projection device is plugged into the power cord so that power is provided to the
接著如步驟S2,微控制器110根據設定人員預先設定好的指令,從第二輸入輸出接腳P3輸出電源控制信號VON給電源轉換器102,以啟動電源轉換器102,使電源轉換器102提供第一電壓V1給開關單元104(如步驟S3),且第一電路106進行初始設定(步驟S4)。進一步來說,第一電路106還可控制電源轉換器102提供第二電壓V2,且第一電路106在接收來自電源轉換器102的第二電壓V2而進行初始設定。第一電路106在完成初始設定後,根據設定人員預先設定好的指令,從第一電路106提供第一信號VD1給第二電路108的預設接腳PIN1(步驟S5)。Then, as in step S2, the
在提供第一信號VD1給第二電路108後,第一電路106根據設定人員預先設定好的指令,第一電路106可提供開關控制信號VSW給開關單元104(步驟S6),以控制開關單元104導通電源轉換器102及第二電路108之間的供電路徑,而使開關單元104將來自電源轉換器102的第一電壓V1轉換為第三電壓V3,並將第三電壓V3提供至第二電路108,使第二電路108獲得第三電壓V3(步驟S7)。第二電路108在獲得第三電壓V3後,第二電路108接收到預設接腳PIN1上的第一信號VD1,使第二電路108的預設接腳PIN1設定至第一信號VD1的準位(低電壓邏輯準位)(步驟S8),而使第二電路108進入韌體更新模式進行韌體更新(步驟S9)。進一步來說,第一電路106可在開始進行初始設定時,使第一信號VD1產生第一準位,並於第一電路106完成初始設定後將第一準位改變為第二準位,使第二電路108的預設接腳PIN1在收到對應該第二準位的第一信號VD1時進入韌體更新模式。After providing the first signal VD1 to the
綜上所述,本發明實施例的第一電路可在提供第一信號給第二電路的預設接腳後,控制開關單元將來自電源轉換器的第一電壓提供給第二電路,以啟動第二電路反應第一信號而進入韌體更新模式。如此可有效地避免第二電路太晚接收到預設接腳的第一信號而出現誤動作,進而造成投影裝置的系統當機。此外,由於第一電路在提供第一信號VD1及提供開關控制信號VSW時不是使用在電源提供給控制電路但未被啟動的情況下才能被偵測或控制輸入輸出接腳(例如類似第一輸入輸出接腳P1、P2及第二輸入輸出接腳P3)來使第二電路進入韌體更新模式,因此可將在電源提供給控制電路但未被啟動的情況下能夠被偵測及控制的輸入輸出接腳保留給其它應用,而使控制電路100的設計更具有彈性。In summary, after providing the first signal to the preset pin of the second circuit, the first circuit of the embodiment of the present invention can control the switch unit to provide the first voltage from the power converter to the second circuit, so as to activate the second circuit to respond to the first signal and enter the firmware update mode. This can effectively prevent the second circuit from receiving the first signal of the preset pin too late and causing erroneous operation, thereby causing the system of the projection device to crash. In addition, since the first circuit does not use the input/output pins (such as the first input/output pins P1, P2 and the second input/output pin P3) that can only be detected or controlled when power is supplied to the control circuit but not activated to enable the second circuit to enter the firmware update mode when providing the first signal VD1 and providing the switch control signal VSW, the input/output pins that can be detected and controlled when power is supplied to the control circuit but not activated can be reserved for other applications, thereby making the design of the
惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。另外本發明的任一實施例或申請專利範圍不須達成本發明所揭露之全部目的或優點或特點。此外,摘要部分和標題僅是用來輔助專利文件搜尋之用,並非用來限制本發明之權利範圍。再者,說明書中提及的第一、第二…等,僅用以表示元件的名稱,並非用來限制元件數量上的上限或下限。However, the above is only the preferred embodiment of the present invention, and it should not be used to limit the scope of the implementation of the present invention. That is, all simple equivalent changes and modifications made according to the scope of the patent application and the content of the invention description are still within the scope of the present invention. In addition, any embodiment or patent application of the present invention does not need to achieve all the purposes, advantages or features disclosed by the present invention. In addition, the abstract and title are only used to assist in searching for patent documents, and are not used to limit the scope of the rights of the present invention. Furthermore, the first, second, etc. mentioned in the specification are only used to indicate the names of the components, and are not used to limit the upper or lower limits on the number of components.
100:控制電路 102:電源轉換器 104:開關單元 106:第一電路 108:第二電路 110:微控制器 P1~P5:輸入輸出接腳 PIN1:預設接腳 CMD1:韌體更新指令 V1:第一電壓 V2:第二電壓 V3:第三電壓 VSBY:啟動電壓 VON:電源控制信號 VD1:信號 VSW:開關控制信號 t1~t4:時間點 S502~S508、S1~S9:控制電路的控制方法步驟 Sa~Sd:流程 Sa-1~Sa-4、Sb-1~Sb-4:步驟。 100: control circuit 102: power converter 104: switch unit 106: first circuit 108: second circuit 110: microcontroller P1~P5: input and output pins PIN1: default pin CMD1: firmware update command V1: first voltage V2: second voltage V3: third voltage VSBY: start voltage VON: power control signal VD1: signal VSW: switch control signal t1~t4: time point S502~S508, S1~S9: control method steps of control circuit Sa~Sd: process Sa-1~Sa-4, Sb-1~Sb-4: steps.
圖1是依照本發明實施例的一種控制電路的示意圖。 圖2是依照本發明實施例的一種控制電路的工作順序示意圖。 圖3是依照本發明實施例的一種控制電路的操作時序圖。 圖4A是依照本發明實施例第一電路的微控制器的啟動流程圖。 圖4B是依照本發明實施例第二電路的啟動流程圖。 圖5是依照本發明實施例的一種控制電路的控制方法的流程圖。 圖6是依照本發明實施例的一種控制電路的控制方法的細部流程圖。 FIG. 1 is a schematic diagram of a control circuit according to an embodiment of the present invention. FIG. 2 is a schematic diagram of a working sequence of a control circuit according to an embodiment of the present invention. FIG. 3 is an operation timing diagram of a control circuit according to an embodiment of the present invention. FIG. 4A is a startup flowchart of a microcontroller of a first circuit according to an embodiment of the present invention. FIG. 4B is a startup flowchart of a second circuit according to an embodiment of the present invention. FIG. 5 is a flowchart of a control method of a control circuit according to an embodiment of the present invention. FIG. 6 is a detailed flowchart of a control method of a control circuit according to an embodiment of the present invention.
100:控制電路 100: Control circuit
102:電源轉換器 102: Power converter
104:開關單元 104: Switch unit
106:第一電路 106: First circuit
108:第二電路 108: Second circuit
110:微控制器 110: Microcontroller
P1~P5:輸入輸出接腳 P1~P5: Input and output pins
PIN1:預設接腳 PIN1: default pin
CMD1:韌體更新指令 CMD1: Firmware update command
V1:第一電壓 V1: first voltage
V2:第二電壓 V2: Second voltage
V3:第三電壓 V3: The third voltage
VSBY:啟動電壓 VSBY: Startup voltage
VON:電源控制信號 VON: power control signal
VD1:信號 VD1:Signal
VSW:開關控制信號 VSW: switch control signal
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113120086A TWI877016B (en) | 2024-05-30 | 2024-05-30 | Control circuit and control method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113120086A TWI877016B (en) | 2024-05-30 | 2024-05-30 | Control circuit and control method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI877016B true TWI877016B (en) | 2025-03-11 |
| TW202546652A TW202546652A (en) | 2025-12-01 |
Family
ID=95830719
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW113120086A TWI877016B (en) | 2024-05-30 | 2024-05-30 | Control circuit and control method thereof |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI877016B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112256302A (en) * | 2020-10-20 | 2021-01-22 | Tcl通讯(宁波)有限公司 | Update method, device, storage medium and mobile terminal |
| US11182143B2 (en) * | 2016-10-18 | 2021-11-23 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Adjustment of voltage regulator firmware settings based upon an efficiency score |
| CN114153477A (en) * | 2021-10-29 | 2022-03-08 | 浪潮(北京)电子信息产业有限公司 | Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card |
| CN117032768A (en) * | 2023-08-15 | 2023-11-10 | 北京小马睿行科技有限公司 | Circuits and electronic devices for MCU firmware update and MCU firmware update system |
| TWI839101B (en) * | 2023-02-03 | 2024-04-11 | 神雲科技股份有限公司 | Firmware update method |
-
2024
- 2024-05-30 TW TW113120086A patent/TWI877016B/en active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11182143B2 (en) * | 2016-10-18 | 2021-11-23 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Adjustment of voltage regulator firmware settings based upon an efficiency score |
| CN112256302A (en) * | 2020-10-20 | 2021-01-22 | Tcl通讯(宁波)有限公司 | Update method, device, storage medium and mobile terminal |
| CN114153477A (en) * | 2021-10-29 | 2022-03-08 | 浪潮(北京)电子信息产业有限公司 | Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card |
| TWI839101B (en) * | 2023-02-03 | 2024-04-11 | 神雲科技股份有限公司 | Firmware update method |
| CN117032768A (en) * | 2023-08-15 | 2023-11-10 | 北京小马睿行科技有限公司 | Circuits and electronic devices for MCU firmware update and MCU firmware update system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7170498B2 (en) | Computer system provided with hotkeys | |
| EP3267437A1 (en) | Interactive peripheral device for television karaoke | |
| CN102331834A (en) | Mobile terminal power-on control method and mobile terminal | |
| TWI877016B (en) | Control circuit and control method thereof | |
| CN101146289A (en) | Reset circuit and method for mobile phone | |
| CN100466696C (en) | Signal processing device and control method thereof | |
| TWI284300B (en) | Display device | |
| CN104284115A (en) | Quick boot method of LCD TV | |
| US10643547B2 (en) | Projector and method of switching electric power of light source | |
| US20250370520A1 (en) | Control circuit and control method thereof | |
| TW202546652A (en) | Control circuit and control method thereof | |
| CN107817699B (en) | Control circuit, control method and electronic equipment | |
| WO2020019615A1 (en) | Method and device for controlling start-up of device, and interactive intelligent plate | |
| CN1891016B (en) | System and method for applying power to high intensity discharge lamps | |
| JP6942237B2 (en) | Display device including discharge signal trigger circuit | |
| JP5310129B2 (en) | Projector, program, and projector startup method | |
| CN108134909A (en) | Power saving method and device | |
| CN100454247C (en) | Method for automatically controlling enabling and disabling of infrared transmission module | |
| TW200407756A (en) | System and method of using infrared remote control apparatus to start computer | |
| CN106940538A (en) | Operating mode control method and device | |
| TWI853694B (en) | Computer and trigger device thereof | |
| CN100499765C (en) | Method for controlling on-off and standby of projection television | |
| TWI769517B (en) | Matching method for projection device and projection device using the same | |
| TWI403903B (en) | Electronic system, information output device and information output device startup method | |
| CN107018436A (en) | A kind of starting-up method, device and without screen TV |