Method for operating a digital-analog processing link, corresponding equipment and device
The DC offset in the audio system is detected and compensated in the digital domain through an all-digital processing solution, which solves the problems of inaccurate detection and high cost in the existing technology, achieves efficient monitoring and compensation of DC offset, and improves audio quality. Link stability.
Patent Information
- Application Number
- CN201910528139.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2014-12-24
- Filing Date
- 2015-09-23
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2035-09-23
AI Technical Summary
Existing technologies suffer from inaccuracy and high cost in detecting and compensating for undesired DC offsets in audio systems, and are unable to effectively detect other possible sources of damage.
Adopting an all-digital solution, the sampled signal is processed in the digital domain through a digital detector, and DSP is used to predict and compare the marked signal, detect DC offset and compensate accordingly, reducing reliance on analog components.
It improves the accuracy of DC offset detection and the effectiveness of compensation, reduces system costs, enables real-time monitoring and adjustment of audio link performance, and reduces damage to speakers and amplifiers.
Smart Images

Figure CN110299917B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with the application date of September 23, 2015, application number 201510614126.2, and invention name "Method for operating digital-to-analog processing link, corresponding equipment and device". Technical Field
[0002] This description refers to a digital-to-analog (D / A) processing link.
[0003] One or more embodiments may be applied to detect and / or compensate for possible impairments to such digital processing links.Detecting and / or compensating for undesired DC offsets in a power amplifier of an audio system is an example of a possible application of one or more embodiments. Background Art
[0004] Capacitors may be used on the input side of an amplifier to remove any DC offset in the amplifier input signal, thereby preventing DC current from flowing to the speaker. In the event that these capacitors fail or are absent (e.g. due to faulty wiring), substantial damage to the amplifier and / or speaker may result.
[0005] An audio system, for example for car audio, may include a DC offset detection function based on different methods implemented in the analog domain.
[0006] An example of such a method is clipping event counting or detecting the time that elapses between consecutive zero-crossing events of an analog signal (i.e., between events that cause the analog signal to enter / leave a particular amplitude window). In the latter case, a "vertical" displacement of the audio signal that may be generated by a DC offset may cause pulses indicating that zero crossings appear, disappear, move, blend together, or change length. A DC offset detection circuit that is sensitive to such events may therefore detect an offset voltage difference between, for example, the output of an audio power amplifier and an audio processor that feeds such an amplifier.
[0007] In some embodiments, the zero-crossing window flag can be used as a feedback signal for a circuit that internally emulates the zero-crossing window and can check whether the signal at the speaker output of, for example, an audio power amplifier crosses the zero level at the same time as the output of the audio processor. In some embodiments aimed at reducing cost, the flags from 4 / 6 speakers can be "mixed" together (e.g., ORed) and then sent to the analog processor. A tunable external capacitor can take into account a certain amount of loop delay.
[0008] Such implementations rely on dedicated analog components that can be quite large and expensive. In addition, the amount of DC offset cannot be detected and other possible sources of impairment are not taken into account. The detection process may be affected by inherent inaccuracies due to uncertainty in parameters (e.g. threshold levels, gain, ...). Summary of the invention
[0009] One or more embodiments have the object of providing an improved arrangement that overcomes the drawbacks listed above.
[0010] One or more embodiments may relate to corresponding devices and means (e.g., audio links) including such devices and to a computer program product loadable in a memory of at least one processing device (e.g., DSP) and comprising steps for performing the method when the product is run on at least one computer. As used herein, reference to such a computer program product is understood to be equivalent to reference to a computer-readable device containing instructions for controlling a processing system in order to coordinate the implementation of the method according to the invention. Reference to "at least one processor device" is intended to emphasize that the invention may be implemented in a modular and / or distributed form.
[0011] One or more embodiments may be based on the recognition that a (fully) digital solution can be used to detect undesired analog signal components because a sampled version of the signal undergoing DAC conversion is available at the input of the processing: for example, in the case of an audio processing chain fed with a conventional digital audio signal (e.g. according to the CD "Red Book" standard), a sampled version of the audio stream (44.1 / 48.0kHz Fs) is available at the digital detector. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] One or more embodiments will now be described, by way of non-limiting example only, with reference to the accompanying drawings, in which:
[0013] - Figure 1 is a schematic representation of the zero-crossing events that can cause a signal to enter / leave a specific amplitude window;
[0014] - Figure 2 is an overall block diagram of a system for checking the operation of a digital-to-analog processing link;
[0015] - Figure 3 is an exemplary circuit diagram of a system according to one or more embodiments;
[0016] - Figures 4 to 7 is a schematic representation of how the zero-crossing event of a signal can be affected by various factors;
[0017] - Figure 8 and Fig. 9is a block diagram illustrating various functions that may be performed in one or more embodiments;
[0018] Fig.10 (comprising three parts denoted as a), b) and c) respectively) is an example of possible operation of the embodiment;
[0019] Figure 11 to Figure 13 is a block diagram illustrating various functions that may be performed in one or more embodiments; and
[0020] Fig.14 is a diagram illustrating possible operations according to an embodiment. DETAILED DESCRIPTION
[0021] In the following description, one or more specific details are explained to provide a deeper understanding of the examples of the embodiments. The embodiments can be obtained without one or more of the specific details or with other methods, components, materials, etc. In other cases, well-known structures, materials, or operations are not explained or described in detail so as not to obscure certain aspects of the embodiments.
[0022] References to "an embodiment" or "an embodiment" in the framework of this description are intended to indicate that a particular configuration, structure, or characteristic described with respect to that embodiment is included in at least one embodiment. Thus, phrases such as "in an embodiment" or "in an embodiment" that may be present in one or more points of this description do not necessarily refer to one and the same embodiment. Additionally, particular configurations, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0023] The reference signs used herein are provided for convenience only and therefore do not limit the scope of protection or the scope of the embodiments.
[0024] Figure 1 is a schematic representation of zero-crossing events that may cause a signal S (eg, an analog audio signal) to enter / leave a specific amplitude window ZCW whose width is identified by a threshold value T.
[0025] For the sake of simplicity, throughout this description, reference will be made to a window ZCW centered on a zero value, i.e. a symmetrical window between -T and + T. Thus, the signal S is "inside" the window ZCW when it has a value between -T and +T, and "outside" the window ZCW when it has a value below -T or above +T.
[0026] Those skilled in the art will recognize that in one or more embodiments, the window ZCW may be asymmetric and / or centered on a non-zero value, so that the crossing event that causes the signal S to enter / leave the amplitude window ZCW may not necessarily be a "zero" crossing event. Therefore, throughout this exemplary description, references to "zero" crossings are only for the purpose of brevity and simplicity, and do not limit the embodiments.
[0027] Figure 1 The diagrams generally illustrate the possibility of generating (by any means for this purpose, such as a threshold comparator) a “marking” signal ZCF indicating whether the value of the signal S according to which the mark is generated falls within or outside the window ZCW.
[0028] For example, Figure 1 As illustrated in , if the signal S is within the window ZCW, the flag ZCF can be set to "1", and if the signal S is outside the window ZCW, the flag ZCF can be set to "0". However, a complementary option (for example, if S is within the window ZCW, the flag ZCF is "0", and if S is outside the window ZCW, the flag ZCF is "1") is possible.
[0029] Figure 1 The diagram illustrates the possible effects of a DC offset causing signal S to "slide down" and thus become signal S', which enters / leaves window ZCW at different times relative to signal S, as reflected by corresponding changes in the labeled signal ZCF'. Figure 1 The diagram of thus illustrates the possibility of detecting a DC offset based on possible variations of the marking signal ZCF.
[0030] However, a number of problems may arise when trying to apply such concepts, for example in the checking operation of a D / A processing chain, such as an audio amplifier chain fed with an audio signal from a CD player.
[0031] The information content of the actual final analog signal resulting from the D / A conversion may actually differ from that conveyed by the digital version, such that the "zero" crossing behavior of the actual signal resulting from the D / A conversion may differ from that of the digital version of the audio stream.
[0032] This may be due to various factors such as, for example, a delay (usually unknown) of the analog signal relative to the digital version due to hardware (both analog and digital) between the digital stream processing and the power amplifier.
[0033] One or more embodiments may rely on a sampled version of the flag signal ZCF (used as a feedback signal, for example, from an analog output of an audio power amplifier). Figure 1The schematically represented method enables the processing of relevant information in the digital domain. In one or more embodiments, this can be done via digital hardware and / or software, thereby increasing the level of monitoring of the analog environment.
[0034] One or more embodiments may therefore utilize two types of data, namely:
[0035] - a digital version of the signal to be sent to the analog environment before D / A conversion (e.g. an input digital audio stream), and
[0036] - A sampled version of the ZCF marker signal received from the analog environment (eg from the output of an analog power amplifier, such as from a wire terminal for connection to a loudspeaker cable).
[0037] One or more embodiments may thus generate an expected predicted behavior of the (analog) marked ZCF in the digital domain (e.g. 44.1kHz SW): any difference between the predicted version of the mark (e.g. Est. ZCF) and the sampled version of the actual marked HW ZCF from the output of the D / A processing chain (e.g. from an audio power amplifier) may thus indicate the presence of a “problem” resulting in performance impairments.
[0038] One or more embodiments may therefore rely on the recognition that the effect of a D / A processing chain on a signal fed thereto may be predicted / estimated in the digital domain in order to increase a good replication of the analog waveform.
[0039] Figure 2 This concept is schematically represented in the figure of , where IS represents the digital signal from the source CD; the signal IS is input into a "physical system" 100, which generates an analog output signal OS therefrom, for example an audio signal to be fed to one or more speakers LS.
[0040] At 102, the signal OS undergoes (in a known manner, such as via thresholding using a threshold comparator) as in Figure 1 1 to produce a ZCF signal, which may be an "on / off" signal. In addition, this "on / off" ZCF signal may be sampled with a degree of accuracy comparable to the accuracy of a D / A implemented in system 100, for example, to generate a corresponding data stream suitable for processing in the digital domain.
[0041] For example, in one or more embodiments, the sampled “hardware” ZCF signal HW ZCF may be fed to performance instrumentation circuit / function 104 to be compared with an “estimated” (eg, predicted) ZCF signal Est.ZCF via system model circuit / function 106 .
[0042] Performance meter 104 may therefore compare the two ZCF signals (i.e., the HW ZCF sampled from the output of system 100 and the Est. ZCF predicted in system 106) and, based on the comparison, issue an output signal (e.g., alarm flag AF) that may indicate that the performance behavior of system 100 “deviates” from the desired / expected behavior.
[0043] In one or more embodiments, as better described below, the system model 106 can operate on the signal IS and on inputs provided by a parameter estimation circuit / function 108, which in turn can operate on both the signal IS and the sampled ZCF signal obtained at 102.
[0044] Will Figure 2 The blocks in the figure (and in the other figures discussed below) are called circuit / function blocks, which refers to the possibility mentioned above that the relevant processing can be performed with the help of digital hardware and / or software (such as processing functions in a digital signal processor or DSP).
[0045] Figure 3 yes Figure 2 An exemplary circuit diagram of a system according to one or more embodiments in which the method presented in may be applied. Reference is again made for simplicity purposes to the exemplary case of an audio link receiving a digital input signal IS (eg a 44.1kHz / 16-bit "Red Book" audio signal).
[0046] Figure 3 Reference numeral 200 in the figure denotes a device adapted to process the signal IS and to perform, for example, Figure 2 The entire digital processor (eg, DSP) performs the processing tasks illustrated by blocks 104, 106, and 108 in FIG.
[0047] Blocks 202 , 204 , 206 and 208 illustrate a processing chain configured to act on an input signal IS and comprising a digital part D and an analog part A.
[0048] The blocks in question may include, for example:
[0049] - Digital hardware, such as interpolator / error correction code (e.g., Reed-Solomon) circuit 202;
[0050] - a digital-to-analog (DAC) converter stage 204;
[0051] - analog circuits, such as, for example, a stereo / multi-channel pre-amplifier / equalizer 206; and
[0052] A power amplifier stage 208 (eg multi-channel) for generating an analog output signal OS for driving a set of loudspeakers LS; a DC offset filtering capacitor 208a may possibly be provided in the power amplifier stage 208 .
[0053] Figure 2 The circuit / function 102 in Figure 3 1 is illustrated as including a thresholding stage 102a that is sensitive to the output signal OS to produce a "hardware" ZCF flag ("1" or "0") as discussed above.
[0054] In one or more embodiments, Figure 3 As illustrated in FIG. 1 , the output signal OS may actually include multiple output signal components (e.g., the output signal of a stereo / multi-channel power amplifier). In one or more embodiments, the limiting stage 102 a may therefore include, for example, multiple comparators (with corresponding thresholds, which may be the same or different for the various signal components) that perform corresponding windowing functions, wherein the marking signal HW ZCF for the analog output signal OS is generated as a combination of the results of performing the limiting operation on the multiple different output signal components, for example, generated in the “OR” gate 102 a′.
[0055] However, the hardware ZCF mark (e.g., generated based on a single output signal or via a combination of multiple output signal components) can be sampled in a sampling stage (possibly a sample and hold stage) 102b at a sampling frequency (e.g., 44.1 / 48kHz Fs) that is consistent with a degree of accuracy consistent with the operating frequency of the processor 200.
[0056] When performing the desired A / D conversion, such as Figure 3 The processing chain illustrated in FIG. 4 may affect the signals processed therein differently, for example by:
[0057] - introducing a possibly frequency-dependent and different analog / digital loop delay for each power amplifier 208,
[0058] - Produces variable sampling effects at the A / D interface (e.g. S&H 102b),
[0059] - applying variable analog gain (e.g. at 206 and 208) and thresholds (at 102a) that may be different for each amplifier / channel,
[0060] - Introducing a DC offset which may be different for each power amplifier / channel.
[0061] In one or more embodiments, correct operation of such a processing link can be checked based on a comparison of a “hardware” feedback signal HW ZCF representing a marker ZCF signal generated based on the output of the link sampled at 102 b (e.g., the output of power amplifier 208) with one or more corresponding “estimated” markers (e.g., Est. ZCF) predicted by processor 200.
[0062] In one or more embodiments, various scenarios may therefore apply when comparing two ZCF markers as schematically illustrated in the following table.
[0063] HWZ A copy of the numerical forecast (e.g. Est.ZCF) 0 0 No useful meaning 0 1 Wrong ZCF 1 0 Missed ZCF 1 1 Correct ZCF detection
[0064] For comparing two ZCF signals, the “no ZCF” case (e.g. HW ZCF=0Est.ZCF=0) (i.e. both signals are “outside the window”) as well as the “wrong ZCF” and “missed ZCF” cases (i.e. either signal is “outside the window”) may be of little interest, since in these cases the value of the actual output analog signal OS may be completely different from any digital estimate thereof.
[0065] In one or more embodiments, only the '1-1' case (eg, HW ZCF=1Est.ZCF=1) (ie, both signals are within the corresponding threshold windows) may be taken into account when comparing signals IS and OS (eg, when checking the performance of a link by evaluating the matching of the two ZCFs).
[0066] It is also noted that in one or more embodiments, it may be selected to generate the two ZCF signals discussed only when they can be considered to be generated based on signals whose amplitudes fall within the corresponding windows ZCW (e.g., when the output of the link (e.g., the output from the power amplifier 208) is within the corresponding window ZCW (see Figure 1 )) performs a comparison of the two ZCF signals, and which may be maintained to apply to any corresponding “estimated” signal predicted in processor 200.
[0067] As pointed out, Figure 3 The processing chains illustrated in can differently affect the signals processed therein, so that for example the characteristics of the HW ZCF marking can be affected. Figures 4 to 6 The diagram illustrates how this can happen.
[0068] Figure 4 The diagram shows the loop delay by way of example (e.g. due to Figure 3 elements 202 to 208); this may be frequency dependent and different for, for example, each power amplifier 208, and may produce a corresponding delay in the HWZCF marking (ZCF to ZCF').
[0069] Figure 5 The diagram of FIG. 1 illustrates the threshold changes that can cause both width changes and delays (ZCF to ZCF') in the HW ZCF mark. It should be understood that if Figure 3 A completely similar effect can occur if the threshold set at, for example, 102a in FIG. 1 is kept constant while a gain change is applied to the signal undergoing windowing or thresholding (e.g. due to volume adjustment in the audio link). A threshold change is understood herein as a relative change in the amplitude (gain) of the threshold relative to the signal to which the threshold is applied.
[0070] Figure 6 The diagram illustrates possible effects of the sampling process (e.g. variation of the sampling instants for an otherwise constant sampling rate): if the sampling instants correspond to periods, the marked ZCF, which theoretically has the temporal behavior illustrated with a solid line, can be sampled as time-shifted marked ZCF' of different widths, and if the sampling instants correspond to triangles, it can be sampled even as a "markerless" ZCF signal.
[0071] Figure 7 The diagram illustrates a possible influence of a DC offset on the sampling process at the instants indicated by circles: Even at the same sampling instant, a marker ZCF which theoretically has a temporal behavior illustrated by a solid line can be sampled as a time-shifted (delayed) marker ZCF' or as a time-shifted (expected) marker ZCF".
[0072] Those skilled in the art will appreciate that the above discussion applies regardless of whether "1" or "0" is assigned to the ZCF flag to indicate that the corresponding signal falls within the window ZCW.
[0073] In one or more embodiments, processing of a digital input data stream (e.g., 44.1kHz) at 200 may be "tuned" by acting on estimated parameters to match the analog output signal when the D / A processing chain (e.g., 202, 204, 206, 208) is operating properly, such that a possible mismatch may be reliably used as an indication that operation is no longer satisfactory.
[0074] One or more embodiments may therefore involve comparing (e.g., Figure 2 At 104 in the figure, two flag signals HWZCF (obtained according to analog output) and Est.ZCF (obtained according to digital input) are compared and, based on the result of the ZCF comparison, a performance check signal is calculated indicating the amount by which the above-mentioned corresponding flag signals HWZCF and Est.ZCF correspond to (i.e., match) each other.
[0075] The performance check signal in question may therefore indicate the performance quality of the above-mentioned processing links (202, 204, 206, 208) and may take the form of an alarm flag AF issued from the performance instrumentation block 104, for example, when the matching degree of the flag signals HW ZCF, Est.ZCF drops below a certain performance quality threshold (i.e., when the two flag signals HW ZCF, Est.ZCF are found to no longer satisfactorily match each other).
[0076] In one or more embodiments, a system (such as, for example, the audio link illustrated herein) may be "pre-loaded" (e.g., in production) with, for example, Figure 8 106. For example, the digital input signal IS may be subjected to one or more of, for example, a large "integer" delay 1060, the addition / subtraction of a DC offset at 1062, an additional "fractional" delay 1064, and a windowing (thresholding) operation in order to produce an estimated ZCF value Est.ZCF that matches (e.g., within a certain tolerance range) a marker signal HW ZCF obtained for, e.g., an analog output signal OS from the S&H block 102b when the system is operating as desired.
[0077] Therefore, a possible mismatch of the flag signal HW ZCF, Est.ZCF can be kept to indicate a performance degradation (eg, a failure) so that it can be (eg, from Figure 2 Block 104 of the embodiment sends out a corresponding alarm flag AF as, for example, an alarm signal (eg, light and / or sound).
[0078] In combination with Figures 9 to 14 In one or more of the embodiments discussed, the system (such as the audio link explained herein) may be configured for possible estimations performed at "run time" (e.g., during operation of the operating parameters that may be fed, for example, from the parameter estimation block 108 to the "system model block" 106). For example, this may be done in view of the fact that the system model block 106 is based on the parameters of the system. Fig.10 The possible operations of the concept given in are arranged as Fig. 9 , where the estimated parameters converge to the correct value EV.
[0079] In one or more embodiments, counts of matches of marker signals including "hardware" marker signals (e.g., HW ZCF) obtained from the analog output OS and certain marker signals obtained by processing the digital input signal IS may be used as a metric in such an estimation process suitable for being performed at run time (e.g., during system operation).
[0080] In one or more embodiments, such estimated parameters (eg, DC offset, delay) as considered herein may be used to generate an alarm signal (eg, AF as previously described).
[0081] In one or more embodiments (eg, discussed further in the final section of this description), one or more such estimated parameters (eg, DC offset, delay) as considered herein may be used to drive a control loop in order to compensate for phenomena that result in impairment of performance.
[0082] In these cases, the system can self-compensate for the source of impairment, thereby ensuring that, for example, the HW ZCF and the Est. ZCF discussed previously are maximally matched, making a direct comparison of the two ZCFs no longer necessary.
[0083] However, as in Fig. 9 Similar comparisons between, for example, HW ZCF and other ZCF signatures obtained from the digital input signal IS may be performed in parameter estimation / tracking as performed in the exemplary estimation arrangement shown, where block 108 comprises in addition to a possible adjustable integer or bulk delay ADJ (adapted for example for “trimming” the estimator):
[0084] - a first estimation circuit / function 1082 for the "fractional" (eg fine adjustment) delay to be applied at 1064;
[0085] - a second estimation circuit / function 1084 for one or more thresholds windowed at 1066;
[0086] - A third estimation circuit / function 1086 for the DC offset to be applied at 1062.
[0087] In one or more embodiments illustrated herein, the bulk or integer delay to be applied at 1080 may be an initial "coarse" adjustment parameter ADJ for the system that is not intended to be subsequently modified.
[0088] One or more embodiments may provide different options for estimated parameters: for example, in one or more embodiments, instead of considering all delays, thresholds and DC offsets, only one or two of these parameters may be considered; in one or more embodiments, other parameters may be added to delays, thresholds and DC offsets and / or other parameters may replace delays, thresholds and DC offsets.
[0089] Figure 10 to Figure 14 The diagram of FIG. 1 illustrates a method in which estimated parameters (eg, Figure 2 Block 108 in ) enables one or more embodiments to detect (and possibly become known, for example, by issuing an alarm flag AF) and / or compensate for events that produce impaired system performance.
[0090] exist Fig. 9In one or more embodiments illustrated in , the estimator blocks 1082 , 1084 , and 1086 may operate by determining an exact (target) value EV for each parameter as a stationary point for the performance function.
[0091] This method is Fig.10 It is schematically represented in the figure, where:
[0092] - Part a) shows the current estimated value CE, which is, for example, less than the exact value EV, so that the corresponding "performance function" exhibits a positive gradient PG towards a peak (eg optimal) value;
[0093] - Part b) shows the current estimated value CE, which is, for example, greater than the accurate value EV, so that the corresponding performance function exhibits a negative gradient NG away from the peak value;
[0094] Part -c) shows the current estimated value CE, which is at or near the exact value EV, so that the corresponding performance function no longer exhibits a gradient, ie, zero (or almost zero) gradient, GRAD=0, which means that the current estimated value CE has reached the exact value EV.
[0095] In one or more embodiments, specific performance functions may be defined for each parameter. For example, useful performance functions for both fractional delay and for DC offset may be selected as the difference in successful detection (1-1: see the last row in the previous table) of certain ZCF markers discussed below over a fixed time frame, e.g. based on the so-called integration and elimination (I&D) method.
[0096] In one or more embodiments, a useful performance function for the threshold may be selected as the difference between "false detection" (1-0) events and "missed detection" (0-1) events (see the second and third rows in the previous table) for certain ZCF markers discussed below over a fixed time frame, for example based on an I&D approach.
[0097] In one or more embodiments, a performance function (eg, selected as previously exemplified) may be estimated at two nearby points, and a control loop may be used to adjust the estimated values of the parameters. In one or more embodiments, such a loop may include an "integral" operator.
[0098] In one or more embodiments, the estimation process converges to correct values for all parameters, and the estimates for each parameter may become available to the user as a side effect.
[0099] In one or more embodiments, the estimation process can converge to the correct value even when using the values obtained as the values from different signal components (e.g., from Figure 3The combination of various labels (e.g. Figure 3 The hardware tag HW tag is fed by the "OR" configuration illustrated at 102a in.
[0100] This entire process is suitable for being executed digitally, for example, by means of a conventional DSP such as illustrated below.
[0101] Fig.11 The diagram is used to Figure 8 An exemplary arrangement of a fractional delay estimator 1082 in which the delay element (filter) 1064 provides an estimated fractional delay value.
[0102] In one or more embodiments, inputs to the estimator 1082 may include:
[0103] - the input data stream after application of an integer or bulk delay at 1060, which is denoted IS';
[0104] - a DC offset value estimated by the estimator 1086;
[0105] - a threshold value T estimated by the estimator 1084;
[0106] - The “Hardware” ZCF marker HW ZCF from block 102 .
[0107] In one or more embodiments, the data stream IS' and the DC offset value are summed in node 300 and fed to two fractional delay blocks 302a, 302b, which are fed with the current fractional delay estimate (i.e., Fig.10 The fractional delay blocks 302a, 302b can therefore apply two different values of fractional delay so that the kind of corresponding gradient can be calculated: see e.g. Fig.10 PG or NG in parts a) and b) of the test.
[0108] The outputs from blocks 302a, 302b are windowed (according to threshold T) in "zero crossing" blocks 304a, 304b, and the resulting ZCF (eg, ZCF') may be fed to logical product (AND) blocks 306a, 306b. FD and ZCF″ FD ), the other inputs of AND blocks 306a, 306b are fed signal HW ZCF and the outputs converge to difference node 308 and then to integral elimination (I&D) block 310.
[0109] Such processing produces a difference in successful detections (essentially like the 1-1 events in the previous table) over a fixed time frame, which can be used as the performance function discussed previously.
[0110] Possible low pass filtering at 312 yields a fractional delay estimate error from the results of the I&D processing at 310 for use by integrator block 314. The output from integrator 314 becomes constant - see e.g. Fig.10 GRAD=0, part c) - will correspond to, for example, Figure 8 The correct estimate of the fractional delay EV of the fractional delay filter 1064 (and possibly other processing blocks described in further detail).
[0111] The output from block 314 is also fed to two delta generation blocks 316a, 316b for feeding to the fractional delay blocks 302a, 302b discussed previously.
[0112] Fig.12 The diagram is used to Figure 8 The summing node 1062 provides an exemplary arrangement of the DC offset estimator 1086 for providing an estimated DC offset value.
[0113] In one or more embodiments, inputs to the estimator 1086 may include:
[0114] - the input data stream after application of an integer or bulk delay at 1060, which is denoted IS';
[0115] - the fractional delay value estimated by the estimator 1082 discussed previously;
[0116] - a threshold value T estimated by the estimator 1084;
[0117] - The “Hardware” ZCF marker HW ZCF from block 102 .
[0118] In one or more embodiments, the data stream IS' and the fractional delay values are combined in the fractional delay block 400, where the last (i.e., most recent) estimate available for the fractional delay is applied to the data stream IS' to be fed to two summing nodes 402a, 402b, which are fed with the current DC offset estimate (i.e., the current DC offset value) with added positive and negative "deltas" +Δ and -Δ, respectively. Fig.10 CE in the figure), so that the kind of corresponding gradient can be calculated: see e.g. Fig.10 PG or NG in parts a) and b) of the test.
[0119] The outputs from nodes 402a, 402b are windowed (according to threshold T) in "zero crossing" blocks 404a, 404b, and the resulting ZCF (eg, ZCF') may be fed to logical product (AND) blocks 406a, 406b. DC and ZCF″ DC ), the other inputs of AND blocks 406a, 406b are fed with signal HW ZCF and their outputs converge to difference node 408 and then to integral elimination (I&D) block 410.
[0120] Such processing produces a difference in successful detections (essentially like the 1-1 events in the previous table) over a fixed time frame, which can be used as the performance function discussed previously.
[0121] Possible low pass filtering at 412 yields a fractional delay estimate error based on the results of the I&D processing at 410 for use in integrator block 414 .
[0122] As in the case of the previously discussed integrator block 314, the output from the integrator 414 becomes constant - see again e.g. Fig.10 GRAD=0, c) part - corresponds to, for example, the Figure 8 The correct estimate EV of the DC offset is fed to the DC offset summing node 1062 (and possibly to other processing blocks described in further detail).
[0123] The output from block 414 is also fed to two delta generation blocks 416a, 416b for feeding into the previously discussed summing nodes 402a, 402b.
[0124] at last, Fig.13 The diagram is used to Figure 8 The windowing logic 1066 provides an exemplary arrangement of a threshold estimator 1084 for at least one estimated threshold value. Although multiple thresholds can be estimated, for example in the case of an asymmetric window ZCW, a single threshold value T is considered here for simplicity purposes (e.g., for generating a symmetric -T, +T window).
[0125] In one or more embodiments, inputs to the estimator 1084 may include:
[0126] - input data stream IS;
[0127] - the fractional delay value estimated by the estimator 1082 discussed previously;
[0128] - a DC offset value estimated by the estimator 1086;
[0129] - The “Hardware” ZCF marker HW ZCF from block 102 .
[0130] In one or more embodiments, the data stream IS and the fractional delay value are combined in the fractional delay block 500, wherein (as in the case of the fractional delay block 400 discussed previously) the last (i.e., most recent) estimate available for the fractional delay is applied to the data stream IS to be fed to the summing node 502, which is fed with the current DC offset estimate (i.e., Fig.10 CE in the figure).
[0131] The output from node 502 is windowed in "zero crossing" blocks 504a, 504b with added positive and negative "deltas" +Δ and -Δ, respectively, according to the current estimated threshold T, so that once again the kind of corresponding gradient can be calculated: see e.g. Fig.10 PG or NG in parts a) and b) of the test.
[0132] The ZCF thus obtained (eg, ZCF' T and ZCF″ T ) is fed to logical product (AND) blocks 406a, 406b after logical inversion (i.e., negated form), the other inputs of AND blocks 506a, 506b are fed with signal HW ZCF and the outputs converge to difference node 508 and then to integral elimination (I&D) block 510.
[0133] Such processing produces the difference between "false detections" (essentially like the 0-1 events in the previous table) and "missed detections" (essentially like the 1-0 events in the previous table) over a fixed time frame, which can be used as the performance function discussed previously.
[0134] exist Fig.14 This approach is further illustrated in . The "exact" threshold ET is shown in the upper diagram of part a), while the corresponding ZCF for the signal S is shown as a full line in part c).
[0135] The effect of increases (+Δ) and decreases (-Δ) in the threshold (symmetric thresholds centered around zero are again assumed for simplicity) in terms of missed detections MD and false detections FD are illustrated in parts b) and d) of the figure.
[0136] Possible low pass filtering at 512 yields a threshold estimate error based on the results of the I&D processing at 510 for use in integrator block 514 .
[0137] As in the case of the previously discussed integrator blocks 314 and 414, the output from integrator 514 becomes constant - see e.g. Fig.10 GRAD=0, part c) - will correspond to, for example, Figure 8The correct estimate EV is fed to the windowing logic 1066 (and possibly to other processing blocks described in further detail).
[0138] The output from block 514 is also fed to two increment generation blocks 516a, 516b for feeding to the "zero crossing" blocks 504a, 504b discussed previously.
[0139] The basic arrangement disclosed herein is suitable for operation in various possible modes.
[0140] For example, in one or more embodiments, computing power may be saved by dividing the processing discussed above into, for example, two steps.
[0141] This may include measuring the parameters of interest during the production phase (e.g. in a factory, possibly by using an optimized signal for system training) and assuming that these parameters may remain substantially constant over a period of time as long as the processing link being checked operates correctly. These values for the parameters may be input as tuning parameters to the system model block (see e.g. Figure 2 106 in ), so that during the system life cycle, (only) when the performance shows degradation, the alarm flag AF is issued. In this way, by reducing the processing requirements accordingly, the runtime estimation of the parameters can be omitted.
[0142] In one or more embodiments, the two-stage approach contemplated above may reduce computational complexity while allowing ZCF correction (eg, matching) during audio streaming where parameters and channels do not differ and training time absorbs time during production.
[0143] Specific application options / requirements may dictate whether such an approach may be superior to continuous tracking of parameters, such as a tracking process running in the background during audio streaming, which may offer the advantage that all parameters may be controlled via different channels.
[0144] In one or more embodiments, continuous tracking of one or more operating parameters may allow prompt detection of any parameter (e.g., DC offset) that falls outside a predefined acceptable range, so that a corresponding alarm flag AF may be issued to indicate performance degradation, even in the absence of any comparison of the HW ZCF with the ESt. ZCF, whereas in one or more embodiments in which continuous tracking is not implemented, the performance degradation may be detected by, for example, determining the output of a D / A processing chain (e.g., according to Figure 3 Is the HW ZCF obtained by the output of the power amplifier 208 different from (e.g., mismatched) (e.g., Figure 2 ) in block 106 of ) for the ESt.ZCF predicted by the digital input signal IS, the check of the performance parameters may be based only on the HW ZCF and the ESt.ZCF.
[0145] One or more embodiments may therefore be based on the following recognition:
[0146] - one or more ZFC markers (such as Est.ZCF; ZCF′) can be generated by estimating in digital form, for example by applying, for example, a time delay (bulk or fractional), a DC offset and windowing to the digital input signal IS based on a given threshold. FD and ZCF″ FD ; ZCF' DC and ZCF″ DC ; ZCF' T and ZCF″ T ) without D / A conversion of the digital input signal IS.
[0147] - Although generated in an analog context, the HW ZCF resulting from the output of the D / A processing chain is essentially a binary signal (either "1" or "0"); once sampled, for example, at the same sampling frequency as the digital input signal, the HW ZCF is a digital signal suitable for being combined with any ZCF marker generated for the digital input signal (e.g., Est. ZCF; ZCF' FD and ZCF″ FD ; ZCF' DC and ZCF″ DC ; ZCF' T and ZCF″ T ) compared.
[0148] By way of non-limiting example, possible options for comparing the HW ZCF to any ZCF marker generated for the digital input signal (e.g., Est. ZCF) may include: counting the number of matches within a defined time frame, calculating the ratio of the number of matches over a particular time frame to the total number of HW ZCF markers, calculating the change in the number of consecutive matches over a particular time frame, or any other method of determining the extent or degree to which two ZCF markers correspond (e.g., coincide) with each other.
[0149] In one or more embodiments, in addition to or in lieu of generating an alarm flag AF indicating, for example, a fault, a performance review process as previously illustrated may be developed (eg, via processing in block 200 ) to compensate for / address unsatisfactory performance.
[0150] In one or more embodiments, such processing may include a control loop, such as, for example, an input may be, for example, from Fig.12 The DC offset estimator 1086 estimates the parameters such as the DC offset and the output is to be processed from the input data stream (e.g., the digital input signal IS, such as in Figure 3The integrator that subtracts / adds values to the input data stream (occurs in the DSP 200 of the control loop). Convergence of such a control loop will result in an integrator output that is actually measured as zero DC offset and a DC value to be compensated.
[0151] One or more embodiments may implement such a control function in real time while the system (eg, audio link) processes the actual (eg, audio) signal and the integrator tracks, for example, DC offset changes.
[0152] In one or more embodiments, a DC offset value may be calculated that is then subtracted from the input data stream (e.g., in an open loop arrangement). In such embodiments, the DC offset will not be tracked, but unknown changes in this value may be monitored in an indirect manner via the matching function discussed previously.
[0153] In one or more embodiments, the digitally compensated DC offset as previously discussed will enable the elimination of any DC decoupling capacitors, resulting in a perceived HW optimization, as the measured DC offset value will be constantly kept at zero by means of, for example, a simple PID controller implementing the relevant control loop.
[0154] In one or more embodiments, accurate closed-loop real-time measurement of DC offset will be available.
[0155] In one or more embodiments, a similar approach may also be employed for any of the other parameters discussed above (delays, thresholds, etc.).
[0156] More generally, various different modes of operation may be employed for the system (digital-to-analog processing link) exemplified above.
[0157] For example, one or more embodiments may involve initial training for identification of parameters; these estimated parameters may then be applied to the system model (e.g. Figure 2 Block 106 of the embodiment of the present invention. That is, the model of the system does not change over time, and a possible mismatch (lack of correspondence) of the HW ZCF and Est. ZCF measured based on any of the metrics exemplified above can be interpreted as indicating an undesirable change in an electrical parameter (e.g., DC offset) of the system. Based on this, an alert flag AF can appear to advise the user of such an undesirable mode of operation.
[0158] In this mode of operation, two flag signals HW ZCF and Est.ZCF can be used for initial parameter estimation and detection of alarm conditions.
[0159] One or more embodiments may involve an operating mode in which, after a startup phase in which a mismatch between HW ZCF and Est. ZCF (i.e., a lack of correspondence between them) is expected to be detected, the system will use an estimation loop updated at run time and via, for example, a combination of Figure 10 to Figure 14 The ZCF tag for discussion (ZCF' FD and ZCF″ FD ; ZCF' DC and ZCF″ DC ; ZCF' T and ZCF″ T ) is applied to the estimated parameters of the system to implement the tracking scheme.
[0160] Once convergence is achieved, the HW ZCF and Est. ZCF are expected to be similar, ie, substantially match, within the range in which the parameter estimates are valid.
[0161] In this case, an alarm flag AF may be issued based on, for example, the value of an estimated parameter rather than the matching of HW ZCF and Est. ZCF because, for example, the estimated value of a particular parameter falls outside a particular range that can be used for operation.
[0162] Any possible mismatch (lack of correspondence) of the two ZCF signals may indicate that the estimated value is unreliable, because, for example, the estimation process has not yet converged or because it has not changed, it is possible to converge again more or less quickly. However, any changes in the physical changes of the system (such as DC offsets) are likely to occur slowly enough that they are effectively tracked by the tracking loop. For this reason, an alarm flag AF may be issued based on, for example, the value of the estimated parameter.
[0163] One or more of the embodiments illustrated in the last part of the preceding description may include a control loop adapted to affect the digital data stream IS input to the system. In this case, rather than just monitoring the estimated values of the parameters to understand "what is happening", the estimated values of the parameters may be developed for pre-compensating the digital input IS in order to eliminate undesirable eventual effects on the output signal. For example, a digital DC offset may be added to or subtracted from the digital input signal IS by adding or subtracting from the sample data a specific set of bits corresponding to the added / subtracted offset in order to compensate for (i.e. eliminate) an undesirable DC offset applied to the loudspeaker LS.
[0164] As another example, a digital delay may be applied to the digital input signal IS in order to compensate for (ie, cancel) different delays on the stereo channels.
[0165] In this case, the system will continue to operate even in the presence of possible sources of fault (by compensating for them), the impact of which is minimized due to the (pre-)compensation of the input signal.
[0166] In one or more embodiments, various analog components may thus be eliminated by moving towards an all-digital approach with both cost and space advantages, where SW implementation is possible while allowing real-time measurement of relevant parameters.
[0167] One or more embodiments may therefore allow operation of a signal processing chain (eg, Figure 3 202, 204, 206, 208).
[0168] In one or more embodiments, at least one first flag signal (eg, HW ZCF) is generated for the analog output signal OS, and at least one second flag signal (eg, Est. ZCF; ZCF′) is generated for the digital input signal IS. FD , ZCF″ FD ; ZCF' DC , ZCF″ DC ; ZCF' T , ZCF″ T ).
[0169] In one or more embodiments, each of these marker signals exhibits a first level and a second level (eg, "1" and "0"), and each marker signal is set to the first level when the signal based on which the marker is generated has a value within a particular amplitude window.
[0170] For example, in the case where there is a single output signal OS, the flag HW ZCF may be "1" if the output signal OS falls within its threshold window, and "0" otherwise.
[0171] In this article Figure 3 In the exemplary case shown, due to the limiting at 102a, the various analog output signal components generate corresponding "on / off" signals, which due to the OR function performed at 102a' can produce a label HW ZCW for the output signal OS, which can be "1" when any analog output signal component that undergoes limiting at 102a falls within its limiting window.
[0172] The same applies to any marker signal in the "second" marker signal, such as Est.ZCF; ZCF' FD , ZCF″ FD ; ZCF' DC , ZCF″ DC ; ZCF' T , ZCF″ T ,in:
[0173] -Est.ZCF via Figure 8 The limit at 1066 in is generated based on the signal output of the fractional delay filter 1064;
[0174] -ZCF' FD , ZCF″ FD via Fig.11 The limits at 304a, 304b in are generated based on the output signals of the fractional delay blocks 302a, 302b;
[0175] -ZCF' DC , ZCF″ DC via Fig.12 The limits at 404a, 404b in are generated based on the output signals of the summing nodes 402a, 402b;
[0176] -ZCF' T , ZCF″ T via Fig.13 The limits at 504a and 504b in are generated based on the output signal of the summing node 502.
[0177] In one or more embodiments illustrated herein, when operating a digital-to-analog signal processing link as illustrated herein, the first marker signal HW ZCF and the second marker signal Est.ZCF; ZCF′ may be developed in various ways. FD , ZCF″ FD ; ZCF' DC , ZCF″ DC ; ZCF' T , ZCF″ T To this end, in one or more embodiments, the first marking signal HW ZCF for the analog output signal OS may be sampled at the same sampling frequency as the digital input signal IS.
[0178] For example, in one or more embodiments, the first flag signal HWZCF obtained according to the analog output OS may be compared with the second flag signal Est.ZCF obtained according to the digital input signal IS (e.g., in Figure 2 104 in the figure) to calculate the amount by which the first flag signal HW ZCF and the second flag signal Est.ZCF match each other.
[0179] In one or more embodiments, the amount may be selected from:
[0180] - a count of matches of the first marking signal HW ZCF with the second marking signal Est. ZCF over a specific time frame,
[0181] - the ratio of the number of matches of the first marking signal HW ZCF with the second marking signal Est.ZCF to the total number of marking signals of either type (HW ZCF or Est.ZCF) over a specific time frame,
[0182] - Change in the number of matches of the first marking signal HW ZCF with the second marking signal Est. ZCF over a specific time frame.
[0183] In one or more embodiments, such as those in which the processing link is "preloaded" with estimated parameters for Est.ZCF (which are no longer modified during operation), a performance check signal AF may be generated that indicates the amount by which the first flag signal HW ZCF for the analog output signal OS and the second flag signal Est.ZCF for the digital input signal IS match each other. Such a performance check signal may include an alarm flag AF that is issued when the amount of said match falls below a certain performance quality threshold.
[0184] In addition to or instead of the above, in one or more embodiments, the combination may be processed Figure 10 to Figure 14 The first mark signal HW ZCF obtained according to the analog output OS and various second mark signals ZCF obtained according to the digital input signal IS in various ways; ZCF' FD , ZCF″ FD ; ZCF' DC , ZCF″ DC ; ZCF' T , ZCF″ T To calculate (for example, Fig. 9 Estimation of at least one operating parameter (e.g., FD, DC offset, T) of the signal processing chain 202, 204, 206, 208 in blocks 1082, 1084, 1086 of FIG. Fig.10 As illustrated, an estimate of at least one operating parameter (FD, DC offset, T) of the signal processing links 202, 204, 206, 208 may be calculated as a target value EV which optimizes the performance function, preferably by minimizing its gradient (see e.g. Fig.10 GRAD=0 in it).
[0185] In one or more embodiments, if the estimated operating parameters include delay FD and / or DC offset, the performance function may be selected as the first marker signal HW ZCF and the second marker signal (see, e.g., Fig.11 ZCF for fractional delay in FD , ZCF″ F or Fig.12 ZCF for DC offset inDC , ZCF″ DC ) of the successful detection (1-1 in the previous table) (e.g. Fig.11 and Fig.12 Calculated at nodes 308, 408 in ).
[0186] In one or more embodiments, if the estimated operating parameters include a windowing threshold T, the performance function may be selected as the windowing threshold T in the example Fig.13 The integral elimination block 510 determines the first marker signal HW ZCF and the second marker signal ZCF′ on the time frame T , ZCF″ T of false detection events and missed detection events (see e.g. Fig.14 The difference between FD and MD in Fig.13 Calculated at node 508 of ).
[0187] In one or more embodiments, a performance check signal, such as an alarm flag AF, may be issued if an estimated value of at least one operating parameter, such as, for example, FD, DC offset, or T, falls outside a particular range usable for operation.
[0188] In one or more embodiments, where an estimate of at least one operating parameter (e.g., FD, DC offset, T) of the signal processing links 202, 204, 206, 208 is calculated, the estimated operating parameter (such as, for example, DC offset) can be fed to a control loop that preferably acts on the digital input signal IS to compensate for system performance impairments that may, for example, arise due to the estimated operating parameter moving outside a specific range that can be used for operation.
[0189] In one or more embodiments, generating one or more second flag signals for the digital input signal IS may include applying one or more of the following to the digital input signal IS:
[0190] - Delay, as in Figure 8 In the case of delays 1060 and 1064 applied to IS to generate Est.ZCF, or Figures 9 to 13 The delay ADJ, 302a, 302b; ADJ, 400; 500;
[0191] -DC offset, as in Figure 8 In the case of a DC offset 1062 applied to IS to generate Est.ZCF, or Figures 9 to 13 The delay in 300, 302b; 402a, 402b; 502;
[0192] - Windowing based on one or more thresholds, as in Figure 8In the case of windowing 1066 applied to IS to generate Est.ZCF, or Figures 9 to 13 The case of windowed blocks 304a, 304b; 404a, 404b; 504a, 504b in .
[0193] Without departing from the underlying principles, the details and embodiments may vary, even significantly, with respect to what is described herein merely by way of non-limiting example, without departing from the scope of protection, which is determined by the following claims.
Claims
1. A method for operating a digital-to-analog processing link, comprising: generating an analog output signal from a digital input signal via a processing chain; generating a first digital signal based on the analog output signal, the first digital signal indicating a time period during which the amplitude of the analog output signal is within a limited range of values; determining, by a parameter estimation circuit including a feedforward path having an input and an output, at least one parameter of the processing chain based on the digital input signal and the first digital signal; wherein the at least one parameter is generated at the feed-forward path, and wherein determining the at least one parameter comprises: providing the digital input signal as an input signal to the input terminal of the feedforward path; and providing the first digital signal as an input signal to a logic operation between the input terminal of the feedforward path and the output terminal of the feedforward path; generating a second digital signal based on the at least one parameter and the digital input signal; and The first digital signal and the second digital signal are compared.
2. The method of claim 1, wherein the second digital signal comprises an estimate of the first digital signal.
3. The method of claim 1 , wherein comparing the first digital signal and the second digital signal comprises: The number of times the amplitude of the first digital signal is equal to the amplitude of the second digital signal within a time frame is determined.
4. The method according to claim 1, further comprising: Based on a comparison of the first digital signal and the second digital signal, a performance indication signal is generated, the performance indication signal indicating a degree of mismatch between the first digital signal and the second digital signal. 5 . The method of claim 4 , wherein the performance indication signal is generated in response to a mismatch between the first digital signal and the second digital signal being greater than a threshold.
6. The method according to claim 5, further comprising: In response to a mismatch between the first digital signal and the second digital signal being greater than the threshold, the at least one parameter of the processing chain is adjusted.
7. A method of operating a digital-to-analog processing link, comprising: generating an analog output signal from a digital input signal; generating a first digital signal based on the analog output signal, the first digital signal indicating a time period during which the amplitude of the analog output signal is within a limited range of values; determining a fractional delay, a windowing threshold, or an offset based on the digital input signal and the first digital signal, or a combination thereof; generating an estimate of the first digital signal based on at least one of the fractional delay, the windowing threshold, or the offset and the digital input signal; as well as generating an alarm signal based on a comparison of the first digital signal and an estimate of the first digital signal, wherein determining the fractional delay, the windowing threshold, the offset, or a combination thereof comprises determining each of the fractional delay, the windowing threshold, and the offset, and wherein generating the estimate of the first digital signal based on the digital input signal and the fractional delay, the windowing threshold, the offset, or a combination thereof comprises: applying an integer delay to the digital input signal to produce a first intermediate signal; applying the offset to the first intermediate signal to generate a second intermediate signal; applying the fractional delay to the second intermediate signal to produce a third intermediate signal; and A thresholding operation is performed on the third intermediate signal using the windowing threshold to produce the estimate of the first digital signal.
8. The method of claim 7, wherein generating the analog output signal from the digital input signal comprises: The analog output signal is generated from the digital input signal through a digital-to-analog processing link.
9. The method of claim 8, wherein determining at least one of the fractional delay, the windowing threshold, or the offset comprises: The fractional delay of the digital-to-analog processing link, the windowing threshold of the digital-to-analog processing link or the direct current (DC) offset of the digital-to-analog processing link are estimated respectively.
10. The method of claim 7, wherein the comparing of the first digital signal with the estimate of the first digital signal comprises at least one of: a count of matches of the first digital signal to an estimate of the first digital signal over a time frame; the ratio of the number of matches of the first digital signal to an estimate of the first digital signal to the total number of signals of either type over the time frame; or The variance of the number of matches of the first digital signal to an estimate of the first digital signal over the time frame.
11. The method of claim 7, wherein in response to the amplitude of the analog output signal being within an amplitude window, the first digital signal has a first amplitude, and wherein in response to the amplitude of the analog output signal being outside the amplitude window, the first digital signal has a second amplitude different from the first amplitude.
12. The method of claim 7, wherein generating the alarm signal based on a comparison between the first digital signal and the estimate of the first digital signal comprises generating the alarm signal in response to a difference between the first digital signal and the estimate of the first digital signal being greater than a predetermined threshold.
13. An electronic device comprising: a processing chain configured to generate an analog output signal from a digital input signal; a first circuit configured to generate a first digital signal based on the analog output signal, the first digital signal indicating a time period during which the amplitude of the analog output signal is within a limited range of values; a processor configured to determine at least one parameter of the processing chain based on the digital input signal and the first digital signal, the processor comprising a parameter estimation circuit, the parameter estimation circuit comprising a feedforward path, the feedforward path having an input and an output, wherein the at least one parameter is generated at the output of the feedforward path, wherein the processor is configured to determine the at least one parameter by receiving the digital input signal as an input signal to the input of the feedforward path and by receiving the first digital signal as an input signal to a logic operation between the input and the output of the feedforward path; as well as A first circuit is configured to generate a second digital signal based on the at least one parameter and the digital input signal, wherein the processor is further configured to compare the first digital signal and the second digital signal.
14. The apparatus of claim 13, wherein the second digital signal comprises an estimate of the time period that the amplitude of the analog output signal is within the range of values.
15. The apparatus of claim 13, wherein comparing the first digital signal and the second digital signal comprises: The number of times the amplitude of the first digital signal is equal to the amplitude of the second digital signal within a time frame is determined.
16. The apparatus of claim 13, wherein the processor is further configured to generate a performance indication signal based on a comparison of the first digital signal and the second digital signal, the performance indication signal indicating a degree of mismatch between the first digital signal and the second digital signal.
17. The apparatus of claim 16, wherein the performance indication signal is generated in response to a mismatch between the first digital signal and the second digital signal being greater than a threshold.
18. The apparatus of claim 17, wherein the processor is further configured to adjust the at least one parameter of the processing chain in response to a mismatch between the first digital signal and the second digital signal being greater than the threshold.
19. The apparatus of claim 16, wherein the comparison of the first digital signal and the second digital signal comprises at least one of: a count of matches between the first digital signal and the second digital signal over a time frame; the ratio of the number of matches of the first digital signal with the second digital signal to the total number of signals of either type over the time frame; or A variance of the number of matches of the first digital signal to the second digital signal over the time frame.
20. A method of operating a digital-to-analog processing link, comprising: receiving a digital input signal; receiving, by a parameter estimation circuit, a first digital signal, the first digital signal being based on an analog output signal, the analog output signal being based on the digital input signal, the first digital signal being indicative of a time period during which a magnitude of the analog output signal is within a limited range of values; determining, by the parameter estimation circuit, at least one parameter of a processing chain based on the digital input signal and the first digital signal, wherein the parameter estimation circuit comprises a feed-forward path having an input and an output, wherein the at least one parameter is generated at the output of the feed-forward path, and wherein determining the at least one parameter comprises: providing the digital input signal as an input signal to an input terminal of the feedforward path; and providing the first digital signal as an input signal to a logic operation between an input terminal of the feedforward path and an output terminal of the feedforward path; generating a second digital signal based on the at least one parameter and the digital input signal; comparing the first digital signal and the second digital signal; and An alarm signal is generated based on the comparison, the alarm signal indicating a degree of mismatch between the first digital signal and the second digital signal.
21. The method according to claim 20, further comprising: generating the analog generated signal from the digital input signal using a processing chain; as well as The first digital signal is generated using a zero-crossing circuit.
22. The method of claim 21, wherein the degree of mismatch is based on a delay caused by a loop delay of the processing chain.
23. The method of claim 21, wherein the degree of mismatch is based on a threshold change of the zero crossing circuit.
24. The method of claim 21, wherein the mismatch degree is based on a sampling instant variation of the zero-crossing circuit.
25. The method of claim 21, wherein the mismatch degree is based on a DC offset of the zero crossing circuit.
26. The method of claim 20, wherein the limited range is symmetric with respect to a fixed value of the analog output signal. The method of claim 26 , wherein the fixed value is zero.
28. The method of claim 20, wherein generating the second digital signal comprises: The second digital signal is generated using a system model block, the method further comprising: preloading values of estimated parameters into the system model block.
29. The method of claim 28, further comprising subjecting the digital input signal to a DC offset, an integer delay, or a fractional delay.
30. The method of claim 20, wherein estimating the at least one parameter comprises estimating a fractional delay by: adding a DC offset value to the digital input signal to generate a first intermediate signal; applying a fractional delay to the first intermediate signal to generate a second intermediate signal; and Based on the second intermediate signal, an estimated fractional delay is generated.
31. The method of claim 20, wherein estimating the at least one parameter comprises: applying the estimated fractional delay to the digital input signal to generate a first intermediate signal; as well as The first intermediate signal is windowed based on an estimated threshold.
32. A method of operating a digital-to-analog processing link, comprising: receiving a digital input signal; generating an analog input signal based on the digital input signal using a preamplifier; amplifying the analog input signal using a power amplifier to generate an analog output signal, wherein a processing chain includes the preamplifier and the power amplifier; Using the analog output signal to drive a speaker; generating a first digital signal based on the analog output signal using a zero-crossing circuit, the first digital signal indicating a time period during which the amplitude of the analog output signal is within a limited range of values; determining at least one parameter of the processing chain based on the digital input signal and the first digital signal by a parameter estimation circuit, wherein the parameter estimation circuit comprises a feed-forward path having an input and an output, wherein the at least one parameter is generated at the output of the feed-forward path, and wherein determining the at least one parameter comprises: providing the digital input signal as an input signal to an input terminal of the feedforward path; and providing the first digital signal as an input signal to a logic operation between an input terminal of the feedforward path and an output terminal of the feedforward path; generating a second digital signal based on the at least one parameter and the digital input signal; comparing the first digital signal and the second digital signal; and An alarm signal is generated based on the comparison, the alarm signal indicating a degree of mismatch between the first digital signal and the second digital signal.
33. The method of claim 32, wherein the at least one parameter comprises a DC offset.
34. The method of claim 33, further comprising: The DC offset is compensated for by subtracting the DC offset from the digital input signal.
35. The method of claim 34, wherein compensating for the DC offset comprises: Use a PID controller.
36. An electronic device comprising: An input terminal configured to receive a digital audio input signal; Output terminals; a processor having a first input coupled to the input terminal; a zero-crossing circuit having an input coupled to the output terminal and an output coupled to the second input of the processor, the zero-crossing circuit configured to generate a first digital signal based on the analog output signal; as well as a processing chain having an input coupled to a first output of the processor and having an output configured to produce an analog output signal at the output terminal, wherein the processor comprises: A parameter estimation circuit comprises a feedforward path, wherein the feedforward path has an input terminal and an output terminal, and the parameter estimation circuit is configured to: receiving the first digital signal, and determining at least one parameter of the processing chain based on the digital audio input signal and the first digital signal, wherein the at least one parameter is generated at an output of the feed-forward path, and wherein determining the at least one parameter comprises: providing the digital audio input signal as an input signal to an input of the feed-forward path, and providing the first digital signal as an input signal to a logic operation located between the input of the feed-forward path and an output of the feed-forward path; a system model circuit configured to generate a second digital signal based on the at least one parameter and the digital audio input signal, and A performance metering circuit is configured to compare the first digital signal and the second digital signal and generate an alarm signal based on the comparison, the alarm signal indicating a degree of mismatch between the first digital signal and the second digital signal.
37. The apparatus of claim 36, wherein the processing chain comprises: a digital-to-analog converter having an input coupled to an output of the processor; a preamplifier having an input coupled to the output of the digital-to-analog converter; as well as A power amplifier has an input coupled to the output of the preamplifier and an output coupled to the output terminal.
38. The apparatus of claim 37, wherein the processing chain further comprises: A capacitor is coupled between the pre-amplifier and the power amplifier.
39. The device of claim 36, wherein the output terminal is coupled to a speaker.
Citation Information
Patent Citations
Circuits, systems, and methods for managing automatic gain control in quadrature signal paths of a receiver
CN102656806A
Compensation for lane imbalance in a multi-lane analog-to-digital converter (ADC)
CN103516361A
Differential window comparator
US6605965B1
Audio amplifier offset reduction using digital input / output comparisons
US8525710B1
