TWI767793B - Glitch filtering circuit and microcontroller circuit - Google Patents
Glitch filtering circuit and microcontroller circuit Download PDFInfo
- Publication number
- TWI767793B TWI767793B TW110126580A TW110126580A TWI767793B TW I767793 B TWI767793 B TW I767793B TW 110126580 A TW110126580 A TW 110126580A TW 110126580 A TW110126580 A TW 110126580A TW I767793 B TWI767793 B TW I767793B
- Authority
- TW
- Taiwan
- Prior art keywords
- signal
- circuit
- control
- level
- control circuit
- Prior art date
Links
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
- Manipulation Of Pulses (AREA)
- Radar Systems Or Details Thereof (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
- Electronic Switches (AREA)
Abstract
Description
本發明係有關於一種突波濾除電路,特別是有關於一種根據內部控制信號濾除突波的電路。The present invention relates to a surge filtering circuit, in particular to a circuit for filtering surges according to an internal control signal.
隨著科技的進步,電子裝置的種類及功能愈來愈多。在電子裝置中,通常具有許多MOS開關。在MOS開關瞬間導通時,可能引起大電流,進而造成突波產生而導致電路誤動作。With the advancement of technology, there are more and more types and functions of electronic devices. In electronic devices, there are usually many MOS switches. When the MOS switch is turned on instantaneously, it may cause a large current, which will cause a surge and cause the circuit to malfunction.
本發明之一實施例提供一種突波濾除電路,包括一比較電路以及一信號處理電路。比較電路比較一特定信號與一參考信號,用以產生一輸出信號。信號處理電路偵測一控制信號的位準。當控制信號的位準等於一導通位準時,信號處理電路進入一監測模式。在監測模式下,信號處理電路將輸出信號作為一觸發信號。當控制信號的位準不等於導通位準時,信號處理電路離開監測模式,並停止將輸出信號作為觸發信號。An embodiment of the present invention provides a surge filtering circuit, which includes a comparison circuit and a signal processing circuit. The comparison circuit compares a specific signal with a reference signal to generate an output signal. The signal processing circuit detects the level of a control signal. When the level of the control signal is equal to a turn-on level, the signal processing circuit enters a monitoring mode. In the monitoring mode, the signal processing circuit uses the output signal as a trigger signal. When the level of the control signal is not equal to the turn-on level, the signal processing circuit leaves the monitoring mode and stops using the output signal as a trigger signal.
本發明更提供一種微控制電路,包括一突波濾除電路以及一控制電路。突波濾除電路包括一比較電路以及一信號處理電路。比較電路比較一信號與一參考信號,用以產生一輸出信號。信號處理電路偵測一控制信號的位準。當控制信號的位準等於一導通位準時,信號處理電路進入一監測模式。在監測模式下,信號處理電路將輸出信號作為一觸發信號。當控制信號的位準不等於導通位準時,信號處理電路離開監測模式,並停止將輸出信號作為觸發信號。控制電路產生一驅動信號,用以驅動一負載。當觸發信號的位準發生變化時,控制電路執行一特定動作,直到一解除事件發生。The present invention further provides a micro-control circuit, which includes a surge filtering circuit and a control circuit. The surge filtering circuit includes a comparison circuit and a signal processing circuit. The comparison circuit compares a signal with a reference signal to generate an output signal. The signal processing circuit detects the level of a control signal. When the level of the control signal is equal to a turn-on level, the signal processing circuit enters a monitoring mode. In the monitoring mode, the signal processing circuit uses the output signal as a trigger signal. When the level of the control signal is not equal to the turn-on level, the signal processing circuit leaves the monitoring mode and stops using the output signal as a trigger signal. The control circuit generates a driving signal for driving a load. When the level of the trigger signal changes, the control circuit performs a specific action until a release event occurs.
為讓本發明之目的、特徵和優點能更明顯易懂,下文特舉出實施例,並配合所附圖式,做詳細之說明。本發明說明書提供不同的實施例來說明本發明不同實施方式的技術特徵。其中,實施例中的各元件之配置係為說明之用,並非用以限制本發明。另外,實施例中圖式標號之部分重覆,係為了簡化說明,並非意指不同實施例之間的關聯性。In order to make the objects, features and advantages of the present invention more obvious and easy to understand, the following specific embodiments are given and described in detail in conjunction with the accompanying drawings. The present specification provides different embodiments to illustrate the technical features of different embodiments of the present invention. Wherein, the configuration of each element in the embodiment is for illustration, and not for limiting the present invention. In addition, parts of the reference numerals in the drawings in the embodiments are repeated for the purpose of simplifying the description, and do not mean the correlation between different embodiments.
第1A圖為本發明之突波濾除電路的示意圖。如圖所示,突波濾除電路100包括一比較電路110以及一信號處理電路120。比較電路110比較一信號SP與一參考信號SN,用以產生一輸出信號SO。在一可能實施例中,信號SP與參考信號SN均為電壓信號。在一可能實施例中,信號SP的位準變化與一溫度感測器(未顯示)的感測結果有關。在其它實施例中,信號SP與參考信號SN之至少一者係由一信號產生電路(未顯示)所產生。信號產生電路可能整合於突波濾除電路100之中或之外。在一些實施例中,參考信號SN持續維持在一固定位準。在此例中,當信號SP的位準變化時,參考信號SN的位準固定不變。本發明並不限定比較電路110的架構。在一可能實施例中,比較電路110係為一類比比較器(analog comparator)111。FIG. 1A is a schematic diagram of the surge filtering circuit of the present invention. As shown in the figure, the
信號處理電路120接收一控制信號SC,並根據控制信號SC提供一觸發信號ST。舉例而言,當控制信號SC的位準等於一導通位準(如高位準)時,信號處理電路120進入一監測模式。在監測模式下,信號處理電路120將輸出信號SO作為觸發信號ST。當控制信號SC的位準不等於導通位準時,信號處理電路120離開監測模式,並停止將輸出信號SO作為觸發信號ST。在一可能實施例中,信號處理電路120設定觸發信號ST為一低位準。本發明並不限定控制信號SC的類型。在一些實施例中,控制信號SC可能是一脈寬調變(PWM)信號。The
第1B圖為本發明之突波濾除電路的動作時序圖。當信號SP的位準大於參考信號SN的位準時,輸出信號SO為高位準。當信號SP的位準低於參考信號SN的位準時,輸出信號SO為低位準。在本實施例中,當控制信號SC為導通位準(如高位準)時,觸發信號ST的位準等於輸出信號SO的位準。當控制信號SC不為導通位準時,觸發信號ST為一低位準。此時,即使輸出信號SO的位準因信號SP的位準大幅變化而造成突波,觸發信號ST仍為低位準,不會因信號SP的升壓或降壓而受到影響。FIG. 1B is an operation timing chart of the surge filtering circuit of the present invention. When the level of the signal SP is greater than that of the reference signal SN, the output signal SO is at a high level. When the level of the signal SP is lower than that of the reference signal SN, the output signal SO is at a low level. In this embodiment, when the control signal SC is at an on level (eg, a high level), the level of the trigger signal ST is equal to the level of the output signal SO. When the control signal SC is not at the turn-on level, the trigger signal ST is at a low level. At this time, even if the level of the output signal SO greatly changes and causes a surge due to the level of the signal SP, the trigger signal ST is still at a low level and will not be affected by the boosting or decreasing of the signal SP.
第1C圖為本發明之突波濾除電路的另一示意圖。第1C圖相似第1A圖,不同之處在於,第1C圖的突波濾除電路100更包括一選擇電路130。選擇電路130選擇性地將外部信號EXT1以及信號EXT2之一者作為控制信號SC。本發明並不限定選擇電路130的架構。在一可能實施例中,選擇電路130係為一多工器131。當致能信號en1為一特定位準(如低位準)時,多工器131提供外部信號EXT1予信號處理電路120。當致能信號en1不為特定位準時,多工器131提供信號EXT2予信號處理電路120。在一些實施例中,外部信號EXT1及信號EXT2之至少一者為一脈寬調變信號。FIG. 1C is another schematic diagram of the surge filtering circuit of the present invention. FIG. 1C is similar to FIG. 1A except that the
本發明並不限定突波濾除電路100的應用領域。由於突波濾除電路100所提供的觸發信號ST並不會受到信號SP的位準突升或突降的影響,故可提供穩定的觸發信號ST予任何控制電路。在一可能實施例中,突波濾除電路100可能連同至少一控制電路整合於一微控制電路中,如微控制單元(MCU)。The present invention does not limit the application field of the
第2A圖為本發明之微控制電路的示意圖。如圖所示,微控制電路200A包括一突波濾除電路210A以及一控制電路220A。突波濾除電路210A比較信號SP與參考信號SN,並根據控制信號SC,設定觸發信號ST的位準。在本實施例中,控制信號SC係由控制電路220A所提供。由於微控制電路200A不需透過輸入輸出接腳,接收來自外部的控制信號,故可減少微控制電路200A的接腳數量。FIG. 2A is a schematic diagram of the micro-control circuit of the present invention. As shown in the figure, the
在另一可能實施例中,微控制電路200A更包括一輸入輸出接腳P1。輸入輸出接腳P1用以接收信號SP。在此例中,信號SP係為一外部信號,由微控制電路200A外的電路所產生。在其它實施例中,微控制電路200A更包括一輸入輸出接腳N1。輸入輸出接腳N1用以接收參考信號SN。在此例中,參考信號SN係由微控制電路200A外的電路所產生。在一些實施例中,微控制電路200A具有一信號產生電路(未顯示),用以提供參考信號SN。在此例中,微控制電路200A不需利用輸入輸出接腳N1,接收參考信號SN。In another possible embodiment, the
突波濾除電路210A包括一比較電路211以及一信號處理電路212。比較電路211比較信號SP及參考信號SN,用以產生輸出信號SO。由於比較電路211的特性相似於第1A圖的比較電路110的特性,故不再贅述。在本實施例中,信號處理電路212根據控制信號SC以及輸出信號SO,產生觸發信號ST。由於信號處理電路212的特性相似於第1A圖的信號處理電路120的特性,故不再贅述。The
控制電路220A提供控制信號SC,並根據觸發信號ST,決定是否執行一特定動作。舉例而言,當觸發信號ST的位準未發生變化(如維持在一特定位準,如低位準)時,控制電路220A不執行特定動作。在一可能實施例中,控制電路220A產生驅動信號SD,用以驅動一負載202。然而,當觸發信號ST的位準發生變化時,控制電路220A執行特定動作。此時,控制電路220A可能停止產生驅動信號SD。因此,負載202停止運作。在一可能實施例中,當一解除事件發生時,控制電路220A停止執行特定動作。因此,控制電路220A可能再度提供驅動信號SD。因此,負載202重新運作。在此例中,新的驅動信號的占空比(duty cycle)可能不同於先前的驅動信號的占空比。本發明並不限定負載202的種類。在一可能實施例中,負載202係為一馬達(motor)。
The
本發明並不限定特定動作的種類。在一可能實施例中,特定動作係指控制電路220A停止產生驅動信號SD。因此,負載202停止運作。在此例中,當控制電路220A不執行特定動作時,控制電路220A產生驅動信號SD,用以驅動負載202。在另一可能實施例中,特定動作係指控制電路220A產生驅動信號SD,用以驅動負載202。在此例中,當控制電路220A不執行特定動作時,控制電路220A停止產生驅動信號SD。因此,負載202停止運作。
The present invention does not limit the kind of specific actions. In a possible embodiment, the specific action refers to that the
本發明並不限定解除事件的種類。在一可能實施例中,使用者根據負載202的運作情況,可得知控制電路220A是否執行特定動作。在此例中,使用者可能透過軟體或硬體方式,命令控制電路220A停止執行特定動作。舉例而言,假設特定動作係指控制電路220A停止驅動負載。在此例中,當使用者發現負載202停止運作時,使用者可能開啟一軟體,用以命令控制電路220A停止執行特定動作。因此,控制電路220A重新產生驅動信號SD。在另一可能實施例中,控制電路220A偵測一特定信號(未顯示)的位準。當該特定信號的位準等於一特定位準時,表示發生解除事件。因此,控制電路220A停止執行特定動作,並再度產生驅動信號SD。在一些實施例中,微控制電路200A更包括一輸入輸出接腳(未顯示),用以接收該特定信號。The present invention does not limit the type of the cancellation event. In a possible embodiment, the user can know whether the
本發明並不限定控制電路220A的架構。在一可能實施例中,控制電路220A係為一脈寬調變電路。在此例中,脈寬調變電路產生一第一脈寬調變信號以及一第二脈寬調變信號。脈寬調變電路將第一脈寬調變信號作為控制信號SC,並將第二脈寬調變信號作為驅動信號SD。在其它實施例中,控制電路220A可能為一類比數位轉換器(ADC)或是一直接記憶體存取電路(DMA)。在此例中,當觸發信號ST的位準未發生變化(如維持在一特定位準,如低位準)時,控制電路220A不動作。然而,當觸發信號ST的位準發生變化時,控制電路220A執行一特定動作。舉例而言,如果控制電路220A係為一類比數位轉換器,則在觸發信號ST的位準發生變化時,控制電路220A將一類比信號轉換成一數位信號。如果控制電路220A係為一直接記憶體存取電路時,在觸發信號ST的位準發生變化時,控制電路220A執行一資料搬移操作。由於觸發信號ST並不會受到信號SP的位準瞬間上升或下降的影響,故控制電路220A穩定地驅動負載202。The present invention does not limit the structure of the
第2B圖為本發明之微控制電路的另一示意圖。如圖所示,微控制電路200B包括輸入輸出接腳P1、N1、PIN、一突波濾除電路210B以及一控制電路220B。輸入輸出接腳P1用以接收信號SP。輸入輸出接腳N1用以接收參考信號SN。輸入輸出接腳PIN用以接收一外部信號EXT1。在一些實施例中,信號SP及參考信號SN之至少一者係由微控制電路200B內部的其它電路(未顯示)所產生。在此例中,微控制電路200B不需設置輸入輸出接腳P1及N1之至少一者。FIG. 2B is another schematic diagram of the micro-control circuit of the present invention. As shown in the figure, the micro-control circuit 200B includes input and output pins P1, N1, and PIN, a
在本實施例中,突波濾除電路210A包括一比較電路211、一信號處理電路212以及一選擇電路213。比較電路211比較信號SP與參考信號SN,用以產生一輸出信號SO。信號處理電路212接收輸出信號SO,並根據控制信號SC,決定是否將輸出信號SO作為觸發信號ST。選擇電路213根據一致能信號en1,將外部信號EXT1或信號EXT2作為控制信號SC。In this embodiment, the
由於比較電路211、信號處理電路212以及選擇電路213的特性相似於第1A圖的比較電路211、信號處理電路212以及第1C圖的選擇電路130的特性,故不再贅述。由於選擇電路130根據致能信號en1,選擇微控制電路200B外部的信號EXT1或是微控制電路200B內的信號EXT2,故可提高突波濾除電路210B的設計彈性。在本實施例中,信號EXT2係由控制電路220B所提供。由於控制電路220B的特性相似於第2A圖的控制電路220A的特性,故不再贅述。Since the characteristics of the
第2C圖為本發明之控制電路的時序控制圖。符號SD_ori表示預設的驅動信號SD。當觸發信號ST的位準未發生變化時,驅動信號SD的位準相同於預設信號SD_ori。在期間T211,由於觸發信號ST的位準未發生變化,故驅動信號SD的位準相同於預設信號SD_ori。在期間T212,觸發信號ST的位準發生變化。此時,由於控制電路220A停止提供驅動信號SD,因此,驅動信號SD的位準不同於預設信號SD_ori。此時,驅動信號SD可能維持在一特定位準(如低位準)。在時間點T213,由於發生一解除事件,故控制電路220A再度提供驅動信號SD。因此,驅動信號SD的位準相同於預設信號SD_ori。在期間T214,由於觸發信號ST的位準未發生變化,故控制電路220A驅動信號SD的位準相同於預設信號SD_ori。FIG. 2C is a timing control diagram of the control circuit of the present invention. The symbol SD_ori represents a preset drive signal SD. When the level of the trigger signal ST does not change, the level of the driving signal SD is the same as the preset signal SD_ori. In the period T211, since the level of the trigger signal ST does not change, the level of the driving signal SD is the same as the preset signal SD_ori. In the period T212, the level of the trigger signal ST changes. At this time, since the
第3圖為本發明之微控制電路的另一示意圖。如圖所示,微控制電路300包括輸入輸出接腳P1、N1、一突波濾除電路310、一選擇電路320、控制電路330及340。突波濾除電路310根據輸入輸出接腳P1、N1上的電壓位準以及控制信號SC,產生觸發信號ST。在其它實施例中,突波濾除電路310係比較微控制電路300內部的兩信號的電壓位準,用以產生一輸出信號,並根據控制信號SC,決定是否將輸出信號作為觸發信號ST。由於突波濾除電路310的特性相似於第1A圖的突波濾除電路100的特性,故不再贅述。FIG. 3 is another schematic diagram of the micro-control circuit of the present invention. As shown in the figure, the
選擇電路320根據一致能信號en2,將觸發信號ST提供予控制電路330或340。本發明並不限定選擇電路320的架構。在一可能實施例中,選擇電路320係為一多工器。在此例中,當致能信號en2具有一特定位準(如低位準)時,選擇電路320輸出觸發信號ST予控制電路330。然而,當致能信號en2不具有一特定位準時,選擇電路320輸出觸發信號ST予控制電路340。The
在本實施例中,控制電路330根據觸發信號ST,執行一第一特定動作,如驅動負載302,控制電路340根據觸發信號ST,執行一第二特定動作,如驅動負載304。本發明並不限定控制電路330及340的種類。控制電路330與340可能為相同種類的電路,如均為脈寬調變電路。在其它實施例中,控制電路330的種類不同於控制電路340的種類。舉例而言,控制電路330係為一脈寬調變電路,而控制電路340係為類比數位轉換器。In this embodiment, the
在本實施例中,控制信號SC係由控制電路330所提供。在此例中,即使控制電路330未接收到觸發信號ST,控制電路330仍持續產生控制信號SC。本發明並不限定控制電路的數量。在其它實施例中,微控制電路300具有更多的控制電路。在此例中,選擇電路320可能根據更多的致能信號,將觸發信號ST提供予多個控制電路中之一者。In this embodiment, the control signal SC is provided by the
第4圖為本發明之微控制電路的另一示意圖。微控制電路400包括輸入輸出接腳P1~P3、N1~N3、突波濾除電路410、430、450以及控制電路420、440、460。突波濾除電路410、430、450耦接相對應的輸入輸出接腳。由於突波濾除電路410、430及450的動作相似,故以下僅說明突波濾除電路410。在本實施例中,突波濾除電路410比較輸入輸出接腳P1與N1的位準,並根據比較結果與控制信號SC1,提供觸發信號ST1。在其它實施例中,突波濾除電路410係比較微控制電路400內部的兩信號的電壓位準,用以產生一輸出信號,並根據控制信號SC1,決定是否將輸出信號作為觸發信號ST1。由於突波濾除電路410的特性相似於第1A圖的突波濾除電路100的特性,故不再贅述。FIG. 4 is another schematic diagram of the micro-control circuit of the present invention. The
控制電路420、440、及460分別耦接突波濾除電路410、430及450。由於控制電路420、440、及460的動作相似,故以下僅說明控制電路420的動作。控制電路420提供控制信號SC1,並根據觸發信號ST1的位準,執行一特定動作,如驅動負載402,或是停止驅動負載402。由於控制電路420的特性與第2A圖的控制電路220A的特性相似,故不再贅述。The
本發明並不限定突波濾除電路及控制電路的數量。在一可能實施例中,突波濾除電路的數量相同或少於於控制電路的數量。在其它實施例中,微控制電路400具有更多的突波濾除電路及控制電路。The present invention does not limit the number of surge filtering circuits and control circuits. In a possible embodiment, the number of surge filtering circuits is the same or less than the number of control circuits. In other embodiments, the
在本實施例中,由於負載402、404及406係由不同的控制電路所控制,故可達到多段控制的功能。假設負載402、404及406均為三獨立的馬達。在一初始期間,負載402、404及406同時運作,並具有不同的轉速,以達環境快速降溫。當環境溫度低於預設的第一溫度值時,觸發信號ST1的位準發生變化。因此,控制電路420停止驅動負載402。當環境溫度上升,並超過的第一溫度值時,表示發生一解除事件。因此,控制電路420再度驅動負載402。In this embodiment, since the
第5圖為本發明之微控制電路的另一示意圖。微控制電路500包括輸入輸出接腳PIN1~PIN3、P1~P3、N1~N3、突波濾除電路510、520、530以及一控制電路540。在本實施例中,微控制電路500提供驅動信號SD1~SD3,用以驅動不同的負載(未顯示)。FIG. 5 is another schematic diagram of the micro-control circuit of the present invention. The
突波濾除電路510、520、530耦接相對應的輸入輸出接腳。由於突波濾除電路510、520、530的動作相同,故以下僅說明突波濾除電路510的動作。突波濾除電路510具有一比較電路511、一信號處理電路512以及一選擇電路513。比較電路511比較輸入輸出接腳P1與N1的位準,用以產生輸出信號SO1。信號處理電路512根據控制信號SC1以及輸出信號SO1,設定觸發信號ST1。選擇電路513根據致能信號en1,將外部信號EXT1或信號EXT2作為控制信號SC1。由於比較電路511、信號處理電路512及選擇電路513的特性相似於第1C圖的比較電路110、信號處理電路120以及選擇電路130的特性,故不再贅述。在其它實施例中,比較電路511並非比較來自微控制電路500的兩輸入輸出接腳的位準。在此例中,比較電路511的至少一輸入信號係來自微控制電路500內部的其它電路(未顯示)。The
控制電路540提供信號EXT2、EXT4以及EXT6。由於信號EXT2、EXT4以及EXT6係由微控制電路500內部的電路(如控制電路540)所產生,故信號EXT2、EXT4以及EXT6可稱為內部信號。在一可能實施例中,控制電路540係為一多通道脈寬調變電路。在此例中,不同的通道所輸出的脈寬調變信號為信號EXT2、EXT4以及EXT6。在本實施例中,控制電路540包括控制設定電路CS1~CS3、阻擋電路BF1~BF3、波形產生電路PG1~PG3以及調整電路ODA1~ODA3。
控制設定電路CS1~CS3分別提供信號EXT2、EXT4以及EXT6。由於控制設定電路CS1~CS3的動作相同,故以下僅說明控制設定電路CS1的動作。控制設定電路CS1用以提供信號EXT2。在一可能實施例中,控制設定電路CS1係為一波形產生電路,如脈寬調變電路。The control setting circuits CS1 to CS3 respectively provide signals EXT2, EXT4 and EXT6. Since the operations of the control setting circuits CS1 to CS3 are the same, only the operation of the control setting circuit CS1 will be described below. The control setting circuit CS1 is used for providing the signal EXT2. In a possible embodiment, the control setting circuit CS1 is a waveform generating circuit, such as a pulse width modulation circuit.
阻擋電路BF1~BF3分別接收來自突波濾除電路510、520及530提供的觸發信號ST1~ST3。由於阻擋電路BF1~BF3的動作相同,故以下僅說明阻擋電路BF1的動作。阻擋電路BF1根據觸發信號ST1的位準,決定是否執行一特定動作。在此例中,特定動作係命令波形產生電路PG1停止產生驅動信號SD1。The blocking circuits BF1 ˜ BF3 respectively receive the trigger signals ST1 ˜ ST3 provided from the
舉例而言,當觸發信號ST1的位準發生變化時,阻擋電路BF1執行一特定動作。因此,波形產生電路PG1停止提供驅動信號SD1。當一解除事件發生時,阻擋電路BF1停止執行特定動作。因此,波形產生電路PG1重新提供驅動信號SD1。在其它實施例中,當觸發信號ST1的位準未發生變化(如保持在一特定位準)時,阻擋電路BF1不執行特定動作。因此,波形產生電路PG1產生驅動信號SD1。本發明並不限定波形產生電路PG1的架構。在一可能實施例中,波形產生電路PG1係為一脈寬調整電路。由於波形產生電路PG1~PG3的動作相同,故不再贅述。For example, when the level of the trigger signal ST1 changes, the blocking circuit BF1 performs a specific action. Therefore, the waveform generating circuit PG1 stops supplying the drive signal SD1. When a release event occurs, the blocking circuit BF1 stops performing certain actions. Therefore, the waveform generating circuit PG1 supplies the drive signal SD1 again. In other embodiments, when the level of the trigger signal ST1 does not change (eg, remains at a specific level), the blocking circuit BF1 does not perform a specific action. Therefore, the waveform generation circuit PG1 generates the drive signal SD1. The present invention does not limit the structure of the waveform generating circuit PG1. In a possible embodiment, the waveform generating circuit PG1 is a pulse width adjusting circuit. Since the actions of the waveform generating circuits PG1 to PG3 are the same, they will not be described again.
調整電路ODA1~ODA3分別提供調整信號SA1~SA3予波形產生電路PG1~PG3,用以調整相對應的驅動信號的占空比。由於調整電路ODA1~ODA3的動作相同,故以下僅說明調整電路ODA1的動作。在一可能實施例中,當波形產生電路PG1停止產生驅動信號SD1時,波形產生電路PG1根據調整信號SA1調整驅動信號SD1的占空比。當解除事件發生時,波形產生電路PG1輸出調整後的驅動信號。The adjustment circuits ODA1 to ODA3 respectively provide the adjustment signals SA1 to SA3 to the waveform generation circuits PG1 to PG3 for adjusting the duty ratios of the corresponding driving signals. Since the operations of the adjustment circuits ODA1 to ODA3 are the same, only the operation of the adjustment circuit ODA1 will be described below. In a possible embodiment, when the waveform generating circuit PG1 stops generating the driving signal SD1, the waveform generating circuit PG1 adjusts the duty cycle of the driving signal SD1 according to the adjusting signal SA1. When the release event occurs, the waveform generating circuit PG1 outputs the adjusted driving signal.
在一些實施例中,微控制電路500更包括開關SW1~SW3。開關SW1~SW3分別耦接於突波濾除電路510、520、530與控制電路540之間。由於開關SW1~SW3的動作相同,故以下僅說明開關SW1的動作。當開關SW1導通時,開關SW1傳送觸發信號ST1予控制電路540。當開關SW1不導通時,開關SW1停止傳送觸發信號ST1予控制電路540。在一些實施例中,微控制電路500具有另一控制電路(未顯示),用以導通或不導通開關SW1~SW3。在其它實施例中,突波濾除電路510可能透過其它開關,耦接到其它控制電路,用以觸發其它控制電路。In some embodiments, the
第6圖為本發明之控制方法的流程示意圖。本發明之控制方法適用於一微控制電路(如微控制器200A、200B、300、400及500)。首先,接收一信號(步驟S611)。在一可能實施例中,本發明並不限定信號的來源。在一可能實施例中,信號係由微控制電路的一輸入輸出接腳所接收。在另一可能實施例中,參考信號係由微控制電路內部的電路所產生。FIG. 6 is a schematic flowchart of the control method of the present invention. The control method of the present invention is applicable to a microcontroller circuit (eg,
比較信號以及一參考信號,用以產生一輸出信號(步驟S612)。在一可能實施例中,參考信號係由微控制電路的一輸入輸出接腳所接收。在另一可能實施例中,參考信號係由微控制電路內部的電路所產生。The comparison signal and a reference signal are used to generate an output signal (step S612). In a possible embodiment, the reference signal is received by an input and output pin of the microcontroller. In another possible embodiment, the reference signal is generated by a circuit inside the microcontroller.
判斷一控制信號的位準是否等於一導通位準(步驟S613)。在一可能實施例中,控制信號係由微控制電路的另一輸入輸出接腳所接收。在另一可能實施例中,控制信號係由微控制電路內部的電路所產生。It is judged whether the level of a control signal is equal to a turn-on level (step S613). In a possible embodiment, the control signal is received by another input and output pin of the microcontroller. In another possible embodiment, the control signal is generated by a circuit inside the microcontroller.
當控制信號的位準等於導通位準時,將輸出信號作為一觸發信號(步驟S614)。當控制信號的位準不等於導通位準時,停止將輸出信號作為觸發信號(步驟S615)。因此,即使步驟S611所接收的信號(如第2A圖的SP)的位準大幅變化,輸出信號(如第2A圖的SO)並不會受到影響。在一可能實施例中,步驟S615係設定觸發信號為一預設位準。在一些實施例中,導通位準係為一高位準。在此例中,預設位準低於導通位準。When the level of the control signal is equal to the turn-on level, the output signal is used as a trigger signal (step S614). When the level of the control signal is not equal to the turn-on level, stop using the output signal as the trigger signal (step S615). Therefore, even if the level of the signal received in step S611 (eg, SP in FIG. 2A ) changes greatly, the output signal (eg, SO in FIG. 2A ) will not be affected. In a possible embodiment, step S615 is to set the trigger signal to a predetermined level. In some embodiments, the turn-on level is a high level. In this example, the preset level is lower than the turn-on level.
接著,判斷觸發信號是否發生變化(步驟S616)。當觸發信號發生變化時,執行一特定動作(步驟S617)。當觸發信號未發生變化時,不執行特定動作(步驟S618)。在一可能實施例中,特定動作係產生一驅動信號,用以驅動一負載。在此例中,步驟S618係停止產生驅動信號,用以暫停驅動負載。在另一可能實施例中,特定動作係停止產生一驅動信號,用以停止驅動一負載。在此例中,步驟S618係產生一驅動信號,用以驅動一負載。Next, it is determined whether the trigger signal has changed (step S616). When the trigger signal changes, a specific action is performed (step S617). When the trigger signal does not change, no specific action is performed (step S618). In a possible embodiment, the specific action generates a driving signal for driving a load. In this example, step S618 is to stop generating the driving signal to suspend driving the load. In another possible embodiment, the specific action is to stop generating a driving signal to stop driving a load. In this example, step S618 generates a driving signal for driving a load.
本發明之控制方法,或特定型態或其部份,可以以程式碼的型態存在。程式碼可儲存於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,亦或不限於外在形式之電腦程式產品,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以參與本發明之微控制電路或是突波濾除電路。程式碼也可透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送,其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之微控制電路或是突波濾除電路。當在一般用途處理單元實作時,程式碼結合處理單元提供一操作類似於應用特定邏輯電路之獨特裝置。The control method of the present invention, or a specific form or part thereof, may exist in the form of code. The code can be stored on physical media, such as floppy disks, optical discs, hard disks, or any other machine-readable (such as computer-readable) storage media, or not limited to external forms of computer program products, where, When the code is loaded and executed by a machine, such as a computer, the machine becomes a micro-control circuit or a surge filtering circuit for participating in the present invention. The code may also be transmitted through some transmission medium, such as wire or cable, optical fiber, or any type of transmission, wherein when the code is received, loaded, and executed by a machine, such as a computer, the machine becomes used to participate in this document. The invented micro-control circuit or the surge filtering circuit. 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) herein are commonly understood by those of ordinary skill in the art to which this invention belongs. Furthermore, unless expressly stated otherwise, the definitions of words in general dictionaries should be construed as consistent with their meanings in articles in the related technical field, and should not be construed as ideal states or overly formal voices. Although the terms "first", "second", etc. may be used to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾。舉例來說,本發明實施例所述之系統、裝置或是方法可以硬體、軟體或硬體以及軟體的組合的實體實施例加以實現。因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. . For example, the system, apparatus, or method described in the embodiments of the present invention may be implemented in a physical embodiment of hardware, software, or a combination of hardware and software. Therefore, the protection scope of the present invention should be determined by the scope of the appended patent application.
100、210A、210B、310、410、430、450、510、520、530:突波濾除電路
110、211、511、521、531:比較電路
120、212、512、522、532:信號處理電路
SP、EXT1~EXT6:信號
SN:參考信號
SO、SO1~SO3:輸出信號
111:類比比較器
SC、SC1~SC3:控制信號
ST、ST1~ST3:觸發信號
130、213、320、513、523、533:選擇電路
131:多工器
en1~en3:致能信號
200A、200B、300、400、500:微控制電路
P1~P3、N1~N3、PIN1~PIN3:輸入輸出接腳
220A、220B、330、340、420、440、460、540:控制電路
202、302、304、402、404、406:負載
T211、T212、T214:期間
T213:時間點
S611~S618:步驟
CS1~CS3:控制設定電路
BF1~BF3:阻擋電路
PG1~PG3:波形產生電路
ODA1~ODA3:調整電路
SA1~SA3:調整信號
SD、SD1~SD3:驅動信號
100, 210A, 210B, 310, 410, 430, 450, 510, 520, 530: Surge
第1A圖為本發明之突波濾除電路的示意圖。 第1B圖為本發明之突波濾除電路的動作時序圖。 第1C圖為本發明之突波濾除電路的另一示意圖。 第2A圖為本發明之微控制電路的示意圖。 第2B圖為本發明之微控制電路的另一示意圖。 第2C圖為本發明之控制電路的時序控制圖。 第3圖為本發明之微控制電路的另一示意圖。 第4圖為本發明之微控制電路的另一示意圖。 第5圖為本發明之微控制電路的另一示意圖。 第6圖為本發明之控制方法的流程示意圖。 FIG. 1A is a schematic diagram of the surge filtering circuit of the present invention. FIG. 1B is an operation timing chart of the surge filtering circuit of the present invention. FIG. 1C is another schematic diagram of the surge filtering circuit of the present invention. FIG. 2A is a schematic diagram of the micro-control circuit of the present invention. FIG. 2B is another schematic diagram of the micro-control circuit of the present invention. FIG. 2C is a timing control diagram of the control circuit of the present invention. FIG. 3 is another schematic diagram of the micro-control circuit of the present invention. FIG. 4 is another schematic diagram of the micro-control circuit of the present invention. FIG. 5 is another schematic diagram of the micro-control circuit of the present invention. FIG. 6 is a schematic flowchart of the control method of the present invention.
100:突波濾除電路 100: Surge filter circuit
110:比較電路 110: Comparison circuit
120:信號處理電路 120: Signal processing circuit
SP:信號 SP:Signal
SN:參考信號 SN: Reference Signal
SO:輸出信號 SO: output signal
111:類比比較器 111: Analog Comparators
SC:控制信號 SC: control signal
ST:觸發信號 ST: trigger signal
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110126580A TWI767793B (en) | 2021-07-20 | 2021-07-20 | Glitch filtering circuit and microcontroller circuit |
CN202111061737.0A CN115642907A (en) | 2021-07-20 | 2021-09-10 | Surge filtering circuit and micro control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110126580A TWI767793B (en) | 2021-07-20 | 2021-07-20 | Glitch filtering circuit and microcontroller circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI767793B true TWI767793B (en) | 2022-06-11 |
TW202306316A TW202306316A (en) | 2023-02-01 |
Family
ID=83103815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110126580A TWI767793B (en) | 2021-07-20 | 2021-07-20 | Glitch filtering circuit and microcontroller circuit |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115642907A (en) |
TW (1) | TWI767793B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100423431C (en) * | 2004-11-23 | 2008-10-01 | 尼克森微电子股份有限公司 | Pulse width modulator with automatic change of outputting frequency |
TW201351858A (en) * | 2012-06-06 | 2013-12-16 | System General Corp | Control circuit of power converter |
US20150244265A1 (en) * | 2014-02-26 | 2015-08-27 | Fuji Electric Co., Ltd. | Startup circuit and power supply circuit |
CN107517048A (en) * | 2017-08-31 | 2017-12-26 | 艾德克斯电子(南京)有限公司 | A kind of PWM generation circuits for preventing Switching Power Supply from malfunctioning |
TWI643436B (en) * | 2013-12-24 | 2018-12-01 | 日商艾普凌科有限公司 | Switching regulator and electronic apparatus |
-
2021
- 2021-07-20 TW TW110126580A patent/TWI767793B/en active
- 2021-09-10 CN CN202111061737.0A patent/CN115642907A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100423431C (en) * | 2004-11-23 | 2008-10-01 | 尼克森微电子股份有限公司 | Pulse width modulator with automatic change of outputting frequency |
TW201351858A (en) * | 2012-06-06 | 2013-12-16 | System General Corp | Control circuit of power converter |
TWI643436B (en) * | 2013-12-24 | 2018-12-01 | 日商艾普凌科有限公司 | Switching regulator and electronic apparatus |
US20150244265A1 (en) * | 2014-02-26 | 2015-08-27 | Fuji Electric Co., Ltd. | Startup circuit and power supply circuit |
CN107517048A (en) * | 2017-08-31 | 2017-12-26 | 艾德克斯电子(南京)有限公司 | A kind of PWM generation circuits for preventing Switching Power Supply from malfunctioning |
Also Published As
Publication number | Publication date |
---|---|
CN115642907A (en) | 2023-01-24 |
TW202306316A (en) | 2023-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1612909B1 (en) | Power supply integrated circuit with feedback control | |
EP2954604B1 (en) | Pulse width modulation load share bus | |
US7880548B2 (en) | Headphone amplifier circuit | |
US20130094661A1 (en) | Power management controller for drivers | |
US20160181814A1 (en) | Power system and control method thereof | |
EP2724205A2 (en) | Power management for an electronic device | |
TWI767399B (en) | Voltage regulator with piecewise linear loadlines | |
WO2016144735A2 (en) | Three input comparator | |
US20110029793A1 (en) | Generating a signal to reduce computer system power consumption from signals provided by a plurality of power supplies | |
US7843184B2 (en) | Power supply with separate line regulation and load regulation | |
US20140132070A1 (en) | Rack and power control method thereof | |
TWI767793B (en) | Glitch filtering circuit and microcontroller circuit | |
CN108430132B (en) | Light state adjusting controller, control system and control method | |
KR20120119320A (en) | The pumping circuit and a generating method of a pumping voltage using the same | |
US7928885B2 (en) | A/D converter | |
WO2024099038A1 (en) | Gain control apparatus and method | |
US9257942B2 (en) | Audio amplifier apparatus | |
US9055649B2 (en) | Control circuit and control method of light emitting device circuit | |
US8451887B2 (en) | Phase interleaving control method for a multi-channel regulator system | |
CN101835071A (en) | Sound noise control circuit | |
CN112269461A (en) | Multi-power system and power-on time sequence control method thereof | |
JP2009075882A (en) | Variable voltage regulator | |
US8421511B2 (en) | Power converter and pulse width modulation signal controlling apparatus thereof | |
KR20150115257A (en) | Power conveter and driving method for the same | |
TWI833536B (en) | Multi-power supply system and multi-power supply method |