In this paper, through the analysis of oversampling technology, this technology is applied to
the
LM3S8962
on-chip ADC of TI Company, and a higher resolution is obtained without using an expensive off-chip ADC. It not only saves costs, but also saves circuit board space, and also improves the overall reliability of the system.
1 Analysis of oversampling technology
1.1 Principle of oversampling
Oversampling is to sample the data to be measured multiple times, obtain sample data, accumulate and sum these sample data, and filter them by mean value, and finally obtain the sampling result after reducing noise. Under certain conditions, oversampling can improve the signal-to-noise ratio (SNR) and reduce noise, thereby improving the measurement resolution. Oversampling technology increases the sampling frequency to 4 times the sampling frequency, can filter out components higher than 3fb, and use digital filters to filter components from fb to 3fb, and finally the useful components are completely preserved. If enough samples are taken, the original signal can be reproduced. Formula (1) is the frequency requirement of oversampling
In formula (1), Fo is the oversampling frequency; n is the number of bits of resolution to be increased; fb is the initial sampling frequency requirement.
1.2 Relationship between oversampling, noise and resolution
Before proposing the corresponding relationship between oversampling and noise, a brief description of quantization noise is given. Quantization error is determined by the spacing between adjacent ADC codes, so the distance between adjacent ADC codes is
In formula (2), N is the number of bits of the ADC code; Vr is the reference voltage. Formula (3) is the relationship between the quantization error ed.
Nyquist theorem points out that if the bandwidth of the measured signal is less than 1/2 of the sampling frequency, then the signal can be reconstructed. Now white noise is used to approximate the noise in the actual signal. The noise energy spectrum density in the signal frequency band is In
formula (4), e(f) is the in-band energy spectrum density; ea is the average noise power; fs is the sampling frequency.
The power relationship of ADC quantization noise is shown in formula (5). Since quantization noise will cause fixed noise power, the oversampling ratio can be calculated for the increased effective number of bits In formula
(6), P is the oversampling ratio; fs is the sampling frequency; fm is the highest frequency of the input signal. The in-band noise power at the output of the low-pass filter is shown in formula (7). Where n2 is the noise power output by the filter.
It can be seen that oversampling can reduce noise power without affecting signal power. While reducing quantization error, it can obtain the same signal-to-noise ratio as high-resolution ADC, thereby increasing the effective number of bits of the measured data. The effective resolution of the ADC can be improved by increasing the sampling frequency or oversampling ratio.
2 Oversampling conditions and operation steps
For oversampling, in theory, the signal needs to have a certain amount of noise, and it must be approximately white noise with a large enough amplitude. If the noise signal cannot meet the theoretical requirements described above, it is necessary to introduce noise excitation. Therefore, periodic noise is selected as the excitation signal. At the same time, there are certain requirements for the excitation noise: the excitation noise amplitude ≥ 1 LSB; the noise mean must be 0 when the excitation noise is added.
After understanding the oversampling theory and the conditions that need to be met, the oversampling operation steps are designed for specific applications. They are summarized as follows:
(1) Determine whether the sampled signal has noise. If there is no noise, superimpose periodic excitation noise.
(2) Oversample the signal 4n times (n is the number of bits of resolution that you want to increase). If you use the on-chip 10-bit ADC and want to get 14-bit ADC accuracy, you need 44, or 256, 10-bit oversampling.
(3) Extract the digital sequence and accumulate each sampled value.
(4) For the accumulated sampled data, if you want to increase the accuracy by n bits, shift it right by n bits to get the oversampled value. [page]
(3) Data collection, filtering and extraction.
The digital average filtering done in oversampling only improves the smoothness, but does not increase the accuracy. The extraction process is the real improvement of accuracy. The additional K samples are accumulated as the conventional average, but the result is not directly divided by M, but right-shifted by N bits (N is the expected additional accuracy) to obtain a more accurate sampling result.
The oversampling algorithm is shown in Figure 2. For TI's LM3S8962 chip, the method to increase the accuracy of the 10-bit AD value to 12 bits is to directly call the register read function HWREG to access the FIFO buffer. After two cycles, the 16 10-bit conversion values collected from the FIFO are added to produce a 14-bit result. After shifting right by 2 bits, the desired 12-bit AD value is obtained. [page]
4 Application Analysis
Conversion rate, stability and resolution are the measurement criteria of analog-to-digital converters. In order to clearly see the effect of improving the AD value by using oversampling technology,
the
LM3S8962
chip was used to perform a 12-bit ADC oversampling experiment. According to the displayed experimental data and measurement conditions, the improvement of the indicators is given and analyzed.
For the conversion rate, the on-chip timer is used for measurement. When the CPU is in the 50 MHz clock frequency state and the ADC sampling speed is 100 kHz, the sampling continuous trigger mode performs one 12-bit oversampling time of 52 μs. Since the data buffer area must be accessed while the data is converted, the actual speed is 64 μs.
The values obtained after several samplings are digitally filtered and the sliding average is used to obtain a relatively stable data value. The data after oversampling is transmitted through the serial port as shown in Figure 3. A group of data has 6 bits, of which the first 3 bits are the original 10-bit sampling values and the last 3 bits are the 12-bit oversampling values. It can be seen from Figure 3 that the value of the 12-bit oversampling resolution is more stable than the resolution value of the 10-bit sampling value.
In order to verify that the higher the number of bits, the higher the sampling accuracy, a 13-bit oversampling experiment was conducted. During the sampling process, the cycle was repeated 8 times to obtain 64 sets of AD values, and the nonlinear error was corrected using the segmented broken line method to convert the sampled values into standard voltage values. As can be seen from Figure 4, the voltage value after oversampling fluctuates very little, and the effect is particularly obvious.
5 Conclusion
Starting from the spectrum characteristics of oversampling, this paper analyzes the basic principle of oversampling technology. Then, TI's cost-effective Cortex-M3 core ARM is used to improve the resolution of the measured value by oversampling technology. The experimental results show that the use of oversampling technology can not only reduce costs, but also simplify the peripheral circuits. When combined with the Cortex-M3 core, it can further improve the operating speed, reliability and stability of the system. This combination plays a positive role in the fields of detection and monitoring, and has certain promotion and practical value.
Previous article:Character collection and recognition system based on ARM and Linux
Next article:Design of Embedded 3G Wireless Video Monitoring System Based on ARM9
Recommended ReadingLatest update time:2024-11-17 11:46
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- C5517 FFT hardware accelerator performs calculations sometimes well and sometimes poorly
- Antenna Aperture Tuning eBook
- Burn dtb file separately
- Talk about the future applications of drones and get points for speaking up
- How to find the power switch loop
- How is the 0-10V/4-20mA input and output circuit of the inverter usually implemented?
- 【Reading Month】Talk about good books and get gifts. Tell us which book you like best.
- The editor you've been complaining about for a long time has been updated~
- 【Repost】Understand IoT Gateway Design in One Article
- Sharing of quadrotor solutions based on Tiva Launchpad