A control system is constructed based on the embedded RTOS uC/OS-Ⅱ and the Winbond MCU W77E58 and can fulfill the anticipant functions.
A control system is constructed based on the embedded RTOS uC/OS-Ⅱ and the Winbond MCU W77E58 is used. In this system, one of the two serial ports of W77E58 is used to get the status information from PLC, and then commands are sent to the implement machines through the other one. The software of this system is based on the uC/OS-51, a porting of uC/OS-Ⅱ for MCS-51. The emphases is the setting in Keil programming environment, the characteristics of uC/OS-51's switch context, the detail usage of W77E58 and the division of the tasks. It is a typical application to combine the RTOS and MCU. This system can fulfill the anticipant functions.