Embedded real-time operating system MQX that applies industrial control, automotive electronics and consumer electronics is launched by Freescale semiconductor in the chinese market in 2009. MQX was first developed by Precise Software Technologies Corporation in 1989. MQX opens source after Freescale's acquisition in 2009. MQX adopts micro-kernel structure, with standard API interface, module architecture, TCP/IP protocol stack, USB protocol stack and so on. So it has excellent performance in terms of real-time, transplant and reduction. In view of the domestic research and application of MQX not yet begin, commissioned by Freescale semiconductor, the paper analyzes and researches MQX mainly from the following aspects:(1) Researches MQX micro-kernel structure and kernel management function, and deeply analyzes MQX running implementation mechanism from MQX's startup, task scheduling, device driver and so on. Puts forward MQX engineering framework structure by the idea of underlying software component, and rewrites device driver.(2) Analyzes and researches FIFO scheduling policy and RR scheduling policy of MQX, combines FIFO scheduling policy with RR scheduling policy, designs and implements multi-level feedback queue scheduling algorithm in the MQX, which not only responds the task with high priority but also makes the short task done quickly.(3) Transplants MQX to the automatic bending system microcontroller MCF52223, elaborates transplant procedure, files to modify and configure in the transplant process, designs LCD touch screen interface and completes the software platform design of automatic bending system on the MQX.Automatic bending equipment based on MQX runs well, effectively controls angle and accuracy of bending, and possesses high real-time response capability. The paper completes analysis and research of MQX, which has heuristic instructional function for its study and application in the field of embedded control. |