Control Pattern Research on Real-Time Multitasking System for MCU Based on Crystals Grinding Machine
- Author
- YuHongXin
- Advisor
- YangXiangPing
- School
- Donghua University
- Major
- Mechanical and Electronic Engineering
- Classification
- TP368.12 Microprocessor
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 19
- Citations
- 0
- Real-time multitasking system
- 51 single-chip microcomputer
- Crystal grinding machine
- control pattern
- "Time slice" polling
- modular programming
Abstract
Crystal grinding machine has a real-time multitasking control system, which is used for crystal processing technology. Through system analysis and design, this paper sums up a real-time multitasking system control pattern.51 series microcontroller is used as core control chip in this pattern, which is based on scheduling algorithm of "time slice" polling and modular programming. This pattern provides a method called "circular design" method.In the design of the Crystal grinding machine, this paper has analyzed and improved the original mechanical structure, and finished the overall scheme design, the control methods selection and hardware circuit design. In order to improve the reliability, system security and anti-jamming is briefly analyzed.In software system design, by means of modular programming, task scheduling and Pre-emptive interruption, this paper has realized portability, multitasking and high real-time tasks.In the establishing process of real-time multitasking system control pattern, this design introduces in detail the various aspects which include task management, scheduler algorithm, modular processing, resource allocation, time precision analysis and model using range and so on. This pattern is applied to the real-time multitasking system based on 51 single-chip microcomputer, which makes design process reasonable and clear, and greatly shortens the development cycle and simplifies system modification and maintenance. The designers lack experience could easily grasp the design method which has portability and generalization. Therefore the pattern has very good development prospect.
Table of contents
Summary 6-7
ABSTRACT 7-11
first chapter 11-17
1.1 single-chip real-time multi-tasking requirements 11-13
1.1.1 MCU multi-task requirements 11
1.1.2 microcontroller real-time systems 11-13
1.2 crystal crude refiner development status 13-15
1.3 crystal grinding principle 15
1.4 subject content 15-17
crystal structure analysis of the crude refiner and improved 17-24
2.1 pre-program structure analysis 2.1.1 feed 17-21
institutions 17-18
2.1.2 folder the holding institutions 18-19
2.1.3 grinding institutions 19-20
2.1.4 sorting mechanism 20-21
2.2 mechanical structure and the grinding program improvement 21-23
2.2.1 clamping mechanism improved 21
2.2.2 grinding feed structure improvements 21-22
2.2.3 improvement of the mechanical structure of the overall program 22-23
2.3 Summary 23-24
Chapter control system overall program and hardware circuit design 24-50
3.1 control system overall program to develop the 3.2 control method to select 24-25
25-33
3.2.1 feed nbsp Process Control Methods ; 25-26
3.2.2 clamping process control method to select 26-28
3.2.3 grinding process control method selection 28-31
3.2.4 sorting process control methods to select 31-33
3.3 controller chip select and peripheral circuit design 33-42
3.3.1 main chip selection and overall design 33-34
3.3.2 power circuit design 34-35
3.3.3 keyboard circuit design 35-37
3.3.4 stepper motor control circuit design 37-38
3.3.5 pneumatic, solenoid valve control circuit design 38-39
3.3.6 AC 220V switch control circuit design 39-41
3.3.7 received by the sensor processing circuit design 41
3.3.8 serial communication circuit design 41-42
3.3.10 Grinding Wheel Speed ??Circuit Design nbsp 42
3.4 impedance frequency measurement module design; 42-49
3.4.1 impedance, processing 42-45
3.4.2 frequencies, processing circuit design 45-49
3.4.3 Accuracy Analysis 49
3.5 Summary 49-50
Chapter system software architecture design 50 -63
4.1 task analysis 50-51, 4.2 overall design
thinking 51
4.3 task scheduler design 51-55
4.4 module program design and interface program 55-62
4.4.1 key scan and digital display 55-58
4.4.2 vibration plate movement processing 58 < br /> 4.4.3 cylinder control 58-59
the 4.4.4 data communication and processing 59-61
4.4.5 sorting tasking 61 < br /> 4.4.6 stepper motor control processing the 61-62
4.4.7 other modules 62
4.5 Summary 62-63
first five chapters reliability analysis and debugging applications 63-69
5.1 security design 63
5.2 anti-jamming design 63-65
5.2.1 power anti-jamming design 63
the 5.2.2 signal acquisition anti-jamming design 63-64
the 5.2.3 signal control anti-jamming design to 64
5.2 the .4 PCB board design and wiring 64-65
5.3 system debugging and analysis 65-67
5.3.1 part of the key functions test 66
5.3.2 real-time tasks corresponding debugging 66
5.3.3 multitasking synchronized debugging 66-67
5.3.4 testing and debugging 67 <br / > the 5.4 crystal crude refiner PCB board 67-68
5.5 Summary 68-69
Chapter 51 single-chip real-time multi-tasking system control mode to establish 69 -85
6.1 task management program - scheduling the 70-76
6.1.1 tasks handled 70-74
6.1.2 time slice polling and achieve 74-76
6.2 task analysis processing 76-81
6.2.1 short tasks and long task processing 76-77
6.2. 2 cycle task and single-task processing 77-78
6.2.3 preemptive interrupt task 78-79
6.2.4 common tasks 79-81
6.3 resource management allocation 81-83
6.3.1 pin The 82
6.3.2 memory allocation 82-83 <br / > 6.3.3 use interrupt 83
6.4 system time accuracy the 83-84
6.5 mode Scope 84
6.6 Summary 84-85
Chapter VII Conclusions and Prospects Looking 85-86
7.1 this design done research 85
7.2 Prospects 85 -86
Reference 86-88
published papers during the school 88-89
Acknowledgements 89-90
Appendix 90-92
Related dissertations
- Interfirm Control Mechanisms between Logistics Service Supply Chain Enterprises
- Biological Control Pattern and Effect Analysis on Agricultural Insect Pests
- Based on Virtual Instrument Inverter Control Board Test Systems Designed
- The Research and Rebuild of Control System for Fuel Treatment Equipment in Power Plant
- Design and Realization of Bus Station Network Ticketing System
- Critical Techniques and Basic Application Development for Medical Images Processing
- Research on Visualization of Power System
- Based on in-vehicle CAN bus network information platform design and research
- Research on the Water Supply Control System for the Country Level Lap Water
- Shipborne automatic tracking satellite antenna system measurement and control technology research
- The Research and Realization for Digital Bus-bar Protection Device
- 2000t / d new dry process cement clinker production line DCS engineering research
- The Development of an Experiment Platform for Evaluating the Integrated Navigation System
- Military Software Reliability Allocation
- Vehicle Communication System EMC Analysis Software Design and Mesh Technology Research
- Research of Milling Force Supervisory Control Method Based on Spindle Motor Current
- AVR-based ink Test System
- Research of Multiple-burner Induction Cooker Controller in Commercial
- Design and implementation of ITIL based securities company ITSM system