Audio processing device and audio processing method
Through the audio processing device and method, the problem of double switching frequency of Class D amplifier is solved, and electromagnetic interference and power consumption are reduced by combining input pulses, ensuring the stable output of Class D amplifier.
Patent Information
- Application Number
- CN202310576372.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-11-22
AI Technical Summary
The double switching frequency problem of Class D amplifiers in ternary modulation mode results in distortion and power consumption of the output signal.
Using an audio processing device and method, the two input pulses are combined into one output pulse through the first sampling circuit and the first sum of the pulse widths of the two input pulses, thereby avoiding the Class D amplifier. double switching frequency.
The electromagnetic interference effect and switching losses are reduced, and the stability of the PWM output signal is ensured when driving the load, and the impact of increasing the pulse width of the input signal is avoided.
Smart Images

Figure CN119012074A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an audio processing device and an audio processing method. More specifically, the present disclosure relates to an audio processing device and an audio processing method for solving the "double switching frequency" problem in a ternary modulation mode of a class D amplifier. Background Art
[0002] Class D amplifiers are commonly used in audio amplification technology and are popular for their high efficiency. Class D amplifiers can provide two pulse width modulation (PWM) signals to drive loads (e.g., audio speakers). These two PWM signals can form ternary modulation or quadrature modulation, corresponding to the ternary modulation mode (T-mode) and quadrature modulation mode (Q-mode) of the Class D amplifier.
[0003] The high efficiency of Class D amplifiers is mainly due to the switching mechanism of the modulation signal. However, in T mode, when the pulse width of the output signal (for example: Figure 2 When the idle pulse width is 100 nanoseconds, the output signal pulse width is greater than 200 nanoseconds, and the switching frequency is twice as high as when the output signal pulse width is smaller (for example, when the idle pulse width is 100 nanoseconds, the output signal pulse width is less than 200 nanoseconds). The idle pulse width refers to when the input signal (for example: Figure 2 The pulse width of the output signal provided when the difference between the input signal INP and the input signal INN is zero.
[0004] Figure 1A It is a schematic diagram for describing the T-mode signal TP01 and the T-mode signal TN01 generated by the class-D amplifier when the pulse width of the output signal is small. Figure 1B The schematic diagram for describing the T-mode signal TP02 and the T-mode signal TN02 generated by the class D amplifier when the pulse width of the output signal is large, wherein the T-mode signal TP01 and the T-mode signal TP02 are positive output signals, and the T-mode signal TN01 and the T-mode signal TN02 are negative output signals.
[0005] Please also refer to Figure 1A and Figure 1BWhen the pulse width of the output signal is small, each of the T-mode signal TP01 and the T-mode signal TN01 rises to a high potential in each cycle of the triangular wave signal VTRI or the clock signal CK_FSW (that is, the class D amplifier switches between positive and negative signals). However, when the pulse width of the output signal is large, one of the T-mode signal TP02 and the T-mode signal TN02 (in this example, the T-mode signal TP02) rises to a high potential twice in each triangular wave, that is, Figure 1B As shown in the dotted circle in the figure, this also results in doubling the number of switching times of the Class D amplifier. The above situation can be generally referred to as the "double switching frequency" problem. Once the switching frequency is doubled, the distortion of the output signal (for example, electromagnetic interference (EMI) effect) and power consumption (i.e., switching loss) will also increase. In view of the above situation, how to technically overcome the "double switching frequency" problem is indeed a technical problem that needs to be solved in the art. Summary of the invention
[0006] In order to at least solve the above problems, the present invention provides an audio processing device. The audio processing device may include a first sampling circuit and a first summing circuit coupled to the first sampling circuit. The first sampling circuit may be used to sample a pulse width of a first input pulse of a pulse width modulated input signal starting from a first time point of a first half of a first pulse cycle of a clock signal. The first summing circuit may be used to generate a first output pulse of a pulse width modulated output signal starting from a second time point of a second half of the first pulse cycle. The pulse width of the first output pulse is the sum of the pulse width of the first input pulse and the pulse width of a second input pulse of the pulse width modulated input signal, and the second input pulse is the next pulse after the first input pulse.
[0007] In order to at least solve the above problems, the present invention also provides an audio processing method. The audio processing method may include the following steps:
[0008] (A) sampling, by an electronic device, a pulse width of a first input pulse of a pulse width modulated input signal starting from a first time point of a first half of a first pulse cycle of a clock signal;
[0009] (B) The electronic device generates a first output pulse of a pulse width modulated output signal starting from a second time point in a second half of the first pulse cycle, wherein a pulse width of the first output pulse is the sum of the pulse width of the first input pulse and a pulse width of a second input pulse of the pulse width modulated input signal, and the second input pulse is the next pulse after the first input pulse.
[0010] The audio processing device and audio processing method provided by the present disclosure can combine two input pulses into one output pulse, because the pulse width of the output pulse is equal to the sum of the pulse widths of the two input pulses, thereby avoiding the problem of double switching frequency in the Class D amplifier. After this processing, even in the case of a large pulse width, the overall switching frequency of the Class D amplifier corresponding to the output PWM signal will be consistent with the frequency of the triangular wave signal VTRI, thereby reducing electromagnetic interference effects and switching losses, and the load driven by the PWM output signal (such as a speaker) will not be affected by the increase in the input signal pulse width. Based on this, the audio processing device and audio processing method provided by the present disclosure do solve the above-mentioned technical problems in the technical field to which the present invention belongs.
[0011] The content of the invention describes the core concepts of the present invention as a whole, and covers the problems that can be solved by the present invention, the means that can be adopted, and the technical effects that can be achieved, so as to provide a basic understanding of the present invention to those skilled in the art to which the present invention belongs. However, it should be understood that the content of the invention is not intended to summarize all embodiments of the present invention, but only presents the core concepts of the present invention in a simple form as an introduction to the subsequent detailed description. The detailed technology and implementation methods of the present invention are described below in conjunction with the accompanying drawings so that those skilled in the art to which the present invention belongs can understand the technical features of the claimed invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings may assist in understanding the present disclosure, wherein:
[0013] Figure 1A A schematic diagram for describing a PWM signal generated by a class D amplifier when the pulse width of the output signal is small;
[0014] Figure 1B A schematic diagram for describing a PWM signal generated by a class-D amplifier when the pulse width of the output signal is large;
[0015] Figure 2 A schematic diagram of an audio processing device used by an audio system according to one or more embodiments of the present disclosure is depicted;
[0016] Figure 3 A schematic diagram for describing a sampling circuit and a summing circuit in an audio processing device according to one or more embodiments of the present disclosure;
[0017] Figure 4 A schematic diagram for describing signals processed and output by an audio processing device according to one or more embodiments of the present disclosure; and
[0018] Figure 5 The present invention is a flowchart illustrating an audio processing method according to one or more embodiments of the present invention.
[0019] Figure 2 to Figure 4The contents shown are only examples for describing the embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
[0020]
Explanation of symbols
[0021] As shown below:
[0022] 1: Audio System
[0023] 11, 12: Electronic devices
[0024] 111, 121: Sampling circuit
[0025] 112, 122: Summing circuit
[0026] 5: Audio processing method
[0027] 501, 502: Steps
[0028] CK_FSW: clock signal
[0029] TN01, TN02, TP01, TP02: T mode signal
[0030] VTRI: triangle wave signal
[0031] A1~A4: Pulse of T mode signal TP
[0032] B1, B2: output pulse
[0033] C1, C2, C3, C4: capacitors
[0034] CP1, CP2: Pulses of triangular wave signals
[0035] F1, F2: SR trigger
[0036] G1: OR gate
[0037] INN, INP: Input signal
[0038] M1, M2: Comparator
[0039] OUTLN, OUTLP: output pins
[0040] P1, P2: Imaginary signals
[0041] PVCCL: Left channel power supply
[0042] QN, QP: Q mode signal
[0043] QPD: Delayed Q-mode signal
[0044] S1, S2: Setting signal
[0045] T1~T8: Time point
[0046] TN, TNP, TP, TPP: T mode signal
[0047] W1, W2, W3, W4: switch DETAILED DESCRIPTION
[0048] The audio processing device and audio processing method provided by the present invention will be explained below through implementation modes. However, these implementation modes are not intended to limit the present invention to any environment, application or method as described in these implementation modes. Therefore, the description of the implementation modes is only for the purpose of explaining the present invention, and is not intended to limit the scope of the present invention. It should be understood that in the following implementation modes and drawings, elements that are not directly related to the present invention have been omitted and are not shown, and the size of each element and the size ratio between the elements are only for illustration, and are not intended to limit the scope of the present invention.
[0049] Figure 2 FIG. 1 is a schematic diagram of an audio processing device used by an audio system according to one or more embodiments of the present disclosure. Figure 2 An audio system 1 can be used to cooperate with an oscillator circuit to generate a pair of Q-mode signals QP and QN based on a pair of input signals INP and INN, and further generate a pair of T-mode signals TP and TN based on the Q-mode signal QP and the Q-mode signal QN.
[0050] When processing small input signals, the delay mechanism helps to ensure the quality of the signal. Therefore, in some embodiments, one of the Q-mode signal QP and the Q-mode signal QN can be delayed. Figure 2 In the illustrated scenario, the positive Q-mode signal QP may be delayed by the delay circuit to become a delayed Q-mode signal QPD.
[0051] In some embodiments, a pair of T-mode signals TP and TN may be derived from the Q-mode signals QP and QN according to the following rule:
[0052] TP = XOR(QPD*QN)*QPD (Formula 1)
[0053] TN=XOR(QPD*QN)*QN (Formula 2)
[0054] Among them, "TP" and "TN" are the positive signal and negative signal of the T mode signal respectively, "QPD" is the delayed positive signal of the Q mode signal, and "QN" is the negative signal of the Q mode signal.
[0055] However, the delay mechanism described above can cause one of the T-mode signals (e.g. Figure 4The T-mode signal TP having pulses with different pulse widths (the details of which will be described later) generates an asymmetric pulse width.
[0056] Even if the pulse width of any one of the T-mode signal TP and the T-mode signal TN is asymmetric, the audio processing device of the present disclosure (hereinafter referred to as "electronic device 11" and "electronic device 12") can still solve the double switching frequency problem of the T-mode signal TP and the T-mode signal TN. Therefore, the audio system 1 can use the electronic device 11 and the electronic device 12 to generate a pair of improved T-mode signals TPP and TNP, which are then connected to the power supply (for example, Figure 2 The output stage of the left channel power supply PVCCL) shown is coupled to a pair of output pins OUTLP and OUTLN.
[0057] related Figure 2 The manner in which the T-mode logic circuit generates T-mode signals TP and TN according to the Q-mode signal QP or the delayed Q-mode signal QPD and the Q-mode signal QN, the delay mechanism, the coordinated oscillator circuit, and the details of the output stage can be understood by those skilled in the art to which the present invention belongs, and thus will not be described in detail in this disclosure. This disclosure mainly focuses on the description of the electronic devices 11 and 12 (more mainly the electronic device 11).
[0058] The electronic device 11 and the electronic device 12 (i.e., audio processing devices) of the present disclosure can be used to process T-mode signals TP and TN respectively. For example, the electronic device 11 can be used to process the T-mode signal TP to generate the T-mode signal TPP, while the electronic device 12 can be used to process the T-mode signal TN to generate the T-mode signal TNP.
[0059] The structures of the electronic device 11 and the electronic device 12 may be substantially the same, so those skilled in the art may understand the corresponding processing method, function and result of the electronic device 12 according to the following description of the electronic device 11 processing the T-mode signal TP.
[0060] Please refer to Figure 3 and Figure 4 . The electronic device 11 may include a sampling circuit 111 and a summing circuit 112. The summing circuit 112 may be coupled to the sampling circuit 111. The sampling circuit 111 may be used to sample the pulse width of a pulse A1 of the T-mode signal TP starting from a time point T1, and the time point T1 may be located in a first half (e.g., the first half) of a first pulse cycle of the triangular wave signal VTRI. The summing circuit 112 may be used to generate an output pulse B1 of the T-mode signal TPP starting from a time point T2 in the second half (e.g., the second half) of the first pulse cycle. The pulse width of the output pulse B1 may be the sum of the pulse widths of the pulse A1 and the next pulse A2 of the T-mode signal TP, as Figure 4 shown.
[0061] Since the period of the triangular wave signal VTRI can be consistent with the above-mentioned clock signal CK_FSW, it can also be regarded as a clock signal. In the present embodiment, the first half and the second half of the first pulse period can be the rising edge and the falling edge of a pulse CP1 of the triangular wave signal VTRI, respectively. However, the first half and the second half of the "pulse period" do not necessarily refer to the time interval corresponding to the rising edge and the falling edge of the same pulse. In some embodiments, the first half and the second half of the "pulse period" can refer to the falling edge of a first pulse and the falling edge of a second pulse following the first pulse.
[0062] like Figure 3 As shown, in some embodiments, the sampling circuit 111 may include a switch W1 and a capacitor C1 coupled to the switch W1. On the other hand, the summing circuit 112 may include a switch W2, a capacitor C2 coupled to the switch W2, a comparator M1, and a set-reset (SR) flip-flop F1. The positive input and the negative input of the comparator M1 are coupled to the capacitor C2 and the capacitor C1, respectively. The set pin and the reset pin of the SR flip-flop F1 may be coupled to the source of the set signal S1 and the output of the comparator M1, respectively.
[0063] Figure 4 A hypothetical signal P1 is depicted to show the potential levels of capacitors C1 (solid line) and C2 (dashed line). The sampling phase of the electronic device 11 may start by turning on the switch W1 at time T1, so that the capacitor C1 is charged when the T-mode signal TP reaches a high potential at the positive edge of the pulse A1. The capacitor C1 may continue to be charged until the switch W1 is turned off at a time T3 on the negative edge of the pulse A1. Therefore, the pulse width of the pulse A1 may be sampled by measuring the charged capacitor C1.
[0064] It should be noted that the time point T1 does not necessarily need to coincide with the positive edge of the pulse A1 . However, the time point T1 (ie, the time point when the switch W1 is turned on) needs to be no later than the positive edge of the pulse A1 .
[0065] On the other hand, the summing stage of the electronic device 11 may start by pulling the T-mode signal TPP to a high level at time point T2 through the summing circuit 112. More specifically, the setting signal S1 of the SR flip-flop F1 may be pulled to a high level in response to the occurrence of the positive edge of the pulse A2, thereby causing the positive edge of the output pulse B1 to occur.
[0066] Switch W2 can be turned on at the negative edge of pulse A2, so that capacitor C2 is charged. The T-mode signal TPP can maintain a high potential until switch W2 is turned off. When the potential of capacitor C2 is equal to the potential of capacitor C1, the dotted line and the solid line meet, as shown in signal P1. More specifically, when the potential of capacitor C2 is equal to the potential of capacitor C1, the output of comparator M1 reaches a high potential, and the output can be used as the "R" signal (i.e., reset / reset signal) of SR trigger F1. Therefore, as a result of reset (reset), the output of SR trigger F1 (i.e., T-mode signal TPP) can be pulled down to a low potential.
[0067] Since the capacitor C1 and the capacitor C2 are charged to the same potential by the same power source or two power sources providing substantially equal currents, the length of time that the T-mode signal TPP is at a high potential will be equal to the sum of the pulse widths of the pulses A1 and A2 in terms of time. In other words, even if the two pulse widths are asymmetric, the pulse widths of the pulses A1 and A2 can still be combined into one.
[0068] Likewise, the time point T2 does not necessarily need to be the positive edge of the pulse A2, but the time point T2 must be no later than the positive edge of the pulse A2.
[0069] In some embodiments, in addition to the sampling circuit 111 and the summing circuit 112, the electronic device 11 may further include a second set of sampling circuits 121 and a summing circuit 122. The summing circuit 122 may be coupled to the sampling circuit 121. The sampling circuit 121 is similar to the sampling circuit 111 and may be used to sample the pulse A3 of the T-mode signal TP starting from the time point T5 in the first half of the second pulse cycle of the triangular wave signal VTRI. The second pulse cycle may be continuous with the first pulse cycle corresponding to the first set of sampling circuits 111 and the summing circuit 112. That is, the first pulse cycle and the second pulse cycle may be continuous in time.
[0070] Similar to the summing circuit 112, the summing circuit 122 can be used to generate an output pulse B2 of the T-mode signal TPP starting from the time point T6 in the second half of the second pulse cycle. The pulse width of the output pulse B2 can be the sum of the pulse widths of the pulse A3 and the next pulse A4 of the T-mode signal TP. Figure 4 In these embodiments, the electronic device 11 may include an OR gate G1 coupled to the summing circuit 112 and the summing circuit 122, so that the summing circuit 112 and the summing circuit 122 can jointly output the T-mode signal TPP.
[0071] Similar to the sampling circuit 111 and the summing circuit 112, the sampling circuit 121 may also include a switch W3 and a capacitor C3 coupled to the switch W3. The summing circuit 122 may also include a switch W4, a capacitor C4 coupled to the switch W4, a comparator M2, and an SR flip-flop F2. The positive electrode and the negative electrode of the comparator M2 may be coupled to the capacitor C4 and the capacitor C3, respectively, and the setting pin and the reset pin of the SR flip-flop F2 may be coupled to the source of the setting signal S2 and the output of the comparator M2, respectively.
[0072] Figure 4 A hypothetical signal P2 is also depicted in the figure to present the potentials of capacitor C3 (solid line) and capacitor C4 (dashed line). In order to sample pulse A3, switch W3 can be turned on at time T5, so that when the T-mode signal TP is pulled to a high potential at the positive edge of pulse A3, capacitor C3 can be charged. Capacitor C3 can continue to be charged until switch W3 is turned off at time T7 of the negative edge of pulse A3. Therefore, the pulse width of pulse A3 can be sampled by measuring the charged capacitor C3.
[0073] It should be noted that the time point T5 does not necessarily need to coincide with the positive edge of the pulse A3 , but the time point T5 (ie, the time point when the switch W3 is turned on) must be no later than the positive edge of the pulse A3 .
[0074] In order to sum the pulse widths of pulse A3 and pulse A4, the T-mode signal TPP may be pulled up to a high level at time point T6 by the summing circuit 122. More specifically, when the positive edge of pulse A4 is detected, the setting signal S2 of the SR flip-flop F2 may be raised to a high level, thereby causing the positive edge of the output pulse B2 to appear.
[0075] The switch W4 may be turned on at time T8 on a negative edge of the pulse A4 so that the capacitor C4 is charged. The T-mode signal TPP may be maintained at a high potential until the switch W4 is turned off when the potential of the capacitor C4 is equal to the potential of the capacitor C3, as shown at the intersection of the dotted line and the solid line in the signal P2 in the figure. More specifically, when the potential of the capacitor C4 is equal to the potential of the capacitor C3, the output of the comparator M2 reaches a high potential, and the output may be used as the "R" signal of the SR trigger F2. Therefore, the output of the SR trigger F2 (i.e., the T-mode signal TPP) is pulled to a low potential due to reset / reset.
[0076] In some embodiments, the electronic device 11 may include a control circuit for generating a control signal according to the T-mode signal TP to control the on and off of the switches W1 - W4 .
[0077] As in the case of capacitors C1 and C2, since capacitors C3 and C4 are charged to the same potential by the same power source or two power sources providing substantially the same current, the high potential time length of the T-mode signal TPP is equal to the sum of the pulse widths of pulses A3 and A4. That is, even if the widths of the two pulses are asymmetric, the pulse widths of pulses A3 and A4 can still be combined into one.
[0078] The time point T6 does not necessarily need to be the positive edge of the pulse A4, but the time point T6 must be no later than the positive edge of the pulse A4.
[0079] The time point when the potentials of capacitors C1 and C2 are equal may be later than time point T5 (i.e., later than the time point that overlaps with the positive edge of T-mode signal A3 in time). However, since the second set of sampling circuits 121 and summing circuits 122 can process the sampling and summing of pulses A3 and A4, this will not affect the original processing.
[0080] To aid understanding, Figure 4 The T-mode signal TNP is also depicted. Since these signals are used for ternary modulation, the T-mode signal TNP will be maintained at a low voltage. However, it should be noted that the T-mode signal TNP is not processed and / or output by the electronic device 11, but is processed by the electronic device 12. In other embodiments, when the contents of the Q-mode signals QP and QN are opposite to those in the above-mentioned embodiments, the electronic device 12 will implement the same function for the negative T-mode signal obtained from the Q-mode signal QN in the same manner as "performed by the electronic device 11 on the T-mode signal TP", and ultimately achieve the same result (i.e., even if the pulse width of the output signal is very small and has a delay mechanism, the T-mode pulse width modulation can still avoid the problem of double switching frequency).
[0081] from Figure 4 It can be seen that the switching frequency caused by the T-mode signal TPP and the T-mode signal TNP is consistent with the clock signal (eg, the triangular wave signal VTRI or the aforementioned clock signal CK_FSW). Therefore, when the duty cycle is small, the double switching frequency problem can be avoided.
[0082] In some embodiments, the sampling circuit, summing circuit, OR gate, and / or control circuit described above may all be integrated into one or more audio processors.
[0083] Figure 5 Flowchart for describing an audio processing method according to one or more embodiments of the present disclosure. Figure 5 , an audio processing method 5 may include the following steps:
[0084] (A) sampling a pulse width of a first input pulse of a pulse width modulated input signal by an electronic device starting from a first time point of a first half of a first pulse cycle of a clock signal (indicated as step 501); and
[0085] (B) The electronic device generates a first output pulse of a pulse width modulated output signal starting from a second time point in a second half of the first pulse cycle, wherein a pulse width of the first output pulse is the sum of the pulse width of the first input pulse and a pulse width of a second input pulse of the pulse width modulated input signal, and the second input pulse is the next pulse after the first input pulse (marked as step 502).
[0086] In some embodiments, regarding the audio processing method 5, the electronic device may include a first switch and a first capacitor coupled to the first switch, and step (A) may further include the following steps:
[0087] Using the electronic device, turning on the first switch at the first time point on a positive edge of the first input pulse to charge the first capacitor; and
[0088] The electronic device closes the first switch at a third time point on a negative edge of the first input pulse, thereby sampling the pulse width of the first input pulse through the first capacitor.
[0089] In some embodiments, with respect to the audio processing method 5, the electronic device may include a first switch, a first capacitor coupled to the first switch, a second switch, a second capacitor coupled to the second switch, a first comparator, and a first SR trigger. A positive input and a negative input of the first comparator may be coupled to the second capacitor and the first capacitor, respectively. A setting pin and a reset pin of the first SR trigger may be coupled to a source of a first setting signal and an output of the first comparator, respectively. Step (A) may also include the following steps: the electronic device opens the first switch at the first time point on a positive edge of the first input pulse to charge the first capacitor; and the electronic device closes the first switch at a third time point on a negative edge of the first input pulse, thereby sampling the pulse width of the first input pulse through the first capacitor. In addition, step (B) may also include the following steps: the electronic device opens the second switch at a fourth time point on a negative edge of the second input pulse to charge the second capacitor; and the electronic device closes the second switch when a potential of the second capacitor reaches a potential of the first capacitor, so that the first SR trigger outputs the first output pulse.
[0090] In some embodiments, regarding the audio processing method 5 , the pulse width of the first input pulse and the pulse width of the second input pulse may be unequal.
[0091] In some embodiments, the audio processing method 5 may further include the following steps:
[0092] (C) sampling, by the electronic device, a pulse width of a third pulse of the pulse width modulation input signal starting from a fifth time point of a first half of a second pulse cycle of the clock signal, wherein the second pulse cycle follows the first pulse cycle; and
[0093] (D) The electronic device generates a second output pulse of the pulse width modulated output signal starting from a sixth time point in a second half of the second pulse cycle, wherein the second output pulse is the next pulse after the first output pulse, and a pulse width of the second output pulse is the sum of the pulse width of the third input pulse and a pulse width of a fourth input pulse of the pulse width modulated input signal, and the fourth input pulse is the next pulse after the third input pulse.
[0094] In some embodiments, regarding the audio processing method 5, the electronic device may further include a third switch and a third capacitor coupled to the third switch. In addition, the audio processing method 5 may further include the following steps:
[0095] (C) the electronic device samples a pulse width of a third pulse of the pulse width modulated input signal starting from a fifth time point of a first half of a second pulse cycle of the clock signal by executing the following steps: opening the third switch at the fifth time point to charge the third capacitor; and closing the third switch at a seventh time point on a negative edge of the third input pulse, thereby sampling the pulse width of the third input pulse through the third capacitor; and
[0096] (D) The electronic device generates a second output pulse of the pulse width modulated output signal starting from a sixth time point in a second half of the second pulse cycle, wherein the second output pulse is the next pulse after the first output pulse, and a pulse width of the second output pulse is the sum of the pulse width of the third input pulse and a pulse width of a fourth input pulse of the pulse width modulated input signal, and the fourth input pulse is the next pulse after the third input pulse.
[0097] In some embodiments, regarding the audio processing method 5, the electronic device may further include a third switch, a third capacitor coupled to the third switch, a fourth switch, a fourth capacitor coupled to the fourth switch, a second comparator, and a second SR trigger. A positive input and a negative input of the second comparator may be coupled to the fourth capacitor and the third capacitor, respectively. A setting pin and a reset pin of the second SR trigger may be coupled to a source of a second setting signal and an output of the second comparator, respectively. In addition, the audio processing method 5 may further include the following steps:
[0098] (C) the electronic device samples a pulse width of a third pulse of the pulse width modulated input signal starting from a fifth time point of a first half of a second pulse cycle of the clock signal by executing the following steps: opening the third switch at the fifth time point to charge the third capacitor; and closing the third switch at a seventh time point on a negative edge of the third input pulse, thereby sampling the pulse width of the third input pulse through the third capacitor; and
[0099] (D) The electronic device generates a second output pulse of the pulse width modulated output signal starting from a sixth time point of a second half of the second pulse cycle (wherein the second output pulse is the next pulse after the first output pulse, and a pulse width of the second output pulse is the sum of the pulse width of the third input pulse and a pulse width of a fourth input pulse of the pulse width modulated input signal, and the fourth input pulse is the next pulse after the third input pulse) by executing the following steps: opening the fourth switch at an eighth time point on a negative edge of the fourth input pulse to charge the fourth capacitor; and closing the fourth switch when a potential of the fourth capacitor reaches a potential of the third capacitor, so that the second SR trigger outputs the second output pulse.
[0100] Each embodiment of the audio processing method 5 basically corresponds to a certain embodiment of the electronic device 11. Therefore, based on the above description of the electronic device 11, a person skilled in the art to which the present invention belongs can fully understand and implement all corresponding embodiments of the audio processing method 5, even if each embodiment of the audio processing method 5 is not described in detail above.
[0101] The above embodiments are only used to illustrate some embodiments of the present invention and to explain the technical features of the present invention, and are not used to limit the protection scope and scope of the present invention. Any changes or equivalent arrangements that can be easily completed by technicians in the field of the present invention belong to the scope claimed by the present invention, and the scope of protection of the present invention shall be subject to the claims.
Claims
1. An audio processing device, comprising: A first sampling circuit, for sampling the pulse width of a first input pulse of a pulse width modulation input signal starting from a first time point of a first half of a first pulse cycle of a clock signal; and A first summing circuit is coupled to the first sampling circuit and is used to generate a first output pulse of a pulse width modulated output signal starting from a second time point of a second half of the first pulse cycle, wherein: The pulse width of the first output pulse is the sum of the pulse width of the first input pulse and the pulse width of the second input pulse of the pulse width modulation input signal, and the second input pulse is the next pulse after the first input pulse.
2. The audio processing device according to claim 1, wherein: The first sampling circuit includes a first switch and a first capacitor coupled to the first switch. The first switch is turned on at the first time point to charge the first capacitor, and the first switch is turned off at a third time point on the negative edge of the first input pulse, thereby sampling the pulse width of the first input pulse through the first capacitor.
3. The audio processing device as claimed in claim 2, wherein the first summing circuit comprises: Second switch; a second capacitor coupled to the second switch; a first comparator, wherein a positive input and a negative input of the first comparator are coupled to the second capacitor and the first capacitor respectively; as well as a first SR flip-flop, a set pin and a reset pin of the first SR flip-flop being coupled to a source of a first set signal and an output of the first comparator, respectively, wherein the first set signal rises to a high potential in response to a positive edge of the second input pulse; The second switch is opened at a fourth time point on the negative edge of the second input pulse to charge the second capacitor, and when the potential of the second capacitor reaches the potential of the first capacitor, the second switch is closed so that the first SR trigger outputs the first output pulse. 4 . The audio processing device as claimed in claim 1 , wherein the pulse width of the first input pulse is unequal to the pulse width of the second input pulse.
5. The audio processing device according to claim 1, further comprising: The second sampling circuit is used to sample the pulse width of the third input pulse of the pulse width modulation input signal starting from the fifth time point of the first half of the second pulse cycle of the clock signal, wherein: The second pulse period follows the first pulse period; a second summing circuit coupled to the second sampling circuit, for generating a second output pulse of the pulse width modulation output signal starting from a sixth time point of the second half of the second pulse period, wherein the second output pulse is a next pulse after the first output pulse, and a pulse width of the second output pulse is a sum of the pulse width of the third input pulse and the pulse width of a fourth input pulse of the pulse width modulation input signal, wherein the fourth input pulse is a next pulse after the third input pulse; and An OR gate, wherein the first summing circuit and the second summing circuit are both coupled to the OR gate, thereby jointly outputting the pulse width modulation output signal.
6. The audio processing device as claimed in claim 5, wherein the second sampling circuit comprises a third switch and a third capacitor coupled to the first switch, the third switch is turned on at the fifth time point to charge the third capacitor, and the third switch is turned off at a seventh time point on the negative edge of the third input pulse, thereby sampling the pulse width of the third input pulse through the third capacitor.
7. The audio processing device according to claim 6, wherein: The second summing circuit comprises: Fourth switch; a fourth capacitor coupled to the fourth switch; a second comparator, wherein a positive input and a negative input of the second comparator are respectively coupled to the fourth capacitor and the third capacitor; as well as a second SR flip-flop, a set pin and a reset pin of the second SR flip-flop being coupled to a source of a second set signal and an output of the second comparator, respectively, wherein the second set signal rises to a high potential in response to a positive edge of the fourth input pulse; In which, the fourth switch is turned on at the eighth time point on the negative edge of the fourth input pulse to charge the fourth capacitor, and the fourth switch is turned off when the potential of the fourth capacitor reaches the potential of the third capacitor, so that the second SR trigger outputs the second output pulse.
8. An audio processing method comprising the following steps: (A) sampling, by an electronic device, the pulse width of a first input pulse of a pulse width modulated input signal starting from a first time point in a first half of a first pulse cycle of a clock signal; (B) generating, by the electronic device, a first output pulse of a pulse width modulated output signal starting from a second time point in the second half of the first pulse cycle, wherein: The pulse width of the first output pulse is the sum of the pulse width of the first input pulse and the pulse width of a second input pulse of the pulse width modulation input signal, and the second input pulse is the next pulse after the first input pulse.
9. The audio processing method according to claim 8, wherein: The electronic device includes a first switch and a first capacitor coupled to the first switch, and the step (A) further includes the following steps: Using the electronic device, turning on the first switch at the first time point on the positive edge of the first input pulse to charge the first capacitor; as well as The electronic device closes the first switch at a third time point on the negative edge of the first input pulse, thereby sampling the pulse width of the first input pulse through the first capacitor.
10. The audio processing method according to claim 9, wherein: The electronic device further comprises a second switch, a first comparator, a first SR trigger, and a second capacitor coupled to the second switch, wherein a positive input and a negative input of the first comparator are coupled to the second capacitor and the first capacitor respectively, a setting pin and a reset pin of the first SR trigger are coupled to a source of a first setting signal and an output of the first comparator respectively, and the step (B) further comprises the following steps: By the electronic device, opening the second switch at a fourth time point on the negative edge of the second input pulse to charge the second capacitor; and The electronic device closes the second switch when the potential of the second capacitor reaches the potential of the first capacitor, so that the first SR trigger outputs the first output pulse.
11. The audio processing method according to claim 8, wherein: The pulse width of the first input pulse is not equal to the pulse width of the second input pulse.
12. The audio processing method as claimed in claim 8, further comprising the following steps: (C) the electronic device samples the pulse width of the third pulse of the pulse width modulation input signal starting from the fifth time point of the first half of the second pulse cycle of the clock signal, wherein: The second pulse period follows the first pulse period; (D) The electronic device generates a second output pulse of the pulse width modulated output signal starting from the sixth time point of the second half of the second pulse cycle, wherein the second output pulse is the next pulse after the first output pulse, and the pulse width of the second output pulse is the sum of the pulse width of the third input pulse and the pulse width of the fourth input pulse of the pulse width modulated input signal, and the fourth input pulse is the next pulse after the third input pulse.
13. The audio processing method according to claim 12, wherein: The electronic device includes a third switch and a third capacitor coupled to the third switch, and the step (C) further includes the following steps: By the electronic device, opening the third switch at the fifth time point to charge the third capacitor; and The electronic device closes the third switch at a seventh time point on the negative edge of the third input pulse, thereby sampling the pulse width of the third input pulse through the third capacitor.
14. The audio processing method according to claim 13, wherein: The electronic device further includes a fourth switch, a fourth capacitor coupled to the fourth switch, a second comparator, and a second SR flip-flop, wherein the positive input and the negative input of the second comparator are respectively coupled to the fourth capacitor and the third capacitor, a setting pin and a reset pin of the second SR flip-flop are respectively coupled to a source of a second setting signal and an output of the second comparator, and the step (D) further includes the following steps: By the electronic device, at an eighth time point on the negative edge of the fourth input pulse, the fourth switch is opened to charge the fourth capacitor; as well as The electronic device closes the fourth switch when the potential of the fourth capacitor reaches the potential of the third capacitor, so that the second SR trigger outputs the second output pulse.
