TRANSITION SMOOTHING APPARATUS FOR REDUCING SPURIOUS INPUT TO A SYSTEM UNDER FEEDBACK CONTROL
20240388304 ยท 2024-11-21
Inventors
Cpc classification
H03M3/426
ELECTRICITY
H03M3/432
ELECTRICITY
H03M3/346
ELECTRICITY
H03M1/181
ELECTRICITY
International classification
H03M1/06
ELECTRICITY
Abstract
Transition smoothing apparatus for reducing spurious input to a system under feedback control connected to a control loop. The apparatus includes a loop filter to integrate an error between an input signal applied to the loop filter and an output signal of the system under feedback control, an analog-to-digital converter to provide digitized integrated error values, a controller to generate output values supplied to the system under feedback control in response to the digitized integrated error values and in a start-up sequence to control a feedback digital-to-analog converter according to the digitized integrated error values to supply a first control signal to the loop filter and control the system under feedback control to generate a second control signal, and an alignment detector to detect phase alignment between the first control signal and the second control signal to control a smooth transition into closed loop operation of the control loop.
Claims
1. A circuit configured to reduce input noise in a system having feedback control, the circuit comprising: a digital-to-analog converter (DAC) configured to generate a first control signal, the first control signal being an analog signal; a driver configured to operate in a closed-loop mode and an open-loop mode, the driver further configured to generate a second control signal in the open-loop mode, the second control signal being an analog signal; an alignment detector configured to receive the first control signal and the second control signal, the alignment detector further configured to determine a phase difference between the first control signal and the second control signal; and a controller configured to receive the phase difference and, responsive to determining that the phase difference is zero or near zero, the controller is configured to switch the driver from the open-loop mode to the closed-loop mode of operation.
2. The circuit of claim 1 further comprising a loop filter and a serial approximation register analog-to-digital converter (SAR ADC), an input of the loop filter being coupled to an output of the DAC, the input of the loop filter being configured to receive the first control signal, and the SAR ADC being configured to convert an output of the loop filter into a digital output signal and provide the digital output signal to the controller.
3. The circuit of claim 2 wherein the input of the loop filter is a differential input having a first input connection and a second input connection, wherein the first input connection is coupled to a first resistor and the second input connection is coupled to a second resistor.
4. The circuit of claim 3 wherein the driver includes a positive output and a negative output, the positive output being coupled to the first resistor and the negative output being coupled to the second resistor.
5. The circuit of claim 4 wherein the driver includes a first driver circuit coupled to the positive output and configured to drive the positive output, and a second driver circuit coupled to the negative output and configured to drive the negative output.
6. The circuit of claim 1 further comprising a speaker coupled to the driver.
7. The circuit of claim 6 wherein the speaker is configured to not receive the second control signal in the open-loop mode.
8. The circuit of claim 1 wherein the controller is configured to transition the driver from the open-loop mode to the closed-loop mode responsive to the second control signal and first control signal aligning in phase.
9. A transition smoothing apparatus for reducing spurious input to a system, the apparatus comprising: a digital-to-analog converter (DAC) configured to generate a first control signal; a driver configured to operate in a plurality of modes of operation, the driver further configured to generate a second control signal; a controller communicatively coupled to the DAC and the driver, and configured to control the DAC to generate the first control signal, control the driver to generate the second control signal such that the second control signal has a fixed pattern, receive the first control signal and the second control signal, determine a phase difference between the first control signal and the second control signal, and responsive to determining that the phase difference is zero, control the driver to transition from an open-loop mode of operation to a closed-loop mode of operation.
10. The apparatus of claim 9 further comprising an analog-to-digital converter (ADC) configured to receive the first control signal and convert the first control signal to digital form.
11. The apparatus of claim 10 wherein the ADC is a serial approximation register (SAR) ADC.
12. The apparatus of claim 10 further comprising a loop filter couped to the DAC and to the ADC, the loop filter being configured to receive the first control signal from the DAC and to provide an output signal based on the first control signal to the ADC, wherein the ADC provides the output signal to the controller.
13. The apparatus of claim 12 further comprising a loop filter configured to integrate an error between an input signal applied to the loop filter and an output signal of the driver.
14. The apparatus of claim 12 wherein the loop filter is an analog low pass filter.
15. The apparatus of claim 12 wherein the controller is further configured to treat the output signal from the ADC as the first control signal.
16. The apparatus of claim 9 wherein the apparatus includes an alignment detector coupled to the controller, the alignment detector being configured to determine the phase difference and provide the phase difference to the controller.
17. The apparatus of claim 9 wherein the controller is configured to perform, during a start-up mode of operation corresponding to an initial activation of the apparatus, one or more of the operations of controlling the DAC to generate the first control signal, controlling the driver to generate the second control signal such that the second control signal has a fixed pattern, receiving the first control signal and the second control signal, determining the phase difference between the first control signal and the second control signal, and controlling the driver to transition from the open-loop mode of operation to the closed-loop mode of operation.
18. The apparatus of claim 17 wherein the controller is configured to determine the phase difference every clock cycle during the start-up mode of operation.
19. The apparatus of claim 17 wherein the controller is further configured to cease determining the phase difference during an audio-output mode of operation, the audio-output mode of operation corresponding to the closed-loop mode of operation of the driver.
20. The apparatus of claim 9 wherein the driver includes a positive driver and a negative driver.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Various aspects of at least one embodiment are discussed below with reference to the accompanying figures, which are not intended to be drawn to scale. The figures are included to provide illustration and a further understanding of the various aspects and embodiments, and are incorporated in and constitute a part of this specification, but are not intended as a definition of the limits of the invention. In the figures, cach identical or nearly identical component that is illustrated in various figures is represented by a like numeral. For purposes of clarity, not every component may be labeled in every figure. In the figures:
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
DETAILED DESCRIPTION
[0030] The following detailed description of certain embodiments presents various descriptions of specific embodiments. However, the innovations described herein can be embodied in a multiple of different ways, for example, as defined and covered by the claims. In this description, reference is made to the drawings where like reference numerals can indicate identical or functionally similar elements. It will be understood that elements illustrated in the figures are not necessarily drawn to scale. Moreover, it will be understood that certain embodiments can include more elements than illustrated in a drawing and/or in a subset of the elements illustrated in a drawing. Further, some embodiments can incorporate any suitable combination of features from two or more drawings.
[0031] Aspects of the present disclosure provide, according to a first aspect, a transition smoothing apparatus 1 for reducing spurious input to a system under feedback control 7 connected to a control loop. The control loop can, in a possible embodiment, comprise a loop filter such as the loop filter 2 shown in
[0032] The system under feedback control 7 can be an H-bridge driver circuit as illustrated in
[0033]
[0034] The PWM control loop comprises a loop filter 2, an analog-to-digital converter (ADC) 3, a PWM controller 4 and a feedback (FB) digital-to-analog converter (DAC) 5.
[0035] The loop filter 2 of the PWM control loop is adapted to integrate an error between an input voltage which corresponds to an input audio signal and a voltage across a loudspeaker 6 connected to an H-bridge driver 7 of the class D-amplifier. The loop filter 2 of the PWM control loop can comprise in a possible embodiment an analog low-pass filter. The output of the loop filter 2 is connected to the input of the analog-to-digital converter (ADC) 3. The analog-to-digital converter (ADC) 3 of the PWM control loop is adapted to digitize the integrated error provided by the loop filter 2 every loop cycle of said PWM control loop to provide a digitized integrated error value applied to a digital input of the PWM controller 4 of the PWM control loop of the class D-amplifier. The PWM controller 4 has a PWM pulse generator 4C as shown in
[0036] The transition smoothing apparatus 1 as illustrated schematically in
[0037] In a possible embodiment, the analog-to-digital converter (ADC) 3 within the PWM control loop of the class D-amplifier comprises a successive approximation register (SAR) analog-to-digital converter. Other types of analog-to-digital converters can be used as well. The successive approximation register (SAR) analog-to-digital converter 3 shown in
[0038] The H-bridge driver 7 can comprise in a possible embodiment a positive H-bridge driver circuit connected to the positive output terminal 9 and a negative H-bridge driver circuit connected to the negative output terminal 10. The PWM pulse generator 4C integrated in the PWM controller 4 can be adapted in a possible embodiment to supply a first gray-coded output value to the positive H-bridge driver circuit of the H-bridge driver 7 and a second gray-coded output value to the negative H-bridge driver circuit of the H-bridge driver 7.
[0039]
[0040] In the illustrated embodiment of
[0041]
[0042] The PWM controller 4 further comprises a pulse generator and an output common mode controller 4C as shown in
[0043]
[0044] The functionality of a startup procedure is to bring the PWM class D-amplifier into a stable closed loop operation being ready to accept audio without pop-n-click artifacts. Pop-n-click artifacts include popping acoustic noise that may be heard through the loudspeaker 6 when the audio equipment including the class D-amplifier 2 is switched on. Acoustic noise may be generated by a voltage difference across the output stage of the class D-amplifier at switch-on or at switch-off before it reaches its idle or equilibrium state. Undesirable audio click and pop noise is generated in a speaker or headphone connected to the H-bridge driver output of the class D-amplifier. Compared to conventional linear amplifiers, conventional class D-amplifiers are more prone to produce click and pop noise. The transition smoothing apparatus 1 according to the present invention is adapted to minimize such unwanted acoustic noise and to meet the requirements of pop-n-click specifications. With the transition smoothing apparatus 1 according to the present invention, the unwanted acoustic noise can be reduced to such an extent that it is no longer audible to persons listening to the loudspeaker 6.
[0045] The functionality of a shutdown procedure is likewise to turn off the PWM class D-amplifier without any hearable pop-n-click artifacts. As can be seen in
[0046] In the illustrated embodiment of
[0047] During the PWM startup sequence, the H-bridge driver 7 and the feedback digital-to-analog converter 5 are enabled by the control block 13. As can be seen in the circuit diagram of
[0048] The PWM controller 4 is connected via a control interface to the control block 13 provided for performing the control of the startup and shutdown sequence. The PWM controller 4 receives from the control block 13 a first control signal pwmc_on_start_i which indicates to the PWM controller 4 to start searching for alignment of the H-bridge PWM pulse to the SAR value provided by the SAR ADC 3. Further, the PWM controller 4 can receive a pwmc_off_start_i control signal from the control block 13 which indicates the start of a shutdown fixed pattern.
[0049] The PWM controller 4 further receives digital control signals from the control block 13 including an hb_drv_output_en_i signal, an hb_drv_200mv_i control signal and an fdbk_dac_en_i control signal. The hb_drv_output_en_i control signal received from the control block 13 indicates to the PWM controller 4 that the H-bridge driver 7 should be enabled. The hb_drv_200mv_i control signal received by the PWM controller 4 from the control block 13 indicates to the PWM controller 4 to start the H-bridge fixed pulse pattern. Further, the fdbk_dac_en_i control signal received by the PWM controller 4 from the control block 13 indicates a start of the FB DAC pattern.
[0050] The PWM controller 4 provides a feedback to the control block 13 by means of two output control signals including a pwmc_done_1_o control signal and a pwmc_donE_2_o control signal. The first feedback control signal pwmc_done__1_o indicates to the control block 13 during startup that the startup has been completed. The pwmc_done_1_o control signal signals to the control block 13 during shutdown that the shutdown fixed pattern has been completed. The second feedback control signal pwmc_done_2_o output by the PWM controller 4 to the control block 13 indicates during shutdown that the shutdown final pulse has been completed.
[0051] The startup/shutdown control block 13 can also be provided to disable the passive pullups (PU) on the positive output terminal 9 and the passive pulldowns (PD) on the negative output terminal 10 of the class D-amplifier by controlling the switches SW-PU, SW-PD as illustrated in
[0052]
[0053] A first state ST1 comprises a HB idle state where the PWM controller 4 is not running. In response to the startup control signal hb_drv_200 mv received by the PWM controller 4 from the control block 13, a transition is performed to the second state ST2 (HB_START_FIX_PAT) where a fixed pattern of minimum pulses is generated in an open loop. In response to the pwmc_on_start control signal received by the PWM controller 4 from the control block 13, a transition to the third state ST3 (HB_START_ALIGN) is performed. In this third state ST3, it is waited for the alignment of the PWMC positive pulse and the SAR ADC output. If a predefined time has elapsed or an alignment has been detected by the alignment detector 8, a transition from the third state ST3 to the fourth state ST4 (HB_TRANS_RUNNING) is performed. In the HB running state ST4, a transition to the closed loop is performed and the signal pwmc_done_1 can be output to indicate that the startup sequence has been completed. The pwmc_done_1 output signal signals the end of the startup sequence and there is a transition to the fifth state ST5 (HB_RUNNING) where the PWM controller 4 is running in a closed loop.
[0054] After having received a pwmc_off_start signal from the control block 13, a shutdown sequence is initiated and a transition to the sixth state ST6 (HB_STOP_FIX_PAT1) is performed. In this sixth state ST6, a fixed pattern of min pulses is run in an open loop. In the next state ST7 (HB_STOP_FIX_PAT2), also a fixed pattern of min pulses is run in an open loop. After having received a pattern done control signal by using an internal counter, a transition to the next state ST8 (HB_STOP_FIX_PAT_DONE1) is done. In the next state ST9 (HB_STOP_DONE2), a pwmc_done_2 control signal is supplied by the PWM controller 4 to the control block 13 to indicate that the shutdown final pulse has been completed. Finally, there is a transition during the shutdown sequence into the tenth state ST10 (HB_TRANS_IDLE) where a static common mode value is driven until receiving a disable signal (ihb_drv_200 mv).
[0055]
[0056] When the PWM encoder output is aligned with the loop, the feedback digital-to-analog converter 5 is disabled and the PWM encoder is enabled to control the HB driver 7 in a closed loop mode. The PWM controller 4 guarantees that the transition of the closed loop operation of the PWM control loop is seamless at the loop filter input of the loop filter 2.
[0057] In a possible implementation, at each sample time, the SAR ADC output of the SAR analog-to-digital converter 3 is examined. If it indicates that the next PWM pulse required would be a class 1 (a 0.5?48 MHz cycle positive pulse, 0.2 V rail), the feedback digital-to-analog converter 5 is immediately disabled and does release the PWM to run in a closed loop mode. This is performed for a maximum of 128 sample times.
[0058] If an alignment has not yet been found, in a possible embodiment, the search is expanded to look for a case where the next pulse required is either +1 or +2. This can be done for a maximum of 128 sample times.
[0059] If an alignment has still yet not been found, the search can be expanded for a case where the next pulse required is either 0, +1, or +2, for a maximum of 128 sample times. If an alignment has still not been found, the search can be further expanded to 0, +1, +2, +3, for a maximum of 128 sample times. If an alignment has not been found after 4?128=512 samples, it can be assumed that a match is not likely to be ever found and the feedback digital-to-analog converter 5 is automatically disabled and the PWM control loop is released to run in a closed loop mode. This may result in an unwanted pop event. The pwmc_done_1 control signal is asserted for one 3 MHz clock cycle to signal to the control block 13 that the startup sequence is complete.
[0060] As can be seen in
[0061]
[0062] According to a further aspect of the present disclosure, a method for reducing spurious input to a system under feedback control 7 connected to a control loop is provided. The method comprises the steps of: integrating in a first step, by a loop filter 2 of the control loop, an error between an input signal applied to the loop filter 2 and an output signal of the system under feedback control 7; digitizing in a second step, by an analog-to-digital converter 3 of the control loop the integrated error every loop cycle of the control loop to provide a digitized integrated error value; generating in a third step, by a controller 4 of the control loop in a normal operation mode in response to the digitized integrated error values output values supplied to the system under feedback control 7, the controller 4 controlling in a start-up sequence a feedback digital-to-analog converter 5 of the control loop according to the digitized integrated error values to supply a first control signal to the loop filter 2 of the control loop and controlling the system under feedback control 7 to generate an independent second control signal; and detecting in a fourth step, by an alignment detector 8, a phase alignment between the first control signal provided by the feedback digital-to-analog converter 5 of the control loop and the second control signal provided by the system under feedback control to control a smooth transition into a closed loop operation of the control loop in the normal operation mode during the start-up sequence with reduced spurious input to the system under feedback control 7.
[0063]
[0064] A first step (S1) comprises integrating by a loop filter 2 of a PWM control loop an error between an input voltage which corresponds to an input audio signal and a voltage across a loudspeaker 6 connected to a H-bridge driver 7 of a class D-amplifier.
[0065] A second step (S2) comprises digitizing by an analog-to-digital converter 3 of the PWM control loop the integrated error every loop cycle of said PWM control loop to provide a digitized integrated error value.
[0066] A third step (S3) comprises generating, by a PWM pulse generator 4C of a PWM controller 4 of said PWM control loop in a normal operation mode in response to the digitized integrated error values, PWM pulses supplied to the H-bridge driver 7 of said class D-amplifier and controlling by the PWM controller 4 in a start-up sequence a feedback digital-to-analog converter 5 of the PWM control loop according to the digitized integrated error values to supply PWM pulses as a first control signal to the loop filter 2 of the PWM control loop and controlling by the PWM controller 4 the H-bridge driver 7 of the class D-amplifier to generate a fixed PWM pulse pattern as a second control signal.
[0067] A fourth step (S4) comprises detecting by an alignment detector 8 a phase alignment between the second control signal comprising a fixed PWM pulse pattern provided by the H-bridge driver 7 and the first control signal comprising PWM pulses provided by the feedback digital-to-analog converter 5 to control a transition into a closed loop operation of the PWM control loop in the normal operation mode during the start-up sequence with a reduced acoustic start-up noise.
[0068] Some of the embodiments described above have provided examples in connection with a class D-amplifier. However, the principles and advantages of the embodiments can be used for any other audio equipment or other audio processing devices that have needs for power amplifiers.
[0069] The transition smoothing apparatus 1 can be used to reduce spurious input to a variety of systems or circuits under feedback control 7, i.e., an electronic circuit having a feedback loop. The feedback loop of the circuit under feedback control 7 can be implemented by an analog feedback loop or by a digital feedback loop. An example for a circuit under feedback control 7 is a Phase Locked Loop (PLL) circuit. The PLL can comprise a feedback loop including a phase comparator, a filter and a voltage controlled oscillator (VCO). The PLL can be e.g., for clock synchronization, demodulation or frequency synthesis in an electronic device. The feedback loop can also include a sigma-delta modulator. The transition smoothing apparatus 1 can be used for a huge range of electronic devices.
[0070] Examples of the electronic devices can include, but are not limited to, consumer electronic products, audio devices, parts of the consumer electronic products, electronic test equipment, etc. Examples of the electronic devices can also include, but are not limited to, memory chips, memory modules, or other communication networks, and disk driver circuits. The consumer electronic products or audio devices can include, but are not limited to, a mobile phone, a telephone, a television, a computer monitor, a computer, a hand-held computer, a personal digital assistant (PDA), a microwave, a refrigerator, an automobile, a stereo system, a cassette recorder or player, a DVD player, a CD player, a VCR, an MP3 player, a radio, a camcorder, a camera, a digital camera, a portable memory chip, a washer, a dryer, a washer/dryer, a copier, a facsimile machine, a scanner, a multi-functional peripheral device, a wrist watch, a clock, etc. Further, the electronic devices can include unfinished products.
[0071] Unless the context clearly requires otherwise, throughout the description and the claims, the words comprise, comprising, and the like are to be construed in an inclusive sense, as opposed to an exclusive or exhaustive sense; that is to say, in the sense of including, but not limited to. The word coupled, as generally used herein, refers to two or more elements that may be either directly connected, or connected by way of one or more intermediate elements. Likewise, the word connected, as generally used herein, refers to two or more elements that may be either directly connected, or connected by way of one or more intermediate elements. Additionally, the words herein, above, below, and words of similar import, when used in this application, shall refer to this application as a whole and not to any particular portions of this application. Where the context permits, words in the above Detailed Description using the singular or plural number may also include the plural or singular number respectively. The word or in reference to a list of two or more items, that word covers all of the following interpretations of the word: any of the items in the list, all of the items in the list, and any combination of the items in the list.
[0072] Moreover, conditional language used herein, such as, among others, can, could, might, can, e.g., for example, such as and the like, unless specifically stated otherwise, or otherwise understood within the context as used, is generally intended to convey that certain embodiments include, while other embodiments do not include, certain features, elements and/or states. Thus, such conditional language is not generally intended to imply that features, elements and/or states are in any way required for one or more embodiments or that one or more embodiments necessarily include logic for deciding, with or without author input or prompting, whether these features, elements and/or states are included or are to be performed in any particular embodiment.
[0073] The above detailed description of embodiments of the invention is not intended to be exhaustive or to limit the invention to the precise form disclosed above. While specific embodiments of, and examples for, the invention are described above for illustrative purposes, various equivalent modifications are possible within the scope of the invention, as those skilled in the relevant art will recognize. For example, while processes or blocks are presented in a given order, alternative embodiments may perform routines having steps, or employ systems having blocks, in a different order, and some processes or blocks may be deleted, moved, added, subdivided, combined, and/or modified. Each of these processes or blocks may be implemented in a variety of different ways. Also, while processes or blocks are at times shown as being performed in series, these processes or blocks may instead be performed in parallel, or may be performed at different times.
[0074] The teachings of the invention provided herein can be applied to other systems, not necessarily the system described above. The elements and acts of the various embodiments described above can be combined to provide further embodiments.
[0075] While certain embodiments of the inventions have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the disclosure. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the disclosure. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the disclosure.