DC servo drive based on single chip microcomputer

Publisher:Tianyun2021Latest update time:2012-11-15 Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

DC servo drives are widely used in the fields of industry, medical treatment, and national defense due to their excellent driving performance. The structure of a typical DC servo drive is shown in Figure 1-1. The entire system is a multi-loop control system consisting of a current loop, a speed loop, and a position loop. Traditional servo drives use analog circuits with op amps as the core, which have the disadvantages of complex structure, difficulty in parameter adjustment, and system performance being easily affected by the environment. With the rapid development of microprocessor technology, analog digital interface technology, and power semiconductor technology, modern DC servo drives generally use digital control systems with microprocessors as the core. Servo drives with microprocessors as the core can not only easily implement control algorithms that could not be implemented with analog circuits before, but also have the advantages of simple structure, convenient parameter adjustment, and system performance being insensitive to environmental parameters. At the same time, digital control systems can also make full use of mature network connection technology to achieve multi-machine parallel operation.

Typical DC servo drive structure

1-1

2. Introduction to Chip Features

SPMC752313A is a new member of μ'nSP™ series products, and is a 16-bit microcontroller specially designed for motor drive launched by Sunplus Technology. It has excellent timer and PWM signal generator. It can easily realize various motor servo drive solutions.

SPMC75F2313A has an operating speed range of 0~24MHz within the operating voltage range of 4.5V~5.5V, and has 2K words of SRAM and 32K words of flash ROM; up to 33 programmable multi-function I/O ports; 4 general-purpose 16-bit timers/counters (including a motor drive dedicated PWM waveform generator and a position detection interface timer), and each timer has a PWM event capture function; 2 dedicated timing programmable cycle timers; programmable watchdog; low voltage reset/monitoring function; 8-channel 10-bit analog-to-digital conversion. With the support of these hardware peripherals, SPMC75F2313A has a very good performance in the field of motor control. The characteristics of SPMC75F2313A are as follows:

Features of SPMC75F2313A

Click to see the original image

3. Introduction to the overall system solution

This servo driver is mainly composed of Lingyang SPMC75F2313A, a power full bridge composed of IRF540 and various interface modules. Its structural block diagram is shown in Figure 3-1. The driver uses a position servo structure with a current loop, in which the position servo loop can be connected to the system as needed. The driver uses a 20KHz bipolar PWM to ensure good dynamic performance of the system.

Block Diagram

3-1

The structure of the core drive module of the motor

5-1

The flow of the core service subroutines of each control loop is shown in Figure 5-2. These parts are the core of the entire system, and their performance also determines the performance of the entire drive. Therefore, these parts are written in pure assembly, and the corresponding PID algorithms are also adjusted in structure and optimized in performance according to the characteristics of different control loops. This ensures the performance and real-time performance of these parts of the program to the maximum extent.

PWM period interrupt service subroutine flow chart

Figure 5-2 PWM period interrupt service subroutine flow chart

The system control part is the heart of the whole system coordination. The whole system works in an orderly manner under its coordination. This part mainly gives corresponding control information according to the system settings and the current system status to ensure the reliable operation of the system.

The human-machine interface program mainly provides users with a simple and easy-to-use interactive interface to facilitate users to reliably control the drive. The start and stop of the drive and the setting of various operating parameters are all carried out at this level.

6 Conclusion

Usually, in the process of developing servo drive equipment, it is necessary to write real-time and highly readable code, and then hybrid programming is needed. However, Sunplus' m'nSP™ IDE has a good programming environment, which can easily and easily perform hybrid programming (calling the assembler in the C program and calling the C program in the assembler).

The system uses three timers and about 30 IO port resources of SPMC75F2313A. In fact, the resources of SPMC75F2313A are quite rich. Because it has professional motor drive hardware support, the development of motor drive system becomes relatively simple. Therefore, the motor servo drive system based on SPMC75F2313A has broad application prospects in the fields of industry, medical treatment, national defense, etc.

Keywords:MCU Reference address:DC servo drive based on single chip microcomputer

Previous article:Interface and programming method between LCD and single chip microcomputer
Next article:Solution to Eliminating Electromagnetic Interference of MCU System

Recommended ReadingLatest update time:2024-11-16 21:33

Typical circuit of a microcontroller-based fan speed regulator
     Microcontrollers require a DC operating power supply in the 2V to 5.5V range, which can be easily supplied by batteries or secondary power supplies. In certain cases, however, microcontroller-based products must operate directly from a 120V or 220V AC outlet without a step-down transformer or resistors that gener
[Microcontroller]
Typical circuit of a microcontroller-based fan speed regulator
Design of electronic piano circuit based on single chip microcomputer STC89C51
introduction With the penetration of computers in various fields of society, the application of single-chip microcomputers is becoming increasingly in-depth, while driving the rapid updating of industry, agriculture, commerce, home appliances and toys, greatly improving the quality and efficiency of e
[Microcontroller]
Design of electronic piano circuit based on single chip microcomputer STC89C51
MCU C language programming: K1-K4 button status display
Time: 2013-05-22 15:40:01 /* Name: K1-K4 button status display Note: When K1 and K2 are pressed, the LED lights up and goes out when they are released. */ The LED lights up when K3 and K4 are pressed and released, and turns off when they are pressed and released again; #include reg51.h #define uchar unsign
[Microcontroller]
MCU C language programming: K1-K4 button status display
s3c6410 linux gadget hid driver
The kernel I use is linux2.6.38. At the beginning, the development board can be used as a USB flash drive, but when using the HID function, the following problems occur: g_hid gadget: hid_setup crtl_request : bRequestType:0x21 bRequest:0xa Value:0x0 g_hid gadget: Unknown request 0xa s3c-hsotg s3
[Microcontroller]
Detailed explanation of design failure mode and effects analysis (DFMEA) for automotive MCU
Failure Mode and Effects Analysis (DFMEA) plays a very important role in the automotive industry. In the process of automotive design and manufacturing, DFMEA is widely used to identify and manage potential design failure modes, as well as to evaluate the impact of these failure modes on automotive performance, safe
[Embedded]
Detailed explanation of design failure mode and effects analysis (DFMEA) for automotive MCU
Motor drive solution and application design points for automotive adaptive front lighting system (AFS)
    In recent years, the electronic content in automobiles has been continuously improved, helping to improve fuel economy, reduce emissions, enhance safety, lighting, vehicle networks and infotainment systems, etc. Among them, car headlights are an important part of safe driving. ON Semiconductor's innovative and indu
[Automotive Electronics]
Motor drive solution and application design points for automotive adaptive front lighting system (AFS)
ARM7 MCU (Learning) - (II), Interrupt Control Programming - 02
After setting up the MDK interrupt~~ You can use it immediately after interruption~~ If you want to know more, look for the EDA software section~~ Just finish writing it today~~ 2. Interrupt Control Programming 2. (01) Counter (control the count addition, subtraction or clearing through three external interrupts)
[Microcontroller]
ARM7 MCU (Learning) - (II), Interrupt Control Programming - 02
Detailed explanation of new energy vehicle controllers: VCU, ECU, MCU and battery BMS
The various controllers in new energy vehicles mainly include: vehicle control unit (VCU), engine control unit (ECU), motor control unit (MCU) and battery management system (BMS). The three electric technologies of new energy vehicles include battery, electric drive and electric control. The battery part
[Automotive Electronics]
Latest Analog Electronics 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号