This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
university:tools:m2k:scopy:adcdigitalfilters [25 Feb 2020 06:44] – [ADC digital filters] Pop Andreea | university:tools:m2k:scopy:adcdigitalfilters [01 Jul 2022 16:03] (current) – add clarification note on exponential compensation Doug Mercer | ||
---|---|---|---|
Line 18: | Line 18: | ||
suppression, | suppression, | ||
- | The digital filters provide a solution for the hardware calibration mismatch issue between low gain and high gain modes. The setting of these compensation parameters can be determined by following these steps. The AWG outputs of the ADALM2000 should be connected to the Scope inputs. | + | <note tip> |
+ | **Exponential compensation**\\ | ||
+ | The software frequency compensation technique used in Scopy is often called Exponential compensation which adds one or more exponentially decaying terms to a step in the signal. With 2 available stages, Scopy can correct for multiple spurious inductances and capacitances in the internal or external input divider circuit (such as a 10X probe). **Exponential compensation works best for overshoots and undershoots smaller than about 10% of the step height.** In this case, a sum of exponential terms is an accurate generic model for such defects. | ||
+ | </ | ||
+ | |||
+ | The digital filters provide a solution for the hardware calibration mismatch issue between low gain and high gain modes. The setting of these compensation parameters can be determined by following these steps. The Signal Generator | ||
=====Calibration using the hardware trimmers===== | =====Calibration using the hardware trimmers===== | ||
- | The boards are calibrated in the factory during production test but sometimes the trimmers, highlighted in Figure | + | The boards are calibrated in the factory during production test but sometimes the trimmers, highlighted in Figure |
- | {{ : | + | {{: |
- | <WRAP centeralign> | + | <WRAP centeralign> |
It is necessary to connect the AWG signal generator output channels to the oscilloscope input channels in a loopback configuration as described above in the section on the software filter adjustments driving the scope 1+ and 2+ inputs or the scope 1- and 2- inputs for the corresponding trim capacitors. Generate a square wave with 2.4 V amplitude and 4kHz frequency then analyze the oscilloscope window, in high gain mode (vertical range setting should be 0.5 V/Div or less). The waveform should look as square, flat top and bottom as possible. | It is necessary to connect the AWG signal generator output channels to the oscilloscope input channels in a loopback configuration as described above in the section on the software filter adjustments driving the scope 1+ and 2+ inputs or the scope 1- and 2- inputs for the corresponding trim capacitors. Generate a square wave with 2.4 V amplitude and 4kHz frequency then analyze the oscilloscope window, in high gain mode (vertical range setting should be 0.5 V/Div or less). The waveform should look as square, flat top and bottom as possible. | ||
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
- | If the waveform does not have the desired square shape, then you should adjust the trimmers of the corresponding channel until the waveform looks like the example in Figure | + | If the waveform does not have the desired square shape, then you should adjust the trimmers of the corresponding channel until the waveform looks like the example in Figure |
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
The inputs are now calibrated but you may notice a difference in response if you switch from high gain mode to low gain mode ( 1V/Div or higher). | The inputs are now calibrated but you may notice a difference in response if you switch from high gain mode to low gain mode ( 1V/Div or higher). | ||
Line 40: | Line 45: | ||
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
=====Compensation using the digital filters===== | =====Compensation using the digital filters===== | ||
The slight overshoot that appear in low gain mode after the board is calibrated in high gain mode can be removed using the digital filters. | The slight overshoot that appear in low gain mode after the board is calibrated in high gain mode can be removed using the digital filters. | ||
For better results, we can enable both filters with corresponding parameters, so the wave will be perfectly square. | For better results, we can enable both filters with corresponding parameters, so the wave will be perfectly square. | ||
- | If we zoom in on the signal presented in Figure | + | If we zoom in on the signal presented in Figure |
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
This can be removed if we apply a digital filter with the following parameters: TC=60 and gain=-0.025 | This can be removed if we apply a digital filter with the following parameters: TC=60 and gain=-0.025 | ||
- | The filtered signal will appear as in Figure | + | The filtered signal will appear as in Figure |
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
It is noticed an improvement in the shape of the signal, but we can obtain an even better result using the second filter cascaded. | It is noticed an improvement in the shape of the signal, but we can obtain an even better result using the second filter cascaded. | ||
- | With Filter 2 enabled and its parameters set to TC=9 and gain=0.047 the response is visibly improved, as shown in Figure | + | With Filter 2 enabled and its parameters set to TC=9 and gain=0.047 the response is visibly improved, as shown in Figure |
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
- | In Figure | + | In Figure |
Now you can change between high and low gain modes and have an almost perfect square signal in both cases. | Now you can change between high and low gain modes and have an almost perfect square signal in both cases. | ||
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
Further you can find some examples on how to determine the suitable filter parameters depending on the signal characteristics. | Further you can find some examples on how to determine the suitable filter parameters depending on the signal characteristics. | ||
Line 78: | Line 83: | ||
===Undershoot=== | ===Undershoot=== | ||
- | To find 𝛿, place one horizontal cursor at the initial point of the signal and the other one at the point where the signal settles. In the case presented in Figure | + | To find 𝛿, place one horizontal cursor at the initial point of the signal and the other one at the point where the signal settles. In the case presented in Figure |
< | < | ||
Line 85: | Line 90: | ||
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
To find TC place one vertical cursor at the initial point and the other one at the point where signal is equal with its initial value plus 63.2% of 𝛿. | To find TC place one vertical cursor at the initial point and the other one at the point where signal is equal with its initial value plus 63.2% of 𝛿. | ||
Line 94: | Line 99: | ||
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
- | To see the difference between the initial signal and the digital filtered signal, take a snapshot and align it to the initial signal then enable Filter 1 with the parameters TC=15 and gain=0.07, as in Figure11. | + | To see the difference between the initial signal and the digital filtered signal, take a snapshot and align it to the initial signal then enable Filter 1 with the parameters TC=15 and gain=0.07, as in Figure 13. |
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
===Overshoot=== | ===Overshoot=== | ||
Line 110: | Line 115: | ||
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
< | < | ||
Line 116: | Line 121: | ||
In this example TC is 31 micro seconds. | In this example TC is 31 micro seconds. | ||
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |
- | Take a shapshot of the initial filter and enable Filter 1 with the parameters TC=31 and gain=-0.05, as in Figure | + | Take a shapshot of the initial filter and enable Filter 1 with the parameters TC=31 and gain=-0.05, as in Figure |
{{ : | {{ : | ||
- | <WRAP centeralign> | + | <WRAP centeralign> |