TWI767793B - Glitch filtering circuit and microcontroller circuit - Google Patents

Glitch filtering circuit and microcontroller circuit Download PDF

Info

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
Application number
TW110126580A
Other languages
Chinese (zh)
Other versions
TW202306316A (en
Inventor
賴昀楷
Original Assignee
新唐科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新唐科技股份有限公司 filed Critical 新唐科技股份有限公司
Priority to TW110126580A priority Critical patent/TWI767793B/en
Priority to CN202111061737.0A priority patent/CN115642907A/en
Application granted granted Critical
Publication of TWI767793B publication Critical patent/TWI767793B/en
Publication of TW202306316A publication Critical patent/TW202306316A/en

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

A glitch filtering circuit including a comparing circuit and a signal processing circuit is provided. The comparing circuit compares a specific signal and a reference signal to generate an output signal. The signal processing circuit detects a control signal. When the level of the control signal is a turn-on level, the signal processing circuit enters a monitoring mode. In the monitoring mode, the signal processing circuit serves the output signal as a trigger signal. When the level of the control signal is not the turn-on level, the signal processing circuit exits the monitoring mode and stops serving the output signal as the trigger signal.

Description

突波濾除電路以及微控制電路Surge filter circuit and micro-control circuit

本發明係有關於一種突波濾除電路,特別是有關於一種根據內部控制信號濾除突波的電路。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 surge filtering circuit 100 includes a comparison circuit 110 and a signal processing circuit 120 . The comparison circuit 110 compares a signal SP with a reference signal SN to generate an output signal SO. In a possible embodiment, both the signal SP and the reference signal SN are voltage signals. In a possible embodiment, the level change of the signal SP is related to the sensing result of a temperature sensor (not shown). In other embodiments, at least one of the signal SP and the reference signal SN is generated by a signal generating circuit (not shown). The signal generating circuit may be integrated into or outside the surge filtering circuit 100 . In some embodiments, the reference signal SN is continuously maintained at a fixed level. In this example, when the level of the signal SP changes, the level of the reference signal SN is fixed. The present invention does not limit the structure of the comparison circuit 110 . In a possible embodiment, the comparison circuit 110 is an analog comparator 111 .

信號處理電路120接收一控制信號SC,並根據控制信號SC提供一觸發信號ST。舉例而言,當控制信號SC的位準等於一導通位準(如高位準)時,信號處理電路120進入一監測模式。在監測模式下,信號處理電路120將輸出信號SO作為觸發信號ST。當控制信號SC的位準不等於導通位準時,信號處理電路120離開監測模式,並停止將輸出信號SO作為觸發信號ST。在一可能實施例中,信號處理電路120設定觸發信號ST為一低位準。本發明並不限定控制信號SC的類型。在一些實施例中,控制信號SC可能是一脈寬調變(PWM)信號。The signal processing circuit 120 receives a control signal SC, and provides a trigger signal ST according to the control signal SC. For example, when the level of the control signal SC is equal to a turn-on level (eg, a high level), the signal processing circuit 120 enters a monitoring mode. In the monitoring mode, the signal processing circuit 120 uses the output signal SO as the trigger signal ST. When the level of the control signal SC is not equal to the turn-on level, the signal processing circuit 120 leaves the monitoring mode and stops using the output signal SO as the trigger signal ST. In a possible embodiment, the signal processing circuit 120 sets the trigger signal ST to a low level. The present invention does not limit the type of the control signal SC. In some embodiments, the control signal SC may be a pulse width modulation (PWM) signal.

第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 surge filtering circuit 100 of FIG. 1C further includes a selection circuit 130 . The selection circuit 130 selectively uses one of the external signal EXT1 and the signal EXT2 as the control signal SC. The present invention does not limit the structure of the selection circuit 130 . In a possible embodiment, the selection circuit 130 is a multiplexer 131 . When the enable signal en1 is at a specific level (eg, a low level), the multiplexer 131 provides the external signal EXT1 to the signal processing circuit 120 . When the enable signal en1 is not at a specific level, the multiplexer 131 provides the signal EXT2 to the signal processing circuit 120 . In some embodiments, at least one of the external signal EXT1 and the signal EXT2 is a pulse width modulated signal.

本發明並不限定突波濾除電路100的應用領域。由於突波濾除電路100所提供的觸發信號ST並不會受到信號SP的位準突升或突降的影響,故可提供穩定的觸發信號ST予任何控制電路。在一可能實施例中,突波濾除電路100可能連同至少一控制電路整合於一微控制電路中,如微控制單元(MCU)。The present invention does not limit the application field of the surge filtering circuit 100 . Since the trigger signal ST provided by the surge filtering circuit 100 is not affected by the sudden rise or fall of the signal SP, a stable trigger signal ST can be provided to any control circuit. In a possible embodiment, the surge filtering circuit 100 may be integrated into a microcontroller circuit, such as a microcontroller unit (MCU), together with at least one control circuit.

第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 micro-control circuit 200A includes a surge filtering circuit 210A and a control circuit 220A. The surge filtering circuit 210A compares the signal SP with the reference signal SN, and sets the level of the trigger signal ST according to the control signal SC. In this embodiment, the control signal SC is provided by the control circuit 220A. Since the micro-control circuit 200A does not need to receive control signals from the outside through the input and output pins, the number of pins of the micro-control circuit 200A can be reduced.

在另一可能實施例中,微控制電路200A更包括一輸入輸出接腳P1。輸入輸出接腳P1用以接收信號SP。在此例中,信號SP係為一外部信號,由微控制電路200A外的電路所產生。在其它實施例中,微控制電路200A更包括一輸入輸出接腳N1。輸入輸出接腳N1用以接收參考信號SN。在此例中,參考信號SN係由微控制電路200A外的電路所產生。在一些實施例中,微控制電路200A具有一信號產生電路(未顯示),用以提供參考信號SN。在此例中,微控制電路200A不需利用輸入輸出接腳N1,接收參考信號SN。In another possible embodiment, the microcontroller circuit 200A further includes an input and output pin P1. The input/output pin P1 is used for receiving the signal SP. In this example, the signal SP is an external signal generated by a circuit outside the microcontroller circuit 200A. In other embodiments, the microcontroller circuit 200A further includes an input and output pin N1. The input and output pin N1 is used for receiving the reference signal SN. In this example, the reference signal SN is generated by a circuit outside the microcontroller 200A. In some embodiments, the microcontroller circuit 200A has a signal generating circuit (not shown) for providing the reference signal SN. In this example, the microcontroller circuit 200A does not need to use the input/output pin N1 to receive the reference signal SN.

突波濾除電路210A包括一比較電路211以及一信號處理電路212。比較電路211比較信號SP及參考信號SN,用以產生輸出信號SO。由於比較電路211的特性相似於第1A圖的比較電路110的特性,故不再贅述。在本實施例中,信號處理電路212根據控制信號SC以及輸出信號SO,產生觸發信號ST。由於信號處理電路212的特性相似於第1A圖的信號處理電路120的特性,故不再贅述。The surge filtering circuit 210A includes a comparison circuit 211 and a signal processing circuit 212 . The comparison circuit 211 compares the signal SP and the reference signal SN to generate the output signal SO. Since the characteristics of the comparison circuit 211 are similar to those of the comparison circuit 110 in FIG. 1A , detailed descriptions are omitted. In this embodiment, the signal processing circuit 212 generates the trigger signal ST according to the control signal SC and the output signal SO. Since the characteristics of the signal processing circuit 212 are similar to those of the signal processing circuit 120 in FIG. 1A , detailed descriptions are omitted.

控制電路220A提供控制信號SC,並根據觸發信號ST,決定是否執行一特定動作。舉例而言,當觸發信號ST的位準未發生變化(如維持在一特定位準,如低位準)時,控制電路220A不執行特定動作。在一可能實施例中,控制電路220A產生驅動信號SD,用以驅動一負載202。然而,當觸發信號ST的位準發生變化時,控制電路220A執行特定動作。此時,控制電路220A可能停止產生驅動信號SD。因此,負載202停止運作。在一可能實施例中,當一解除事件發生時,控制電路220A停止執行特定動作。因此,控制電路220A可能再度提供驅動信號SD。因此,負載202重新運作。在此例中,新的驅動信號的占空比(duty cycle)可能不同於先前的驅動信號的占空比。本發明並不限定負載202的種類。在一可能實施例中,負載202係為一馬達(motor)。 The control circuit 220A provides the control signal SC, and determines whether to execute a specific action according to the trigger signal ST. For example, when the level of the trigger signal ST does not change (eg, it is maintained at a specific level, such as a low level), the control circuit 220A does not perform a specific action. In a possible embodiment, the control circuit 220A generates the driving signal SD for driving a load 202 . However, when the level of the trigger signal ST changes, the control circuit 220A performs a specific action. At this time, the control circuit 220A may stop generating the driving signal SD. Therefore, the load 202 stops operating. In a possible embodiment, when a release event occurs, the control circuit 220A stops performing the specific action. Therefore, the control circuit 220A may provide the driving signal SD again. Therefore, the load 202 operates again. In this example, the duty cycle of the new drive signal may be different from the duty cycle of the previous drive signal. The present invention does not limit the type of the load 202 . In one possible embodiment, the load 202 is a motor.

本發明並不限定特定動作的種類。在一可能實施例中,特定動作係指控制電路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 control circuit 220A stops generating the driving signal SD. Therefore, the load 202 stops operating. In this example, when the control circuit 220A does not perform a specific action, the control circuit 220A generates the driving signal SD for driving the load 202 . In another possible embodiment, the specific action refers to that the control circuit 220A generates the driving signal SD for driving the load 202 . In this example, when the control circuit 220A does not perform a specific action, the control circuit 220A stops generating the driving signal SD. Therefore, the load 202 stops operating.

本發明並不限定解除事件的種類。在一可能實施例中,使用者根據負載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 control circuit 220A performs a specific action according to the operation of the load 202 . In this example, the user may instruct the control circuit 220A to stop executing a specific action through software or hardware. For example, assume that a particular action means that the control circuit 220A stops driving the load. In this example, when the user finds that the load 202 stops operating, the user may start a software to instruct the control circuit 220A to stop executing a specific action. Therefore, the control circuit 220A regenerates the drive signal SD. In another possible embodiment, the control circuit 220A detects the level of a specific signal (not shown). When the level of the specific signal is equal to a specific level, it indicates that a release event occurs. Therefore, the control circuit 220A stops performing the specific action, and generates the drive signal SD again. In some embodiments, the microcontroller circuit 200A further includes an input and output pin (not shown) for receiving the specific signal.

本發明並不限定控制電路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 control circuit 220A. In a possible embodiment, the control circuit 220A is a pulse width modulation circuit. In this example, the PWM circuit generates a first PWM signal and a second PWM signal. The pulse width modulation circuit uses the first pulse width modulation signal as the control signal SC, and the second pulse width modulation signal as the driving signal SD. In other embodiments, the control circuit 220A may be an analog-to-digital converter (ADC) or a direct memory access circuit (DMA). In this example, when the level of the trigger signal ST does not change (eg, it is maintained at a specific level, eg, a low level), the control circuit 220A does not operate. However, when the level of the trigger signal ST changes, the control circuit 220A performs a specific action. For example, if the control circuit 220A is an analog-to-digital converter, when the level of the trigger signal ST changes, the control circuit 220A converts the analog-to-digital signal into a digital signal. If the control circuit 220A is a direct memory access circuit, when the level of the trigger signal ST changes, the control circuit 220A performs a data transfer operation. Since the trigger signal ST is not affected by the instantaneous rise or fall of the level of the signal SP, the control circuit 220A drives the load 202 stably.

第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 surge filtering circuit 210B, and a control circuit 220B. The input/output pin P1 is used for receiving the signal SP. The input and output pin N1 is used for receiving the reference signal SN. The input/output pin PIN is used to receive an external signal EXT1. In some embodiments, at least one of the signal SP and the reference signal SN is generated by other circuits (not shown) within the microcontroller circuit 200B. In this example, the microcontroller 200B does not need to set at least one of the input and output pins P1 and N1.

在本實施例中,突波濾除電路210A包括一比較電路211、一信號處理電路212以及一選擇電路213。比較電路211比較信號SP與參考信號SN,用以產生一輸出信號SO。信號處理電路212接收輸出信號SO,並根據控制信號SC,決定是否將輸出信號SO作為觸發信號ST。選擇電路213根據一致能信號en1,將外部信號EXT1或信號EXT2作為控制信號SC。In this embodiment, the surge filtering circuit 210A includes a comparison circuit 211 , a signal processing circuit 212 and a selection circuit 213 . The comparison circuit 211 compares the signal SP with the reference signal SN to generate an output signal SO. The signal processing circuit 212 receives the output signal SO, and determines whether to use the output signal SO as the trigger signal ST according to the control signal SC. The selection circuit 213 uses the external signal EXT1 or the signal EXT2 as the control signal SC according to an enable signal en1.

由於比較電路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 comparison circuit 211 , the signal processing circuit 212 and the selection circuit 213 are similar to those of the comparison circuit 211 , the signal processing circuit 212 of FIG. 1A and the selection circuit 130 of FIG. 1C , they will not be described again. Since the selection circuit 130 selects the signal EXT1 outside the microcontroller circuit 200B or the signal EXT2 in the microcontroller circuit 200B according to the enable signal en1, the design flexibility of the surge filtering circuit 210B can be improved. In this embodiment, the signal EXT2 is provided by the control circuit 220B. Since the characteristics of the control circuit 220B are similar to the characteristics of the control circuit 220A in FIG. 2A , detailed descriptions are omitted.

第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 control circuit 220A stops providing the driving signal SD, the level of the driving signal SD is different from the preset signal SD_ori. At this time, the driving signal SD may be maintained at a specific level (eg, a low level). At the time point T213, since a release event occurs, the control circuit 220A provides the driving signal SD again. Therefore, the level of the driving signal SD is the same as the preset signal SD_ori. During the period T214, since the level of the trigger signal ST does not change, the level of the drive signal SD of the control circuit 220A is the same as the preset signal SD_ori.

第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 micro-control circuit 300 includes input and output pins P1 and N1 , a surge filtering circuit 310 , a selection circuit 320 , and control circuits 330 and 340 . The surge filtering circuit 310 generates the trigger signal ST according to the voltage levels on the input and output pins P1 and N1 and the control signal SC. In other embodiments, the surge filtering circuit 310 compares the voltage levels of two signals inside the microcontroller circuit 300 to generate an output signal, and determines whether to use the output signal as the trigger signal ST according to the control signal SC. Since the characteristics of the surge filtering circuit 310 are similar to the characteristics of the surge filtering circuit 100 in FIG. 1A , the details are not repeated here.

選擇電路320根據一致能信號en2,將觸發信號ST提供予控制電路330或340。本發明並不限定選擇電路320的架構。在一可能實施例中,選擇電路320係為一多工器。在此例中,當致能信號en2具有一特定位準(如低位準)時,選擇電路320輸出觸發信號ST予控制電路330。然而,當致能信號en2不具有一特定位準時,選擇電路320輸出觸發信號ST予控制電路340。The selection circuit 320 provides the trigger signal ST to the control circuit 330 or 340 according to an enable signal en2. The present invention does not limit the structure of the selection circuit 320 . In a possible embodiment, the selection circuit 320 is a multiplexer. In this example, when the enable signal en2 has a specific level (eg, a low level), the selection circuit 320 outputs the trigger signal ST to the control circuit 330 . However, when the enable signal en2 does not have a specific level, the selection circuit 320 outputs the trigger signal ST to the control circuit 340 .

在本實施例中,控制電路330根據觸發信號ST,執行一第一特定動作,如驅動負載302,控制電路340根據觸發信號ST,執行一第二特定動作,如驅動負載304。本發明並不限定控制電路330及340的種類。控制電路330與340可能為相同種類的電路,如均為脈寬調變電路。在其它實施例中,控制電路330的種類不同於控制電路340的種類。舉例而言,控制電路330係為一脈寬調變電路,而控制電路340係為類比數位轉換器。In this embodiment, the control circuit 330 performs a first specific action, such as driving the load 302, according to the trigger signal ST, and the control circuit 340 performs a second specific action, such as driving the load 304, according to the trigger signal ST. The present invention does not limit the types of the control circuits 330 and 340 . The control circuits 330 and 340 may be the same type of circuits, such as pulse width modulation circuits. In other embodiments, the type of control circuit 330 is different from the type of control circuit 340 . For example, the control circuit 330 is a pulse width modulation circuit, and the control circuit 340 is an analog-to-digital converter.

在本實施例中,控制信號SC係由控制電路330所提供。在此例中,即使控制電路330未接收到觸發信號ST,控制電路330仍持續產生控制信號SC。本發明並不限定控制電路的數量。在其它實施例中,微控制電路300具有更多的控制電路。在此例中,選擇電路320可能根據更多的致能信號,將觸發信號ST提供予多個控制電路中之一者。In this embodiment, the control signal SC is provided by the control circuit 330 . In this example, even if the control circuit 330 does not receive the trigger signal ST, the control circuit 330 continues to generate the control signal SC. The present invention does not limit the number of control circuits. In other embodiments, the microcontroller circuit 300 has more control circuits. In this example, the selection circuit 320 may provide the trigger signal ST to one of the plurality of control circuits according to more enable signals.

第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 micro-control circuit 400 includes input and output pins P1 ˜ P3 , N1 ˜ N3 , surge filtering circuits 410 , 430 , and 450 , and control circuits 420 , 440 , and 460 . The surge filtering circuits 410 , 430 and 450 are coupled to corresponding input and output pins. Since the operations of the surge filtering circuits 410 , 430 and 450 are similar, only the surge filtering circuit 410 will be described below. In this embodiment, the surge filtering circuit 410 compares the levels of the input and output pins P1 and N1, and provides the trigger signal ST1 according to the comparison result and the control signal SC1. In other embodiments, the surge filtering circuit 410 compares the voltage levels of the two signals inside the microcontroller 400 to generate an output signal, and determines whether to use the output signal as the trigger signal ST1 according to the control signal SC1. Since the characteristics of the surge filtering circuit 410 are similar to the characteristics of the surge filtering circuit 100 in FIG. 1A , detailed descriptions are omitted.

控制電路420、440、及460分別耦接突波濾除電路410、430及450。由於控制電路420、440、及460的動作相似,故以下僅說明控制電路420的動作。控制電路420提供控制信號SC1,並根據觸發信號ST1的位準,執行一特定動作,如驅動負載402,或是停止驅動負載402。由於控制電路420的特性與第2A圖的控制電路220A的特性相似,故不再贅述。The control circuits 420, 440, and 460 are coupled to the surge filtering circuits 410, 430, and 450, respectively. Since the operations of the control circuits 420, 440, and 460 are similar, only the operation of the control circuit 420 will be described below. The control circuit 420 provides the control signal SC1 and performs a specific action, such as driving the load 402 or stopping the driving of the load 402, according to the level of the trigger signal ST1. Since the characteristics of the control circuit 420 are similar to the characteristics of the control circuit 220A in FIG. 2A , detailed descriptions are omitted.

本發明並不限定突波濾除電路及控制電路的數量。在一可能實施例中,突波濾除電路的數量相同或少於於控制電路的數量。在其它實施例中,微控制電路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 micro-control circuit 400 has more surge filtering circuits and control circuits.

在本實施例中,由於負載402、404及406係由不同的控制電路所控制,故可達到多段控制的功能。假設負載402、404及406均為三獨立的馬達。在一初始期間,負載402、404及406同時運作,並具有不同的轉速,以達環境快速降溫。當環境溫度低於預設的第一溫度值時,觸發信號ST1的位準發生變化。因此,控制電路420停止驅動負載402。當環境溫度上升,並超過的第一溫度值時,表示發生一解除事件。因此,控制電路420再度驅動負載402。In this embodiment, since the loads 402, 404 and 406 are controlled by different control circuits, the function of multi-stage control can be achieved. Assume that loads 402, 404 and 406 are all three independent motors. During an initial period, loads 402, 404 and 406 operate simultaneously and have different rotational speeds to achieve rapid cooling of the environment. When the ambient temperature is lower than the preset first temperature value, the level of the trigger signal ST1 changes. Therefore, the control circuit 420 stops driving the load 402 . When the ambient temperature rises and exceeds the first temperature value, it indicates that a release event occurs. Therefore, the control circuit 420 drives the load 402 again.

第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 micro-control circuit 500 includes input and output pins PIN1 - PIN3 , P1 - P3 , N1 - N3 , surge filtering circuits 510 , 520 , 530 and a control circuit 540 . In this embodiment, the micro-control circuit 500 provides driving signals SD1 to SD3 for driving different loads (not shown).

突波濾除電路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 surge filtering circuits 510 , 520 and 530 are coupled to corresponding input and output pins. Since the operations of the surge filter circuits 510 , 520 and 530 are the same, only the operation of the surge filter circuit 510 will be described below. The surge filtering circuit 510 has a comparison circuit 511 , a signal processing circuit 512 and a selection circuit 513 . The comparison circuit 511 compares the levels of the input and output pins P1 and N1 to generate the output signal SO1. The signal processing circuit 512 sets the trigger signal ST1 based on the control signal SC1 and the output signal SO1. The selection circuit 513 uses the external signal EXT1 or the signal EXT2 as the control signal SC1 according to the enable signal en1. Since the characteristics of the comparison circuit 511 , the signal processing circuit 512 and the selection circuit 513 are similar to those of the comparison circuit 110 , the signal processing circuit 120 and the selection circuit 130 in FIG. 1C , they are not described again. In other embodiments, the comparison circuit 511 does not compare the levels of the two input and output pins from the microcontroller circuit 500 . In this example, at least one input signal of the comparison circuit 511 comes from other circuits (not shown) inside the microcontroller circuit 500 .

控制電路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。Control circuit 540 provides signals EXT2, EXT4, and EXT6. Since the signals EXT2 , EXT4 and EXT6 are generated by the circuits inside the microcontroller circuit 500 (eg, the control circuit 540 ), the signals EXT2 , EXT4 and EXT6 can be called internal signals. In a possible embodiment, the control circuit 540 is a multi-channel PWM circuit. In this example, the PWM signals output by different channels are signals EXT2, EXT4 and EXT6. In this embodiment, the control circuit 540 includes control setting circuits CS1 ˜ CS3 , blocking circuits BF1 ˜BF3 , waveform generating circuits PG1 ˜PG3 , and adjusting circuits 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 surge filtering circuits 510 , 520 and 530 . Since the operations of the barrier circuits BF1 to BF3 are the same, only the operation of the barrier circuit BF1 will be described below. The blocking circuit BF1 determines whether to execute a specific action according to the level of the trigger signal ST1. In this example, the specific action is to instruct the waveform generating circuit PG1 to stop generating the driving signal SD1.

舉例而言,當觸發信號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 micro-control circuit 500 further includes switches SW1 ˜ SW3 . The switches SW1 ˜ SW3 are respectively coupled between the surge filtering circuits 510 , 520 , and 530 and the control circuit 540 . Since the operations of the switches SW1 to SW3 are the same, only the operation of the switch SW1 will be described below. When the switch SW1 is turned on, the switch SW1 transmits the trigger signal ST1 to the control circuit 540 . When the switch SW1 is not turned on, the switch SW1 stops transmitting the trigger signal ST1 to the control circuit 540 . In some embodiments, the micro-control circuit 500 has another control circuit (not shown) for turning on or off the switches SW1 ˜ SW3 . In other embodiments, the surge filtering circuit 510 may be coupled to other control circuits through other switches to trigger other control circuits.

第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, microcontrollers 200A, 200B, 300, 400 and 500). First, a signal is received (step S611). In a possible embodiment, the present invention does not limit the source of the signal. In a possible embodiment, the 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.

比較信號以及一參考信號,用以產生一輸出信號(步驟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 filter circuit 110, 211, 511, 521, 531: Comparison circuit 120, 212, 512, 522, 532: Signal processing circuit SP, EXT1~EXT6: Signal SN: Reference Signal SO, SO1~SO3: output signal 111: Analog Comparators SC, SC1~SC3: control signal ST, ST1~ST3: trigger signal 130, 213, 320, 513, 523, 533: Selection circuit 131: Multiplexer en1~en3: enable signal 200A, 200B, 300, 400, 500: Micro-control circuit P1~P3, N1~N3, PIN1~PIN3: Input and output pins 220A, 220B, 330, 340, 420, 440, 460, 540: Control circuit 202, 302, 304, 402, 404, 406: Load T211, T212, T214: Period T213: Time point S611~S618: Steps CS1~CS3: Control setting circuit BF1~BF3: blocking circuit PG1~PG3: Waveform generation circuit ODA1~ODA3: Adjustment circuit SA1~SA3: Adjust signal SD, SD1~SD3: drive signal

第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)

一種突波濾除電路,包括:一比較電路,比較一特定信號與一參考信號,用以產生一輸出信號;以及一信號處理電路,偵測一控制信號的位準,當該控制信號的位準等於一導通位準時,該信號處理電路進入一監測模式,在該監測模式下,該信號處理電路將該輸出信號作為一觸發信號,當該控制信號的位準不等於該導通位準時,該信號處理電路離開該監測模式,並停止將該輸出信號作為該觸發信號;其中該控制信號係為一脈寬調變信號。 A surge filtering circuit, comprising: a comparison circuit for comparing a specific signal and a reference signal to generate an output signal; and a signal processing circuit for detecting the level of a control signal, when the level of the control signal is When the level 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 The signal processing circuit leaves the monitoring mode and stops using the output signal as the trigger signal; wherein the control signal is a pulse width modulation signal. 如請求項1之突波濾除電路,其中該比較電路係為一類比比較器。 The surge filtering circuit of claim 1, wherein the comparison circuit is an analog comparator. 如請求項2之突波濾除電路,更包括:一選擇電路,選擇性地將一外部信號以及該脈寬調變信號之一者作為該控制信號。 The surge filtering circuit of claim 2, further comprising: a selection circuit that selectively uses one of an external signal and the PWM signal as the control signal. 一種微控制電路,包括:一第一突波濾除電路,包括:一第一比較電路,比較一第一信號與一第一參考信號,用以產生一第一輸出信號;以及一第一信號處理電路,偵測一第一控制信號的位準,當該第一控制信號的位準等於一導通位準時,該第一信號處理電路進入一第一監測模式,在該第一監測模式下,該第一信號處理電路將該第一輸出信號作為一第一觸發信號,當該第一控 制信號的位準不等於該導通位準時,該第一信號處理電路離開該第一監測模式,並停止將該第一輸出信號作為該第一觸發信號;以及一第一控制電路,產生一第一驅動信號,用以驅動一第一負載;其中:當該第一觸發信號的位準發生變化時,該第一控制電路執行一特定動作,直到一解除事件發生;該第一控制信號係為一脈寬調變信號。 A micro-control circuit includes: a first surge filtering circuit, including: a first comparison circuit for comparing a first signal and a first reference signal to generate a first output signal; and a first signal The processing circuit detects the level of a first control signal. When the level of the first control signal is equal to a conduction level, the first signal processing circuit enters a first monitoring mode. In the first monitoring mode, The first signal processing circuit uses the first output signal as a first trigger signal, when the first control When the level of the control signal is not equal to the turn-on level, the first signal processing circuit leaves the first monitoring mode and stops using the first output signal as the first trigger signal; and a first control circuit generates a first a driving signal for driving a first load; wherein: when the level of the first trigger signal changes, the first control circuit performs a specific action until a release event occurs; the first control signal is A pulse width modulated signal. 如請求項4之微控制電路,其中該特定動作係停止產生該第一驅動信號,當該解除事件發生時,該第一控制電路產生該第一驅動信號。 The micro-control circuit of claim 4, wherein the specific action is to stop generating the first drive signal, and when the release event occurs, the first control circuit generates the first drive signal. 如請求項4之微控制電路,更包括:一第一輸入輸出接腳,用以接收該第一信號;以及一第二輸入輸出接腳,用以接收該第一參考信號。 The micro-control circuit of claim 4 further comprises: a first input-output pin for receiving the first signal; and a second input-output pin for receiving the first reference signal. 如請求項4之微控制電路,更包括:一第三輸入輸出接腳,用以接收一外部信號;一選擇電路,選擇性地將該外部信號以及一第二信號之一者作為該第一控制信號,該第二信號係由該第一控制電路產生。 The micro-control circuit of claim 4, further comprising: a third input and output pin for receiving an external signal; a selection circuit for selectively using one of the external signal and a second signal as the first A control signal, the second signal is generated by the first control circuit. 如請求項4之微控制電路,更包括:一第二控制電路,根據該第一觸發信號而動作;以及一選擇電路,選擇性地將該第一觸發信號提供予該第一或第二控制電路。 The micro-control circuit of claim 4, further comprising: a second control circuit operating according to the first trigger signal; and a selection circuit selectively providing the first trigger signal to the first or second control circuit. 如請求項4之微控制電路,更包括:一調整電路,在該第一控制電路停止產生該第一驅動信號時,提 供一調整信號予該第一控制電路,用以改變該第一驅動信號的占空比;其中該第一控制電路係為一脈寬調變電路,該脈寬調變電路產生一第一脈寬調變信號以及一第二脈寬調變信號,該脈寬調變電路將該第一脈寬調變信號作為一第二信號,並將該第二脈寬調變信號作為該第一驅動信號。 The micro-control circuit of claim 4, further comprising: an adjustment circuit, when the first control circuit stops generating the first driving signal, An adjustment signal is supplied to the first control circuit for changing the duty ratio of the first driving signal; wherein the first control circuit is a pulse width modulation circuit, and the pulse width modulation circuit generates a first a pulse width modulation signal and a second pulse width modulation signal, the pulse width modulation circuit uses the first pulse width modulation signal as a second signal, and uses the second pulse width modulation signal as the the first drive signal. 如請求項4之微控制電路,更包括:一第二突波濾除電路,包括:一第二比較電路,比較一第二信號與一第二參考信號作比較,用以產生一第二輸出信號;以及一第二信號處理電路,偵測一第二控制信號的位準,當該第二控制信號的位準等於該導通位準時,該第二信號處理電路進入一第二監測模式,在該第二監測模式下,該第二信號處理電路將該第二輸出信號作為一第二觸發信號,當該第二控制信號的位準不等於該導通位準時,該第二信號處理電路離開該第二監測模式,並停止將該第二輸出信號作為該第二觸發信號;其中:當該第二觸發信號的位準未發生變化時,該第一控制電路產生一第二驅動信號,用以驅動一第二負載,當該第二觸發信號的位準發生變化時,該第一控制電路停止產生該第二驅動信號,直到該解除事件發生;該第一及第二控制信號係由該第一控制電路所產生,並且該第一控制信號的占空比不同於該第二控制信號的占空比。 The micro-control circuit of claim 4, further comprising: a second surge filtering circuit, comprising: a second comparison circuit for comparing a second signal with a second reference signal to generate a second output signal; and a second signal processing circuit for detecting the level of a second control signal, when the level of the second control signal is equal to the conduction level, the second signal processing circuit enters a second monitoring mode, and the In the second monitoring mode, the second signal processing circuit uses the second output signal as a second trigger signal, and when the level of the second control signal is not equal to the turn-on level, the second signal processing circuit leaves the the second monitoring mode, and stop using the second output signal as the second trigger signal; wherein: when the level of the second trigger signal does not change, the first control circuit generates a second drive signal for Driving a second load, when the level of the second trigger signal changes, the first control circuit stops generating the second drive signal until the release event occurs; the first and second control signals are determined by the first control circuit is generated by a control circuit, and the duty cycle of the first control signal is different from the duty cycle of the second control signal.
TW110126580A 2021-07-20 2021-07-20 Glitch filtering circuit and microcontroller circuit TWI767793B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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