Because DSP has an advanced parallel structure that makes it particularly suitable for signal processing, it has been increasingly used in the field of industrial control and the development and design of various types of instruments. In intelligent instruments and meters composed of digital signal microprocessors, various external analog signals must be converted into digital signals through an A/D converter before they can be sent to the microprocessor chip. BB's high-precision converter ADS7805 has a high performance-price ratio, the highest conversion frequency can reach 100KHz, and is widely used in instrumentation. The ADS7805 chip has a 28-pin double-row in-line or SMD package. It only needs a single-ended 5V power supply to operate normally. The chip contains circuits such as sampling and holding, voltage reference and clock, which greatly simplifies the user's circuit design. Improved system stability. ADS7805 is manufactured using CMOS technology, has low power consumption (maximum power consumption is 100mW), has a single channel input, and the analog input voltage range is ±10V. It adopts the successive approximation working principle. The conversion results are output in parallel by 16-bit data lines to start conversion and Reading the results of the last conversion can be done simultaneously.
1. Pins and functions
ADS7805 has a total of 28 pins, and Figure 1 is the pin diagram. These pins can be roughly divided into 3 categories.
i. Power supply
The digital power supply Vdig (pin 28) and the analog power supply Vana (pin 27) are usually connected to the 5V power supply together; the digital ground DGND (pin 14) and the analog grounds AGND1 (pin 2) and AGND2 (pin 5) usually share the same ground; the reference voltage If terminal REF (pin 3) is connected to a 2.2μF tantalum capacitor to ground, a 2.5V reference voltage will be generated inside the chip; reference capacitor terminal CAP (pin 4) is connected to a 2.2μF tantalum capacitor to ground.
ii.Signal class
Analog signal input terminal Vin (pin 1); D15~D8 (pin 6 to pin 13) and D7~D0 (pin 15 to pin 22) are digital signal parallel output ports.
iii.Control signal class
Chip select signal input terminal/CS (pin 25); read result/analog-to-digital conversion control signal input terminal R/C (pin 24); conversion result indication output terminal/BUSY (pin 26); control the data read from the bus Is it the high byte or low byte signal input terminal BYTE (pin 23) of the conversion result.
2. Start A/D conversion and read the conversion result
The timing of starting conversion and reading the conversion result of the ADS78XX series A/D converters produced by BB Company in the United States is relatively special and roughly the same. The conversion timing diagram of ADS7805 is shown in Figure 2.
Figure 2 Conversion timing diagram of ADS7805
First, a low-level signal must be input to the R/C pin. The duration of this low-level signal is required to be between 40 and 7000ns. At this time, the BUSY pin level is pulled low to indicate that conversion is in progress. After about After 8μs (that is, the time the /BUSY signal remains low), the conversion is completed, and the BUSY pin level becomes high accordingly; then pull the R/C pin level high, and the ADS7805 will output the conversion result to the data on the bus. Although the conversion result is 16 bits, for a DSP microprocessor with a 16-bit data bus, it does not need to be read in twice, so the BYTE pin can be at the same signal level from beginning to end. When the BYTE pin is high level , Pin6~13 outputs the low byte, and Pin15~22 outputs the high byte; conversely, when the BYTE pin is low level, Pin6~13 outputs the high byte, and Pin6~13 outputs the low byte. If the /CS pin is used to control the conversion of the ADS7805, the timing is similar to the R/C pin, so it will not be explained in detail here. The digital result converted by ADS7805 is given in complement form. Now its ideal data conversion table is given. Table 1 lists the relationship between the analog voltage of ADS7805 and its digital output in complement form. -10V~9.99512V is Measuring range
Table 1 Relationship between analog voltage input and digital signal output
3. Interface with DSP
TI's 16-bit fixed-point DSP TMS320F206 is a low-power device that adopts an improved Harvard structure. It has 1 program bus and 3 data buses, pipeline operation, and a highly parallel 32-bit arithmetic logic unit, 16 *16-bit parallel hardware multiplier, on-chip memory, on-chip peripherals and highly specialized instruction set. When TMS320F206 is connected to an external 16MHZ crystal oscillator and the operating clock control mode is selected as level, the R/C pin is connected to the expansion output port of the DSP, and the /BUSY signal only needs to be connected to a common input port, such as the IO port of the DSP, the input port of the expansion chip 74LS244, etc. Figure 3 is a typical interface circuit between ADS7805 and TMS320F206.
4. C language programming
Users of TMS320F206 can write source programs in assembly language or C language. The system developed in C language is easy to maintain, has high reliability and has good portability. Therefore, the development program of ADS7805 written in C language is introduced below.
The source program is as follows:
#include
#include
ioport unsigned int port90ac;
ioport unsigned int porte0f7;
#define ic273n port90ac
#define ads7805 porte0f7
#define Wait asm(" nop ");
int i, ia[8]; double bv_coil,IA;
reg_aspcr=0x0e00; reg_iosr=0x0000;
asm ( " clrc intm ");
ic273n=0x0008; Wait;
for(i=0;i<=7;i++)
{ ic273n=0x0000;
while ((reg_iosr&0x0004)==0x0004)
{ if (adt> 2; return() ;)
ic273n=0x0008; Wait;
ia[i]=(int)(ads7805&0xffff); }
IA=0; for (i=0;i<=7;i++)
{ if ia[i]<32767 pr[i] =((double)(ia[i]))*0.000305185;/*10/32767=0.000305185*/ else
pr[i]=((double)(ia[i]-65535))*0.000305185;
IA=IA+ pr[i]*pr[i]; }
bv_coil = sqrt(IA/8);
5. Conclusion
ADS7805 is a 16-bit A/D converter. It not only has high resolution and fast conversion speed, but also has a simple and convenient interface and flexible application, so it has a wide range of application prospects. The author used ADS7805 in the GKNDC-H high-voltage switch characteristics precision measuring instrument and achieved good measurement results.
Previous article:Application of 16-bit high-speed A/D converter in high-speed DSP processor
Next article:TMC2310 DSP in underwater target detection and parameter estimation
Recommended ReadingLatest update time:2024-11-16 20:42
- Popular Resources
- Popular amplifiers
- Microgrid Stability Analysis and Control Microgrid Modeling Stability Analysis and Control to Improve Power Distribution and Power Flow Control (
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- New Energy Vehicle Control System Inspection and Maintenance (Edited by Bao Pili)
- Intelligent Control Technology of Permanent Magnet Synchronous Motor (Written by Wang Jun)
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
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
- C28x Software Tips: How to View Software Examples and Documentation
- CC2500 Migration Instructions
- [DWIN Serial Port Screen] Nucleic Acid Sampling Registration System 2: Prepare Background Image
- The zigbee terminal sets the PAN ID by pressing a button to join the set ID network
- GD32E231 DIY Part 3: LED Smooth Dimming Principle
- Far away, yet close at hand
- The power cord is too long and the power-on voltage is too high. Should I use a TVS tube?
- What is the essence of GND in the circuit?
- EEWORLD University - i.MX Linux Development Practical Guide
- Encoder Problems