Hardware Design of Signal Acquisition Device for Relay Protection Tester Based on DSP

Publisher:TranquilSmileLatest update time:2010-03-03 Source: 中电网Keywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

With the continuous development of the power industry, there are many types of relay protection testers currently used in China. However, since the performance of the relay protection tester itself directly affects the value of the relay protection device, the working performance and stability of the tester are particularly important. Although DL/T*-1997 "Technical Conditions for Relay Protection Microcomputer Test Devices" puts forward clear requirements for relay protection test devices and stipulates regular inspection cycles and inspection items, there are no relevant inspection procedures or specifications, and there are no ready-made inspection devices. This has brought certain difficulties to the acceptance and weekly inspection of relay protection testers. Therefore, such a data acquisition device is needed to accurately collect various data of the relay protection tester so that the host computer can analyze the data and calibrate the relay protection tester.

1. System design

The data acquisition device designed in this paper is specially used for the data collection of relay protection test instruments. The design uses DSP as the core controller of the data acquisition device. The overall structure of the system hardware is shown in Figure 1. The system consists of voltage and current sampling circuits, signal amplification, low-pass filtering, synchronous signal acquisition and recognition, DC sampling, analog/digital conversion circuits, and communication module circuits.

In this scheme, the data selector uses the AD7502 chip produced by AD. The AD7502 chip is a dual four-to-one data selector, so two A/D converters are required for cyclic sampling. The analog/digital conversion chip uses the 16-bit parallel high-speed converter ADS8515 launched by TI. The main control chip uses TI's digital signal processor TMS320F2812. TMS320F2812 is a 32-bit fixed-point high-speed digital processor with a maximum operating frequency of 150 MHz. The chip adopts an improved Harvard structure and has six independent parallel data and address buses on the chip, which greatly improves the data throughput of the system. The combination of 32-bit accumulator, 16-bit hardware multiplier and input and output data shift registers can quickly complete complex numerical operations. Therefore, the calculation speed of TMS320F2812 is very high, which can meet the online real-time requirements of the system.

When communicating with the host computer, this solution uses USB bus technology based on various factors. The USB interface chip is ISP1581 from Philips. ISP1581 is a cost-effective USB 2.0 interface chip launched by Philips. It fully complies with the USB 2.0 specification and supports 7 IN endpoints, 7 OUT endpoints and one fixed control IN/OUT endpoint. ISP1581 supports the self-test working mode of USB 2.0 and the return working mode of USB 1.1, and can operate normally under high-speed or full-speed conditions. ISP1581 integrates a serial interface engine (SIE), PIE, 8 KB FIFO memory, data transceiver, PLL's 12 MHz crystal oscillator and 3.3 V voltage regulator. The communication between ISP1581 and the external microcontroller is mainly achieved through a high-speed universal parallel interface. It has two modes of connection with the microcontroller: disconnect bus mode and general processor working mode. In the disconnected bus mode, AD[7:0] is a multiplexed 8-bit address/data bus, and DATA[15:0] is a separate DMA data bus; in the general processor working mode, AD[7:0] is a separate 8-bit address line, and DATA[15:0] is a 16-bit controller data bus. At this time, DMA will be multiplexed to the data bus of the DATA[15:0] controller. In the hardware design of this device, the circuit is designed as a general processor mode.

2 System Hardware Design

2.1 Voltage and current sampling circuit design

This system collects three-phase voltage, three-phase current and two voltage and current signals of the neutral line. The sampling circuits of voltage and current are similar. The voltage uses a voltage transformer and the current uses a current transformer. The voltage and current sampling circuits are composed of the operational amplifier OPA2277. The voltage acquisition circuit is shown in Figure 2. In Figure 2, T1 is a voltage transformer. The signal from the voltage transformer is processed by OPA2277 and then sent to the S1 input pin of the data selector AD7502. The other 7 voltage and current signals are sent to the other 7 input pins of AD7502 respectively.

2.2 Design of program-controlled filter circuit

The data selector AD7502 is used as the analog switch for four voltage and four current signals in the system. The filter circuit is implemented by OPA2277, and the circuit schematic is shown in Figure 3. Among them, A0 and A1 of AD7502 are connected to GPIOB4 and GPIOB5 of DSP general I/O port, and EN pin is connected to high level. GPIOB4 and GPIOB5 output different values ​​to control the connection of different channels of AD7502, so that 8 signals are sent to two A/D converters in turn.


2.3 Design of A/D conversion circuit and DSP interface circuit

The A/D converter is the core device in the analog/digital conversion circuit and plays an important role in the entire measurement system. If the number of bits of the analog/digital converter is low, it will cause a large measurement error. This device uses the A/D chip ADS8515 of Texas Instruments (TI) as the analog/digital converter. The ADS8515 is a 16-bit parallel A/D converter with a sampling rate of 250 KSPS and an input voltage range of ±10 V. The ADS8515 belongs to the successive approximation register type (SAR type for short) A/D converter. This type of converter outputs a digital signal by comparing the input analog signal with the comparator successively. It is the most widely used type of converter at present. The SAR type A/D converter has relatively low power consumption and a relatively small size. In addition, the A/D usually has a sample-and-hold device inside, which can maintain the sampling voltage until the conversion is completed, and its conversion rate is very fast. The interface circuit of ADS8515 and DSP is shown in Figure 4.


Since the I/O voltage of TMS320F2812 is 3.3 V, while the ADC is 5 V, the level conversion chip 74LVC245 is needed to realize the isolation function. The control of ADS8515 is realized by querying the chip select signal CS, the start signal R/C and the status signal BUSY. BUSY, CS, R/C are connected to the interrupt signal pin XINT1 of DSP and the general I/O interface GPIOB0 and GPIOB1 respectively. In order to ensure the synchronous sampling of the dual DSPs and prevent the crosstalk of the two DSP data during data output, the chip select signal CS and the start signal R/C of the other DSP are connected to the general I/O interface GPIOB2 and GPIOB3 of DSP respectively. In this way, the synchronous sampling of the dual DSPs can be ensured, and the data in the two A/Ds can be read in sequence.

2.4 Synchronous signal acquisition and recognition circuit design

In order to realize the AC synchronous sampling of the A/D converter, the design circuit of this scheme is shown in Figure 5. The scheme uses multiple OPA2277 and comparator MAX998 to form a signal acquisition and recognition circuit, thereby overcoming the frequency leakage error caused by non-integer cycle sampling and realizing strict synchronous sampling and equal interval sampling. In Figure 5, K3C is a relay, which is used as a switch to switch on and off the selected AC voltage signal and AC current signal. OPA2277 forms an amplification and filtering circuit. The role of diodes D2 and D3 is to protect the comparator MAX998 to prevent the voltage from being too large and breaking down the MAX998.


2.5 DSP System Design

The DSP system is mainly composed of DSP chip, power supply circuit, clock circuit, simulation and test circuit. Since the power supply system of TMS320F2812 has both 3.3 V digital and analog power supply and 1.8 V digital power supply, the safety and reliability of the power supply are the fundamental guarantee for the operation of the system, so it is necessary to convert the commonly used 5 V power supply into 3.3 V and 1.8 V power supply. This design uses TI's TPS767D318 as the power supply chip. This chip is specially designed for DSP applications and can provide 3.3 V and 1.8 V two-way voltage output, each of which can provide a maximum current of 1 A. TPS767D318 also has a voltage monitoring function. The design of the power supply circuit is shown in Figure 6. In addition, each power supply and ground pin of the DSP cannot be left floating, and the digital and analog grounds must be designed separately.

Since the system is sensitive to timing requirements, the clock circuit of this system uses an external active crystal oscillator with a working voltage of 3.3 V. The active crystal oscillator has better signal quality than the passive crystal oscillator, is more stable, and has a relatively simple connection method. The usual usage is: one pin is suspended, two pins are grounded, three pins are connected to output, and four pins are connected to voltage.

When hardware emulation is performed on the DSP system, the data memory, program memory and control registers inside the DSP can be monitored online through the JTAG boundary scan interface, and the program can be downloaded to the DSP chip for hardware emulation in the TMS320F2812 development environment CCS. The schematic diagram of the JTAG interface is shown in Figure 7.


2.6 Communication module design

At present, data acquisition systems mostly use ISA, EISA or PCI cards to complete data transmission. These methods have the disadvantages of difficult development and debugging, troublesome installation, poor versatility and portability, etc. In addition, the number of slots, addresses, and terminal resources on the PC are limited, resulting in poor scalability of this method. At present, the widely used USB bus interface has the advantages of easy installation, high bandwidth, and easy expansion, and has become the mainstream of computer interfaces. This paper selects a dedicated USB interface chip to complete the data transmission between DSP and PC. The USB 2.0 chip uses Philips' ISP1581. The connection circuit diagram of ISP1581 and TMS320F2812 is shown in Figure 8. When ISP1581 is powered on, the interface is set through BUS_CONF, MODE0, and MODE1. In this design, BUS CONF is connected to a high level through a resistor. ISP1581 works in general processor mode, AD[0~7] is an 8-bit address bus, and DATA[0~15] is an independent data bus. MODE0 is set to 1, so the read and write selection signal is of 8051 type. XCS0AND1 of TMS320F2812 is used as the chip select signal of ISP1581. The RREF pin is grounded through a 12 kΩ precision resistor to provide accurate mirror current. The RPU pin is pulled up through a 1.5 kΩ resistor.

3 Conclusion

A signal acquisition device for relay protection tester based on DSP technology is developed to verify whether the performance indicators of relay protection tester meet the design requirements. This paper focuses on the overall architecture of the data acquisition device, the hardware composition and circuit design of the data acquisition device based on DSP. The data acquisition device can accurately collect various data of the relay protection tester, laying a technical foundation for the verification device of the relay protection tester.

Keywords:DSP Reference address:Hardware Design of Signal Acquisition Device for Relay Protection Tester Based on DSP

Previous article:Using MSGQ modules to simplify complex DSP applications
Next article:Design and implementation of a smart jamming platform based on FPGA/DSP

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

Electro-hydraulic servo controller based on DSP and STM32
introduction Most servo control systems use traditional hardware structures, and the control algorithms are relatively fixed. In addition, they cannot realize high-performance control algorithms under different working conditions, which makes it difficult to meet the needs of modern industry. At present, there is an
[Microcontroller]
Electro-hydraulic servo controller based on DSP and STM32
Smart doorbell design tips: video, audio and power technology
For security purposes, residential, commercial, and industrial facilities are widely using video doorbell technology to replace traditional high-priced CCTV networks without the need for transmission media such as coaxial cables or Ethernet. This article examines some of the design challenges associated with video doo
[Microcontroller]
Smart doorbell design tips: video, audio and power technology
Smart ear-worn devices may become a strong competitor to smart watches
Smartwatches and fitness bands have taken the lead in the competition with smart earphones and wearables, the latter targeting fitness enthusiasts (or future fitness enthusiasts), while the former is a surprisingly useful supplement (or even replacement) for smartphones. As a supplement to the phone, this mini device
[Embedded]
Smart ear-worn devices may become a strong competitor to smart watches
Testing and analysis methods of 8051, ARM and DSP instruction cycles
In real-time control systems, the most important indicator for selecting a microcontroller is the calculation speed. The instruction cycle is an important indicator that reflects the calculation speed. For this reason, this paper analyzes and tests the instruction cycles of three most representative microcontrollers (
[Microcontroller]
Testing and analysis methods of 8051, ARM and DSP instruction cycles
DSP Selection Strategy in 3G Mobile Phone Speech Recognition Application
With the advancement of DSP technology, DSPs with stronger computing power, lower power consumption and smaller size have emerged, making it possible to embed more accurate and complex automatic speech recognition (ASR) functions on 3G mobile phones. At present, basic ASR applications can be divided into three categ
[Embedded]
DSP Selection Strategy in 3G Mobile Phone Speech Recognition Application
Video tracking and warning device composed of digital signal processor TMS320C6201
    Abstract: This paper introduces a video tracking and warning device composed of high-speed digital signal processor TMS320C6201 as the core device. The video tracking and warning device can be a small system of its own and work independently; it can also be used as a subsystem and installed in other photoelectric
[Embedded]
Embedded License Plate Recognition System Based on Blackfin561
With the development of science and technology and economy, the number of cars is gradually increasing, and traffic management problems are becoming increasingly severe. How to establish a scientific and effective traffic management system is the focus of traffic management. With the rise of science and technology, in
[Embedded]
Embedded License Plate Recognition System Based on Blackfin561
Design of image compression wireless transmission system based on DSP
1 Introduction With the development of aerospace technology, image wireless transmission technology is becoming more and more mature. Embedded image wireless transmission technology has attracted much attention in a wide range of fields due to its advantages such as easy installation, flexibility, and wide
[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号