Application of 16-bit high-speed A/D converter in high-speed DSP processor

Publisher:星光小狐狸Latest update time:2006-05-29 Source: EDN ChinaKeywords:bus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  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.

Keywords:bus Reference address:Application of 16-bit high-speed A/D converter in high-speed DSP processor

Previous article:Application of TMC2310 DSP in underwater target detection and parameter estimation
Next article:Application of 16-bit high-speed A/D converter in high-speed DSP

Recommended ReadingLatest update time:2024-11-16 22:52

What is the difference between an ammeter and a voltmeter?
The internal structure of an ammeter and a voltmeter is exactly the same, but due to the different measurement objects, their measurement circuits are also different. When a voltmeter measures voltage, it is connected in parallel with the load or power supply, and part of the current must be diverted. Therefore, in or
[Test Measurement]
How to reduce the hazards of voltage flicker?
    Abstract: When you are reading at night, the light suddenly flickers? It is flicker again! So what is flicker? Why does flicker occur? Let's first understand flicker rationally from a theoretical perspective, and then use a practical case to intuitively feel the existence of flicker in real life.   1. Definitio
[Power Management]
How to reduce the hazards of voltage flicker?
Multi-rail systems require converters with control and supervision capabilities
As system complexity increases and digital components proliferate, the number of internal voltage rails continues to increase, and a mechanism must be available to monitor and control these rails. It may be common to have as many as 50 load point voltage rails, and system designers must be able to easily monitor and a
[Power Management]
Multi-rail systems require converters with control and supervision capabilities
Selection of usage scenarios for high voltage testers and megohmmeters
Should I use a high voltage tester or a megohmmeter? When should you use a high voltage tester and when should you use a megohmmeter? This seemingly simple question does not have such a simple answer, because the difference lies not in the function of each tool, but in the expected results. Let’s first take a look a
[Test Measurement]
Safety test - voltage resistance test
●What is voltage resistance The highest electric field strength that an insulating material can withstand without being damaged is called voltage withstand strength. Voltage withstand strength can also be called voltage withstand strength, dielectric strength, and dielectric strength. Different products have differe
[Test Measurement]
Safety test - voltage resistance test
Vishay launches new 10 MBd low-power optocoupler with supply current as low as 5 mA and voltage range from 2.7 V to 5.5 V
Vishay launches new 10 MBd low-power optocoupler with supply current as low as 5 mA and voltage range from 2.7 V to 5.5 V High-speed device helps save energy in industrial applications, suitable for low-voltage microcontrollers and I 2 C bus systems MALVER N , Pennsylv
[Power Management]
How to measure voltage with a multimeter
The multimeter consists of three main parts: the meter head, the measuring circuit and the conversion switch. (1) Header: It is a highly sensitive magnetoelectric DC ammeter. The main performance indicators of the multimeter basically depend on the performance of the meter. The sensitivity of the meter refers to the D
[Test Measurement]
Universal voltage output using TNY380PN, 20W continuous input power, 45
Power supply circuit using TNY380PN with universal voltage output, 20W continuous input power, 45W peak power Except for the TNY375 and TNY376, all other devices require a bias winding to power the IC, but the no-load power consumption can be reduced to 60 mW. The appropriate resistor value (R8 shown in Figure 15
[Power Management]
Universal voltage output using TNY380PN, 20W continuous input power, 45
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号