Development and implementation of data acquisition system based on DSP

Publisher:数字小巨人Latest update time:2010-03-15 Source: 山西电子技术 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

In modern industrial production, the scale of production continues to expand, and it is developing in the direction of large-scale, high-speed, automated and continuous production. Therefore, the requirements for the performance of mechanical equipment are getting higher and higher. Many large-scale petroleum, chemical, petrochemical, electric power, steel and other departments have adopted a single-machine, full-load, continuous production operation mode, among which large-scale rotating machinery has become the key equipment in modern large-scale production. Once a shutdown failure occurs, it will lead to the shutdown of the entire plant, and the economic loss is very huge. At the same time, it may also cause major casualties. As a result, the online state monitoring and fault diagnosis technology of large rotating machinery came into being. How to obtain a large and wide range of state quantities (vibration, force, displacement, noise, temperature, pressure and flow, etc.) is the key. This article introduces a multi-function synchronous data acquisition card based on TMS320F2812. The DSP control chip on the card can not only realize the collection of multiple data, but also perform real-time signal processing on the collected data, greatly improving the performance of the entire system.

1 TMS320F2812 Architecture

TMS320F2812 is the best performing chip in the TMS320C28X series, with a maximum frequency of 150MHz, a processing speed of up to 150MIPS, and an instruction cycle of 6.67ns.

Compared with the previous generation products in the TMS320C2000TM platform, the program bus of F2812 includes a 22-bit address bus and a 32-bit data bus, and the data bus includes a 32-bit address bus and a 32-bit data bus. Compared with the 16-bit address bus of C24X/C240X, F2812 has greatly increased the addressable range. At the same time, the 32-bit data bus can implement single-cycle 32-bit instructions. Its on-chip 32×32-bit MAC has the ability to process 64-bit numbers, which can be used to process high-precision digital operations and can completely replace other more expensive floating-point processors. In the spectrum analysis of vibration signals, this advantage is even more obvious. In terms of interrupt response, the automatic context saving function of F2812 speeds up the interrupt response speed, and users can complete more asynchronous events in a shorter time limit, which greatly improves the real-time performance of the system in a multi-channel signal acquisition system.

In terms of peripherals, F2812 also has many new features. In addition to retaining the 4 16-bit general-purpose timers of the previous generation, F2812 has added 3 32-bit timers. It can more conveniently realize the acquisition of a wide range of shaft speed signals and provide more flexible data sampling modes. F2812 has a 12-bit enhanced A/D converter with an A/D conversion rate of up to 80ns. The two independent 8-way analog switches provide users with a way to collect different types of signals at the same time. In terms of on-chip memory, F2812 includes 128K words of FLASHMEMORY, 1K words of 0TPMEMORY, 18K words of on-chip RAM and 4K words of BOOT ROM. The rich on-chip storage resources can meet the needs of users to process large amounts of data. In terms of security, F2812 uses a 128-bit password to protect the user's program.

2 Hardware Implementation of Data Acquisition Card

The hardware implementation of the data acquisition card utilizes many new features of F2182. The data acquisition card can process: 16 asynchronous or synchronous analog signals, 16 digital signals, and 6 speed signals. It uses a PCI interface to connect to the host computer. The system structure is shown in Figure 1.

2.1 Implementation of speed signal acquisition

According to the actual situation of rotating machinery in industrial sites, the speed range collected by data acquisition cards is generally 30 to 18,000 r/min (cycle range is 33ms to 2s). Such a large speed range places requirements on both the count pulse and the count bit number of the timer. If the count pulse of the timer is too large, the resolution is reduced; but if the count pulse is too small, the counter bit number needs to be large enough.

The built-in 16-bit timer of the previous generation products of the C2000TM series could hardly meet the requirements, and generally multiple timers were cascaded to meet the requirements. The three newly added 32-bit timers of the F2812 make up for the shortcomings of the previous series of DSP products.

The event management module EV of F2812 has 6 capture units, and the Schmitt trigger of each unit can capture the jump of the relevant pin. The jump that can be monitored can be the rising edge, the falling edge, or both. The interrupt function and timer of the capture unit can easily realize the measurement of the speed cycle and provide the sampling base frequency for the vibration test of the shaft. The measurement process is shown in Figure 2.

2.2 Implementation of analog signal acquisition

The TMS320F2812 chip integrates a pseudo dual 12-bit A/D converter module. There is actually only one A/D converter inside the module. Under the control of the internal logic, it can sample and convert twice continuously at a very fast speed, which is equivalent to two A/D converters. The user can start the two A/D converters for sampling at the same time, or start a certain A/D converter and let it sample twice continuously.

Compared with traditional A/D, embedded A/D has the following characteristics: after the hardware resources of the A/D module are configured, users can use software instructions to start A/D sampling at any time and obtain the results of A/D conversion. Unlike traditional A/D, the hardware resource configuration of the acquisition function unit is also partially completed by software.

By using the F2812 internal enhanced A/D, the acquisition and A/D conversion of synchronous and asynchronous analog signals can be realized on one acquisition card. Its schematic diagram is shown in Figure 4.

There are two independent 8-way analog switches in the F2812 chip, which can be used alone or in cascade. As shown in Figure 4, the synchronous signal is sent to the ADCINA module, and other signals are directly sent to the ADCINB module, and then the 12-bit A/D conversion module inside the DSP performs A/D conversion. Users can also adjust the external sampling circuit according to actual applications to meet different requirements.

The A/D converter integrated in the TMS320F2812 chip is used for data acquisition. The program first initializes the A/D. When the A/D is very busy, 16 A/D channels are started for conversion, and the main program enters an infinite loop. When the A/D conversion is completed normally, the interrupt service subroutine is entered. The interrupt service program reads the 16 A/D conversion results into the array al[16] and starts the 16 A/D channels for conversion again, and the cycle repeats. The program design uses C++ language to write the source program. The A/D initialization subroutine block diagram is shown in Figure 6. The interrupt service subroutine flow is shown in Figure 7.

2.3 Implementation of digital signal acquisition

Digital signals can be directly obtained using the digital I/0 of F2812. F2812 has up to 56 I/0 shared pins. Most I/0s can be used as ordinary I/0 pins or other functional pins. By programming the I/0 control register, you can specify whether these shared pins are I/0 or other functional pins. When the pin is I/0, the result of reading the corresponding bit of the data and direction register of the I/0 module can get the value of the measured digital signal. If the result read is 0, the corresponding pin is low level; if the result is 1, the corresponding pin is high level.

3. Software modules of data acquisition card

The software on the data acquisition card is mainly divided into modules such as system configuration, speed acquisition, analog signal acquisition conversion, digital signal acquisition, data processing and upper communication. In actual application, it can be configured according to needs.

4 Conclusion

This development platform is used for the analog data acquisition of parameters such as flow, temperature, pressure, seal differential pressure, vibration displacement at each point, catalyst dust content, etc. in the flue gas turbine vibration fault detection in the petrochemical field. Through analysis, it can be seen that because the TMS320F2812 chip contains A/D and SRAM, SRAM replaces the expensive FIFO, so this acquisition method can greatly improve the sampling speed and accuracy, and can reduce the cost and time of hardware design, laying a good foundation for the next step of DSP-based real-time digital signal processing and analysis design.

Reference address:Development and implementation of data acquisition system based on DSP

Previous article:Design of USB Interface IP Core Based on FPGA
Next article:FPGA-based PCI bus interface hardware debugging strategy

Recommended ReadingLatest update time:2024-11-16 16:46

Design of optical fiber high temperature measuring instrument based on DSP processor
Design of optical fiber high temperature measuring instrument based on DSP processor Abstract: This paper introduces a design scheme of a fiber optic high temperature measuring instrument based on DSP processor. The measuring instrument takes TMS320F2812 chip as the core. On the basis of hardware design, th
[Embedded]
Design of optical fiber high temperature measuring instrument based on DSP processor
Power-on loading technology of multi-core DSP based on TMS320C6678
  0 Introduction   In the application of video detection, medical imaging and infrared image fast tracking system, the increasingly complex two-dimensional, three-dimensional and even four-dimensional image processing requires a parallel processing system that can run complex algorithms. To realize these complex sy
[Embedded]
Power-on loading technology of multi-core DSP based on TMS320C6678
Do you know what ARM, MCU, DSP, FPGA, and SOC are?
ARM The ARM processor is the first RISC microprocessor designed by Acorn Computer Co., Ltd. for the low-budget market. Earlier it was called the Acorn RISC Machine. The ARM processor itself is a 32-bit design, but it also has a 16-bit instruction set, which generally saves up to 35% of the equivalent 32-bit code, wh
[Microcontroller]
Do you know what ARM, MCU, DSP, FPGA, and SOC are?
Design of serial communication between DSP and single chip microcomputer in high power UPS
1 Introduction With the rapid development of computer systems and communication equipment, the application scope of uninterruptible power supply (UPS) is becoming wider and wider. The demand for UPS in banks, securities, communication base stations, etc. is also increasing day by day. This paper mainly introdu
[Power Management]
Design of serial communication between DSP and single chip microcomputer in high power UPS
Research on real-time dynamic monitoring of object weight based on DSP
At present, the weight of an object is measured mainly based on two basic principles. One is to use the lever balance principle in mechanics, and the other is to use various sensors to convert the weight information of the object into an electrical signal, and then analyze and process the electrical signal to extrac
[Embedded]
Design of Phase-Shifted Sine Wave Generator Based on DSP Digital Oscillator
0 Introduction There are many ways to generate digital phase-shifted signals. The traditional direct digital frequency synthesis (DDS) phase-shifting principle is to first digitize the sine wave signal and form a data table stored in two ROM chips, which can then be passed through the two D/A conversion chi
[Embedded]
Hardware Circuit Design of Video Monitoring System Based on DSP
  At present, video surveillance is widely used in security monitoring, industrial monitoring, traffic monitoring and other fields. Video surveillance systems have roughly gone through three stages: first, the TV monitoring system based on analog signals, which has a single function, is easily interfered with and diff
[Embedded]
Hardware Circuit Design of Video Monitoring System Based on DSP
A brief analysis of the basic structure of DSP chips
  In order to quickly realize digital signal processing operations, DSP chips generally use special software and hardware structures. The following briefly introduces the basic structure of DSP chips.   (1) Harvard Structure   The main feature is that the program and data are stored in different storage spaces, that
[Embedded]
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号