μC/OS-II embedded system based on 16-bit C166

Attention in this paper is concentrated on the characteristics of 16-bit C166 family SCM system and the preemptive and real-time multitasking kernel - muC/OS-II. muC/OS-II is configured for C167-LM microprocessor and ported to establish embedded development platform. On this basis, the design of ultrasonic reversing alarm system(URAS) is applied to the platform. The URAS includes five task modules. To realize the reasonable and effective scheduling mode in both space and time for URAS, preemptive scheduling is achieved by the highest priority management mode, and shared mailbox is adopted to transfer ranging data among tasks, and semaphore is set to solve mutual exclusion for message passing tasks. The successful application shows that muC/OS-II embedded platform based on C167-LM is flexible, and it can be customized according to need in application, and its real-time quality can be improved by optimizing scheduling. This platform makes the development of real-time measurement and control system easier to implement.