Method and apparatus for processing an analog signal

Abstract: In apparatus for processing an analog signal, a succes­ sive approximation ADC comprises a successive approxi­ mation register and a DAC. The final digital signal generated by the ADC is applied to digital processing equipment, such as a digital delay, and the output signal from the processing equipment is converted to analog form using the DAC of the ADC.

Description: This invention relates to a method and apparatus for processing an analog signal. Analog-to-digital converters are frequently used in applications which call for a delay of an analog electrical signal. For example, in a television frame synchronizer, which is used to bring the video portion of an input television signal into synchronism with a reference video signal, the input video signal is sampled at times related to the subcarrier burst of the input video signal and successive samples are converted into digital form and written into memory, and the digital signals are read out of memory and converted to analog form with timing controlled by the subcarrier burst of the reference signal. In addition, in order to achieve a desired degree of synchronism between the video and audio portions of the input signal, it may be necessary to delay the audio portion and this may be done by converting the audio portion to digital form and delaying the digital signal by a selected amount using a digital delay line prior to reconverting to analog form. Digital delay lines are particularly desirable for this purpose since they are inherently more accurate than analog delay lines. Problems may arise, however, in controlling the conversion between analog form and digital form. For example, if the analog-to-digital converter (ADC) is of the successive approximation type, comprising a successive approximation register, a digital-to-analog converter (DAC) and a comparator, nonlinearity in the transfer function of the DAC will result in the digital signal provided to the digital delay line not representing accurately the analog input signal. Non-linearity in the conversion into the higher order bits of the digital signal may result in it not being possible to represent certain analog input values, i.e. the transfer function of the DAC may be indeterminate for certain ranges of higher values of the analog input signal. Another problem that arises with a conventional successive approximation ADC is that which is known as sample and hold droop. The successive approximation ADC has a sample and hold at its input to maintain the input signal to the comparator constant during operation of the ADC. The sample and hold utilizes a storage capacitor, but owing to leakage the charge on the capacitor, and consequently the voltage applied to the input of the comparator, falls. As would be expected, the voltage drops as a function of leakage current. If the signal provided by the sample and hold is digitized in successive bits, starting with the most significant bit (MSB), and the MSB conversion is effected before the output of the sample and hold has settled, and the amplitude of the drift is greater than the resolution of the higher order DAC, the digital output signal provided by the higher order DAC will be incorrect (it will not represent the settled output of the sample and hold) and the output provided by the lower order DAC will not normally have any meaning. From US-A-4 149 256 an analog signal processing system is known based on a successive approximation analog-to-digital converter. The converter comprises a digital-to-analog converter and a comparator for converting a sequence of digital signals delivered by a processor for successive approximation. A final digital signal representing the value of an analog input signal is stored in a data memory associated to the processor. The processor performs computations on the digital signal stored in the memory and applies its output through the digital-to-analog converter also used for the successive approximation analog-to-digital conversion. From US-4 412 208 a digital-to-analog converter is known which comprises a first digital-to-analog converter for generating an output signal of higher order bits and a second digital-to-analog converter for generating a full-scale output as an output signal of lower order bits which is always larger than the output value corresponding to one bit of a digital input at the least significant bit of the first digital-to-analog converter. The outputs of the two digital-to-analog converters are added and are applied to a code converter to make the analog output signal substantially linear. It is an object of the invention to provide an apparatus and a method for delaying an analog signal by a predetermined time on a digital basis. According to the invention, the apparatus of processing the analog signal comprises a successive approximation analog-to-digital converter receiving at an input an analog input signal and making available at an output a final digital input signal representing the value of the analog input signal, the analog-to-digital converter including a digital-to-analog converter, which receives a sequence of digital signals from a successive approximation register at successive times prior to a time the final digital input signal is made available and provides in response to each digital signal of the sequence an intermediate analog signal corresponding to the digital signal for comparison with the analog input signal to develop the final digital input signal, and digital processing means for receiving the final digital input signal and providing a digital output signal, the digital-to-analog converter being connected to receive the digital output signal and to provide an analog output signal in response to the digital output signal, and is characterized by switching means for switching the input of the digital-to-analog converter between the sequence of digital signals and the digital output signal, the final digital signal of the analog-to-digital converter being made available at a selected time and the processing means providing the digital output signal a predetermined time after the selected time and substantially equal to the final digital signal. The method for processing the analog signal according to the invention comprises the steps of: converting in a successive approximation analog-to-digital converter an analog input signal received at an input thereof to a final digital input signal made available at an output of the analog-to-digital converter, the analog-to-digital converter including a digital-to-analog converter which receives a sequence of digital signals from a successive approximation register at successive times prior to a time the final digital input signal is made available and provides in response to each digital signal of the sequence an intermediate analog signal corresponding to the digital signal for comparison with the analog input signal to develop the final digital input signal; digital processing the final digital input signal to provide a digital output signal and providing the digital output signal to the digital-to-analog converter to provide an analog output signal in response thereto, and is characterized by making available the final digital signal of the analog-to-digital converter at a selected time and providing the digital output signal of the digital processing step a predetermined time after the selected time substantially equal to the final digital signal and by switching the input of the digital-to-analog converter between the sequence of digital signals from the successive approximation register to provide the final digital signal and the digital output signal to provide the analog output signal. For a better understanding of the invention, and to show how the same may be carried into effect, reference will now be made, by way of example, to the accompanying drawings in which: FIG. 1 is a flow chart showing operations performed in synchronizing an input television signal with a reference television signal; FIG. 2 shows partially in block form apparatus for processing the audio portion of the input television signal; FIG. 3 shows four graphs of analog output against digital input of respective digital-to-analog converters; FIG. 4 illustrates conversion of analog signals to digital values; and FIG. 5 is a block diagram of a video frame synchronizer. As is well known, the television signal includes an audio portion and a video portion. In terms of achieving a smooth switch between television signals from different sources, the relationship between the video portions of the signals is more critical than the relationship between the audio portions, because it is the video portion of the television signal that contains the synchronizing information for controlling operation of the television display device, i.e. a monitor or a receiver. Thus, when it is desired to switch from selection of a first television signal source to selection of a second television signal source, as in a production switcher, or to combine the video portions of signals from different sources, as in a digital video effects unit, is it conventional to use a frame synchronizer to bring the video portion of the second television signal into synchronism with the video portion of the first television signal. This is in practice accomplished by insuring that the video portions of both television signals are synchronized with a reference video signal. Passage of the video portion of a television signal through a frame synchronizer inevitably delays the video portion of the signal. Frequently, the delay will be insignificant, but if the delay is of the order of 25 ms or greater, which can frequently happen, and the audio portion of the signal has not been correspondingly delayed, differential delay of the video portion may be perceptible to the television viewer, particularly where the audiovisual scene represented by the television signal is one in which speech can be heard and the corresponding lip movement seen. It is therefore desirable, when the video portion of a television signal is delayed, to delay the audio portion a corresponding amount. Preferably, the audio portion of the signal is delayed using a digital delay line. The analog audio portion is converted to digital form, and the digital signal is delayed by the desired amount and reconverted to analog form. Thus, as illustrated in the flow chart shown in FIG.1, the video portion of the signal undergoes processing and concomitant delay, and the audio portion is correspondingly delayed by first converting it to digital form, then delaying the digital signal by a predetermined amount and finally converting the digital signal back to analog form. The delayed audio and video portions of the television signal are then recombined. One problem that arises in using a digital delay line is that nonlinearity of the transfer function of the digital to analog converter prevents the delayed audio signal from being an accurate replica of the input audio signal. Where the analog to digital conversion is performed using a successive approximation converter, which itself includes a digital to analog converter, additional errors may be introduced. FIG. 2 illustrates a sample and hold circuit 20 which receives an audio input signal applied to an input terminal 22 and has its output connected to one input of a comparator 24. The output of the comparator is applied to a successive approximation register (SAR) 26 which has its output connected to a switch 29 and to a bus 30. The switch 29 is used to connect the output of the SAR 26 to a current DAC 32. The output of the DAC 32 is applied to a current to voltage converting amplifier 36, and the output of the amplifier 36 is fed back to the comparator 24 for comparison with the output of the sample and hold circuit 20. The combination of the comparator 24, the SAR 26, the DAC 32 and the amplifier 36 functions as a successive approximation ADC, the principle of operation of which is described in, for example, Data Conversion Handbook, D.B. Bruck, 1974, Hybrid Systems Corp., page 3-7, and Microprocessor Systems Handbook, D.P. Burton and A.L. Dexter, 1977, Analog Devices, Inc., pages 142, 143. During the conversion cycle the switch 29 remains closed, connecting the output of the SAR 26 to the DAC 32. At the end of the conversion cycle the switch 29 is opened and the final digital signal is placed on the bus 30. The digital signal made available on the bus 30 is applied to a digital delay line 38, the delayed digital signal is reconverted to analog form by the DAC 32 and the amplifier 36, and the resulting delayed analog signal is provided on an output line 40. It will be appreciated that it is necessary to control access to the bus 30 by the SAR 26 and the delay line 38 in order to avoid the possibility of attempting to place two signals on the bus at the same time. The measures that must be taken to achieve this and to control operation of the switch 29 in conjunction with the SAR 26 will be familiar to those skilled in the art and accordingly no further explanation is provided herein. If it is assumed that the successive approximation analog-to-digital conversion operation has a transfer function of H₁, then [Y n ] = H₁X(t) (1) where X(t) represents the analog input signal received by the ADC and [Y n ] represents the digital signal delivered to the delay line 38. If the DAC 32 has a transfer function of H₂, then Z(t) = H₂[Y n ] (2) where Z(t) represents the analog output signal provided on the line 40, and the delay introduced by the digital delay line 38 has been ignored since this delay simply results in a change in the frame of reference of the signals and does not otherwise affect the signals. However, the transfer functions of the comparator 24 and the SAR 26 are both unity. Accordingly, H₂ is the inverse of H₁ and therefore Z(t) = X(t) (3) It will therefore be seen that by sharing the DAC 32 between the input ADC and the output DAC the nonlinearities in the conversions between analog and digital form are rendered self-cancelling. This effect is referred to hereinafter as linearity error cancellation. In order to avoid objectionable distortion of the audio input signal when it is digitized, delayed and reconstructed, the audio signal is digitized to sixteen bits. Instead of employing a single SAR having sixteen positions, two individual eight bit SAR's 28A and 28B, assigned respectively to the higher order bits (most significant word or MSW) and the lower order bits (least signifcant word or LSW) are used, operating sequentially. Similarly, instead of using a single sixteen bit DAC to reconstruct the audio signal, two individual eight bit DAC's 34A and 34B, assigned respectively to the MSW and LSW, are used. In a conventional digital-to-analog converter apparatus employing one DAC assigned to the higher order bits and a second DAC assigned to the lower order bits, the ideal conversion characteristic of each DAC is a linear array of equally spaced dots. In order to simplify the following explanation, it will be assumed that the audio signal is digitized to six bits, instead of sixteen as is in fact the case. Bits 0, 1 and 2 are applied to the higher order DAC 34A and bits 3, 4 and 5 are applied to the lower order DAC 34B. As shown in FIG. 3A, the ideal characteristic of the higher order DAC is represented by a linear array of eight dots corresponding to the eight possible digital values possessed by the three higher order bits. The current output of the DAC can assume only one of the discrete analog values corresponding to the possible digital input signals. Similarly, the ideal characteristic of the lower order DAC is a linear array of eight dots corresponding to the eight possible digital values possessed by the three lower order bits. The current sources of the DAC's 34A and 34B are adjusted so that the maximum differential output current of the DAC 34B, corresponding to a change in the lower order bits from 000 to 111, is equal to the nominal minimum differential output current of the DAC 34A, corresponding to a change in the least significant of the three higher order bits, e.g. from 101 to 110. Naturally, the characteristic of the lower order DAC repeats for every possible value of the upper order bits. Accordingly, the ideal overall characteristic of the DAC 32 is a linear array of 64 dots, and approximates a continuous straight line, as shown in FIG. 3B. However, as noted above it is almost impossible to avoid nonlinearities in the characteristic of the DAC 32. Nonlinearities in the characteristic of the DAC 34B are generally negligible and are in any event adequately compensated by linearity error cancellation. Accordingly, the actual overall characteristic of the DAC 32 may be as shown in FIG. 3C, with gaps R in the ranges of analog output current that can be obtained. Such gaps are not compensated by linearity error cancellation, since a necessary condition to such compensation is that, in the successive approximation conversion, there be a digital signal associated with each possible input level. In the case of FIG. 2, the current sources associated with the DAC's 34A and 34B are adjusted so that the maximum differential output current of the DAC 34B is greater than the sum of the nominal minimum differential output current of the DAC 34A and the output current corresponding to the maximum expected differential nonlinearity in the characteristic of the higher order DAC, i.e. the maximum amount by which the difference between the output currents associated with two adjacent values of the MSW is expected to exceed the nominal minimum differential output current of the DAC 34A. Thus, the maximum differential output current of the DAC 34B is made to exceed the maximum value of the actual (as opposed to nominal) minimum differential output current of the DAC 34A. Preferably, the maximum differential output current of the DAC 34B is twice the nominal minimum differential output current of the DAC 34A. In addition, the output current of the DAC 34B does not remain the same sense throughout the range of LSW values from 000 to 111, simply increasing in magnitude, but rather the output current varies with the LSW value in a nominally linear manner, passing through zero at a point about one-fourth of the way through the range of LSW values, i.e. at an LSW value of 010. For example, if the output current of the DAC 34A is positive and increases as a function of the MSW (from 000 to 111), i.e. the DAC 34A is a current source, then the DAC 34B acts as a current sink for LSW values of 000 and 001, is zero for an LSW value of 010, and acts as a current source for LSW values of 011 to 111.The overall characteristic of the combined DAC 32 is then as shown in FIG. 3D, and it will be seen that even a substantial nonlinearity in the characteristic of the DAC 34A does not result in a gap in the ranges of output current that can be obtained. It will be appreciated that by making the maximum differential output current of the DAC 34B greater than the nominal minimum differential output current of the DAC 34A, ambiguity in conversion of analog input voltage levels to digital input signals may result, and as many as three different digital input signals may correspond to a given level of the analog input voltage, corresponding to the current value ranges S in FIG. 3D. Where two or more current ranges overlap, there is a probability distribution associated with each current range that governs which range will be utilized in mapping a corresponding input voltage level to a digital value. The probability distribution is generally bell-shaped, having its maximum at the center of the range and tending to zero at the two ends of the range. Thus, if the input voltage corresponds to the current level i₁ (FIG. 3D), the range Q₁ will probably be utilized, and if the input voltage corresponds to the level i₂ the range Q₂ will probably be utilized. The transfer function of the combined DAC 32 represents the combined effect of the probability distributions associated with each range, and therefore the overlapping of ranges necessarily introduces nonlinearity into the tranfer function. However, this nonlinearity is cancelled by linearity error cancellation. The ability to guarantee that all analog levels have at least one digital representation, i.e. the transfer function of the DAC is defined for all analog levels, is essential to linearity error cancellation. In use of a conventional successive approximation ADC with a sample and hold at the input, the voltage signal provided by the sample and hold drifts between successive sampling times owing to leakage of charge from the capacitor. Ideally, the voltage level that is digitized is that which obtains when the sample and hold starts holding, as indicated by the points 42A, 43A and 44A at the left of the lines 42, 43 and 44 shown in FIG. 4A, but in a successive approximation ADC the output word in fact represents the sample and hold output at the end of the conversion cycle. Therefore, as shown in FIG. 4 (again simplifying the illustration to two three-bit SAR's and two three-bit DAC's), the final digital signal that would be obtained from the SAR if the input voltage followed the line 42 would be 101ABC, where ABC represents the digital signal corresponding to the level of the line 42 above the step 101 at the point 42B (the time of conversion of bit 5), and the signal that would be obtained if the voltage followed the line 44 would be 100DEF (point 44B). Intermediate the lines 42 and 44 is a line 43, and it will be appreciated that the corresponding final digital signal will be 101000, since no value of the LSW can reduce the output current to a value corresponding to the point 43B when the MSW value is 101. In fact, the final digital signal for the point 43B should be 100GHI and therefore the MSW is in error and the characteristic of the ADC is nonlinear. The nonlinearity that has just been described is a differential nonlinearity, meaning that there are gaps in the transfer function of the ADC, in that associated with the input voltage range corresponding to each value of the MSW there is a band of input voltage levels that will always be represented as 000. For the reason previously mentioned, this type of nonlinearity is not corrected simply by sharing the function of the DAC between the ADC 26 and the DAC 32. However, in the case of FIG. 2, where the maximum differential output current of the DAC 34B corresponds to twice the nominal minimum differential output current of the DAC 34A, there are generally two overlapping LSW quantization ranges for each voltage level, and a given voltage level will be quantized into whichever range has its center (highest probability of selection ) closer to the voltage level. Therefore, as shown in FIG. 4B, the point 42B will be quantized as 101ABC, the point 44B as 100DEF and the point 43B as 101GHI. The LSW GHI thus represents an amount to be subtracted from the value of the MSW, and can be generated because of the ability of the DAC 34B to provide a current flowing in the opposite sense to that provided by the DAC 34A. The resulting characteristic of the ADC is offset from the ideal characteristic by the amount of the sample and hold droop, but is linear. An offset is much less objectionable than a nonlinearity, particularly in an audio application, because the offset is generally eliminated by a.c. coupling of the output analog signal. With respect to compensating for the effect of sample and hold drift, it is necessary that the maximum differential output current of the lower order DAC 34B should exceed the amount by which the output voltage of the sample and hold 20 drifts in the interval between conversion of the MSW, i.e. conversion of the least significant of the higher order bits, and conversion of the LSW. It will be appreciated that the invention is not restricted to the particular apparatus and method that have been described, since variations may be made therein without departing from the scope of the invention as defined in the appended claims, and equivalents thereof. For example, although the manner of timing the conversions of the SAR's has not been described, it is preferred that the conversion times not be uniform, as is conventional, but decrease as the SAR's move from most to least significant bit. This is particularly advantageous, because by reducing the conversion times for the less significant bits less time is available for drift of the sample and hold output. In addition, the diagnostic technique described in co-pending application Serial No. 483,323 filed April 8, 1983 (now US-Patent No. 4 535 319) is also applicable to the successive approximation ADC described herein. It will be appreciated that the invention is not restricted to successive approximation converters in which only a single bit is converted at a time. Thus, in a video frame synchronizer of the kind described in U.S. Patent Application No. 444,766 filed November 26, 1982, the input ten-bit analog-to-digital converter may be a dual flash converter and the DAC of the input ADC may be shared with the output DAC. Thus, as shown in FIG. 5 the input ADC comprises a first five bit flash ADC 50, a DAC 52 which converts the five bit signal to analog form, a differential amplifier 54 which forms the difference between the input signal and the output of the DAC 52, a delay line 56, and a second six bit flash ADC 58. The outputs of the two ADC's are combined with error correction to provide a ten bit word which is applied to the memory 60 of the frame synchronizer. The DAC 52 has ten-bit accuracy, and therefore instead of using a separate ten-bit DAC to reconstruct the video signal from the digital output of the memory 60, the output of the memory may be applied through a digital switch 62 to the DAC 52 to provide the output analog signal at the terminal 64, instead of utilizing a separate DAC. This provides the advantage of linearity error cancellation and reduced parts count.

Claims: An apparatus for processing an analog signal, comprising: a successive approximation analog-to-digital converter (24, 26, 32, 36) receiving at an input (22) an analog input signal and making available at an output (30) a final digital input signal representing the value of the analog input signal, the analog-to-digital converter (24, 26, 32, 36) including a digital-to-analog converter (32), which receives a sequence of digital signals from a successive approximation register (26) at successive times prior to a time the final digital input signal is made available and provides in response to each digital signal of the sequence an intermediate analog signal corresponding to the digital signal for comparison (at 24) with the analog input signal to develop the final digital input signal, and digital processing means (38) for receiving the final digital input signal and providing a digital output signal, the digital-to-analog converter (32) being connected to receive the digital output signal and to provide an analog output signal in response to the digital output signal, characterized by switching means (29) for switching the input of the digital-to-analog converter (32) between the sequence of digital signals and the digital output signal, the final digital signal of the analog-to-digital converter (24, 26, 32, 36) being made available at a selected time and the digital processing means (38) providing the digital output signal a predetermined time after the selected time and substantially equal to the final digital signal. The apparatus according to claim 1, characterized in that the analog-to-digital converter (24, 26, 32, 36) further includes means for sampling and holding (20) a value of the analog input signal for the successive times prior to the selected time so that the final digital input signal represents the analog input signal held during the successive times. The apparatus according to claim 1, characterized in that the digital-to-analog converter (32) comprises a higher order digital-to-analog converter (34a) for converting the higher order bits of the digital input signal to analog form; and a lower order digital-to-analog converter (34b) for converting the lower order bits of the digital input signal to analog form, the maximum differential analog output of the lower order digital-to-analog converter (34b) being greater than the nominal minimum differential analog output of the higher order digital-to-analog converter (34a). The apparatus according to claim 3, characterized in that the maximum differential analog output of the lower order digital-to-analog converter (34b) is equal to at least the maximum actual value of the minimum differential analog output of the higher order digital-to-analog converter (34a). The apparatus according to claim 3, characterized in that the maximum differential analog output of the lower order digital-to-analog converter (34b) is equal to twice the nominal minimum differential analog output of the higher order digital-to-analog converter (34a). The apparatus according to claim 3, further characterized by a sample and hold circuit (20) for providing the analog signal, and the maximum differential analog output of the lower order digital-to-analog converter (34b) is equal to at least the value corresponding to the maximum expected drift in the level of the output of the sample and hold circuit (20). The apparatus according to claim 1, characterized in that the switch means (29) are connected between the output of the successive approximation register (26) and the digital-to-analog converter (32) for selectively applying the digital signals to the digital-to-analog converter (32), and between an output terminal of the digital processing means (38) and the digital-to-analog converter (32) for selectively applying the digital output signal to the digital-to-analog converter (32) to produce the analog output signal. The apparatus according to claims 3 or 7, characterized in that the digital processing means (38) comprises an adjustable digital delay circuit. A method for processing an analog signal, comprising the steps of: converting in a successive approximation analog-to-digital converter (24, 26, 32, 36) an analog input signal received at an input (22) thereof to a final digital input signal made available at an output (30) of the analog-to-digital converter (24, 26, 32, 36), the analog-to-digital converter (24, 36, 32, 36) including a digital-to-analog converter (32) which receives a sequence of digital signals from a successive approximation register (26) at successive times prior to a time the final digital input signal is made available and provides in response to each digital signal of the sequence an intermediate analog signal corresponding to the digital signal for comparison (at 24) with the analog input signal to develop the final digital input signal; digitally processing (at 38) the final digital input signal to provide a digital output signal and providing the digital output signal to the digital-to-analog converter (32) to provide an analog output signal in response thereto, characterized by making available the final digital signal of the analog-to-digital converter (24, 26, 32, 36) at a selected time and providing the digital output signal of the digital processing step a predetermined time after the selected time substantially equal to the final digital signal and by switching the input of the digital-to-analog converter (32) between the sequence of digital signals from the successive approximation register (26) to provide the final digital signal and the digital output signal, so as to provide said analog output signal. The method according to claim 9, characterized in that the converting step further comprises the step of sampling and holding (at 20) a value of the analog input signal for the successive times prior to the selected time so that the final digital input signal represents the analog input signal held during the successive times.

Inventors: PENNEY BRUCE J, PENNEY, BRUCE J.
Applicants: TEKTRONIX INC, TEKTRONIX, INC.
Application year: 1985
Main classification: G06J1
IPC codes: H03M1, G06J1