TWI839008B - Noise elimination method and circuit of motor control system - Google Patents

Noise elimination method and circuit of motor control system Download PDF

Info

Publication number
TWI839008B
TWI839008B TW111146768A TW111146768A TWI839008B TW I839008 B TWI839008 B TW I839008B TW 111146768 A TW111146768 A TW 111146768A TW 111146768 A TW111146768 A TW 111146768A TW I839008 B TWI839008 B TW I839008B
Authority
TW
Taiwan
Prior art keywords
digital signal
pwm digital
pwm
motor
duty ratio
Prior art date
Application number
TW111146768A
Other languages
Chinese (zh)
Other versions
TW202425492A (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 TW111146768A priority Critical patent/TWI839008B/en
Application granted granted Critical
Publication of TWI839008B publication Critical patent/TWI839008B/en
Publication of TW202425492A publication Critical patent/TW202425492A/en

Links

Landscapes

  • Control Of Electric Motors In General (AREA)
  • Control Of Direct Current Motors (AREA)

Abstract

The present invention discloses a noise elimination method of a motor control system and a circuit thereof. The motor control system receives a PWM digital signal, and control a rotation speed of a motor accordingly. The method includes: sampling high and low levels of the PWM digital signal; counting numbers of the high and low levels; reconstructing a duty of the PWM digital signal according to the numbers of the high and low levels; and controlling the rotation speed of the motor according to the duty.

Description

馬達控制系統之雜訊去除方法與電路Noise removal method and circuit for motor control system

本發明係有關一種馬達控制系統之雜訊去除方法與電路,能有效過濾掉控制信號所受到的干擾,避免造成馬達轉速異常。The present invention relates to a noise removal method and circuit for a motor control system, which can effectively filter out interference on a control signal to avoid abnormal motor speed.

馬達控制系統有多種用途,例如用以控制風扇的轉速等。請參閱第1圖,馬達控制系統20中包含馬達控制電路22,其控制馬達M,馬達控制電路22為一個具有四條對外線路的晶片,四條對外線路分別是電源正負極VDD與GND、PWM (Pulse Width Modulation,脈寬調變)轉速控制輸入線路PWM_IN(此為單向輸入線路)、轉速偵測輸出線路FG(此為單向輸出線路)。對於馬達M轉速的需求,通常由外部給予指令,例如由一主控終端10而來,此主控終端10透過PWM轉速控制輸入線路PWM_IN,以PWM數位訊號的方式,指示所需的馬達轉速。The motor control system has many uses, such as controlling the speed of a fan. Referring to FIG. 1, the motor control system 20 includes a motor control circuit 22, which controls the motor M. The motor control circuit 22 is a chip with four external lines, which are the positive and negative power supply VDD and GND, the PWM (Pulse Width Modulation) speed control input line PWM_IN (this is a unidirectional input line), and the speed detection output line FG (this is a unidirectional output line). The demand for the speed of the motor M is usually given by an external instruction, such as from a master terminal 10. The master terminal 10 indicates the required motor speed in the form of a PWM digital signal through the PWM speed control input line PWM_IN.

請參閱第2圖,在先前技術中,馬達控制電路22內包含脈衝捕捉器221及工作比與轉速計算器222,其中脈衝捕捉器221偵測由PWM轉速控制輸入線路PWM_IN所輸入的PWM數位訊號的脈衝上升與下降緣,而工作比與轉速計算器222則根據所偵測到的脈衝上升與下降緣,計算出工作比,並進而得出所要的馬達轉速。Please refer to Figure 2. In the prior art, the motor control circuit 22 includes a pulse capturer 221 and a duty ratio and speed calculator 222, wherein the pulse capturer 221 detects the pulse rising and falling edges of the PWM digital signal input by the PWM speed control input line PWM_IN, and the duty ratio and speed calculator 222 calculates the duty ratio based on the detected pulse rising and falling edges, and further obtains the desired motor speed.

然而,在實際使用環境中,可能會有種種的雜訊,導致透過PWM轉速控制輸入線路PWM_IN傳輸的PWM數位訊號,在馬達控制電路22內部接收時,並不是清楚乾淨的訊號。舉例而言,在電動車充電樁的散熱應用中,由於原始電源來自交流大電力,在高壓大電流的電源中有許多雜訊,這會導致PWM數位訊號也隨之產生雜訊;或是,馬達M所在的電路板,也可能有電磁兼容性(Electromagnetic Compatibility, EMC)的問題,導致PWM數位訊號中產生雜訊。以上雜訊都沒有固定的慣性波形(pattern),因此難以針對消除。例如,第3圖顯示其中一種類型的雜訊,由圖中可見,雜訊導致PWM數位訊號的波形失真,但並不具有固定的慣性波形。PWM數位訊號的波形失真,將會導致後續對工作比與轉速的計算錯誤,使馬達M的轉速異常。However, in actual use environment, there may be various noises, resulting in that the PWM digital signal transmitted through the PWM speed control input line PWM_IN is not a clear signal when received inside the motor control circuit 22. For example, in the heat dissipation application of electric vehicle charging piles, since the original power comes from AC large power, there is a lot of noise in the high-voltage and high-current power supply, which will cause the PWM digital signal to generate noise; or, the circuit board where the motor M is located may also have electromagnetic compatibility (EMC) problems, resulting in noise in the PWM digital signal. The above noises do not have a fixed inertial waveform (pattern), so it is difficult to eliminate them. For example, Figure 3 shows one type of noise. As can be seen from the figure, the noise causes the waveform of the PWM digital signal to be distorted, but it does not have a fixed inertial waveform. The waveform distortion of the PWM digital signal will lead to errors in the subsequent calculation of the duty ratio and speed, causing the speed of the motor M to be abnormal.

針對上述問題,先前技術的一種解決方式如第4圖所示,是在PWM轉速控制輸入線路PWM_IN上,在馬達控制電路22的外部,加掛電阻(電阻可將PWM轉速控制輸入線路PWM_IN本身的線路電阻考慮在內)與電容,構成類比低通濾波電路,而PWM數位訊號也會因此被轉換成類比訊號。同時,在馬達控制電路22的內部,則設置類比數位轉換器223,將類比訊號轉換為數位訊號,之後再由工作比與轉速計算器222來計算工作比和所要的馬達轉速。As shown in FIG. 4 , a solution of the prior art is to add a resistor (the resistor can take into account the line resistance of the PWM speed control input line PWM_IN itself) and a capacitor to the PWM speed control input line PWM_IN, outside the motor control circuit 22, to form an analog low-pass filter circuit, and the PWM digital signal is converted into an analog signal. At the same time, an analog-to-digital converter 223 is set inside the motor control circuit 22 to convert the analog signal into a digital signal, and then the working ratio and speed calculator 222 calculates the working ratio and the required motor speed.

但,上述先前技術的缺點是:例如在電動車充電樁的散熱應用中,會有高壓大電流,因此PWM轉速控制輸入線路PWM_IN上如加掛電阻電容,會需要使用較高規格的類比元件,造成較高的成本,且經過類比低通濾波後再轉換回數位訊號,訊號本身的準確性也會下降。However, the disadvantages of the above-mentioned prior art are: for example, in the heat dissipation application of electric vehicle charging piles, there will be high voltage and large current. Therefore, if resistors and capacitors are added to the PWM speed control input line PWM_IN, higher-specification analog components will be required, resulting in higher costs. In addition, after being converted back into a digital signal after being filtered by analog low-pass, the accuracy of the signal itself will also decrease.

本發明即是針對上述問題,提出解決方案。The present invention proposes a solution to the above problem.

就其中一觀點言,本發明提供了一種馬達控制系統之雜訊去除方法,其中該馬達控制系統接收一PWM數位訊號,並根據該PWM數位訊號來產生馬達轉速以控制一馬達,該方法包含:以比該PWM數位訊號更高的頻率,採樣擷取該PWM數位訊號的位準;計算該PWM數位訊號的高低位準次數;以及根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比;以及根據該工作比,產生馬達轉速以控制該馬達。In one aspect, the present invention provides a noise removal method for a motor control system, wherein the motor control system receives a PWM digital signal and generates a motor speed according to the PWM digital signal to control a motor. The method comprises: sampling and capturing the level of the PWM digital signal at a higher frequency than the PWM digital signal; calculating the number of high and low levels of the PWM digital signal; and restoring and calculating the duty ratio of the PWM digital signal according to the obtained number of high and low levels; and generating the motor speed according to the duty ratio to control the motor.

在其中一種較佳的實施型態中,在一預設時段後、或是取得預設數量的高低位準總和次數後,才還原計算出該PWM數位訊號的工作比。In one preferred implementation, the duty cycle of the PWM digital signal is restored and calculated after a preset period of time or after a preset number of high and low level sums are obtained.

在其中一種較佳的實施型態中,於根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比後,清除所計算的該PWM數位訊號的高低位準次數,並重複所述過程。In one preferred implementation, after the duty ratio of the PWM digital signal is restored and calculated based on the obtained high and low level times, the calculated high and low level times of the PWM digital signal are cleared and the process is repeated.

在其中一種較佳的實施型態中,所述比該PWM數位訊號更高的頻率,為一非固定頻率。In one preferred embodiment, the frequency higher than the PWM digital signal is a non-fixed frequency.

就另一觀點言,本發明提供了一種馬達控制系統之雜訊去除電路,其中該馬達控制系統接收一PWM(脈寬調變)數位訊號,並根據該PWM數位訊號來產生馬達轉速以控制一馬達,該馬達控制系統之雜訊去除電路包含:一位準偵測器,以比該PWM數位訊號更高的頻率,採樣擷取該PWM數位訊號的位準;一計數器,與該位準偵測器耦接,用以計算該PWM數位訊號的高低位準次數;一工作比計算器,與該計數器耦接,用以根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比;以及一轉速計算器,與該工作比計算器耦接,用以根據該工作比,產生馬達轉速以控制該馬達。From another perspective, the present invention provides a noise removal circuit for a motor control system, wherein the motor control system receives a PWM (pulse width modulation) digital signal and generates a motor speed according to the PWM digital signal to control a motor. The noise removal circuit for the motor control system includes: a level detector that samples and captures the level of the PWM digital signal at a higher frequency than the PWM digital signal; a counter coupled to the level detector to calculate the number of high and low levels of the PWM digital signal; a duty ratio calculator coupled to the counter to restore and calculate the duty ratio of the PWM digital signal according to the obtained number of high and low levels; and a speed calculator coupled to the duty ratio calculator to generate the motor speed according to the duty ratio to control the motor.

就又另一觀點言,本發明提供了一種馬達控制系統之雜訊去除電路,其中該馬達控制系統接收一PWM(脈寬調變)數位訊號,並根據該PWM數位訊號來產生馬達轉速以控制一馬達,該馬達控制系統之雜訊去除電路包含:一位準偵測器,以比該PWM數位訊號更高的頻率,採樣擷取該PWM數位訊號的位準;一計數器,與該位準偵測器耦接,用以計算該PWM數位訊號的高低位準次數;以及一工作比與轉速計算器,與該計數器耦接,用以根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比,並根據該工作比,產生馬達轉速以控制該馬達。From another perspective, the present invention provides a noise removal circuit for a motor control system, wherein the motor control system receives a PWM (pulse width modulation) digital signal and generates a motor speed according to the PWM digital signal to control a motor. The noise removal circuit for the motor control system includes: a level detector for sampling and capturing the level of the PWM digital signal at a higher frequency than the PWM digital signal; a counter coupled to the level detector for calculating the number of high and low levels of the PWM digital signal; and a duty ratio and speed calculator coupled to the counter for restoring and calculating the duty ratio of the PWM digital signal according to the obtained number of high and low levels, and generating the motor speed according to the duty ratio to control the motor.

底下藉由具體實施例詳加說明,當更容易瞭解本發明之目的、技術內容、特點及其所達成之功效。The following detailed description is based on specific embodiments to make it easier to understand the purpose, technical content, features and effects of the present invention.

本發明中的圖式均屬示意,主要意在表示各電路組成部分間之相互關係,至於形狀與尺寸則並未依照比例繪製。The drawings in the present invention are schematic diagrams, which are mainly intended to show the relationship between the components of the circuits, and the shapes and sizes are not drawn according to scale.

第5圖顯示本發明的一個實施例。請參閱第5圖,本發明中,馬達控制電路22’包含大數據濾波器224及工作比與轉速計算器222。在本發明中,馬達控制電路22’自PWM轉速控制輸入線路PWM_IN接收PWM數位訊號,並沒有經過類比低通濾波。所接收的PWM數位訊號雖然帶有嚴重的雜訊(例如第3圖),但本發明利用大數據濾波器224,將PWM數位訊號中的雜訊予以消除。其中,大數據濾波器224是以大數據採樣分析的方式來還原正確的PWM數位訊號工作比,說明如下。FIG. 5 shows an embodiment of the present invention. Please refer to FIG. 5. In the present invention, the motor control circuit 22' includes a big data filter 224 and a duty ratio and speed calculator 222. In the present invention, the motor control circuit 22' receives the PWM digital signal from the PWM speed control input line PWM_IN without analog low-pass filtering. Although the received PWM digital signal has severe noise (such as FIG. 3), the present invention utilizes the big data filter 224 to eliminate the noise in the PWM digital signal. Among them, the big data filter 224 restores the correct PWM digital signal duty ratio by means of big data sampling analysis, as described below.

請參閱第6與第7圖。在其中一個較佳實施例中,大數據濾波器224包含位準偵測器225、計數器226、以及工作比計算器227。位準偵測器225以比PWM數位訊號更高的頻率,採樣擷取PWM數位訊號的位準。計數器226計算PWM數位訊號的高低位準次數。在一段相對長的預設時段後、或是取得預設數量的高低位準總和次數後,根據所得的高低位準次數,就可以還原計算出PWM數位訊號的工作比(即,等於高位準次數/高低位準次數總和),將會等於或非常接近原始的工作比。之後,清除計數器226的計數,再重複上述過程。舉例而言,當PWM數位訊號的頻率是25KHz時,位準偵測器225採樣擷取PWM數位訊號的頻率可在150~250KHz的範圍內,而擷取的時段預設長度例如為150~300毫秒,或是,擷取的高低位準總和次數達9000~15000筆。Please refer to Figures 6 and 7. In one preferred embodiment, the big data filter 224 includes a level detector 225, a counter 226, and a duty ratio calculator 227. The level detector 225 samples and captures the level of the PWM digital signal at a higher frequency than the PWM digital signal. The counter 226 calculates the high and low level times of the PWM digital signal. After a relatively long preset period of time, or after obtaining a preset number of high and low level sum times, the duty ratio of the PWM digital signal can be restored and calculated based on the obtained high and low level times (i.e., equal to the high level times/the sum of the high and low level times), which will be equal to or very close to the original duty ratio. Afterwards, the count of the counter 226 is cleared and the above process is repeated. For example, when the frequency of the PWM digital signal is 25KHz, the frequency of the PWM digital signal sampled by the level detector 225 may be in the range of 150-250KHz, and the default length of the capture period may be, for example, 150-300 milliseconds, or the total number of high and low levels captured may reach 9,000-15,000.

第7圖所示為以固定頻率(固定間隔時間)採樣擷取PWM數位訊號的位準的實施方式。根據本發明的另一個較佳實施例,請參閱第8圖,可改以非固定頻率方式(不固定間隔時間) 採樣擷取PWM數位訊號的位準。相對於第7圖的實施例,第8圖的方式,可更能去除有固定慣性波形的雜訊;以不固定間隔時間採樣,可以避免採樣時點剛好與固定慣性波形重合。FIG. 7 shows an implementation method of sampling and capturing the level of a PWM digital signal at a fixed frequency (fixed interval time). According to another preferred embodiment of the present invention, see FIG. 8, a non-fixed frequency method (non-fixed interval time) can be used to sample and capture the level of a PWM digital signal. Compared with the embodiment of FIG. 7, the method of FIG. 8 can better remove noise with a fixed inertial waveform; sampling with a non-fixed interval time can avoid the sampling time point coincident with the fixed inertial waveform.

在第6圖實施例中,工作比計算器227係用以根據所得的高低位準次數,來還原計算出PWM數位訊號的工作比。此功能也可以由工作比與轉速計算器222(參閱第5圖)來完成,在此情況下,工作比計算器227可以省略。或是,當工作比計算器227計算出工作比後,則工作比與轉速計算器222可以不用再計算工作比,而是根據工作比來產生馬達的轉速控制訊號(在此情況下,工作比與轉速計算器222可以僅是轉速計算器)。In the embodiment of FIG. 6, the duty ratio calculator 227 is used to restore and calculate the duty ratio of the PWM digital signal according to the obtained high and low level times. This function can also be completed by the duty ratio and speed calculator 222 (see FIG. 5), in which case the duty ratio calculator 227 can be omitted. Alternatively, after the duty ratio calculator 227 calculates the duty ratio, the duty ratio and speed calculator 222 does not need to calculate the duty ratio again, but generates the motor speed control signal according to the duty ratio (in this case, the duty ratio and speed calculator 222 can be only a speed calculator).

以上已針對較佳實施例來說明本發明,唯以上所述者,僅係為使熟悉本技術者易於了解本發明的內容而已,並非用來限定本發明之最大權利範圍。在本發明之相同精神下,熟悉本技術者可以思及各種等效變化。例如,當PWM數位訊號的頻率不同時,位準偵測器225採樣擷取PWM數位訊號的頻率、擷取的時段長度、或是擷取的高低位準總和次數,都可以相應改變;或是,圖示為兩個以上的電路,可以合併製作成單一電路;或是,圖示為一個的電路,可以拆解製作成兩個以上的電路;此外,在所示實施例的電路中,還可以增加其他電路來提供其他功能,例如但不限於提前或延後導通馬達轉子控制開關(未示出),等等。本發明的範圍應涵蓋上述及其他所有等效變化。The present invention has been described above with respect to the preferred embodiment. However, the above is only for those familiar with the art to easily understand the content of the present invention, and is not intended to limit the maximum scope of the present invention. Under the same spirit of the present invention, those familiar with the art can think of various equivalent changes. For example, when the frequency of the PWM digital signal is different, the frequency of the PWM digital signal sampled and captured by the level detector 225, the length of the captured time period, or the total number of high and low levels captured can be changed accordingly; or, more than two circuits shown in the figure can be combined to form a single circuit; or, the circuit shown in the figure can be disassembled to form more than two circuits; in addition, in the circuit of the embodiment shown, other circuits can be added to provide other functions, such as but not limited to early or delayed conduction of the motor rotor control switch (not shown), etc. The scope of the present invention shall include the above and all other equivalent variations.

10:主控終端 20:馬達控制系統 22、22’:馬達控制電路 221:脈衝捕捉器 222:工作比與轉速計算器 223:類比數位轉換器 224:大數據濾波器 225:位準偵測器 226:計數器 227:工作比計算器 M:馬達 VDD:電源正極 GND:電源負極 PWM_IN:PWM轉速控制輸入線路 FG:轉速偵測輸出線路 10: Main control terminal 20: Motor control system 22, 22’: Motor control circuit 221: Pulse catcher 222: Duty ratio and speed calculator 223: Analog-to-digital converter 224: Big data filter 225: Level detector 226: Counter 227: Duty ratio calculator M: Motor VDD: Positive power supply GND: Negative power supply PWM_IN: PWM speed control input line FG: Speed detection output line

第1圖顯示由一主控終端控制一馬達控制系統的典型配置。 第2圖顯示先前技術中馬達控制電路的內部電路結構。 第3圖舉例顯示其中一種類型的雜訊。 第4圖顯示先前技術的一種解決方式:在線路上加掛電阻與電容,此方式有其缺點。 第5圖顯示本發明馬達控制電路的一個實施例。 第6圖顯示本發明大數據濾波電路的一個實施例。 第7-8圖顯示本發明大數據取樣的兩個實施例。 FIG. 1 shows a typical configuration of a motor control system controlled by a master terminal. FIG. 2 shows the internal circuit structure of a motor control circuit in the prior art. FIG. 3 shows an example of one type of noise. FIG. 4 shows a solution of the prior art: adding resistors and capacitors to the line, which has its disadvantages. FIG. 5 shows an embodiment of the motor control circuit of the present invention. FIG. 6 shows an embodiment of the big data filtering circuit of the present invention. FIG. 7-8 show two embodiments of the big data sampling of the present invention.

22’:馬達控制電路 22’: Motor control circuit

222:工作比與轉速計算器 222: Duty ratio and speed calculator

224:大數據濾波器 224: Big Data Filter

PWM_IN:PWM轉速控制輸入線路 PWM_IN: PWM speed control input line

Claims (9)

一種馬達控制系統之雜訊去除方法,其中該馬達控制系統接收一PWM(脈寬調變)數位訊號,並根據該PWM數位訊號來產生馬達轉速以控制一馬達,該方法包含:以比該PWM數位訊號更高的頻率,採樣擷取該PWM數位訊號的位準;計算該PWM數位訊號的高低位準次數;根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比;以及根據該工作比,產生馬達轉速以控制該馬達,其中,在該PWM數位訊號因雜訊導致變化時,計算該PWM數位訊號的高低位準次數所連續累積的時間,大於該PWM數位訊號的每一週期時間。 A noise removal method for a motor control system, wherein the motor control system receives a PWM (pulse width modulation) digital signal and generates a motor speed to control a motor according to the PWM digital signal. The method comprises: sampling and capturing the level of the PWM digital signal at a higher frequency than the PWM digital signal; calculating the number of high and low levels of the PWM digital signal; restoring and calculating the duty ratio of the PWM digital signal according to the obtained number of high and low levels; and generating a motor speed to control the motor according to the duty ratio, wherein when the PWM digital signal changes due to noise, the time for continuously accumulating the number of high and low levels of the PWM digital signal is calculated to be greater than each cycle time of the PWM digital signal. 如請求項1所述之馬達控制系統之雜訊去除方法,其中,在一預設時段後、或是取得預設數量的高低位準總和次數後,才還原計算出該PWM數位訊號的工作比。 A noise removal method for a motor control system as described in claim 1, wherein the duty ratio of the PWM digital signal is restored and calculated after a preset period of time or after obtaining a preset number of high and low level sums. 如請求項1所述之馬達控制系統之雜訊去除方法,其中,於根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比後,清除所計算的該PWM數位訊號的高低位準次數,並重複所述過程。 A noise removal method for a motor control system as described in claim 1, wherein after restoring and calculating the duty ratio of the PWM digital signal based on the obtained high and low level times, the calculated high and low level times of the PWM digital signal are cleared, and the process is repeated. 如請求項1所述之馬達控制系統之雜訊去除方法,其中,所述比該PWM數位訊號更高的頻率,為一非固定頻率。 A noise removal method for a motor control system as described in claim 1, wherein the frequency higher than the PWM digital signal is a non-fixed frequency. 一種馬達控制系統之雜訊去除電路,其中該馬達控制系統接收一PWM(脈寬調變)數位訊號,並根據該PWM數位訊號來產生馬達轉速以控制一馬達,該馬達控制系統之雜訊去除電路包含:一位準偵測器,以比該PWM數位訊號更高的頻率,採樣擷取該PWM數位訊號的位準;一計數器,與該位準偵測器耦接,用以計算該PWM數位訊號的高低位準次數; 一工作比計算器,與該計數器耦接,用以根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比;以及一轉速計算器,與該工作比計算器耦接,用以根據該工作比,產生馬達轉速以控制該馬達。 A noise removal circuit for a motor control system, wherein the motor control system receives a PWM (pulse width modulation) digital signal and generates a motor speed according to the PWM digital signal to control a motor. The noise removal circuit for the motor control system includes: a level detector, which samples and captures the level of the PWM digital signal at a higher frequency than the PWM digital signal; a counter, coupled to the level detector, for calculating the number of high and low levels of the PWM digital signal; a duty ratio calculator, coupled to the counter, for restoring and calculating the duty ratio of the PWM digital signal according to the obtained number of high and low levels; and a speed calculator, coupled to the duty ratio calculator, for generating a motor speed according to the duty ratio to control the motor. 一種馬達控制系統之雜訊去除電路,其中該馬達控制系統接收一PWM(脈寬調變)數位訊號,並根據該PWM數位訊號來產生馬達轉速以控制一馬達,該馬達控制系統之雜訊去除電路包含:一位準偵測器,以比該PWM數位訊號更高的頻率,採樣擷取該PWM數位訊號的位準;一計數器,與該位準偵測器耦接,用以計算該PWM數位訊號的高低位準次數;以及一工作比與轉速計算器,與該計數器耦接,用以根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比,並根據該工作比,產生馬達轉速以控制該馬達,其中,在該PWM數位訊號因雜訊導致變化時,採樣擷取該PWM數位訊號的高低位準次數所連續累積的時間,大於該PWM數位訊號的每一週期時間。 A noise removal circuit for a motor control system, wherein the motor control system receives a PWM (pulse width modulation) digital signal and generates a motor speed according to the PWM digital signal to control a motor, the noise removal circuit for the motor control system comprises: a level detector for sampling and capturing the level of the PWM digital signal at a higher frequency than the PWM digital signal; a counter coupled to the level detector for calculating the PWM digital signal The high and low level times of the PWM digital signal; and a duty ratio and speed calculator coupled to the counter, for restoring and calculating the duty ratio of the PWM digital signal according to the obtained high and low level times, and generating the motor speed according to the duty ratio to control the motor, wherein when the PWM digital signal changes due to noise, the continuous accumulation time of sampling and capturing the high and low level times of the PWM digital signal is greater than each cycle time of the PWM digital signal. 如請求項5或6所述之馬達控制系統之雜訊去除電路,其中,在一預設時段後、或是取得預設數量的高低位準總和次數後,才還原計算出該PWM數位訊號的工作比。 A noise removal circuit for a motor control system as described in claim 5 or 6, wherein the duty ratio of the PWM digital signal is restored and calculated after a preset period of time or after obtaining a preset number of high and low level sums. 如請求項5或6所述之馬達控制系統之雜訊去除電路,其中,於根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比後,清除所計算的該PWM數位訊號的高低位準次數,並再繼續採樣擷取該PWM數位訊號的位準;計算該PWM數位訊號的高低位準次數;根據所得的高低位準次數,還原計算出該PWM數位訊號的工作比;以及根據該工作比,產生馬達轉速以控制該馬達。 A noise removal circuit for a motor control system as described in claim 5 or 6, wherein after the duty ratio of the PWM digital signal is calculated based on the obtained high and low level times, the calculated high and low level times of the PWM digital signal are cleared, and the level of the PWM digital signal is continuously sampled and captured; the high and low level times of the PWM digital signal are calculated; the duty ratio of the PWM digital signal is calculated based on the obtained high and low level times; and the motor speed is generated based on the duty ratio to control the motor. 如請求項5或6項所述之馬達控制系統之雜訊去除電路,其中,所述比該PWM數位訊號更高的頻率,為一非固定頻率。 A noise removal circuit for a motor control system as described in claim 5 or 6, wherein the frequency higher than the PWM digital signal is a non-fixed frequency.
TW111146768A 2022-12-06 2022-12-06 Noise elimination method and circuit of motor control system TWI839008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111146768A TWI839008B (en) 2022-12-06 2022-12-06 Noise elimination method and circuit of motor control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111146768A TWI839008B (en) 2022-12-06 2022-12-06 Noise elimination method and circuit of motor control system

Publications (2)

Publication Number Publication Date
TWI839008B true TWI839008B (en) 2024-04-11
TW202425492A TW202425492A (en) 2024-06-16

Family

ID=91618538

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111146768A TWI839008B (en) 2022-12-06 2022-12-06 Noise elimination method and circuit of motor control system

Country Status (1)

Country Link
TW (1) TWI839008B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070165428A1 (en) * 2006-01-16 2007-07-19 Holtek Semiconductor Inc. Digital pulse width modulation controlling system and method
US7561002B1 (en) * 2005-04-26 2009-07-14 Pulsecore Semiconductor, Inc. Method and apparatus for frequency modulating a periodic signal of varying duty cycle
US20140375226A1 (en) * 2013-06-25 2014-12-25 Silergy Semiconductor Technology (Hangzhou) Ltd Signal process method, signal process circuit and led dimming circuit thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7561002B1 (en) * 2005-04-26 2009-07-14 Pulsecore Semiconductor, Inc. Method and apparatus for frequency modulating a periodic signal of varying duty cycle
US20070165428A1 (en) * 2006-01-16 2007-07-19 Holtek Semiconductor Inc. Digital pulse width modulation controlling system and method
US20140375226A1 (en) * 2013-06-25 2014-12-25 Silergy Semiconductor Technology (Hangzhou) Ltd Signal process method, signal process circuit and led dimming circuit thereof

Also Published As

Publication number Publication date
TW202425492A (en) 2024-06-16

Similar Documents

Publication Publication Date Title
CN109412582A (en) A kind of pwm signal sample detecting circuit, processing circuit and chip
CN110837000B (en) Frequency measurement system based on FPGA
CN110673532B (en) Pulse signal processing and collecting device
TWI839008B (en) Noise elimination method and circuit of motor control system
CN108490241B (en) High-bandwidth small-signal high-precision peak detection device
CN208092582U (en) A kind of signal processing circuit of rotary transformer
CN211652975U (en) Voltage sampling circuit and electronic device
CN109391247B (en) Filter, processing circuit and chip based on PWM signal
US11398787B2 (en) Optimizing comparator operation for a varying DC component input
TWI730564B (en) Encoder and signal processing method using the same
CN108227541B (en) Discontinuous analog differential signal frequency and phase acquisition method
CN110098799B (en) Equivalent restart frequency modulation true random number generator and true random number generation method
CN109164291B (en) High-voltage direct-current non-isolated voltage sampling circuit
CN110212892B (en) High-precision electric energy meter variable threshold value integral differential pulse generation method
CN108872692B (en) PWM wave duty ratio measuring method under industrial noise condition
CN112511044A (en) Motor commutation control device and method and motor
CN217282895U (en) Proximity switch signal jitter elimination device
CN213934849U (en) Infrared signal processing circuit and infrared touch screen
CN114280468B (en) Control method and device for current sharing detection
JP4209266B2 (en) Real-time simulation apparatus and real-time simulation method
CN221652580U (en) Analog sampling circuit and closed-loop control chip
CN114002486B (en) Detection method and detection circuit for alternating voltage/current signal
CN114301437B (en) Microcontroller reset method and system
Ahmmed et al. Modeling and simulation of a microcontroller based power factor correction converter
CN114070163B (en) Motor control method, motor control device and motor control module