[go: up one dir, main page]

TW202146913A - Pulse-width modulation detection circuit and method for power saving and anti-noise - Google Patents

Pulse-width modulation detection circuit and method for power saving and anti-noise Download PDF

Info

Publication number
TW202146913A
TW202146913A TW109119695A TW109119695A TW202146913A TW 202146913 A TW202146913 A TW 202146913A TW 109119695 A TW109119695 A TW 109119695A TW 109119695 A TW109119695 A TW 109119695A TW 202146913 A TW202146913 A TW 202146913A
Authority
TW
Taiwan
Prior art keywords
circuit
duty cycle
width modulation
previous
current
Prior art date
Application number
TW109119695A
Other languages
Chinese (zh)
Other versions
TWI760766B (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 TW109119695A priority Critical patent/TWI760766B/en
Priority to CN202010650658.2A priority patent/CN113810030B/en
Publication of TW202146913A publication Critical patent/TW202146913A/en
Application granted granted Critical
Publication of TWI760766B publication Critical patent/TWI760766B/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K7/00Modulating pulses with a continuously-variable modulating signal
    • H03K7/08Duration or width modulation ; Duty cycle modulation
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/125Discriminating pulses
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/125Discriminating pulses
    • H03K5/1252Suppression or limitation of noise or interference

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Dc-Dc Converters (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

A pulse-width modulation (PWM) detection circuit for power saving and anti-noise includes a first circuit, a second circuit and an output circuit. The second circuit is coupled between the first circuit and output circuit. When the first circuit receives a PWM signal, the first circuit generates a current sampling result according to a time when PWM signal is at high-level through asynchronous sampling, and compares the current sampling result with at least one previous sampling result to generate a comparing result related to whether the time when the PWM signal is at high-level changes. The second circuit is controlled by the first circuit to selectively calculate a current duty cycle according to the current sampling result or use a previous duty cycle according to the comparing result. The output circuit generates an output current according to the current duty cycle or previous duty cycle provided by the second circuit.

Description

用以省電及抗雜訊的脈寬調變偵測電路及方法Pulse width modulation detection circuit and method for power saving and anti-noise

本發明係與脈寬調變(Pulse-width modulation, PWM)技術有關,尤其是關於一種用以省電及抗雜訊的脈寬調變偵測電路及方法。The present invention is related to pulse width modulation (Pulse-width modulation, PWM) technology, and more particularly, to a PWM detection circuit and method for power saving and anti-noise.

在先前技術中,一般常見的省電作法是透過輸出遲滯(Input hysteresis)單元計算脈寬調變訊號之連續兩個工作週期(Duty cycle)的長度差異並設定一門檻值。當兩個工作週期的長度差異大於門檻值時,則判定兩個工作週期不同,因此,仍繼續進行後續的正常運算程序直至產生輸出電流為止;當兩個工作週期的長度差異小於門檻值時,則判定兩個工作週期相同,因此,後續的運算程序將會停止並直接沿用先前的工作週期值,以達到省電效果。In the prior art, a common power saving method is to calculate the length difference between two consecutive duty cycles of the PWM signal through an input hysteresis unit and set a threshold value. When the length difference between the two working cycles is greater than the threshold value, it is determined that the two working cycles are different. Therefore, the subsequent normal operation procedure is continued until the output current is generated; when the length difference between the two working cycles is less than the threshold value, the Then it is determined that the two duty cycles are the same, therefore, the subsequent operation program will stop and directly use the previous duty cycle value to achieve the power saving effect.

然而,當輸入的脈寬調變訊號的工作週期值愈大時,脈寬調變訊號所產生的抖動亦愈大,其造成的雜訊亦更加嚴重而難以有效濾除,亟待改善。However, when the duty cycle value of the input PWM signal is larger, the jitter generated by the PWM signal is also larger, and the noise caused by it is also more serious and difficult to filter effectively.

有鑑於此,本發明提出一種用以省電及抗雜訊的脈寬調變偵測電路及方法,以有效解決先前技術所遭遇到之上述問題。In view of this, the present invention provides a PWM detection circuit and method for power saving and anti-noise, so as to effectively solve the above-mentioned problems encountered in the prior art.

依據本發明之一具體實施例為一種脈寬調變偵測電路。於此實施例中,脈寬調變偵測電路能同時兼顧省電及抗雜訊之功效。脈寬調變偵測電路包含第一電路、第二電路及輸出電路。第二電路耦接於第一電路與輸出電路之間。當第一電路接收到輸入的脈寬調變訊號時,第一電路以非同步取樣到脈寬調變訊號位於高位準的時間而產生目前取樣結果,並比較目前取樣結果與至少一先前取樣結果以產生比較結果。其中,比較結果係與脈寬調變訊號位於高位準的時間是否改變有關。第二電路受控於第一電路而根據比較結果選擇性地以目前取樣結果計算目前工作週期值或沿用先前工作週期值。輸出電路根據第二電路所提供的目前工作週期值或先前工作週期值產生輸出電流。A specific embodiment of the present invention is a pulse width modulation detection circuit. In this embodiment, the PWM detection circuit can achieve both power saving and anti-noise effects. The pulse width modulation detection circuit includes a first circuit, a second circuit and an output circuit. The second circuit is coupled between the first circuit and the output circuit. When the first circuit receives the input PWM signal, the first circuit generates a current sampling result by asynchronous sampling to the time when the PWM signal is at a high level, and compares the current sampling result with at least one previous sampling result to produce comparison results. The comparison result is related to whether the time when the PWM signal is at a high level changes. The second circuit is controlled by the first circuit to selectively use the current sampling result to calculate the current duty cycle value or use the previous duty cycle value according to the comparison result. The output circuit generates an output current according to the current duty cycle value or the previous duty cycle value provided by the second circuit.

於一實施例中,第一電路包含取樣單元,用以對脈寬調變訊號位於高位準的時間進行非同步取樣,以產生目前取樣結果。In one embodiment, the first circuit includes a sampling unit for asynchronously sampling the time when the PWM signal is at a high level to generate the current sampling result.

於一實施例中,第一電路包含比較單元,用以比較目前取樣結果與至少一先前取樣結果,以產生比較結果。In one embodiment, the first circuit includes a comparison unit for comparing the current sampling result with at least one previous sampling result to generate a comparison result.

於一實施例中,第一電路包含切換單元,耦接第二電路,用以根據比較結果產生控制訊號至第二電路,以控制第二電路之運作。In one embodiment, the first circuit includes a switching unit coupled to the second circuit for generating a control signal to the second circuit according to the comparison result to control the operation of the second circuit.

於一實施例中,第一電路還包含去雜訊單元,耦接比較單元,用以根據頻率設定一調整門檻值,並以先前工作週期值調整該調整門檻值後提供給比較單元,藉以判斷脈寬調變訊號位於高位準的時間是否改變。In one embodiment, the first circuit further includes an anti-noise unit, coupled to the comparison unit, for setting an adjustment threshold value according to the frequency, and after adjusting the adjustment threshold value with the previous duty cycle value, the adjustment threshold value is provided to the comparison unit, so as to judge. Whether the time when the PWM signal is at a high level has changed.

於一實施例中,第一電路包含去雜訊單元。去雜訊單元用以記錄複數個先前工作週期值。若該複數個先前工作週期值中之兩兩先前工作週期值之間的振幅小於一調整門檻值,則第一電路判定脈寬調變訊號位於高位準的時間有改變。In one embodiment, the first circuit includes an anti-noise unit. The de-noising unit is used for recording a plurality of previous duty cycle values. If the amplitude between the two previous duty cycle values of the plurality of previous duty cycle values is smaller than an adjustment threshold value, the first circuit determines that the time when the PWM signal is at a high level has changed.

於一實施例中,第一電路包含去雜訊單元。去雜訊單元用以記錄複數個先前工作週期值並根據該複數個先前工作週期值中之兩兩先前工作週期值的平均差編碼為一工作週期變化輪廓(Profile)。若工作週期變化輪廓的跳變次數為1且工作週期變化輪廓符合一特定輪廓,則第一電路判定脈寬調變訊號位於高位準的時間有改變。In one embodiment, the first circuit includes an anti-noise unit. The de-noising unit is used for recording a plurality of previous duty cycle values and encoding a duty cycle variation profile (Profile) according to the average difference of two previous duty cycle values among the plurality of previous duty cycle values. If the number of transitions of the duty cycle variation profile is 1 and the duty cycle variation profile conforms to a specific profile, the first circuit determines that the time when the PWM signal is at a high level has changed.

於一實施例中,當比較結果為脈寬調變訊號位於高位準的時間未改變時,第二電路沿用先前工作週期值。In one embodiment, when the comparison result is that the time during which the PWM signal is at a high level has not changed, the second circuit retains the previous duty cycle value.

於一實施例中,當比較結果為脈寬調變訊號位於高位準的時間有改變時,第二電路根據目前取樣結果計算目前工作週期值。In one embodiment, when the comparison result is that the time when the PWM signal is at a high level has changed, the second circuit calculates the current duty cycle value according to the current sampling result.

於一實施例中,第二電路包含判斷單元及運算單元。判斷單元耦接於第一電路與運算單元之間,用以受控於第一電路而判斷計算是否需進行。運算單元耦接於判斷單元與輸出電路之間,用以根據判斷單元的判斷結果選擇性地根據目前取樣結果計算目前工作週期值或沿用先前工作週期值。In one embodiment, the second circuit includes a determination unit and an operation unit. The determination unit is coupled between the first circuit and the operation unit, and is controlled by the first circuit to determine whether the calculation needs to be performed. The operation unit is coupled between the determination unit and the output circuit, and is used for selectively calculating the current duty cycle value or using the previous duty cycle value according to the current sampling result according to the determination result of the determination unit.

於一實施例中,輸出電路包含輸出遲滯單元及數位類比轉換單元。輸出遲滯單元耦接於第二電路與數位類比轉換單元之間,用以根據第二電路所提供的目前工作週期值或先前工作週期值產生輸出遲滯訊號。數位類比轉換單元耦接輸出遲滯單元,用以根據輸出遲滯訊號產生輸出電流。In one embodiment, the output circuit includes an output hysteresis unit and a digital-to-analog conversion unit. The output hysteresis unit is coupled between the second circuit and the digital-to-analog converting unit, and is used for generating an output hysteresis signal according to the current duty cycle value or the previous duty cycle value provided by the second circuit. The digital-to-analog conversion unit is coupled to the output hysteresis unit for generating an output current according to the output hysteresis signal.

依據本發明之另一具體實施例為一種脈寬調變偵測方法。於此實施例中,脈寬調變偵測方法應用於脈寬調變偵測電路且能同時兼顧省電及抗雜訊之功效。脈寬調變偵測電路包含第一電路、第二電路及輸出電路。第二電路耦接於第一電路與輸出電路之間。脈寬調變偵測方法包含下列步驟:Another specific embodiment according to the present invention is a pulse width modulation detection method. In this embodiment, the pulse width modulation detection method is applied to the pulse width modulation detection circuit and can take into account the effects of power saving and anti-noise at the same time. The pulse width modulation detection circuit includes a first circuit, a second circuit and an output circuit. The second circuit is coupled between the first circuit and the output circuit. The PWM detection method includes the following steps:

步驟(a):當第一電路接收到輸入的脈寬調變訊號時,第一電路以非同步取樣到脈寬調變訊號位於高位準的時間而產生目前取樣結果;Step (a): when the first circuit receives the input PWM signal, the first circuit generates the current sampling result by asynchronous sampling to the time when the PWM signal is at a high level;

步驟(b):第一電路比較目前取樣結果與至少一先前取樣結果以產生比較結果,其中比較結果係與脈寬調變訊號位於高位準的時間是否改變有關;Step (b): the first circuit compares the current sampling result with at least one previous sampling result to generate a comparison result, wherein the comparison result is related to whether the time when the PWM signal is at a high level changes;

步驟(c):第二電路受控於第一電路而根據比較結果選擇性地以目前取樣結果計算目前工作週期值或沿用先前工作週期值;以及Step (c): the second circuit is controlled by the first circuit to selectively use the current sampling result to calculate the current duty cycle value or use the previous duty cycle value according to the comparison result; and

步驟(d):輸出電路根據第二電路所提供的目前工作週期值或先前工作週期值產生輸出電流。Step (d): the output circuit generates an output current according to the current duty cycle value or the previous duty cycle value provided by the second circuit.

相較於先前技術,根據本發明之脈寬調變偵測電路及方法能夠同時兼顧省電及抗雜訊之功效,在根據脈寬調變訊號的目前取樣結果與至少一先前取樣結果的比較結果判定脈寬調變訊號位於高位準的時間不變時,停止後續的正常運算程序而直接沿用先前的工作週期值,以達到省電效果,即使在輸入的脈寬調變訊號的工作週期值變大而產生較劇烈的抖動時,根據本發明之脈寬調變偵測電路及方法仍可有效消除脈寬調變訊號抖動所造成的雜訊。Compared with the prior art, the PWM detection circuit and method according to the present invention can take into account the effects of power saving and anti-noise at the same time, when comparing the current sampling result of the PWM signal with at least one previous sampling result As a result, when it is determined that the time when the PWM signal is at a high level does not change, the subsequent normal operation procedure is stopped and the previous duty cycle value is directly used, so as to achieve the effect of power saving, even if the duty cycle value of the input PWM signal is not changed. When the jitter becomes larger and more severe, the PWM detection circuit and method according to the present invention can still effectively eliminate the noise caused by the jitter of the PWM signal.

關於本發明之優點與精神可以藉由以下的發明詳述及所附圖式得到進一步的瞭解。The advantages and spirit of the present invention can be further understood from the following detailed description of the invention and the accompanying drawings.

現在將詳細參考本發明的示範性實施例,並在附圖中說明所述示範性實施例的實例。在圖式及實施方式中所使用相同或類似標號的元件/構件是用來代表相同或類似部分。Reference will now be made in detail to the exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Elements/components using the same or similar numbers in the drawings and the embodiments are intended to represent the same or similar parts.

依據本發明之一具體實施例為一種脈寬調變偵測電路。於此實施例中,脈寬調變偵測電路能同時兼顧省電及抗雜訊之功效。請參照圖1,圖1係繪示此實施例之脈寬調變偵測電路的功能方塊圖。A specific embodiment of the present invention is a pulse width modulation detection circuit. In this embodiment, the PWM detection circuit can achieve both power saving and anti-noise effects. Please refer to FIG. 1 . FIG. 1 is a functional block diagram of the PWM detection circuit of this embodiment.

如圖1所示,脈寬調變偵測電路1包含第一電路10、第二電路12及輸出電路14。第二電路12耦接於第一電路10與輸出電路14之間。As shown in FIG. 1 , the PWM detection circuit 1 includes a first circuit 10 , a second circuit 12 and an output circuit 14 . The second circuit 12 is coupled between the first circuit 10 and the output circuit 14 .

當第一電路10接收到輸入的脈寬調變訊號PWM時,第一電路10會以非同步取樣(Asynchronous sampling)的方式對輸入的脈寬調變訊號PWM進行取樣,以取樣得到脈寬調變訊號位於高位準(High-level)的時間,並據以產生一目前取樣結果CSR。When the first circuit 10 receives the input pulse width modulation signal PWM, the first circuit 10 samples the input pulse width modulation signal PWM in an asynchronous sampling manner to obtain the pulse width modulation signal. When the variable signal is at a high-level, a current sampling result CSR is generated accordingly.

接著,第一電路10還會比較目前取樣結果CSR與至少一先前取樣結果PSR,以產生一比較結果CR至第二電路12。此外,第一電路10還會根據比較結果CR產生一控制訊號SS至第二電路12。其中,比較結果CR係與脈寬調變訊號PWM位於高位準的時間是否改變有關。Next, the first circuit 10 also compares the current sampling result CSR with at least one previous sampling result PSR to generate a comparison result CR to the second circuit 12 . In addition, the first circuit 10 also generates a control signal SS to the second circuit 12 according to the comparison result CR. The comparison result CR is related to whether the time when the pulse width modulation signal PWM is at a high level changes.

第二電路12受控於第一電路10的控制訊號SS而根據比較結果CR選擇性地以目前取樣結果CSR計算一目前工作週期值CDV或沿用一先前工作週期值PDV,並輸出目前工作週期值CDV或先前工作週期值PDV至輸出電路14。輸出電路14再根據第二電路12所提供的目前工作週期值CDV或先前工作週期值PDV產生輸出電流IOUT。The second circuit 12 is controlled by the control signal SS of the first circuit 10 to selectively use the current sampling result CSR to calculate a current duty cycle value CDV or use a previous duty cycle value PDV according to the comparison result CR, and output the current duty cycle value CDV or previous duty cycle value PDV to output circuit 14 . The output circuit 14 then generates the output current IOUT according to the current duty cycle value CDV or the previous duty cycle value PDV provided by the second circuit 12 .

接下來,將分別就第一電路10、第二電路12及輸出電路14的內部電路架構進行詳細說明。Next, the internal circuit structures of the first circuit 10 , the second circuit 12 and the output circuit 14 will be described in detail respectively.

如圖1所示,於此實施例中,第一電路10可包含取樣單元100、去雜訊單元102、比較單元104及切換單元106。取樣單元100耦接去雜訊單元102及比較單元104。去雜訊單元102耦接取樣單元100及比較單元104。比較單元104耦接取樣單元100、切換單元106及第二電路12。切換單元106耦接比較單元104及第二電路12。As shown in FIG. 1 , in this embodiment, the first circuit 10 may include a sampling unit 100 , a de-noising unit 102 , a comparing unit 104 and a switching unit 106 . The sampling unit 100 is coupled to the denoising unit 102 and the comparing unit 104 . The de-noising unit 102 is coupled to the sampling unit 100 and the comparing unit 104 . The comparison unit 104 is coupled to the sampling unit 100 , the switching unit 106 and the second circuit 12 . The switching unit 106 is coupled to the comparing unit 104 and the second circuit 12 .

取樣單元100用以對輸入的脈寬調變訊號PWM進行非同步取樣,以取樣得到脈寬調變訊號PWM位於高位準的時間,並據以產生目前取樣結果CSR。比較單元104用以比較目前取樣結果CSR與至少一先前取樣結果PSR,並據以產生比較結果CR至第二電路12。切換單元106用以根據比較結果CR產生控制訊號SS至第二電路12,以控制第二電路12之運作。The sampling unit 100 is used for asynchronously sampling the input pulse width modulation signal PWM, so as to obtain the time when the pulse width modulation signal PWM is at a high level by sampling, and generate the current sampling result CSR accordingly. The comparing unit 104 is used for comparing the current sampling result CSR with at least one previous sampling result PSR, and generating a comparison result CR to the second circuit 12 accordingly. The switching unit 106 is used for generating a control signal SS to the second circuit 12 according to the comparison result CR to control the operation of the second circuit 12 .

需說明的是,此實施例中之去雜訊單元102用以根據頻率設定一調整門檻值MF,並以先前工作週期值PDV調整該調整門檻值MF後提供給比較單元104,藉以在比較單元104比較目前取樣結果CSR與至少一先前取樣結果PSR時,能夠判斷脈寬調變訊號PWM位於高位準的時間是否改變。It should be noted that the denoising unit 102 in this embodiment is used to set an adjustment threshold value MF according to the frequency, and adjust the adjustment threshold value MF with the previous duty cycle value PDV, and then provide the adjustment threshold value MF to the comparison unit 104, so as to be used in the comparison unit. 104 When comparing the current sampling result CSR with at least one previous sampling result PSR, it can be determined whether the time when the pulse width modulation signal PWM is at a high level changes.

舉例而言,如圖1所示,去雜訊單元102可包含設定器1020、調整器1022及多工器1024。設定器1020耦接於取樣單元100與多工器1024之間。調整器1022耦接於取樣單元100與多工器1024之間。多工器1024分別耦接設定器1020、調整器1022及比較單元104。設定器1020用以根據頻率設定一調整門檻值MF。調整器1022用以透過先前工作週期值PDV調整該調整門檻值MF。多工器1024用以將調整後的調整門檻值MF提供給比較單元104。For example, as shown in FIG. 1 , the de-noise unit 102 may include a setter 1020 , a regulator 1022 and a multiplexer 1024 . The setter 1020 is coupled between the sampling unit 100 and the multiplexer 1024 . The regulator 1022 is coupled between the sampling unit 100 and the multiplexer 1024 . The multiplexer 1024 is respectively coupled to the setter 1020 , the adjuster 1022 and the comparison unit 104 . The setter 1020 is used for setting an adjustment threshold value MF according to the frequency. The adjuster 1022 is used to adjust the adjustment threshold value MF through the previous duty cycle value PDV. The multiplexer 1024 is used for providing the adjusted adjustment threshold value MF to the comparison unit 104 .

如圖1所示,於此實施例中,第二電路12可包含判斷單元120及運算單元122。判斷單元120耦接於第一電路10與運算單元122之間,用以受控於第一電路10的控制訊號SS而判斷後續的計算程序是否仍需進行。運算單元122耦接於判斷單元120與輸出電路14之間,用以根據判斷單元120的判斷結果選擇性地根據目前取樣結果CSR計算目前工作週期值CDV或直接沿用先前工作週期值PDV。As shown in FIG. 1 , in this embodiment, the second circuit 12 may include a determination unit 120 and an operation unit 122 . The determination unit 120 is coupled between the first circuit 10 and the operation unit 122 , and is controlled by the control signal SS of the first circuit 10 to determine whether the subsequent calculation procedure still needs to be performed. The operation unit 122 is coupled between the determination unit 120 and the output circuit 14 for selectively calculating the current duty cycle value CDV or directly using the previous duty cycle value PDV according to the determination result of the determination unit 120 according to the current sampling result CSR.

需說明的是,當比較單元104比較目前取樣結果CSR與至少一先前取樣結果PSR所得到的比較結果CR為脈寬調變訊號PWM位於高位準的時間未改變時,判斷單元120受控於第一電路10的控制訊號SS而判定後續的計算程序不需進行,故運算單元122不進行運算而直接沿用先前工作週期值PDV。當比較單元104比較目前取樣結果CSR與至少一先前取樣結果PSR所得到的比較結果CR為脈寬調變訊號PWM位於高位準的時間有改變時,判斷單元120受控於第一電路10的控制訊號SS而判定後續的計算程序仍需進行,故運算單元122仍進行正常運算而根據目前取樣結果CSR計算目前工作週期值CDV。It should be noted that, when the comparison result CR obtained by comparing the current sampling result CSR and at least one previous sampling result PSR by the comparing unit 104 is that the time when the pulse width modulation signal PWM is at the high level has not changed, the determining unit 120 is controlled by the first sampling result. The control signal SS of a circuit 10 determines that the subsequent calculation process does not need to be performed, so the operation unit 122 does not perform operation and directly uses the previous duty cycle value PDV. When the comparison result CR obtained by comparing the current sampling result CSR with at least one previous sampling result PSR by the comparing unit 104 is that the time when the pulse width modulation signal PWM is at a high level has changed, the determining unit 120 is controlled by the first circuit 10 The signal SS determines that the subsequent calculation process still needs to be performed, so the operation unit 122 still performs normal operation and calculates the current duty cycle value CDV according to the current sampling result CSR.

如圖1所示,於此實施例中,輸出電路14包含輸出遲滯單元140及數位類比轉換單元142。輸出遲滯單元140耦接於第二電路12與數位類比轉換單元142之間,用以根據第二電路12所提供的目前工作週期值CDV或先前工作週期值PDV產生一輸出遲滯訊號HY。數位類比轉換單元142耦接輸出遲滯單元140,用以對輸出遲滯訊號HY進行數位類比轉換,以產生輸出電流IOUT。As shown in FIG. 1 , in this embodiment, the output circuit 14 includes an output hysteresis unit 140 and a digital-to-analog conversion unit 142 . The output hysteresis unit 140 is coupled between the second circuit 12 and the digital-to-analog conversion unit 142 for generating an output hysteresis signal HY according to the current duty cycle value CDV or the previous duty cycle value PDV provided by the second circuit 12 . The digital-to-analog conversion unit 142 is coupled to the output hysteresis unit 140, and is used for performing digital-to-analog conversion on the output hysteresis signal HY to generate the output current IOUT.

於另一實施例中,請參照圖2,去雜訊單元102’亦可用以記錄複數個先前工作週期值(例如PDV1~PDVN,N為大於1的正整數,但不以此為限)並提供給比較單元104。去雜訊單元102’還可根據該複數個先前工作週期值(例如PDV1~PDVN)中之兩兩先前工作週期值(例如PDV1與PDV2,但不以此為限)的平均差編碼為一工作週期變化輪廓(Profile)DP並提供給比較單元104。In another embodiment, please refer to FIG. 2, the de-noising unit 102' can also be used to record a plurality of previous duty cycle values (eg PDV1-PDVN, N is a positive integer greater than 1, but not limited to this) and provided to the comparison unit 104 . The de-noising unit 102 ′ can also encode a work cycle according to the average difference of two previous work cycle values (such as PDV1 and PDV2 , but not limited to) among the plurality of previous work cycle values (such as PDV1 to PDVN). The periodic variation profile (Profile) DP is provided to the comparison unit 104 .

舉例而言,如圖2所示,去雜訊單元102’可包含記錄器1020’、編碼器1022’及多工器1024’。記錄器1020’耦接於取樣單元100與多工器1024’之間。編碼器1022’耦接於取樣單元100與多工器1024’之間。多工器1024’分別耦接記錄器1020’、編碼器1022’及比較單元104。記錄器1020’用以記錄複數個先前工作週期值(例如PDV1~PDVN,N為大於1的正整數,但不以此為限)。編碼器1022’用以根據該複數個先前工作週期值(例如PDV1~PDVN)中之兩兩先前工作週期值(例如PDV1與PDV2)的平均差編碼為一工作週期變化輪廓DP。多工器1024’用以將複數個先前工作週期值(例如PDV1~PDVN)或工作週期變化輪廓DP提供給比較單元104。For example, as shown in Figure 2, the de-noise unit 102' may include a recorder 1020', an encoder 1022', and a multiplexer 1024'. The recorder 1020' is coupled between the sampling unit 100 and the multiplexer 1024'. The encoder 1022' is coupled between the sampling unit 100 and the multiplexer 1024'. The multiplexer 1024' is coupled to the recorder 1020', the encoder 1022' and the comparison unit 104, respectively. The recorder 1020' is used to record a plurality of previous duty cycle values (for example, PDV1˜PDVN, where N is a positive integer greater than 1, but not limited thereto). The encoder 1022' is used for encoding a duty cycle variation profile DP according to the average difference of two previous duty cycle values (eg, PDV1 and PDV2) among the plurality of previous duty cycle values (eg, PDV1-PDVN). The multiplexer 1024' is used to provide a plurality of previous duty cycle values (eg PDV1˜PDVN) or the duty cycle variation profile DP to the comparison unit 104.

若該複數個先前工作週期值(例如PDV1~PDVN)中之兩兩先前工作週期值(例如PDV1與PDV2)之間的振幅小於一調整門檻值MF,則在比較單元104比較目前取樣結果CSR與至少一先前取樣結果PSR時會判定脈寬調變訊號PWM位於高位準的時間改變。若工作週期變化輪廓DP的跳變次數為1且工作週期變化輪廓DP符合一特定輪廓,則在比較單元104比較目前取樣結果CSR與至少一先前取樣結果PSR時會判定脈寬調變訊號PWM位於高位準的時間改變。If the amplitude between the two previous duty cycle values (for example, PDV1 and PDV2 ) among the plurality of previous duty cycle values (for example, PDV1 to PDVN) is smaller than an adjustment threshold value MF, the comparison unit 104 compares the current sampling result CSR with the At least one previous sampling result PSR determines the time change when the pulse width modulation signal PWM is at a high level. If the number of transitions of the duty cycle variation profile DP is 1 and the duty cycle variation profile DP conforms to a specific profile, the comparison unit 104 determines that the pulse width modulation signal PWM is at High level time changes.

表1 PDV1 PDV2 PDV3 平均 工作週期變化輪廓DP 判斷結果 103 103 103 103 111 無跳變 脈寬調變訊號PWM位於高位準的時間不變 103 103 100 102 110 跳變1次且符合特定輪廓 脈寬調變訊號PWM位於高位準的時間改變 103  100 100 101 100 跳變1次但不符特定輪廓 脈寬調變訊號PWM位於高位準的時間不變 100 100 100 100 000 無跳變 脈寬調變訊號PWM位於高位準的時間不變 100 100 103 101 001 跳變1次且符合特定輪廓 脈寬調變訊號PWM位於高位準的時間改變 100 103 103 102 011 跳變1次但不符特定輪廓 脈寬調變訊號PWM位於高位準的時間不變 103 103 103 103 111 無跳變 脈寬調變訊號PWM位於高位準的時間不變 Table 1 PDV1 PDV2 PDV3 average Duty Cycle Variation Profile DP critical result 103 103 103 103 111 No transition The time that the pulse width modulation signal PWM is at a high level does not change 103 103 100 102 110 1 transition and conforms to a specific profile The time change of the pulse width modulation signal PWM at high level 103 100 100 101 100 jumps 1 time but does not conform to a specific contour The time that the pulse width modulation signal PWM is at a high level does not change 100 100 100 100 000 No transition The time that the pulse width modulation signal PWM is at a high level does not change 100 100 103 101 001 Jump 1 time and conform to a specific contour The time change of the pulse width modulation signal PWM at high level 100 103 103 102 011 Jump 1 time but does not match the specific contour The time that the pulse width modulation signal PWM is at a high level does not change 103 103 103 103 111 No transition The time that the pulse width modulation signal PWM is at a high level does not change

舉例而言,如表1所示,若以記錄三個先前工作週期值PDV1~PDV3為例,假設特定輪廓為{110,001},則在比較單元104比較目前取樣結果CSR與至少一先前取樣結果PSR時,只有在工作週期變化輪廓DP跳變1次且符合特定輪廓{110,001}時才會判定脈寬調變訊號PWM位於高位準的時間改變,否則均會判定為脈寬調變訊號PWM位於高位準的時間不變。For example, as shown in Table 1, if three previous duty cycle values PDV1 to PDV3 are recorded as an example, assuming that the specific contour is {110, 001}, the comparison unit 104 compares the current sampling result CSR with at least one previous sampling When the result is PSR, only when the duty cycle change profile DP jumps once and conforms to the specific profile {110, 001} will it be judged that the time of the PWM signal PWM is at a high level, otherwise it will be judged as PWM The time that the signal PWM is at a high level is unchanged.

依據本發明之另一具體實施例為一種脈寬調變偵測方法。於此實施例中,脈寬調變偵測方法應用於脈寬調變偵測電路且能同時兼顧省電及抗雜訊之功效。脈寬調變偵測電路包含第一電路、第二電路及輸出電路。第二電路耦接於第一電路與輸出電路之間。Another specific embodiment according to the present invention is a pulse width modulation detection method. In this embodiment, the pulse width modulation detection method is applied to the pulse width modulation detection circuit and can take into account the effects of power saving and anti-noise at the same time. The pulse width modulation detection circuit includes a first circuit, a second circuit and an output circuit. The second circuit is coupled between the first circuit and the output circuit.

請參照圖3,圖3繪示此實施例中之脈寬調變偵測方法的流程圖。如圖3所示,脈寬調變偵測方法包含下列步驟:Please refer to FIG. 3 . FIG. 3 is a flowchart of the PWM detection method in this embodiment. As shown in Figure 3, the PWM detection method includes the following steps:

步驟S10:當第一電路接收到脈寬調變訊號時,第一電路以非同步取樣到脈寬調變訊號位於高位準的時間而產生目前取樣結果;Step S10: when the first circuit receives the PWM signal, the first circuit generates the current sampling result by asynchronous sampling to the time when the PWM signal is at a high level;

步驟S12:第一電路比較目前取樣結果與至少一先前取樣結果以產生比較結果,其中比較結果係與脈寬調變訊號位於高位準的時間是否改變有關;Step S12: the first circuit compares the current sampling result with at least one previous sampling result to generate a comparison result, wherein the comparison result is related to whether the time when the PWM signal is at a high level changes;

步驟S14:第二電路受控於第一電路而根據比較結果選擇性地以目前取樣結果計算目前工作週期值或沿用先前工作週期值;以及Step S14 : the second circuit is controlled by the first circuit to selectively calculate the current duty cycle value or use the previous duty cycle value with the current sampling result according to the comparison result; and

步驟S16:輸出電路根據第二電路所提供的目前工作週期值或先前工作週期值產生輸出電流。Step S16: The output circuit generates an output current according to the current duty cycle value or the previous duty cycle value provided by the second circuit.

於一實施例中,步驟S14中之第二電路受控於第一電路係指:第一電路根據比較結果產生一控制訊號至第二電路,以控制第二電路之運作,但不以此為限。In an embodiment, the second circuit in step S14 is controlled by the first circuit means: the first circuit generates a control signal to the second circuit according to the comparison result to control the operation of the second circuit, but not limit.

於另一實施例中,脈寬調變偵測方法還可包含下列步驟:In another embodiment, the PWM detection method may further include the following steps:

根據頻率設定一調整門檻值,並以先前工作週期值調整該調整門檻值,藉以判斷脈寬調變訊號位於高位準的時間是否改變。An adjustment threshold value is set according to the frequency, and the adjustment threshold value is adjusted according to the previous duty cycle value, so as to determine whether the time when the PWM signal is at a high level changes.

於另一實施例中,脈寬調變偵測方法還可包含下列步驟:In another embodiment, the PWM detection method may further include the following steps:

記錄複數個先前工作週期值。Multiple previous duty cycle values are recorded.

在實際應用中,若該複數個先前工作週期值中之兩兩先前工作週期值之間的振幅小於一調整門檻值,則步驟S12的比較結果將會判定脈寬調變訊號位於高位準的時間有改變。In practical applications, if the amplitude between the two previous duty cycle values in the plurality of previous duty cycle values is less than an adjustment threshold value, the comparison result in step S12 will determine the time when the PWM signal is at a high level There are changes.

於另一實施例中,脈寬調變偵測方法還可包含下列步驟:In another embodiment, the PWM detection method may further include the following steps:

記錄複數個先前工作週期值並根據該複數個先前工作週期值中之兩兩先前工作週期值的平均差編碼為一工作週期變化輪廓。A plurality of previous duty cycle values are recorded and encoded as a duty cycle variation profile according to the average difference of two previous duty cycle values among the plurality of previous duty cycle values.

在實際應用中,若工作週期變化輪廓的跳變次數為1且工作週期變化輪廓符合一特定輪廓,則步驟S12的比較結果將會判定脈寬調變訊號位於高位準的時間有改變。In practical applications, if the number of transitions of the duty cycle variation profile is 1 and the duty cycle variation profile conforms to a specific profile, the comparison result in step S12 will determine that the time when the PWM signal is at a high level has changed.

需說明的是,當步驟S12的比較結果為脈寬調變訊號位於高位準的時間不變時,步驟S14中之第二電路係沿用先前工作週期值。當步驟S12的比較結果為脈寬調變訊號位於高位準的時間改變時,步驟S14中之第二電路係根據目前取樣結果計算目前工作週期值。It should be noted that, when the comparison result in step S12 is that the time during which the PWM signal is at a high level does not change, the second circuit in step S14 uses the previous duty cycle value. When the comparison result in step S12 is that the time when the PWM signal is at a high level changes, the second circuit in step S14 calculates the current duty cycle value according to the current sampling result.

於實際應用中,步驟S14可包含下列兩個子步驟,但不以此為限:In practical applications, step S14 may include the following two sub-steps, but not limited thereto:

受控於第一電路而判斷後續運算程序是否需進行;以及Controlled by the first circuit to determine whether subsequent operation procedures need to be performed; and

根據上述判斷結果選擇性地根據目前取樣結果計算目前工作週期值或沿用先前工作週期值。According to the above judgment result, the current duty cycle value is selectively calculated according to the current sampling result or the previous duty cycle value is used.

於實際應用中,步驟S16可包含下列兩個子步驟,但不以此為限:In practical applications, step S16 may include the following two sub-steps, but not limited to this:

根據第二電路所提供的目前工作週期值或先前工作週期值產生一輸出遲滯訊號;以及generating an output hysteresis signal according to the current duty cycle value or the previous duty cycle value provided by the second circuit; and

根據輸出遲滯訊號產生輸出電流。The output current is generated according to the output hysteresis signal.

相較於先前技術,根據本發明之脈寬調變偵測電路及方法能夠同時兼顧省電及抗雜訊之功效,在根據脈寬調變訊號的目前取樣結果與至少一先前取樣結果的比較結果判定脈寬調變訊號位於高位準的時間不變時,停止後續的正常運算程序而直接沿用先前的工作週期值,以達到省電效果,即使在輸入的脈寬調變訊號的工作週期值變大而產生較劇烈的抖動時,根據本發明之脈寬調變偵測電路及方法仍可有效消除脈寬調變訊號抖動所造成的雜訊。Compared with the prior art, the PWM detection circuit and method according to the present invention can take into account the effects of power saving and anti-noise at the same time, when comparing the current sampling result of the PWM signal with at least one previous sampling result As a result, when it is determined that the time when the PWM signal is at a high level does not change, the subsequent normal operation procedure is stopped and the previous duty cycle value is directly used, so as to achieve the effect of power saving, even if the duty cycle value of the input PWM signal is not changed. When the jitter becomes larger and more severe, the PWM detection circuit and method according to the present invention can still effectively eliminate the noise caused by the jitter of the PWM signal.

S10~S16:步驟 1:脈寬調變偵測電路 10:第一電路 12:第二電路 14:輸出電路 PWM:脈寬調變訊號 CSR:目前取樣結果 PSR:先前取樣結果 CR:比較結果 SS:控制訊號 CDV:目前工作週期值 PDV:先前工作週期值 IOUT:輸出電流 100:取樣單元 102:去雜訊單元 104:比較單元 106:切換單元 MF:調整門檻值 1020:設定器 1022:調整器 1024:多工器 120:判斷單元 122:運算單元 140:輸出遲滯單元 142:數位類比轉換單元 HY:輸出遲滯訊號 102’:去雜訊單元 PDV1~PDVN:先前工作週期值 DP:工作週期變化輪廓 1020’:記錄器 1022’:編碼器 1024’:多工器S10~S16: Steps 1: PWM detection circuit 10: The first circuit 12: Second circuit 14: Output circuit PWM: Pulse Width Modulation Signal CSR: Current Sampling Results PSR: previous sampling result CR: Compare Results SS: control signal CDV: Current duty cycle value PDV: previous duty cycle value IOUT: output current 100: Sampling unit 102: De-noise unit 104: Comparison Unit 106: Switch unit MF: Adjust the threshold value 1020: Setter 1022: Adjuster 1024: Multiplexer 120: Judgment unit 122: Operation unit 140: Output hysteresis unit 142: Digital to analog conversion unit HY: output hysteresis signal 102': De-noise unit PDV1~PDVN: previous duty cycle value DP: duty cycle variation profile 1020’: Recorder 1022': encoder 1024': Multiplexer

本發明所附圖式說明如下: 圖1係繪示根據本發明之一較佳具體實施例中之脈寬調變偵測電路的功能方塊圖。 圖2係繪示根據本發明之另一較佳具體實施例中之脈寬調變偵測電路的功能方塊圖。 圖3繪示根據本發明之另一較佳具體實施例中之脈寬調變偵測方法的流程圖。The accompanying drawings of the present invention are described as follows: FIG. 1 is a functional block diagram of a PWM detection circuit according to a preferred embodiment of the present invention. FIG. 2 is a functional block diagram of a PWM detection circuit according to another preferred embodiment of the present invention. FIG. 3 is a flowchart illustrating a PWM detection method according to another preferred embodiment of the present invention.

S10~S16:步驟S10~S16: Steps

Claims (20)

一種脈寬調變偵測電路,包含: 一第一電路,當該第一電路接收到一脈寬調變訊號時,該第一電路以非同步取樣到該脈寬調變訊號位於高位準的時間而產生一目前取樣結果,並比較該目前取樣結果與至少一先前取樣結果以產生一比較結果,其中該比較結果係與該脈寬調變訊號位於高位準的時間是否改變有關; 一第二電路,耦接該第一電路,該第二電路受控於該第一電路而根據該比較結果選擇性地以該目前取樣結果計算一目前工作週期值或沿用一先前工作週期值;以及 一輸出電路,耦接該第二電路,用以根據該第二電路所提供的該目前工作週期值或該先前工作週期值產生一輸出電流。A pulse width modulation detection circuit, comprising: a first circuit, when the first circuit receives a PWM signal, the first circuit generates a current sampling result by asynchronously sampling the time when the PWM signal is at a high level, and compares the The current sampling result and at least one previous sampling result are used to generate a comparison result, wherein the comparison result is related to whether the time when the PWM signal is at a high level changes; a second circuit coupled to the first circuit, the second circuit is controlled by the first circuit to selectively calculate a current duty cycle value or use a previous duty cycle value with the current sampling result according to the comparison result; as well as An output circuit is coupled to the second circuit for generating an output current according to the current duty cycle value or the previous duty cycle value provided by the second circuit. 如申請專利範圍第1項所述之脈寬調變偵測電路,其中該第一電路包含: 一取樣單元,用以對該脈寬調變訊號位於高位準的時間進行非同步取樣,以產生該目前取樣結果。The pulse width modulation detection circuit as described in claim 1, wherein the first circuit comprises: A sampling unit is used for asynchronously sampling the time when the PWM signal is at a high level to generate the current sampling result. 如申請專利範圍第1項所述之脈寬調變偵測電路,其中該第一電路包含: 一比較單元,用以比較該目前取樣結果與該至少一先前取樣結果,以產生該比較結果。The pulse width modulation detection circuit as described in claim 1, wherein the first circuit comprises: a comparison unit for comparing the current sampling result with the at least one previous sampling result to generate the comparison result. 如申請專利範圍第1項所述之脈寬調變偵測電路,其中該第一電路包含: 一切換單元,耦接該第二電路,用以根據該比較結果產生一控制訊號至該第二電路,以控制該第二電路之運作。The pulse width modulation detection circuit as described in claim 1, wherein the first circuit comprises: A switching unit is coupled to the second circuit for generating a control signal to the second circuit according to the comparison result to control the operation of the second circuit. 如申請專利範圍第3項所述之脈寬調變偵測電路,其中該第一電路包含: 一去雜訊單元,用以根據頻率設定一調整門檻值,並以該先前工作週期值調整該調整門檻值後提供給該比較單元,以判斷該脈寬調變訊號位於高位準的時間是否改變。The pulse width modulation detection circuit as described in claim 3, wherein the first circuit comprises: an anti-noise unit for setting an adjustment threshold value according to the frequency, and after adjusting the adjustment threshold value with the previous duty cycle value and providing it to the comparison unit to determine whether the time when the PWM signal is at a high level has changed . 如申請專利範圍第1項所述之脈寬調變偵測電路,其中該第一電路包含: 一去雜訊單元,記錄複數個先前工作週期值,若該複數個先前工作週期值中之兩兩先前工作週期值之間的振幅小於一調整門檻值,則該第一電路判定該脈寬調變訊號位於高位準的時間有改變。The pulse width modulation detection circuit as described in claim 1, wherein the first circuit comprises: a de-noising unit for recording a plurality of previous duty cycle values, and if the amplitude between two previous duty cycle values in the plurality of previous duty cycle values is less than an adjustment threshold, the first circuit determines that the pulse width modulation The time when the variable signal is at a high level changes. 如申請專利範圍第1項所述之脈寬調變偵測電路,其中該第一電路包含: 一去雜訊單元,記錄複數個先前工作週期值並根據該複數個先前工作週期值中之兩兩先前工作週期值的平均差編碼為一工作週期變化輪廓(Profile),若該工作週期變化輪廓的跳變次數為1且該工作週期變化輪廓符合一特定輪廓,則該第一電路判定該脈寬調變訊號位於高位準的時間有改變。The pulse width modulation detection circuit as described in claim 1, wherein the first circuit comprises: a de-noising unit that records a plurality of previous duty cycle values and encodes a duty cycle change profile (Profile) according to the average difference of two previous duty cycle values among the plurality of previous duty cycle values, if the duty cycle change profile The number of transitions is 1 and the duty cycle variation profile conforms to a specific profile, then the first circuit determines that the time when the PWM signal is at a high level has changed. 如申請專利範圍第1項所述之脈寬調變偵測電路,其中當該比較結果為該脈寬調變訊號位於高位準的時間未改變時,該第二電路沿用該先前工作週期值。The PWM detection circuit of claim 1, wherein when the comparison result is that the time during which the PWM signal is at a high level has not changed, the second circuit continues to use the previous duty cycle value. 如申請專利範圍第1項所述之脈寬調變偵測電路,其中當該比較結果為該脈寬調變訊號位於高位準的時間有改變時,該第二電路根據該目前取樣結果計算該目前工作週期值。The PWM detection circuit as described in claim 1, wherein when the comparison result is that the time when the PWM signal is at a high level has changed, the second circuit calculates the current sampling result according to the current sampling result. Current duty cycle value. 如申請專利範圍第1項所述之脈寬調變偵測電路,其中該第二電路包含: 一判斷單元,耦接該第一電路,用以受控於該第一電路而判斷後續運算程序是否需進行;以及 一運算單元,耦接於該判斷單元與該輸出電路之間,用以根據該判斷單元的判斷結果選擇性地根據該目前取樣結果計算該目前工作週期值或沿用該先前工作週期值。The pulse width modulation detection circuit as described in claim 1, wherein the second circuit comprises: a judging unit, coupled to the first circuit, for being controlled by the first circuit and judging whether the subsequent operation procedure needs to be performed; and an arithmetic unit coupled between the judging unit and the output circuit for selectively calculating the current duty cycle value according to the current sampling result or continuing to use the previous duty cycle value according to the judging result of the judging unit. 如申請專利範圍第1項所述之脈寬調變偵測電路,其中該輸出電路包含: 一輸出遲滯單元,耦接該第二電路,用以根據該第二電路所提供的該目前工作週期值或該先前工作週期值產生一輸出遲滯訊號;以及 一數位類比轉換單元,耦接該輸出遲滯單元,用以根據該輸出遲滯訊號產生該輸出電流。The pulse width modulation detection circuit as described in claim 1, wherein the output circuit comprises: an output hysteresis unit, coupled to the second circuit, for generating an output hysteresis signal according to the current duty cycle value or the previous duty cycle value provided by the second circuit; and A digital-to-analog conversion unit is coupled to the output hysteresis unit for generating the output current according to the output hysteresis signal. 一種脈寬調變偵測方法,應用於一脈寬調變偵測電路,該脈寬調變偵測電路包含一第一電路、一第二電路及一輸出電路,該第二電路耦接於該第一電路與該輸出電路之間,該脈寬調變偵測方法包含下列步驟: (a)當該第一電路接收到一脈寬調變訊號時,該第一電路以非同步取樣到該脈寬調變訊號位於高位準的時間而產生一目前取樣結果; (b)該第一電路比較該目前取樣結果與至少一先前取樣結果以產生一比較結果,其中該比較結果係與該脈寬調變訊號位於高位準的時間是否改變有關; (c)該第二電路受控於該第一電路而根據該比較結果選擇性地以該目前取樣結果計算一目前工作週期值或沿用一先前工作週期值;以及 (d)該輸出電路根據該第二電路所提供的該目前工作週期值或該先前工作週期值產生一輸出電流。A pulse width modulation detection method is applied to a pulse width modulation detection circuit, the pulse width modulation detection circuit comprises a first circuit, a second circuit and an output circuit, the second circuit is coupled to Between the first circuit and the output circuit, the PWM detection method includes the following steps: (a) when the first circuit receives a PWM signal, the first circuit generates a current sampling result by asynchronously sampling to the time when the PWM signal is at a high level; (b) the first circuit compares the current sampling result with at least one previous sampling result to generate a comparison result, wherein the comparison result is related to whether the time when the PWM signal is at a high level changes; (c) the second circuit is controlled by the first circuit to selectively use the current sampling result to calculate a current duty cycle value or use a previous duty cycle value according to the comparison result; and (d) The output circuit generates an output current according to the current duty cycle value or the previous duty cycle value provided by the second circuit. 如申請專利範圍第12項所述之脈寬調變偵測方法,還包含: 該第一電路根據該比較結果產生一控制訊號至該第二電路,以控制該第二電路之運作。The pulse width modulation detection method as described in item 12 of the patent application scope further includes: The first circuit generates a control signal to the second circuit according to the comparison result to control the operation of the second circuit. 如申請專利範圍第12項所述之脈寬調變偵測方法,還包含: 根據頻率設定一調整門檻值,並以該先前工作週期值調整該調整門檻值,以判斷該脈寬調變訊號位於高位準的時間是否改變。The pulse width modulation detection method as described in item 12 of the patent application scope further includes: An adjustment threshold value is set according to the frequency, and the adjustment threshold value is adjusted according to the previous duty cycle value, so as to determine whether the time during which the PWM signal is at a high level changes. 如申請專利範圍第12項所述之脈寬調變偵測方法,還包含: 記錄複數個先前工作週期值,若該複數個先前工作週期值中之兩兩先前工作週期值之間的振幅小於一調整門檻值,則判定該脈寬調變訊號位於高位準的時間有改變。The pulse width modulation detection method as described in item 12 of the patent application scope further includes: A plurality of previous duty cycle values are recorded, and if the amplitude between two previous duty cycle values in the plurality of previous duty cycle values is less than an adjustment threshold, it is determined that the time when the PWM signal is at a high level has changed. 如申請專利範圍第12項所述之脈寬調變偵測方法,還包含: 記錄複數個先前工作週期值並根據該複數個先前工作週期值中之兩兩先前工作週期值的平均差編碼為一工作週期變化輪廓,若該工作週期變化輪廓的跳變次數為1且該工作週期變化輪廓符合一特定輪廓,則判定該脈寬調變訊號位於高位準的時間有改變。The pulse width modulation detection method as described in item 12 of the patent application scope further includes: Record a plurality of previous duty cycle values and encode it as a duty cycle variation profile according to the average difference between the previous duty cycle values of the plurality of previous duty cycle values, if the number of transitions of the duty cycle profile is 1 and the work If the periodic variation profile conforms to a specific profile, it is determined that the time when the PWM signal is at a high level has changed. 如申請專利範圍第12項所述之脈寬調變偵測方法,其中當該比較結果為該脈寬調變訊號位於高位準的時間未改變時,步驟(c)中之該第二電路係沿用該先前工作週期值。The PWM detection method as described in claim 12, wherein when the comparison result is that the time when the PWM signal is at a high level has not changed, the second circuit in step (c) is This previous duty cycle value is inherited. 如申請專利範圍第12項所述之脈寬調變偵測方法,其中當該比較結果為該脈寬調變訊號位於高位準的時間有改變時,步驟(c)中之該第二電路係根據該目前取樣結果計算該目前工作週期值。The PWM detection method described in claim 12, wherein when the comparison result is that the time when the PWM signal is at a high level has changed, the second circuit in step (c) is The current duty cycle value is calculated according to the current sampling result. 如申請專利範圍第12項所述之脈寬調變偵測方法,其中步驟(c)包含: (c1)受控於該第一電路而判斷後續運算程序是否需進行;以及 (c2)根據步驟(c1)的判斷結果選擇性地根據該目前取樣結果計算該目前工作週期值或沿用該先前工作週期值。The pulse width modulation detection method as described in item 12 of the claimed scope, wherein step (c) comprises: (c1) is controlled by the first circuit to determine whether subsequent operation procedures need to be performed; and (c2) According to the judgment result of step (c1), selectively calculate the current duty cycle value or use the previous duty cycle value according to the current sampling result. 如申請專利範圍第12項所述之脈寬調變偵測方法,其中步驟(d)包含: (d1)根據該第二電路所提供的該目前工作週期值或該先前工作週期值產生一輸出遲滯訊號;以及 (d2)根據該輸出遲滯訊號產生該輸出電流。The pulse width modulation detection method as described in item 12 of the claimed scope, wherein step (d) comprises: (d1) generating an output hysteresis signal according to the current duty cycle value or the previous duty cycle value provided by the second circuit; and (d2) generating the output current according to the output hysteresis signal.
TW109119695A 2020-06-11 2020-06-11 Pulse-width modulation detection circuit and method for power saving and anti-noise TWI760766B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW109119695A TWI760766B (en) 2020-06-11 2020-06-11 Pulse-width modulation detection circuit and method for power saving and anti-noise
CN202010650658.2A CN113810030B (en) 2020-06-11 2020-07-08 Pulse width modulation detection circuit and method for power saving and noise immunity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109119695A TWI760766B (en) 2020-06-11 2020-06-11 Pulse-width modulation detection circuit and method for power saving and anti-noise

Publications (2)

Publication Number Publication Date
TW202146913A true TW202146913A (en) 2021-12-16
TWI760766B TWI760766B (en) 2022-04-11

Family

ID=78943521

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109119695A TWI760766B (en) 2020-06-11 2020-06-11 Pulse-width modulation detection circuit and method for power saving and anti-noise

Country Status (2)

Country Link
CN (1) CN113810030B (en)
TW (1) TWI760766B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116125148A (en) * 2022-12-23 2023-05-16 天津兆讯电子技术有限公司 Pulse signal width detection circuit and chip

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2698580B2 (en) * 1987-03-09 1998-01-19 沖電気工業株式会社 Voltage / pulse width conversion circuit
JP4331348B2 (en) * 1999-07-20 2009-09-16 エルジー エレクトロニクス インコーポレイティド Inverter control signal generator using pointer method
JP4576970B2 (en) * 2004-01-06 2010-11-10 株式会社明電舎 Pulse width modulation inverter device and control method thereof
US7286947B1 (en) * 2006-04-13 2007-10-23 International Business Machines Corporation Method and apparatus for determining jitter and pulse width from clock signal comparisons
US7872522B2 (en) * 2006-11-15 2011-01-18 Analog Devices, Inc. Noise reduction system and method for audio switching amplifier
TWI320988B (en) * 2006-12-01 2010-02-21 Nuvoton Technology Corp Dc-dc converter and related control apparatus and signal generating method
JP2008167091A (en) * 2006-12-28 2008-07-17 Matsushita Electric Ind Co Ltd Triangular wave generation circuit and PWM modulation circuit
US8643292B2 (en) * 2009-11-12 2014-02-04 Richtek Technology Corporation Digital dimming device and digital dimming method
TWI422269B (en) * 2010-07-14 2014-01-01 Richtek Technology Corp Led controller with de-flicker function and led de-flicker circuit and method thereof
CN108521229B (en) * 2018-03-15 2019-08-23 深圳市爱克斯达电子有限公司 A kind of high-precision pwm signal modulator approach and its modulating device, power supply device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116125148A (en) * 2022-12-23 2023-05-16 天津兆讯电子技术有限公司 Pulse signal width detection circuit and chip

Also Published As

Publication number Publication date
CN113810030B (en) 2024-06-04
TWI760766B (en) 2022-04-11
CN113810030A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
KR101388540B1 (en) Method and device for clipping control
TWI760766B (en) Pulse-width modulation detection circuit and method for power saving and anti-noise
CN104935347B (en) D/A converting means, D/A transform methods and electronic musical instrument
WO2001095496A1 (en) Compression method and apparatus, expansion method and apparatus, compression and expansion system, recorded medium, program
KR970009871B1 (en) Sampling rate converter
JP4874398B2 (en) Reception circuit, conversion table creation method for AD converter of reception circuit, and signal transmission system
JPS62289016A (en) Offset automatic correction analog-digital conversion circuit
US20170126241A1 (en) Low power sigma-delta modulator architecture capable of correcting dynamic range automatically, method for implementing low power circuit thereof, and method for correcting and extending dynamic range of sigma-delta modulator automatically
CN102906648B (en) Automatic tuning method and device for feedforward term for overshoot suppression during step following
CN119680833A (en) A method for monitoring glue dispensing accuracy by comparing pulse numbers
CN102638233B (en) The automatic level control circuit with improved attack action of voice signal
JP6595256B2 (en) Volume control device
TWI717659B (en) Signal processing system and method thereof
US6014613A (en) Compensation method with control systems, namely with high delay, and corresponding compensation control system
CN110235373B (en) D/A conversion device, method, storage medium, electronic musical instrument and information processing device
JP2006086681A (en) Data correction apparatus and data correction method for A / D converter
JP2002076901A (en) Modulator with mixed Δ and ΔΣ modulation, oversampling type D / A converter and A / D converter
WO2025052664A1 (en) Digital controller and digital control power supply
CN113541624B (en) Small signal processing method for power amplifier control
JPH0145254B2 (en)
CN116633276A (en) Power supply voltage control method, audio power amplification system, electronic equipment and chip
JP2006121139A (en) Digital PWM means
TW202349447A (en) Adaptive predictive control system
JP3189384B2 (en) D / A conversion circuit
Miao et al. An Adaptive IIR Lattice Filtering Algorithm