Data Acquisition System Based on MAX7000 Series CPLD

Publisher:快乐的小鸟Latest update time:2010-11-01 Source: 电子发烧友Keywords:CPLD  MAX7000  FPGA Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

CPLD is a complex PLD, specifically referring to those programmable logic devices with an integration scale of more than 1,000 gates. It consists of an AND array, an OR array, an input buffer circuit, and an output macro unit. It has outstanding features such as high gate circuit integration, configurable into multiple input and output forms, multi-clock drive, built-in ROM or FLASH (partially supports in-system programming), encryption, low voltage, low power consumption, and support for mixed programming technology. Moreover, the logic unit of CPLD is powerful, and general logic can be realized in the unit, so its interconnection relationship is simple, and the delay of the circuit is the delay of the unit itself and the lumped bus (usually in the range of several nanoseconds to tens of nanoseconds), and it can be predicted. Therefore, CPLD is more suitable for logic-type systems with complex logic, many input variables, but relatively few demands for triggers.

Hardware block diagram of the system www.elecfans.com

Introduction to MAX7000 Series CPLD and Its Development Platform

Due to the special requirements of the high-speed data acquisition system, among the many CPLD devices, ALTERA's MAX series devices were selected. The high performance and high density of the MAX series are based on its advanced MAX (Multiple Array Matrix) architecture, so it provides a very high cost-effectiveness for high-speed applications. The MAX7000 series also provides the industry's fastest programmable logic solution. It is based on CMOS EEPROM technology, with a minimum propagation delay of 3.5ns, can achieve counters with speeds higher than 200MHz, and provides a very wide range of choices for high-density devices, which is very suitable for high-speed design applications. The company's MAX+plusII software is an easy-to-use development tool with a friendly interface, high integration, compatibility with industrial standards, and support for FLEXMAXACEX 1K and other series products. And it provides a student version of the software for universities, which is similar to the commercial version in terms of function, but is only limited in the chips that can be used. Due to these advantages of the MAX7000 series, the following designs are all based on the MAX7000 series products.

Application of CPLD in High-Speed ​​Addressing

In general, data acquisition requires the CPU to read the results of A/D conversion and then transfer them to the off-chip memory, which requires at least 4 machine cycles. If a machine cycle is generally 1μs, the maximum sampling rate can only reach 250kHz, which is difficult to meet the needs of high-speed sampling. In this system, the sampled data is directly stored in the high-speed buffer RAM, and the memory addressing is completed by the address generator composed of ALTERA's EPM7032LC44-6. The write signal can use the clock signal of A/D conversion, but it needs to go through a series of frequency division and logical combination, or it can be generated by another circuit or placed in the address generator. The basic principle of EPM7032LC44-6 to form an address generator is to use 5 cascaded 74161s to form a 20-bit synchronous counter. The 20th bit is connected to the chip select line of the high-speed buffer RAM to switch the buffer memory group. Use CPU2's P1.7 to control the count enable terminal, and reset it asynchronously, so that the 20-bit address line output remains synchronized. Its specific implementation can use the graphic editing input or text editing input method. The VHDL language program is given below.

The simulation results are shown in Figure 2.

[page]

CPLD constitutes data bus controller

In this high-speed data acquisition system, in order to increase the speed of data transmission and addressing, during normal sampling, the data bus and address bus do not need CPU control, and data storage is automatically completed by the system hardware. However, when CPU2 detects a sudden change in the input analog quantity, after a predetermined period of continuous sampling time, it will send control information to the address generator and data bus controller, stop storing sampled data and automatically generating addresses, and CPU2 will take control of the bus to operate on the data before and after the fault in the high-speed cache RAM. In order to avoid bus conflicts, a data bus controller is needed to handle the relationship between the system bus and the local bus.

EPM7064 can solve this problem very well. Inside EPM7064, a tri-state gate is used to isolate the read/write control lines of CPU2, 8 data buses, 12 data lines of AD9225 and an overflow line from the read/write control lines and data lines that control the high-speed buffer RAM. P1.7 of CPU2 is used as the control signal line of CPU2 or high-speed A/D control bus, so that the access control right of the buffer RAM data line can be easily switched. Considering the length of the article, the implementation program will not be given in detail. The implementation method of the address bus control logic is similar and will not be introduced again.

ISA bus interface composed of CPLD

In the PC series, the I/O space is independent, with a total of 1KB (address number 000H~3FFH). Since part of the I/O interface is distributed on the host motherboard and the other part is distributed on the expansion slot, the 1024 I/O port addresses are also divided into two parts, of which the first 512 are used by the interface controller on the motherboard and the last 512 are used by the interface control card in the expansion slot. And since part of the last 512 addresses have been configured as the interface of system resources, the I/O ports that can be truly designed and developed by users are few and discontinuous. In this way, the conventional method of using the address bus provided by the PC to address the dual-port RAM cannot be used, because this method can only address a few and discontinuous units. So this is a difficulty. For this reason, the method of using the data line of the PC to address the dual-port RAM is adopted, which only occupies three I/O ports to address the entire 4K RAM area.

The logic block diagram of the ISA bus interface circuit is shown in Figure 3.

The 8-bit data line, 10-bit address line, read/write control line IOW and IOR and power line in the ISA slot are used, and it is assumed that the three ports 390H, 391H and 392H are used. When the PC wants to access a certain address unit, it first sends the low 8-bit address to the data bus through the 390H port. At this time, the 390H signal and IOW signal sent by PC-AB output a latch pulse to the latch (L) through the decoding circuit, latching the low 8-bit address; then the high 4-bit address is sent to the data bus through the 391H port. At this time, the 391H signal and IOW signal sent by PC-AB output a latch pulse to the latch (H) through the decoding circuit, latching the high 4-bit address; finally, read and write are performed through the 392H port. As long as the 392H signal appears on the PC-AB, the decoding circuit outputs a low level to the /CS of the dual-port RAM, and then read and write operations can be performed according to the corresponding read/write control signals.

The VHDL file for implementing this interface using ALTERA's EPM7064SLC84-5 is as follows:

The simulation results show that this circuit design can fully realize the above functions. The simulation diagram when the PC uses port 392H to read the data in the dual-port RAM is shown in Figure 4.

CPLD is a new technology in the field of modern electronic engineering. It provides a circuit system design method based on computer and information technology, and improves the integration and reliability of the designed circuit. The author has tried to apply the MAX7000 series products launched by ALTERA to high-speed data acquisition. Specifically, the address generator, data bus controller and ISA bus interface are designed using EPM7032 and EPM7064. It has been applied in a precise fault location system of the power system.

Keywords:CPLD  MAX7000  FPGA Reference address:Data Acquisition System Based on MAX7000 Series CPLD

Previous article:A complex floating point covariance matrix implementation based on FPGA
Next article:Optimization Design and FPGA Implementation of RS Communication Encoder

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

Using PCM coding principle and FPGA programming technology to realize PCM digital baseband interface transmission
Using PCM coding principle and FPGA programming technology to realize the access of low-speed data transmission of PCM digital baseband interface 1. Overview ----The access of low-speed devices in high-speed transmission systems has a wide range of applications. In monitoring networks such as environment
[Embedded]
Using PCM coding principle and FPGA programming technology to realize PCM digital baseband interface transmission
Design of Intelligent Dial-up Alarm System Based on CPLD
    With the development of economy and the improvement of living standards, people pay more and more attention to personal safety and property safety. In order to avoid injury and loss, a safe alarm system is needed. Most of the current alarm systems use single-chip microcomputer as the main controller, with complex
[Security Electronics]
Design of Intelligent Dial-up Alarm System Based on CPLD
How to build a circuit system using 51 microcontroller and CPLD chip
I. Introduction The single-chip microcomputer market can be described as a giant. Among them, the 51 single-chip microcomputer has more users. There is no need for more introduction to the 51 single-chip microcomputer. It must be emphasized here that as long as you are proficient in the 51 single-chip microcomputer, y
[Microcontroller]
How to build a circuit system using 51 microcontroller and CPLD chip
Switching control of multiple video channels based on DSP+FPGA
With the rapid development of computer and digital image processing technology, video surveillance technology is widely used. Traditional video surveillance systems use a single camera to monitor a fixed scene. Not only is the video field of view limited, but it is also impossible to monitor different positions of t
[Embedded]
Switching control of multiple video channels based on DSP+FPGA
Design of USM test power supply based on FPGA and DDS technology
Ultrasonic motor (USM) has many advantages, such as being able to directly output low-speed high torque, fast transient response (up to ms level), high positioning accuracy (up to nm level), and no electromagnetic interference. The operation of USM requires two high-frequency AC power supplies with a certain amplitude
[Power Management]
Design of USM test power supply based on FPGA and DDS technology
EPXA10 with embedded ARM core is used in image driving and processing
With the development of submicron technology, the density of FPGA chips continues to increase, and with its powerful parallel computing capabilities and convenient and flexible dynamic reconfigurability, it is widely used in various fields. However, in the implementation of complex algorithms, FPGA is far less flexi
[Microcontroller]
EPXA10 with embedded ARM core is used in image driving and processing
Design of real-time analysis system for flight test vibration data based on POWER PC+FPGA architecture
Abstract: Flight test vibration signals have the characteristics of high sampling rate, large data volume and complex processing. Under the existing conditions, it is difficult to transmit a large amount of vibration data to the ground monitoring system in real time through the telemetry link. Aiming at the needs
[Embedded]
Design of real-time analysis system for flight test vibration data based on POWER PC+FPGA architecture
Research and design of signal source based on FPGA and DDS
1 Introduction Direct Digital Synthesis (DDS) is a new frequency synthesis technology based on the Nyquist sampling theorem theory and the development of modern device production technology. Compared with the second generation of frequency synthesis technology based on phase-locked loop, DDS has the advanta
[Embedded]
Research and design of signal source based on FPGA and DDS
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号