Design of high-speed laser marking control system based on DSP

Publisher:快乐家庭Latest update time:2010-03-16 Source: 微计算机信息Keywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

The galvanometer scanning laser marking technology controls the deflection angle of two high-speed galvanometers to change the propagation direction of the laser, and focuses the laser on the workpiece surface through the F-Theata lens to mark the workpiece surface. Compared with traditional marking technology, it has a wide range of applications (suitable for processing surfaces of different materials and shapes), no mechanical deformation of the workpiece, no pollution, fast marking speed, good repeatability, high degree of automation, etc. It has a wide range of uses in many fields such as industry, national defense, and scientific research. High-speed and high-precision galvanometer marking has become the development direction of today's marking industry.

The traditional galvanometer marking control system is connected to the single-chip control board through the serial port and parallel port ISA bus of the PC. This method has a simple interface, convenient connection, and low development cost, but due to the low transmission speed, it can no longer meet the real-time requirements of modern CNC systems. This paper has made some new explorations in laser marking control technology: using the high-speed data transmission of PCI and the high-speed data processing capability of DSP, a "PC + PCI bus + DSP control board" method is proposed for the galvanometer marking control system, thereby achieving precise control of marking control, improving control efficiency, and ensuring system real-time performance. The DSP control board is the core of the entire system, which directly determines the scanning speed and scanning accuracy of the system. This paper will focus on the design of the control board.

1 DSP chip

The main chip of the DSP control board uses the high-speed data processing chip TMS320C6205 of the C6000 series of Texas Instruments. This chip is a high-performance fixed-point processor with a main frequency of up to 200MHz, which can execute 8 32-bit instructions per cycle and a processing speed of up to 1600MIPS; it adopts the high-performance VLIW structure TMS320C62xTM DSP core, has 8 independent functional units, 32 32-bit general registers; provides 64K bytes of internal program RAM and 64K bytes of internal data RAM; provides a 32-bit external memory seamless interface, including synchronous devices (such as SDRAM, SBSRAM, etc.), asynchronous devices (such as FLASH, SRAM, etc.) and addressable 52M bytes of external storage space; provides flexible PLL and clock generators, and can configure the multiplier value; provides a PCI bus interface that complies with the PCI 2.2 specification, directly realizing the bridging function between the chip and the PCI bus; provides two 32-bit timers; and provides a JTAG boundary scan interface for online debugging. The use of this chip can achieve high-speed data processing and ensure the real-time operation of the system. In addition, since it has a PCI bridge function and provides an interface with the PCI bus, it is economical and reliable.

2 Hardware Design

2.1 Structure diagram

As shown in Figure 1, the hardware structure block diagram of the system. The DSP control board is connected to the PC through the PCI bus to achieve high-speed communication. The DSP processing module is the main control module, and the TMS320C6205 chip with a main frequency of 200MHz is used as the main control chip. The DSP processing module makes full use of the fast computing power and high-precision timer of the C6000 series DSP to ensure that the galvanometer marking machine can mark at a uniform speed and high speed, which cannot be achieved by the PC. The peripheral circuit of the DSP includes a storage module, reset control, power control, clock system, JTAG port, digital-to-analog conversion module, CPLD logic control module and optoelectronic isolation module. The storage module includes a FLASH module and an SDRAM module. The FLASH is used to store the system startup code and software code, and the SDRAM is used to provide additional storage space required for software operation. The DSP control board outputs two analog quantities to control the movement of the two galvanometers, outputs a Q switch control signal to control the switching light of the laser, and inputs/outputs 16 optoelectronic isolation signals for function expansion.

System hardware block diagram

2.2 Communication between PC and DSP

The PCI bus is a local bus that is not attached to a specific processor. Structurally, PCI is a first-level bus inserted between the CPU and the original system bus. A bridge circuit manages this layer and implements the interface between the upper and lower layers to coordinate data transmission. The manager provides signal buffering, enabling it to support 10 peripherals and maintain high performance at high clock frequencies. The PCI bus also supports bus mastering technology, allowing intelligent devices to obtain bus control when needed to speed up data transmission. Compared with the ISA bus, the PCI bus has the advantages of fast transmission speed and large transmission volume.

This system uses TMS320C6205, which has a PCI bus bridge function that complies with the PCI2.2 specification. Developers can avoid the hardware and software implementation of the PCI protocol, which brings convenience to system design, shortens the development cycle, and saves development costs. Developers only need to directly connect the bus signal on the PCI slot with the relevant PCI bus signal on the DSP chip. The DSP control board with "gold finger" can be directly inserted into the PCI card slot of the PC to realize communication between the PC and the DSP. PCI devices can access all internal RAM space, peripherals and external memory space.

The PCI bus width used by the DSP control board is 32 bits (3.3V), the bus frequency is 33MHz, and the transmission rate is 33×32/4MB/s = 132MB/s. This transmission rate provides a guarantee for the high-speed operation of the entire system.

2.3 CPLD Logic Control

The logic control of the entire high-speed system is realized by a high-speed CPLD chip. The MAX7128E chip of ALTERA is selected for implementation, with 2500 programmable logic gates, 128 macro cells, 8 logic array blocks, 100 user-definable I/O pins, and a pin-to-pin delay of 5ns. MAX7000 series devices can be programmed through a programmer or online. This design uses online programming (ISP). ISP allows quick and easy reprogramming during the design and development process, simplifies the production process, and allows the device to be assembled on the printed circuit board before programming.

In the system design, LED signal lights, FLASH, DA chip, 16-channel I/O optoelectronic isolation interface, analog switch, Q switch, PWM output, and software reset control all use the address of CE1 space. In order to prevent these devices from interfering with each other, the input address must be decoded. By judging the PA[2:6] and PA[16:21] input to the CPLD, we can know the address area that the DSP is accessing, and perform address decoding of the CE1 space, thereby generating corresponding control signals to achieve logic control and timing control.

The high addresses of the registers built on the CPLD are all the same, named dsp_reg_addr, and are composed of Pa16~21. If Pa16~21 is set to "111000", it means the address 0x0178xxxx.

The lower address is composed of Pa2~6, which addresses 10 registers. The address correspondence is shown in Table 1.

Table 1 Address allocation table

Address allocation table

2.4 Digital-to-Analog Conversion Module

The digital-to-analog conversion module converts the digital signal processed by DSP into an analog signal to control the deflection of the two galvanometers. As the requirements for marking accuracy are getting higher and higher, the traditional 8-bit digital-to-analog converter can no longer meet the needs of users. Therefore, this system uses ADI's 16-bit high-precision digital-to-analog converter AD669 chip, as shown in Figure 2. AD669 has a 16-bit parallel input and a secondary data cache structure. In the design, the /L1 signal is directly grounded and set to be valid, and the first-level cache and the second-level cache are controlled by controlling the /CS and LDAC signals respectively. The voltage range of the control galvanometer signal is -10V~+10V. Taking the label with a size of 100mm×100mm as an example, the accuracy can reach 100mm/216=0.0015mm, and the corresponding minimum output voltage is 0.00031V.

Digital to Analog Conversion Module

Experiments have shown that when powered on, the output of the AD669 chip is an uncontrollable quantity, which will cause the galvanometer to deflect at the moment of power-on. If the deflection amplitude is too large, long-term use will cause the galvanometer to break. In order to protect the galvanometer, an analog switch circuit can be designed to control the output of the AD669 chip when powered on to 0V. The author places the analog switch at the reference voltage input terminal of the AD669 chip, and controls the analog switch through CPLD to control the presence or absence of the reference voltage, thereby ensuring that the galvanometer does not deflect when powered on.

3 PCB Design

The control board uses a high-speed DSP processing chip with a main frequency of 200MHz. In the high-speed signal system, there are EMC problems, which will affect the performance of the system. In order to design a stable control board with good anti-interference performance, the following measures were taken

1. Reasonable arrangement of board layers

The control board is a six-layer board, and the board layer design is (from top to bottom) signal layer-ground layer-power layer-signal layer-ground layer-signal layer. This board layer structure arrangement makes each signal layer and power layer close to a ground layer, providing a shorter return path for the signal.

2. Processing of clock signal lines

Half of the PCI clock signal is boosted by reflected waves, so the clock signal CLK routing length is approximately 2500 mil, and it is achieved by serpentine routing (this point is clearly stipulated in the routing requirements of the PCI2.2 specification). For DSP chips, the crystal oscillator circuit should be as close to the DSP chip as possible, and the clock signal should be as short as possible.

3. Processing of SDRAM related signal lines

The operating frequency of SDRAM is 100MHz. At high frequencies, the signal transmission time is directly related to the length of the signal routing, and this problem cannot be ignored. Therefore, the data line and address line of SDRAM should be routed with equal length to ensure the quality of signal transmission. In addition, crosstalk and ringing problems are also very likely to occur at high frequencies. For the control signals and data and address bus signals of the SDRAM and DSP interface, matching resistors are connected in series at the source end to improve the signal transmission quality and ensure that SDRAM can work normally at high frequencies.

4. Isolation of digital and analog circuits

The control board has digital circuits and analog circuits. When laying out, the isolation of digital and analog circuits must be considered. Try to separate the digital circuits and analog circuits to avoid digital signal routing across the analog circuit area to prevent mutual interference between the two circuits. In addition, the digital circuit and analog circuit share a common ground through a 0 ohm resistor.

5. Use of capacitors

Place a 1.01uF decoupling capacitor next to the power pin of each digital chip.

4 Conclusion

This system combines the high-speed PCI bus with the C6000 high-speed DSP processor, equipped with a high-precision digital-to-analog conversion module, to achieve a high-speed and high-precision control system, and successfully applied it to the galvanometer laser marking system. The system makes full use of the high-speed processing capability of the DSP and the internal high-precision timer, sharing the real-time tasks of the PC, thereby achieving the complementary advantages of the PC and the DSP control board, achieving real-time marking, and ensuring the uniformity of the marking quality. This article also gives the points to note for the DSP control board in the PCB design stage. The board has been put into use in actual production and has good stability and anti-interference.

Keywords:DSP Reference address:Design of high-speed laser marking control system based on DSP

Previous article:Interface Technology between Image Processor 6538 and 8031
Next article:Design of communication system baseband verification platform based on FPGA

Recommended ReadingLatest update time:2024-11-16 17:27

DSP与CAN总线的测速和远程传送一体化
  速度测量是控制工程的基本问题之一。在许多情况下,测速信号需要远距离传送。实现这个问题的一个主要方法是使用SoC(片上系统)芯片。它所带的丰富外设改变了关于硬件和软件的观念。搭建硬件系统变为对硬件结构的理解掌握,软件的编程也从算法编制为主变为部件设置为主,具有简捷、完整的特点,体现了芯片的技术优势。SoC类的TMS320LF2407DSP芯片在测速和远程传送应用中的简捷一体化设计也体现了这一点。   1 相关系统结构   TMS320LF2407所带有的事件管理器和CAN控制器模块为测速和远程传送提供了便利。 TMS320LF2407有2个事件管理器EVA和EVB,各有3个捕获单元。对应6个捕获输入引脚CAPX(对EVA,
[Test Measurement]
FPGA builds high-performance DSP
    In applications such as data communications and image processing, powerful processing capabilities are required. When the fastest digital signal processor (DSP) still cannot meet the speed requirements, the only option is to increase the number of processors or use custom gate array products. Now, designers have a
[Embedded]
Design of Power System Harmonic Analyzer Based on Dual DSP
This paper introduces a design of a power system harmonic analyzer based on dual TMS320F 28335. The analyzer can simultaneously realize the synchronous sampling of multi-channel signals (voltage and current) and perform harmonic analysis on them. With the help of the powerful dual TMS320F28335 platform, real-time an
[Embedded]
Research on Switching Power Supply Based on Digital Control
0 Introduction Switching power supplies are known as high-efficiency and energy-saving power supplies. Traditional switching power supplies use analog control technology, using components such as comparators, error amplifiers, and analog modulators to adjust the power supply output voltage. The analog contr
[Power Management]
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, th
[Embedded]
Airborne high-definition video imaging system based on FPGA and DSP
introduction Unmanned aerial vehicles are widely used in military reconnaissance and civil mapping, among which the airborne video image system is one of the important links in the airborne electronic system. When the drone takes pictures of the ground scene at high altitude, the target pixels in the obtained image fr
[Power Management]
Transformer Test System Based on LabVIEW and PCI-1712L
0Introduction At present, the performance test of power transformers in China is still basically in the stage of manual measurement. Each performance index is measured by a dedicated instrument. Many test items still use some pointer instruments, which have problems such as large reading errors, labor-inten
[Test Measurement]
Transformer Test System Based on LabVIEW and PCI-1712L
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号