I have used one of the PIC16C7X series devices and found that the analog-to-digital conversion results are not always accurate. How can I improve the accuracy?
1. Make sure all timing specifications are met. If you turn the ADC off and then on, you should wait at least a minimum delay before sampling; if you change the input channel, you should also wait a minimum delay; and finally, Tad, which is the time selected for each bit conversion. This time is selected in ADCON0 and should be between 2 and 6us. If Tad is too short, the result will not be fully converted at the end of the conversion, and if Tad is too long, the voltage on the sampling capacitor may have dropped before the conversion is completed. These timing specifications are provided in the data sheet in the form of tables or formulas and should be reviewed for specific devices and specific situations.
2. Usually the source impedance of analog signals is high (greater than 1K ohm), so the source impedance output current will affect the accuracy of charging the sampling capacitor. If the input signal does not change too fast, try connecting a 0.1uF capacitor to the analog input. This capacitor will charge to the sampled analog voltage and provide the instantaneous current required to charge the 52pf internal sampling capacitor.
3. On the PIC16C71, an analog input pin is right next to an oscillator pin. Generally, when their traces are adjacent to each other, the noise on the oscillator will couple to the analog circuit. This is especially true if the clock source is an external oscillator box, because unlike the slowly rising sine wave provided by the crystal oscillator circuit, the external oscillator produces a square wave with steep edges and high-frequency components. Of course, decoupling the analog pin will help improve noise coupling, and if you can leave the pin empty, turn it into an output and drive it low, you can actually eliminate cross-coupling to the analog circuit.
4. Finally, a quote from the data sheet: "In systems where the device frequency is lower, it is better to use the A/D clock from the device oscillator... This will greatly reduce the effects of digital switching noise." And, "In systems where the device goes to sleep after starting the A/D conversion, it is required to select an RC clock source... It will provide the highest accuracy."
Previous article:PIC program optimization
Next article:PIC microcontroller learning experience
Recommended ReadingLatest update time:2024-11-16 17:29
- Popular Resources
- Popular amplifiers
- Microgrid Stability Analysis and Control Microgrid Modeling Stability Analysis and Control to Improve Power Distribution and Power Flow Control (
- Signal and System Experiment Tutorial (Edited by Jin Bo)
- Effective Unit Testing (Lasse Koskela)
- Operational Amplifier Practical Reference Handbook (Edited by Liu Changsheng, Zhao Mingying, Liu Xu, etc.)
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
- 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!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- A look inside the U.S. Army's counter-artillery radar system
- Qorvo Broadband Access CATV and FTTH Product Selection Guide
- Use MOS tube or triode?
- Award-winning live broadcast | Power supply, motor, electronic control, new energy vehicle power design technology is coming
- Why is this TVS designed like this?
- I called Knowles today and it was hilarious.
- Is there any sensor that can detect whether there is someone in front through the tinted glass?
- Should the filter capacitor and bleeder resistor in the circuit be placed before or after the anti-reverse polarity diode?
- Which teacher can explain this circuit?
- [2022 Digi-Key Innovation Design Competition] 1. STM32F7508-DK Unboxing