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. |